Abstract:
This application discloses a data communication method implemented at an electronic device. The electronic device obtains a sequence of data packets. Each data packet complies with a first data format corresponding to a network access protocol and comprises a respective header that further includes a data length field for specifying a length of the respective data packet. Data are then assigned to the data length fields of the sequence of data packets according to a second data format. The electronic device encrypts the sequence of data packets including the assigned data. The encrypted data packets are then sent to a receiver device that is communicatively coupled to the electronic device via a wireless network. The receiver device is configured to retrieve the assigned data from the data length fields of the data packets according to the first and second data formats and perform operations in accordance with the retrieved data.
Abstract:
Methods and systems for facilitating access to a network (e.g., the Internet) are disclosed herein. A server with processor(s) and memory receives a request from a client device to download a network access configuration file, where the network access configuration file is configured to enable access to the Internet via a respective Internet access point. In accordance with the received request, the server identifies a first account in a social networking platform corresponding to a provider of the respective Internet access point. The server determines a relationship between the first account and a second account corresponding to a user of the client device in the social networking platform. In accordance with a first determination that the relationship satisfies one or more predetermined access criteria, the server provides the network access configuration file to the client device.
Abstract:
This application discloses a data transfer method for transferring information concerning a service set associated with a communication network. An electronic device obtains a plurality of data packets that comply with a specific data format corresponding to a network access protocol, and each data packet includes a respective header that further includes at least one data field. A service set identifier (SSID) data set is arranged in the at least one data field of the plurality of data packets according to a link layer data structure. The SSID data set at least includes a SSID and a SSID password, and identifies a wireless network that transmits the plurality of data packets and is accessible when the SSID password is verified. The data packets that include the SSID data set are encrypted, and to a receiver device that is communicatively coupled to the electronic device via the identified wireless network.
Abstract:
A method and system for connecting a peripheral device to a user device via a Bluetooth protocol, comprising: at the peripheral device: initiating an broadcasting process, comprising: broadcasting a device discovery message, the device discovery message comprising a predetermined identifier designated for a social networking service associated with a social networking application executing on the user device; receiving, from the user device, a connection request corresponding to the device discovery message; and in response to receiving the connection request from the user device, establishing a Bluetooth connection to the user device.
Abstract:
A method and device for transmitting data between a peripheral device and a user device via a Bluetooth Low Energy connection, comprising: at the peripheral device: transmitting data to the user device in a simulated data stream, the transmitting comprising: identifying a first Bluetooth characteristic for writing data, the first Bluetooth characteristic having been exposed by the peripheral device to the user device; dividing a data packet into a sequence of data frames plus zero or one remainder, each data frame having a respective size equal to a predetermined data size of the identified first Bluetooth characteristic; and for each of the sequence of data frames: writing the data frame to a respective value for the identified first Bluetooth characteristic; and pushing the identified first Bluetooth characteristic for reading by the user device.
Abstract:
A method and system for connecting a peripheral device to a user device via a Bluetooth protocol, comprising: at the user device: initiating a device scan process, comprising: detecting a device discovery message from the peripheral device; and determining whether the device discovery message includes a predetermined identifier designated for a social networking service associated with a social networking application executing on the user device; upon determining that the device discovery message includes the predetermined identifier designated for the social networking service associated with a social networking application executing on the user device, sending, to the peripheral device, a connection request corresponding to the device discovery message; and establishing a Bluetooth connection to the peripheral device.
Abstract:
A method and device for transmitting data between a peripheral device and a user device via a Bluetooth Low Energy connection, comprising: at the peripheral device: transmitting data to the user device in a simulated data stream, the transmitting comprising: identifying a first Bluetooth characteristic for writing data, the first Bluetooth characteristic having been exposed by the peripheral device to the user device; dividing a data packet into a sequence of data frames plus zero or one remainder, each data frame having a respective size equal to a predetermined data size of the identified first Bluetooth characteristic; and for each of the sequence of data frames: writing the data frame to a respective value for the identified first Bluetooth characteristic; and pushing the identified first Bluetooth characteristic for reading by the user device.
Abstract:
The disclosure describes a device control method. A close-range communication connection between a terminal and a target device is established. A feature description of the target device is obtained through the close-range communication connection. The feature description corresponds to a function of the target device. An operation permission regarding the feature description is queried. The function is controlled by the terminal using the feature description according to the operation permission regarding the feature description.
Abstract:
An information transmitting method and device, and an information receiving method and device are provided. The information transmitting method includes: obtaining authentication information; converting the authentication information into a binary sequence; encoding the binary sequence into optical signals based on a correspondence between a binary number and an optical signal; and transmitting the optical signals to a receiving device, wherein the receiving device receives the optical signals, obtains the authentication information carried in the optical signals, and performs an information authentication based on the authentication information.
Abstract:
A method and apparatus for connecting peripheral devices are disclosed. The method is performed at an electronic device having one or more processors and memory, and includes: scanning, through a user interface of a social networking application, an image containing encoded information associated with a first peripheral device that provides a first wireless communication interface; retrieving, based on the encoded information, a first identity information item of the first peripheral device from a server hosting a social networking platform associated with the social networking application; and in accordance with the retrieved first identity information item, establishing a wireless connection between the electronic device and the first peripheral device via the first wireless communication interface of the first peripheral device.