WO2022016669A1 - 蓝牙配网方法、设备及存储介质 - Google Patents

蓝牙配网方法、设备及存储介质 Download PDF

Info

Publication number
WO2022016669A1
WO2022016669A1 PCT/CN2020/113022 CN2020113022W WO2022016669A1 WO 2022016669 A1 WO2022016669 A1 WO 2022016669A1 CN 2020113022 W CN2020113022 W CN 2020113022W WO 2022016669 A1 WO2022016669 A1 WO 2022016669A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
network
distribution
information
network distribution
Prior art date
Application number
PCT/CN2020/113022
Other languages
English (en)
French (fr)
Inventor
叶新民
陈土福
曹黎
肖水
Original Assignee
深圳创维数字技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳创维数字技术有限公司 filed Critical 深圳创维数字技术有限公司
Publication of WO2022016669A1 publication Critical patent/WO2022016669A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/14Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a Bluetooth network distribution method, device and storage medium.
  • the main purpose of this application is to propose a method, device and storage medium for Bluetooth network distribution, which aims to solve the technical problem of how to improve the efficiency of Bluetooth network distribution.
  • the Bluetooth network distribution method includes the following steps:
  • the distribution network information is extracted from the distribution network instruction, and the network distribution is performed based on the distribution network information.
  • the extracting network distribution information from the network distribution instruction, and performing network distribution based on the network distribution information specifically includes:
  • Network configuration is performed based on the service set identifier, the password to be matched, and the target password.
  • the performing network configuration based on the service set identifier, the password to be matched and the target password specifically includes:
  • the sending low-power bluetooth broadcast so that when the terminal device scans the low-power bluetooth broadcast, before establishing a GATT connection channel with the bluetooth distribution network device, further includes:
  • the step of sending the Bluetooth low energy consumption broadcast is performed.
  • the sending low-power bluetooth broadcast so that when the terminal device scans the low-power bluetooth broadcast, before establishing a GATT connection channel with the bluetooth distribution network device, further includes:
  • the sending low-power bluetooth broadcast so that when the terminal device scans the low-power bluetooth broadcast, establishes a GATT connection channel with the bluetooth distribution network device, specifically including:
  • the acquiring device information and generating a device identifier according to the device information specifically includes:
  • the device identification is determined according to the device identification information.
  • the device identification information includes: at least one of a device ID, a Bluetooth MAC address, a device serial number, and a manufacturer ID.
  • the Bluetooth network distribution method includes the following steps:
  • the Bluetooth network configuration device includes: a memory, a processor and a Bluetooth network configuration program stored in the memory and running on the processor, the Bluetooth configuration The network program is configured to implement the steps of the Bluetooth network distribution method as described above.
  • the present application provides a storage medium, where a Bluetooth network configuration program is stored on the storage medium, and the Bluetooth network configuration program is executed by a processor to implement the steps of the Bluetooth network configuration method described above.
  • the bluetooth network distribution method proposed in the present application sends low-power bluetooth broadcasts, so that when the terminal device scans the low-power bluetooth broadcasts, it establishes a GATT connection channel with the bluetooth network distribution equipment;
  • the network distribution information is extracted from the network distribution command, and the network distribution is performed based on the network distribution information.
  • the GATT connection channel between the terminal device and the Bluetooth distribution network device is established through the low-power Bluetooth broadcast to transmit the distribution network command, and the network distribution is carried out through the distribution network information in the distribution network command, which improves the Bluetooth distribution network. efficient.
  • FIG. 1 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present application;
  • FIG. 2 is a schematic flowchart of the first embodiment of the Bluetooth network distribution method of the application
  • FIG. 3 is a schematic flowchart of the second embodiment of the Bluetooth network distribution method of the present application.
  • FIG. 4 is a schematic flowchart of the third embodiment of the Bluetooth network distribution method of the present application.
  • FIG. 5 is a schematic flowchart of a fourth embodiment of a Bluetooth network distribution method of the present application.
  • FIG. 1 is a schematic structural diagram of a Bluetooth distribution network device of a hardware operating environment involved in the solution of an embodiment of the present application.
  • the Bluetooth network distribution device may include: a processor 1001 , such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002 , a user interface 1003 , a network interface 1004 , and a memory 1005 .
  • the communication bus 1002 is used to realize the connection and communication between these components.
  • the user interface 1003 may include a display screen (Display), an input unit such as a button, and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface).
  • the memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or may be a stable memory (non-volatile memory), such as a disk memory.
  • RAM Random Access Memory
  • non-volatile memory such as a disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
  • the device structure shown in FIG. 1 does not constitute a limitation on the Bluetooth distribution network device, and may include more or less components than the one shown, or combine some components, or arrange different components .
  • the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module and a Bluetooth network configuration program.
  • the network interface 1004 is mainly used to connect to the external network and perform data communication with other network devices;
  • the user interface 1003 is mainly used to connect user equipment and perform data communication with the user equipment; this
  • the application device invokes the Bluetooth network configuration program stored in the memory 1005 through the processor 1001, and executes the Bluetooth network configuration method provided by the embodiment of the present application.
  • FIG. 2 is a schematic flowchart of the first embodiment of the Bluetooth network distribution method of the present application.
  • the Bluetooth network distribution method includes the following steps:
  • Step S10 sending a low-power bluetooth broadcast, so that the terminal device establishes a GATT connection channel with a bluetooth network distribution device when scanning the low-power bluetooth broadcast.
  • the executive body of this embodiment may be a Bluetooth network distribution device, or other devices that can implement the same or similar functions, which are not limited in this embodiment.
  • a Bluetooth network distribution device is used.
  • the bluetooth network distribution device includes a processor and a wifi bluetooth module, and may also include other modules, which are not limited in this embodiment.
  • the Bluetooth distribution network device may be a device with a broadcast function, and the terminal device may be a device with a scanning function.
  • the Bluetooth distribution network device sends a Bluetooth Low Energy (BLE) broadcast, and the terminal device scans .
  • BLE Bluetooth Low Energy
  • the Bluetooth network configuration device may also have a scanning function, and the terminal device may also have a broadcast function.
  • the terminal device sends a BLE broadcast, and the Bluetooth network configuration device scans, which is not limited in this embodiment.
  • the Bluetooth network configuration device sends a BLE broadcast, and then performs a Bluetooth scan while the Bluetooth network configuration device sends a BLE broadcast, or after the Bluetooth network configuration device sends a BLE broadcast.
  • the Bluetooth scan is a BLE scan. .
  • GATT Generic Attribute Profile
  • GATT is a general specification for sending and receiving short data segments over a Bluetooth connection. Therefore, according to the GATT protocol A GATT connection channel between the Bluetooth distribution network device and the terminal device is established, and the Bluetooth distribution network device and the terminal device perform data transmission according to the GATT connection channel.
  • the GATT connection is exclusive, that is to say, a Bluetooth network configuration device can only be connected by one terminal device at the same time. Once the Bluetooth network configuration device is connected, it will stop broadcasting immediately, so that it is not available to other devices. It can be seen that when the connection is disconnected, the Bluetooth distribution network device can start broadcasting again. When the Bluetooth distribution network device and the terminal device need two-way communication, it is a better way to establish a GATT connection channel for communication.
  • step S10 it also includes:
  • the Bluetooth distribution network device When the Bluetooth distribution network device receives the broadcast instruction, it determines the first current device state according to the broadcast instruction; judges whether the first current device state is the first preset state; when the first current device state is the In the first preset state, the step of sending low-power bluetooth broadcast is performed.
  • the Bluetooth network configuration device receives the broadcast command input by the user, it determines the first current device state according to the broadcast command, and the first current device state is the Bluetooth network configuration device.
  • the current device state of the device includes a broadcast-on state and a broadcast-off state.
  • the first preset state may be a broadcast-off state, which is not limited in this embodiment.
  • the step of sending low-power Bluetooth broadcast is performed to broadcast; and when the current device state of the Bluetooth distribution network device is in the broadcast state, It means that it is already broadcasting.
  • Step S20 Receive a network configuration instruction sent by the terminal device through the GATT connection channel.
  • the terminal device will send a network configuration command to the Bluetooth network configuration device through the GATT connection channel, and the Bluetooth network configuration device will receive the network configuration command.
  • Step S30 extracting network distribution information from the network distribution instruction, and performing network distribution based on the network distribution information.
  • the network distribution information may be extracted from the network distribution instruction, and the network distribution information includes information such as the service set identifier and the password to be matched, and may also include other information, which is not limited in this embodiment.
  • the Bluetooth distribution network can be performed based on the distribution network information.
  • the Bluetooth distribution network device can directly perform network distribution based on the distribution network information, or store the distribution network information in the local database.
  • the distribution network information is used for network distribution, which is not limited in this embodiment.
  • the terminal device can establish a GATT connection channel with the bluetooth distribution network device when scanning the low-power bluetooth broadcast;
  • the distribution network information is extracted from the distribution network instruction, and the network distribution is performed based on the distribution network information.
  • the GATT connection channel between the terminal device and the Bluetooth distribution network device is established through the low-power Bluetooth broadcast to transmit the distribution network command, and the network distribution is carried out through the distribution network information in the distribution network command, which improves the Bluetooth distribution network. efficient.
  • the step S30 includes:
  • Step S301 extracting network distribution information from the network distribution instruction, and extracting a service set identifier and a password to be matched from the network distribution information.
  • the Service Set Identifier (SSID) and the password to be matched can be extracted from the network distribution information, and the network is configured through the service set identifier and the password to be matched.
  • Step S302 it is judged whether the service set identifier is stored locally.
  • the Bluetooth distribution network device may have been connected to the router corresponding to the service set identifier before, it is necessary to determine whether the service set identifier is stored locally. When the service set identifier is stored locally, it means that it has been connected before. The router corresponding to the service set identifier; when the service set identifier is not stored locally, it means that the router corresponding to the service set identifier has not been connected before.
  • a target router is determined according to the service set identifier, and a network connection is established with the target router according to the service set identifier and the password to be matched.
  • the Bluetooth distribution network device has not established a connection with the target router, there is no relevant information stored locally. At this time, only the service set identifier and the password to be matched in the distribution command sent by the terminal device can be used.
  • the router establishes a network connection, which can be understood as the first time that the Bluetooth distribution network device establishes a network connection with the target router.
  • Step S303 when the service set identifier is stored locally, search for a target password corresponding to the service set identifier.
  • the service set identifier when the service set identifier is stored locally, it means that the Bluetooth network configuration device and the router corresponding to the service set identifier have established a network connection before, or have received the network configuration command sent by the terminal device before, but no matter which
  • the service set ID when the service set ID is stored locally, it also stores the target password corresponding to the service set ID, and the target password is the password used in the process of establishing a network connection with the router corresponding to the service set ID before, or, from This embodiment does not limit the password extracted from the previously received network configuration instruction.
  • Step S304 Perform network configuration based on the service set identifier, the password to be matched, and the target password.
  • step S304 includes:
  • the password to be matched can be compared with the target password to determine the password to be matched. Whether the password is the same as the target password.
  • this step plays a role of verification. By judging whether the password to be matched is the same as the target password, it avoids the connection failure caused by the user entering the wrong password due to mistakes, thus ensuring the accuracy of the password to be matched. It also further improves the efficiency of the distribution network.
  • the target router is determined according to the service set identifier.
  • the target router can be determined according to the service set identifier.
  • the password to be matched is the same as the target password, it means that the password to be matched has a high accuracy at this time, that is, the success rate of establishing a network connection with the target router through the password to be matched is relatively high. high.
  • each router has its corresponding service set identifier. Therefore, after the service set identifier is determined, the target router can be determined according to the service set identifier.
  • a router may not only have one service set ID, but may have multiple service set IDs at the same time, there may be three routers D1, D2, and D3, and the service set ID corresponding to D1 is A1.
  • the service set ID corresponding to D2 is A2
  • the service set ID corresponding to D3 is A3 and A4.
  • the target router is D3, but in any case, according to the service set
  • the correspondence between the identity and the router determines the target router.
  • the service set identifier extracted by the Bluetooth distribution network device from the network distribution command is A
  • the password to be matched is B.
  • the stored target password C corresponding to A is used to determine whether B and C are consistent.
  • target server D is determined according to A, and a network connection is established according to A, B, and D.
  • the method further includes:
  • Step S001 acquiring device information, and generating a device identifier according to the device information.
  • the device information may be the device information of the Bluetooth distribution network device, wherein the device information may include the device name, device ID , Bluetooth MAC address, device serial number, and manufacturer ID at least one item of information about the device, and may also include other information, which is not limited in this embodiment.
  • step S001 includes:
  • the Bluetooth distribution network device can obtain the device information of the device before sending the low-power Bluetooth broadcast, and the method of obtaining the device information of the device can be searched from the local database or the cloud database. There is no restriction on this.
  • the device identification information can be extracted from the device information, and then the extracted device identification information can be used as the device identification, and the Bluetooth broadcast information can be generated according to the device identification. To determine the Bluetooth distribution network device that needs to be connected.
  • the terminal device can obtain the device identification information of the Bluetooth distribution network device through NFC, QR code scanning or other transmission methods. To determine the Bluetooth distribution network device that needs to be connected.
  • the device identification information is taken as an example of a device ID for description.
  • the terminal device has obtained the device IDs of multiple Bluetooth network configuration devices in advance through the above method, which can be ID1, ID2, and ID3, respectively, corresponding to Bluetooth network configuration device 1, Bluetooth network configuration device 2, and Bluetooth network configuration device 3.
  • the Bluetooth distribution network device 1 searches for the ID1 of the device, uses the ID1 as the device identification, and generates Bluetooth broadcast information according to the device identification for low-power Bluetooth broadcast.
  • the terminal device scans the low-power Bluetooth broadcast, it obtains the device identification as ID1, and then matches ID1 with the IDs of multiple Bluetooth distribution network devices obtained before. According to the matching result, it can be known that the Bluetooth distribution network device that needs to be connected is a Bluetooth distribution network device.
  • network device 1 is a Bluetooth distribution network device.
  • Step S002 generating Bluetooth broadcast information according to the device identifier.
  • the Bluetooth broadcast information can be generated according to the device identifier, and the Bluetooth broadcast can be performed based on the Bluetooth broadcast information.
  • step S10 includes:
  • Step S101 sending low-power bluetooth broadcast based on the bluetooth broadcast information, so that when the terminal device scans the low-power bluetooth broadcast, it determines a device identifier according to the bluetooth broadcast information, and establishes a connection with the device identifier according to the device identifier.
  • the bluetooth distribution network device sends low-power bluetooth broadcast based on the bluetooth broadcast information for bluetooth broadcast, and the terminal device performs bluetooth scanning. Extract the device ID from the .
  • the terminal device determines the Bluetooth network configuration device corresponding to the device identification according to the device identification, and then establishes a GATT connection channel with the Bluetooth network configuration device.
  • the terminal device determines that the terminal device to be connected is the Bluetooth network configuration device 1 according to the above steps, a GATT channel connection with the Bluetooth network configuration device 1 is established.
  • Bluetooth broadcast information according to the device identification; send low-power Bluetooth broadcast based on the Bluetooth broadcast information, so that when the terminal device scans the low-power Bluetooth broadcast, determine the device identification according to the Bluetooth broadcast information, and Establish a GATT connection channel with the Bluetooth distribution network device according to the device identification.
  • the device identification is generated, the Bluetooth broadcast information is generated according to the device identification for Bluetooth broadcasting, and the terminal device establishes a GATT connection channel with the Bluetooth distribution network device according to the device identification, which improves the efficiency of establishing the GATT connection channel.
  • FIG. 5 is a schematic flowchart of a fourth embodiment of a Bluetooth network distribution method of the present application.
  • the Bluetooth network distribution method includes the following steps:
  • Step S10' performing Bluetooth scanning, and establishing a GATT connection channel with the Bluetooth network configuration device when scanning the low-power Bluetooth broadcast sent by the Bluetooth network configuration device.
  • the executive body of this embodiment may be a terminal device, or other devices that can implement the same or similar functions, which is not limited in this embodiment.
  • a Bluetooth network distribution device is used as an example Be explained.
  • the terminal device includes a processor and a wifi Bluetooth module, and may also include other modules, which are not limited in this embodiment.
  • the Bluetooth distribution network device may be a device with a broadcast function, and the terminal device may be a device with a scanning function.
  • the Bluetooth distribution network device sends a Bluetooth Low Energy (BLE) broadcast, and the terminal device scans .
  • BLE Bluetooth Low Energy
  • the Bluetooth network configuration device may also have a scanning function, and the terminal device may also have a broadcast function.
  • the terminal device sends a BLE broadcast, and the Bluetooth network configuration device scans, which is not limited in this embodiment.
  • the Bluetooth network configuration device sends a BLE broadcast, and then performs a Bluetooth scan while the Bluetooth network configuration device sends a BLE broadcast, or after the Bluetooth network configuration device sends a BLE broadcast.
  • the Bluetooth scan is a BLE scan. .
  • GATT Generic Attribute Profile
  • GATT is a general specification for sending and receiving short data segments over a Bluetooth connection. Therefore, according to the GATT protocol A GATT connection channel between the Bluetooth distribution network device and the terminal device is established, and the Bluetooth distribution network device and the terminal device perform data transmission according to the GATT connection channel.
  • the GATT connection is exclusive, that is to say, a Bluetooth network configuration device can only be connected by one terminal device at the same time. Once the Bluetooth network configuration device is connected, it will stop broadcasting immediately, so that it is not available to other devices. It can be seen that when the connection is disconnected, the Bluetooth distribution network device can start broadcasting again. When the Bluetooth distribution network device and the terminal device need two-way communication, it is a better way to establish a GATT connection channel for communication.
  • step of performing bluetooth scanning includes:
  • the terminal device acquires the network distribution request instruction, it acquires the second current device state according to the network distribution request instruction; judges whether the second current device state is the second preset state; When the state is the second preset state, the Bluetooth scanning program is started; the Bluetooth scanning program is performed through the Bluetooth scanning program.
  • the terminal device when it receives the network configuration request command input by the user, it obtains the second current device state according to the network configuration request command, and the second current device state is the current device state of the terminal device, including the scan state and In the unscanned state, the second preset state may be an unscanned state, wherein the scanning state is a state in which the scanning function is turned on, and the unscanned state is a state in which the scanning function is not turned on.
  • Determine whether the second current device state is the second preset state, and when the second current device state is the unscanned state start the Bluetooth scanning program, and perform Bluetooth scanning through the Bluetooth scanning program, wherein the Bluetooth scanning program is a Bluetooth scanning program. program, which is not limited in this embodiment.
  • Step S20' generating a network distribution instruction, and sending the network distribution instruction to the Bluetooth network distribution device through the GATT connection channel, so that the Bluetooth network distribution device extracts network distribution information from the network distribution instruction, And the distribution network is performed based on the distribution network information.
  • the terminal device After establishing the GATT channel between the terminal device and the Bluetooth network configuration device, the terminal device generates a network configuration command, and sends the network configuration command to the Bluetooth network configuration device through the GATT channel.
  • the distribution network information is extracted from the network command, and the distribution network is carried out based on the distribution network information.
  • the Bluetooth network configuration device can directly perform the Bluetooth network distribution based on the network distribution information, or store the network distribution information in the local database, and call it from the local database when network distribution needs to be performed.
  • the network distribution information is used for network distribution, which is not limited in this embodiment.
  • the Bluetooth network distribution device by performing bluetooth scanning; when scanning the low-power bluetooth broadcast sent by the bluetooth network distribution device, establish a GATT connection channel with the bluetooth network distribution device;
  • the GATT connection channel sends the network distribution instruction to the Bluetooth network distribution device, so that the Bluetooth network distribution device extracts network distribution information from the network distribution instruction, and performs network distribution based on the network distribution information.
  • the GATT connection channel between the terminal device and the Bluetooth distribution network device is established through the low-power Bluetooth broadcast to transmit the distribution network command, and the network distribution is carried out through the distribution network information in the distribution network command, which improves the Bluetooth distribution network. efficient.
  • the low-power Bluetooth broadcast carries the device identification of the Bluetooth network configuration device, and the terminal device can determine the Bluetooth network configuration device according to the device identification. Therefore, when the terminal device scans the low-power Bluetooth broadcast, it can be based on Bluetooth.
  • the broadcast information determines the device identification, and establishes a GATT connection channel with the Bluetooth distribution network device according to the device identification.
  • step S20' includes:
  • Receive the service set identifier and the password to be matched input by the user generate network distribution information according to the service set identifier and the to-be-matched password, and generate a network distribution instruction according to the network distribution information.
  • the user enters the service set identifier and the password to be matched on the terminal device, and the terminal device receives the service set identifier and the password to be matched entered by the user, and generates network distribution information according to the service set identifier and the password to be matched.
  • the pre-stored service set identifier and the password to be matched can also be obtained from the local data of the terminal device, or other methods, which are not limited in this embodiment.
  • a network configuration instruction can be generated according to the network configuration information, and the network configuration instruction can be sent to the Bluetooth network configuration device.
  • the network configuration command is sent to the Bluetooth network configuration device through the GATT connection channel, so that the Bluetooth network configuration device extracts the network configuration information from the network configuration command, and extracts the network configuration information from the network configuration information.
  • Extract the service set identifier and the password to be matched determine whether the service set identifier is stored locally, and when the service set identifier is stored locally, search for the target password corresponding to the service set identifier, and determine the Whether the password to be selected is consistent with the target password, when the password to be matched is consistent with the target password, the target router is determined according to the server identifier, and the target router is established according to the service set identifier and the password to be matched.
  • Internet connection is
  • the network configuration command is sent to the Bluetooth network configuration device through the previously established GATT channel.
  • the Bluetooth network configuration device can extract the network distribution command from the network configuration command. information, and then extract the service set identifier and the password to be matched from the distribution network information, and then the Bluetooth distribution network device searches for the target password corresponding to the service set identifier, and then compares the password to be matched with the target password to determine the password to be matched and the target password. Whether the passwords are the same, when the password to be matched is the same as the target password, the verification of the password to be matched is passed. After the verification is passed, the network can be configured based on the service set identifier and the password to be matched.
  • the Bluetooth distribution network device may have been connected to the router corresponding to the service set identifier before, it is necessary to determine whether the service set identifier is stored locally. When the service set identifier is stored locally, it means that it has been connected before. The router corresponding to the service set identifier; when the service set identifier is not stored locally, it means that the router corresponding to the service set identifier has not been connected before.
  • a target router is determined according to the service set identifier, and a network connection is established with the target router according to the service set identifier and the password to be matched.
  • the Bluetooth distribution network device has not established a connection with the target router, there is no relevant information stored locally. At this time, only the service set identifier and the password to be matched in the distribution command sent by the terminal device can be used.
  • the router establishes a network connection, which can be understood as the first time that the Bluetooth distribution network device establishes a network connection with the target router.
  • the service set identifier when the service set identifier is stored locally, it means that the Bluetooth network configuration device and the router corresponding to the service set identifier have established a network connection before, or have received the network configuration command sent by the terminal device before, but no matter which
  • the service set ID when the service set ID is stored locally, it also stores the target password corresponding to the service set ID, and the target password is the password used in the process of establishing a network connection with the router corresponding to the service set ID before, or, from This embodiment does not limit the password extracted from the previously received network configuration instruction.
  • the password to be matched can be compared with the target password to determine the password to be matched. Whether the password is the same as the target password.
  • this step plays a role of verification. By judging whether the password to be matched is consistent with the target password, it avoids the connection failure caused by the user entering the wrong password due to mistakes, thus ensuring the accuracy of the password to be matched. It also further improves the efficiency of the distribution network.
  • the target router can be determined according to the service set identifier.
  • the password to be matched is the same as the target password, it means that the password to be matched has a high accuracy at this time, that is, the success rate of establishing a network connection with the target router through the password to be matched is relatively high. high.
  • each router has its corresponding service set identifier. Therefore, after the service set identifier is determined, the target router can be determined according to the service set identifier.
  • a router may not only have one service set ID, but may have multiple service set IDs at the same time, there may be three routers D1, D2, and D3, and the service set ID corresponding to D1 is A1.
  • the service set ID corresponding to D2 is A2
  • the service set ID corresponding to D3 is A3 and A4.
  • the target router is D3, but in any case, according to the service set
  • the correspondence between the identity and the router determines the target router.
  • the service set identifier extracted by the Bluetooth distribution network device from the network distribution command is A
  • the password to be matched is B.
  • the stored target password C corresponding to A is used to determine whether B and C are consistent.
  • target server D is determined according to A, and a network connection is established according to A, B, and D.
  • the GATT connection channel sends the network distribution instruction to the Bluetooth network distribution device, so that the Bluetooth network distribution device extracts the network distribution information from the network distribution instruction, and extracts all the network distribution information from the network distribution information.
  • the service set identifier and the password to be matched are determined, whether the service set identifier is stored locally, and when the service set identifier is stored locally, the target password corresponding to the service set identifier is searched, and the candidate password is determined.
  • the password to be matched determines the target router according to the server ID, and establish a network connection with the target router according to the service set ID and the password to be matched. . Therefore, according to the service set identifier and the password to be matched, the network configuration command is generated and sent to the Bluetooth distribution device.
  • the service set identifier is stored locally on the Bluetooth distribution device, the password to be matched is verified first, and then based on the service set after the verification is passed. The identification and the password to be matched establish a network connection with the target router, which improves the success rate of the distribution network and further improves the distribution efficiency.
  • the present application also proposes a terminal device, the terminal device includes: a memory, a processor, and a Bluetooth network configuration program stored in the memory and running on the processor, the The Bluetooth network configuration program is configured to implement the steps of the Bluetooth network configuration method described above.
  • an embodiment of the present application further provides a storage medium, where a Bluetooth network configuration program is stored on the storage medium, and the Bluetooth network configuration program is executed by a processor to perform the steps of the Bluetooth network configuration method described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种蓝牙配网方法、设备及存储介质,所述方法包括:发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道;接收所述终端设备通过所述GATT连接通道发送的配网指令;从所述配网指令中提取配网信息,并基于所述配网信息进行配网。

Description

蓝牙配网方法、设备及存储介质
本申请要求于2020年7月24日申请的、申请号为202010728734.7、名称为“蓝牙配网方法、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种蓝牙配网方法、设备及存储介质。
背景技术
目前,例如故事机、智能机器人等很多设备,都没有界面显示和输入,导致要给这些设备配网非常困难。存在使用经典蓝牙为这些设备进行配网的配网方式,但是经典蓝牙的工作信道为79个,扫描和配对、连接就要占用大量的时间,效率低下。
技术解决方案
本申请的主要目的在于提出一种蓝牙配网方法、设备及存储介质,旨在解决如何提高蓝牙配网效率的技术问题。
为实现上述目的,本申请提供一种蓝牙配网方法,所述蓝牙配网方法包括以下步骤:
发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道;
接收所述终端设备通过所述GATT连接通道发送的配网指令;
从所述配网指令中提取配网信息,并基于所述配网信息进行配网。
进一步地,所述从所述配网指令中提取配网信息,并基于所述配网信息进行配网,具体包括:
从所述配网指令中提取配网信息,并从所述配网信息中提取服务集标识和待匹配密码;
判断本地是否存储有所述服务集标识;
在本地存储有所述服务集标识时,查找与所述服务集标识对应的目标密码;
基于所述服务集标识、所述待匹配密码以及所述目标密码进行配网。
进一步地,所述基于所述服务集标识、所述待匹配密码以及所述目标密码进行配网,具体包括:
判断所述待匹配密码与所述目标密码是否一致;
在所述待匹配密码与所述目标密码一致时,根据所述服务集标识确定目标路由器;
根据所述服务集标识和所述待匹配密码与所述目标路由器建立网络连接。
进一步地,所述发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道之前,还包括:
在接收到广播指令时,根据所述广播指令确定第一当前设备状态;
判断所述第一当前设备状态是否为第一预设状态;
在所述第一当前设备状态为所述第一预设状态时,执行所述发送低功耗蓝牙广播的步骤。
进一步地,所述发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道之前,还包括:
获取设备信息,并根据所述设备信息生成设备标识;
根据所述设备标识生成蓝牙广播信息;
相应地,所述发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道,具体包括:
基于所述蓝牙广播信息发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,根据所述蓝牙广播信息确定设备标识,并根据所述设备标识建立与蓝牙配网设备之间的GATT连接通道。
进一步地,所述获取设备信息,并根据所述设备信息生成设备标识,具体包括:
从所述设备信息中提取设备标识信息;
根据所述设备标识信息确定设备标识。
进一步地,所述设备标识信息包括:设备ID、蓝牙MAC地址、设备序列号和厂商ID中的至少一项。
进一步地,所述蓝牙配网方法包括以下步骤:
进行蓝牙扫描,在扫描到蓝牙配网设备发送的低功耗蓝牙广播时,建立与所述蓝牙配网设备之间的GATT连接通道;
生成配网指令,通过所述GATT连接通道将所述配网指令发送至所述蓝牙配网设备,以使所述蓝牙配网设备从所述配网指令中提取配网信息,并基于所述配网信息进行配网。
为实现上述目的,本申请提供一种设备,所述蓝牙配网设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的蓝牙配网程序,所述蓝牙配网程序配置为实现如上文所述的蓝牙配网方法的步骤。
为实现上述目的,本申请提供一种存储介质,所述存储介质上存储有蓝牙配网程序,所述蓝牙配网程序被处理器执行时实现如上文所述的蓝牙配网方法的步骤。
本申请提出的蓝牙配网方法,通过发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道;接收所述终端设备通过所述GATT连接通道发送的配网指令;从所述配网指令中提取配网信息,并基于所述配网信息进行配网。从而通过低功耗蓝牙广播来建立终端设备与蓝牙配网设备之间的GATT连接通道,以传输配网指令,并通过配网指令中的配网信息来进行配网,提高了蓝牙配网的效率。
附图说明
图1是本申请实施例方案涉及的硬件运行环境的设备结构示意图;
图2为本申请蓝牙配网方法第一实施例的流程示意图;
图3为本申请蓝牙配网方法第二实施例的流程示意图;
图4为本申请蓝牙配网方法第三实施例的流程示意图;
图5为本申请蓝牙配网方法第四实施例的流程示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
参照图1,图1为本申请实施例方案涉及的硬件运行环境的蓝牙配网设备结构示意图。
如图1所示,该蓝牙配网设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如按键,可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速随机存取存储器(Random Access Memory,RAM)存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。
本领域技术人员可以理解,图1中示出的设备结构并不构成对蓝牙配网设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及蓝牙配网程序。
在图1所示的蓝牙配网设备中,网络接口1004主要用于连接外网,与其他网络设备进行数据通信;用户接口1003主要用于连接用户设备,与所述用户设备进行数据通信;本申请设备通过处理器1001调用存储器1005中存储的蓝牙配网程序,并执行本申请实施例提供的蓝牙配网方法。
基于图1的硬件结构,提出本申请蓝牙配网方法实施例。
参照图2,图2为本申请蓝牙配网方法第一实施例的流程示意图。
在第一实施例中,所述蓝牙配网方法包括以下步骤:
步骤S10,发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道。
需要说明的是,本实施例的执行主体可为蓝牙配网设备,还可为其他可实现相同或相似功能的设备,本实施例对此不作限制,在本实施例中,以蓝牙配网设备为例进行说明。其中,所述蓝牙配网设备包含处理器和wifi蓝牙模块,还可包含其他模块,本实施例对此不作限制。
需要说明的是,蓝牙配网设备可为具有广播功能的设备,终端设备可为具有扫描功能的设备,由蓝牙配网设备发送低功耗蓝牙(Bluetooth Low Energy,BLE)广播,终端设备进行扫描。当然,蓝牙配网设备也可具有扫描功能,终端设备也可具有广播功能,由终端设备发送BLE广播,蓝牙配网设备进行扫描,本实施例对此不作限制。
应当理解的是,蓝牙配网设备发送BLE广播,然后在蓝牙配网设备发送BLE广播的同时,或者在蓝牙配网设备发送BLE广播之后,进行蓝牙扫描,具体地,所述蓝牙扫描为BLE扫描。
需要说明的是,经典蓝牙的工作信道为79个,而BLE的工作信道为3个,因此BLE扫描相较于经典蓝牙扫描,扫描以及连接的效率提升了很多倍,而且,正是因为扫描以及连接的效率的提升,也进一步提升了蓝牙配网的效率。
可以理解的是,进行蓝牙扫描,获得扫描列表,判断扫描列表中是否存在蓝牙配网设备发送的BLE广播,若扫描列表中存在蓝牙配网设备发送的BLE广播,说明此时扫描到了所述BLE广播,基于所述BLE广播建立与所述蓝牙配网设备之间的GATT连接通道。
应当理解的是,现在BLE连接都是建立在GATT(Generic Attribute Profile)协议之上的,GATT是一个在蓝牙连接之上的发送和接收很短的数据段的通用规范,因此,可根据GATT协议建立蓝牙配网设备与终端设备之间的GATT连接通道,蓝牙配网设备与终端设备根据GATT连接通道来进行数据传输。
需要说明的是,GATT连接是独占的,也就是说一个蓝牙配网设备同时只能被一个终端设备连接,一旦蓝牙配网设备被连接,它就会马上停止广播,这样它就对其他设备不可见了,当连接断开时,蓝牙配网设备就又可开始广播。在蓝牙配网设备与终端设备需要双向通信时,建立GATT连接通道进行通信是一种比较好的方式。
进一步地,所述步骤S10之前,还包括:
蓝牙配网设备在接收到广播指令时,根据所述广播指令确定第一当前设备状态;判断所述第一当前设备状态是否为第一预设状态;在所述第一当前设备状态为所述第一预设状态时,执行所述发送低功耗蓝牙广播的步骤。
需要说明的是,由于一直进行广播比较耗费电量,因此,一般情况下用户会在使用蓝牙功能时开启广播。在用户使用蓝牙配网功能时,会输入广播指令,蓝牙配网设备在接收到用户输入的广播指令时,根据广播指令确定第一当前设备状态,所述第一当前设备状态为蓝牙配网设备的当前设备状态,包括开启广播状态和未开启广播状态,第一预设状态可为未开启广播状态,本实施例对此不作限制。
也就是说,在蓝牙配网设备的当前设备状态为未开启广播状态时,执行发送低功耗蓝牙广播的步骤,从而进行广播;而在蓝牙配网设备的当前设备状态为开启广播状态时,则说明其已经在进行广播了。
步骤S20,接收所述终端设备通过所述GATT连接通道发送的配网指令。
需要说明的是,在建立了蓝牙配网设备与终端设备之间的GATT连接通道之后,终端设备会通过GATT连接通道发送配网指令给蓝牙配网设备,蓝牙配网设备接收所述配网指令。
步骤S30,从所述配网指令中提取配网信息,并基于所述配网信息进行配网。
需要说明的是,可从配网指令中提取配网信息,配网信息包括服务集标识和待匹配密码等信息,还可包含其他信息,本实施例对此不作限制。在获得配网信息后,可基于配网信息进行蓝牙配网。
应当理解的是,蓝牙配网设备可在获得配网信息后,可直接基于配网信息进行配网,也可将配网信息存储在本地数据库,在需要进行配网时,从本地数据库调用所述配网信息进行配网,本实施例对此不作限制。
在本实施例中,通过发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道;接收所述终端设备通过所述GATT连接通道发送的配网指令;从所述配网指令中提取配网信息,并基于所述配网信息进行配网。从而通过低功耗蓝牙广播来建立终端设备与蓝牙配网设备之间的GATT连接通道,以传输配网指令,并通过配网指令中的配网信息来进行配网,提高了蓝牙配网的效率。
在一实施例中,如图3所示,基于第一实施例提出本申请蓝牙配网方法第二实施例,所述步骤S30,包括:
步骤S301,从所述配网指令中提取配网信息,并从所述配网信息中提取服务集标识和待匹配密码。
需要说明的是,从配网指令中提取配网信息后,可从配网信息中提取服务集标识(Service Set Identifier,SSID)和待匹配密码,通过服务集标识和待匹配密码进行配网。
步骤S302,判断本地是否存储有所述服务集标识。
应当理解的是,由于蓝牙配网设备之前可能已经连接过服务集标识对应的路由器,因此需要判断本地是否存储有所述服务集标识,在本地存储有所述服务集标识时,说明之前连接过服务集标识对应的路由器;在本地没有存储所述服务集标识时,说明之前没有连接过服务集标识对应的路由器。
可以理解的是,在本地没有存储所述服务集标识时,根据所述服务集标识确定目标路由器,并根据所述服务集标识与所述待匹配密码与所述目标路由器建立网络连接。
应当理解的是,因为蓝牙配网设备没有与目标路由器建立过连接,因此本地也没有存储相关的信息,此时只能根据终端设备发送的配网指令中的服务集标识和待匹配密码与目标路由器建立网络连接,可以理解为蓝牙配网设备第一次与目标路由器建立网络连接。
步骤S303,在本地存储有所述服务集标识时,查找与所述服务集标识对应的目标密码。
应当理解的是,在本地存储有服务集标识时,说明蓝牙配网设备与服务集标识对应的路由器在之前建立过网络连接,或者,之前接收过终端设备发送的配网指令,但不管是哪种情况,本地在存储有服务集标识的同时,也存储有服务集标识对应的目标密码,所述目标密码为之前与服务集标识对应的路由器建立网络连接的过程中使用的密码,或者,从之前接收的配网指令中提取的密码,本实施例对此不作限制。
步骤S304,基于所述服务集标识、所述待匹配密码以及所述目标密码进行配网。
进一步地,所述步骤S304,包括:
判断所述待匹配密码与所述目标密码是否一致。
可以理解的是,由于当前获取到了服务集标识和待匹配密码,而又从本地查找到了与服务集标识对应的目标密码,因此,可将待匹配密码与所述目标密码进行比较,判断待匹配密码与所述目标密码是否一致。
应当理解的是,此步骤起到一个验证的作用,通过判断待匹配密码与目标密码是否一致,来避免因用户由于失误,输入错误密码,导致连接失败的情况,从而保障了待匹配密码的准确性,也进一步提高了配网的效率。
在所述待匹配密码与所述目标密码一致时,根据所述服务集标识确定目标路由器。
可以理解的是,可根据服务集标识确定目标路由器,在待匹配密码与目标密码一致时,说明此时待匹配密码的精度较高,即通过待匹配密码与目标路由器建立网络连接的成功率较高。
应当理解的是,每个路由器都有其对应的服务集标识,因此,在确定服务集标识后,便可根据服务集标识确定目标路由器。
在具体实现中,例如,有D1、D2、D3三个路由器,它们的服务集标识分别为A1、A2、A3,那么,当获得的服务集标识为A1时,目标路由器显然为D1;同理,当获得的服务集标识为A2时,目标路由器为D2。
但是,由于一个路由器可能并不只具有一个服务集标识,可能同时具有多个服务集标识,因此,可能存在的情况是,有D1、D2、D3三个路由器,D1对应的服务集标识为A1,D2对应的服务集标识为A2,D3对应的服务集标识为A3和A4,此时,当获得的服务集标识为A3或A4时,目标路由器都为D3,但不管怎样,都可根据服务集标识与路由器之间的对应关系确定目标路由器。
根据所述服务集标识和所述待匹配密码与所述目标路由器建立网络连接。
在具体实现中,例如,蓝牙配网设备从配网指令中提取的服务集标识为A,待匹配密码为B,此时,需要查找本地是否存储有A,在本地存储有A时,查找本地存储的A对应的目标密码C,判断B与C是否一致,在B与C一致时,根据A确定目标服务器D,并根据A、B与D建立网络连接。
在本实施例中,通过从所述配网指令中提取配网信息,并从所述配网信息中提取服务集标识和待匹配密码;判断本地是否存储有所述服务集标识;在本地存储有所述服务集标识时,查找与所述服务集标识对应的目标密码;
判断所述待匹配密码与所述目标密码是否一致;在所述待匹配密码与所述目标密码一致时,根据所述服务集标识确定目标路由器;根据所述服务集标识和所述待匹配密码与所述目标路由器建立网络连接。从而在本地存储有服务集标识时,先对待匹配密码进行验证,在验证通过之后再基于服务集标识和待匹配密码与目标路由器建立网络连接,提高了配网的成功率,也进一步提升了配网效率。
在一实施例中,如图4所示,基于第一实施例提出本申请蓝牙配网方法第三实施例,所述步骤S10之前,还包括:
步骤S001,获取设备信息,并根据所述设备信息生成设备标识。
需要说明的是,在发送低功耗蓝牙广播之前,还可获取设备信息,应当理解的是,所述设备信息可为蓝牙配网设备的设备信息,其中,设备信息可包括设备名称、设备ID、蓝牙MAC地址、设备序列号和厂商ID中至少一项关于本设备的信息,还可包括其他信息,本实施例对此不作限制。
进一步地,所述步骤S001,包括:
从所述设备信息中提取设备标识信息;根据所述设备标识信息确定设备标识。
应当理解的是,蓝牙配网设备在发送低功耗蓝牙广播之前,可获取本设备的设备信息,获取本设备的设备信息的方式可为从本地数据库查找,或者从云端数据库查找,本实施例对此不作限制。
可以理解的是,可从设备信息中提取设备标识信息,然后将提取出的设备标识信息作为设备标识,根据设备标识生成蓝牙广播信息,在终端设备扫描到低功耗蓝牙广播时,根据设备标识来确定需要连接的蓝牙配网设备。
应当理解的是,终端设备可通过NFC、二维码扫码或其他传输方式获得蓝牙配网设备的设备标识信息,得到设备标识后,便可根据之前获得的设备标识信息和扫描得到的设备标识来确定需要连接的蓝牙配网设备。
在具体实现中,以设备标识信息为设备ID为例来进行说明。终端设备已经提前通过上述方式获得了多个蓝牙配网设备的设备ID,可分别为ID1、ID2、ID3,分别对应蓝牙配网设备1、蓝牙配网设备2、蓝牙配网设备3。蓝牙配网设备1查找本设备的ID1,并将ID1作为设备标识,根据设备标识生成蓝牙广播信息进行低功耗蓝牙广播。终端设备在扫描到低功耗蓝牙广播时,从中获得设备标识为ID1,然后将ID1与之前获得的多个蓝牙配网设备ID进行匹配,根据匹配结果可知需要连接的蓝牙配网设备为蓝牙配网设备1。
步骤S002,根据所述设备标识生成蓝牙广播信息。
应当理解的是,在确定蓝牙配网设备对应的设备标识后,可根据设备标识生成蓝牙广播信息,基于蓝牙广播信息进行蓝牙广播。
相应地,所述步骤S10,包括:
步骤S101,基于所述蓝牙广播信息发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,根据所述蓝牙广播信息确定设备标识,并根据所述设备标识建立与蓝牙配网设备之间的GATT连接通道。
应当理解的是,蓝牙配网设备基于蓝牙广播信息发送低功耗蓝牙广播进行蓝牙广播,终端设备进行蓝牙扫描,在扫描到低功耗蓝牙广播时,可获取蓝牙广播信息,并从蓝牙广播信息中提取设备标识。
可以理解的是,终端设备根据设备标识确定所述设备标识对应的蓝牙配网设备,然后建立与蓝牙配网设备之间的GATT连接通道。
在具体实现中,例如,在终端设备根据上述步骤确定需要连接的终端设备为蓝牙配网设备1时,建立与蓝牙配网设备1之间的GATT通道连接。
在本实施例中,通过获取设备信息,并根据所述设备信息生成设备标识;
根据所述设备标识生成蓝牙广播信息;基于所述蓝牙广播信息发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,根据所述蓝牙广播信息确定设备标识,并根据所述设备标识建立与蓝牙配网设备之间的GATT连接通道。从而生成设备标识,根据设备标识生成蓝牙广播信息进行蓝牙广播,终端设备根据设备标识建立与蓝牙配网设备之间的GATT连接通道,提高了建立GATT连接通道的效率。
参照图5,图5为本申请蓝牙配网方法第四实施例的流程示意图。
如图5所示,在第四实施例中,所述蓝牙配网方法包括以下步骤:
步骤S10',进行蓝牙扫描,在扫描到蓝牙配网设备发送的低功耗蓝牙广播时,建立与所述蓝牙配网设备之间的GATT连接通道。
需要说明的是,本实施例的执行主体可为终端设备,还可为其他可实现相同或相似功能的设备,本实施例对此不作限制,在本实施例中,以蓝牙配网设备为例进行说明。其中,所述终端设备包含处理器和wifi蓝牙模块,还可包含其他模块,本实施例对此不作限制。
需要说明的是,蓝牙配网设备可为具有广播功能的设备,终端设备可为具有扫描功能的设备,由蓝牙配网设备发送低功耗蓝牙(Bluetooth Low Energy,BLE)广播,终端设备进行扫描。当然,蓝牙配网设备也可具有扫描功能,终端设备也可具有广播功能,由终端设备发送BLE广播,蓝牙配网设备进行扫描,本实施例对此不作限制。
应当理解的是,蓝牙配网设备发送BLE广播,然后在蓝牙配网设备发送BLE广播的同时,或者在蓝牙配网设备发送BLE广播之后,进行蓝牙扫描,具体地,所述蓝牙扫描为BLE扫描。
需要说明的是,经典蓝牙的工作信道为79个,而BLE的工作信道为3个,因此BLE扫描相较于经典蓝牙扫描,扫描以及连接的效率提升了很多倍,而且,正是因为扫描以及连接的效率的提升,也进一步提升了蓝牙配网的效率。
可以理解的是,进行蓝牙扫描,获得扫描列表,判断扫描列表中是否存在蓝牙配网设备发送的BLE广播,若扫描列表中存在蓝牙配网设备发送的BLE广播,说明此时扫描到了所述BLE广播,基于所述BLE广播建立与所述蓝牙配网设备之间的GATT连接通道。
应当理解的是,现在BLE连接都是建立在GATT(Generic Attribute Profile)协议之上的,GATT是一个在蓝牙连接之上的发送和接收很短的数据段的通用规范,因此,可根据GATT协议建立蓝牙配网设备与终端设备之间的GATT连接通道,蓝牙配网设备与终端设备根据GATT连接通道来进行数据传输。
需要说明的是,GATT连接是独占的,也就是说一个蓝牙配网设备同时只能被一个终端设备连接,一旦蓝牙配网设备被连接,它就会马上停止广播,这样它就对其他设备不可见了,当连接断开时,蓝牙配网设备就又可开始广播。在蓝牙配网设备与终端设备需要双向通信时,建立GATT连接通道进行通信是一种比较好的方式。
进一步地,所述进行蓝牙扫描的步骤,包括:
所述终端设备在获取到配网请求指令时,根据所述配网请求指令获取第二当前设备状态;判断所述第二当前设备状态是否为第二预设状态;在所述第二当前设备状态为所述第二预设状态时,启动蓝牙扫描程序;通过所述蓝牙扫描程序进行蓝牙扫描。
需要说明的是,终端设备在接收到用户输入的配网请求指令时,根据配网请求指令获取第二当前设备状态,所述第二当前设备状态为终端设备的当前设备状态,包括扫描状态和未扫描状态,第二预设状态可为未扫描状态,其中,所述扫描状态为开启扫描功能的状态,未扫描状态为未开启扫描功能的状态。判断第二当前设备状态是否为第二预设状态,在第二当前设备状态为未扫描状态时,启动蓝牙扫描程序,通过蓝牙扫描程序进行蓝牙扫描,其中,蓝牙扫描程序为具有蓝牙扫描功能的程序,本实施例对此不作限制。
需要说明的是,进行蓝牙扫描,在扫描到蓝牙配网设备发送的BLE广播时,根据所述BLE广播和GATT协议建立与蓝牙配网设备之间的GATT连接通道,通过GATT连接通道来与蓝牙配网设备进行通信。
步骤S20',生成配网指令,通过所述GATT连接通道将所述配网指令发送至所述蓝牙配网设备,以使所述蓝牙配网设备从所述配网指令中提取配网信息,并基于所述配网信息进行配网。
需要说明的是,在建立了终端设备与蓝牙配网设备之间的GATT通道之后,终端设备生成配网指令,通过GATT通道将配网指令发送至蓝牙配网设备,由蓝牙配网设备从配网指令中提取配网信息,并基于配网信息进行配网。
应当理解的是,蓝牙配网设备可在获取配网信息后,可直接基于配网信息进行蓝牙配网,也可将配网信息存储在本地数据库,在需要进行配网时,从本地数据库调用所述配网信息进行配网,本实施例对此不作限制。
在本实施例中,通过进行蓝牙扫描;在扫描到蓝牙配网设备发送的低功耗蓝牙广播时,建立与所述蓝牙配网设备之间的GATT连接通道;生成配网指令,通过所述GATT连接通道将所述配网指令发送至所述蓝牙配网设备,以使所述蓝牙配网设备从所述配网指令中提取配网信息,并基于所述配网信息进行配网。从而通过低功耗蓝牙广播来建立终端设备与蓝牙配网设备之间的GATT连接通道,以传输配网指令,并通过配网指令中的配网信息来进行配网,提高了蓝牙配网的效率。
应当理解的是,低功耗蓝牙广播中携带有蓝牙配网设备的设备标识,终端设备可根据设备标识确定蓝牙配网设备,因此,终端设备在扫描到低功耗蓝牙广播时,可根据蓝牙广播信息确定设备标识,并根据设备标识建立与蓝牙配网设备之间的GATT连接通道。
进一步地,所述步骤S20',包括:
接收用户输入的服务集标识和待匹配密码,根据所述服务集标识和所述待匹配密码生成配网信息,并根据所述配网信息生成配网指令。
需要说明的是,用户在终端设备上输入服务集标识和待匹配密码,终端设备接收用户输入的服务集标识和待匹配密码,根据服务集标识和待匹配密码生成配网信息,其中,除了以上方式外,还可从终端设备的本地数据中获取预先存储的服务集标识和待匹配密码,还可为其他方式,本实施例对此不作限制。
应当理解的是,在根据服务集标识和待匹配密码生成配网信息后,可根据配网信息生成配网指令,将配网指令发送至蓝牙配网设备。
通过所述GATT连接通道将所述配网指令发送至所述蓝牙配网设备,以使所述蓝牙配网设备从所述配网指令中提取所述配网信息,从所述配网信息中提取所述服务集标识和所述待匹配密码,判断本地是否存储有所述服务集标识,在本地存储有所述服务集标识时,查找与所述服务集标识对应的目标密码,判断所述待选密码与所述目标密码是否一致,在所述待匹配密码与所述目标密码一致时,根据服务器标识确定目标路由器,根据所述服务集标识和所述待匹配密码与所述目标路由器建立网络连接。
需要说明的是,在生成配网指令后,通过之前建立的GATT通道将配网指令发送至蓝牙配网设备,蓝牙配网设备在接收到配网指令后,可从配网指令中提取配网信息,然后从配网信息中提取服务集标识和待匹配密码,然后由蓝牙配网设备查找与服务集标识对应的目标密码,然后将待匹配密码与目标密码进行比较,判断待匹配密码与目标密码是否一致,在待匹配密码与目标密码一致时,对待匹配密码的验证通过,在验证通过后可基于服务集标识和待匹配密码进行配网。
应当理解的是,由于蓝牙配网设备之前可能已经连接过服务集标识对应的路由器,因此需要判断本地是否存储有所述服务集标识,在本地存储有所述服务集标识时,说明之前连接过服务集标识对应的路由器;在本地没有存储所述服务集标识时,说明之前没有连接过服务集标识对应的路由器。
可以理解的是,在本地没有存储所述服务集标识时,根据所述服务集标识确定目标路由器,并根据所述服务集标识与所述待匹配密码与所述目标路由器建立网络连接。
应当理解的是,因为蓝牙配网设备没有与目标路由器建立过连接,因此本地也没有存储相关的信息,此时只能根据终端设备发送的配网指令中的服务集标识和待匹配密码与目标路由器建立网络连接,可以理解为蓝牙配网设备第一次与目标路由器建立网络连接。
应当理解的是,在本地存储有服务集标识时,说明蓝牙配网设备与服务集标识对应的路由器在之前建立过网络连接,或者,之前接收过终端设备发送的配网指令,但不管是哪种情况,本地在存储有服务集标识的同时,也存储有服务集标识对应的目标密码,所述目标密码为之前与服务集标识对应的路由器建立网络连接的过程中使用的密码,或者,从之前接收的配网指令中提取的密码,本实施例对此不作限制。
可以理解的是,由于当前获取到了服务集标识和待匹配密码,而又从本地查找到了与服务集标识对应的目标密码,因此,可将待匹配密码与所述目标密码进行比较,判断待匹配密码与所述目标密码是否一致。
应当理解的是,此步骤起到一个验证的作用,通过判断待匹配密码与目标密码是否一致,来避免因用户由于失误,输入错误密码,导致连接失败的情况,从而保障了待匹配密码的准确性,也进一步提高了配网的效率。
可以理解的是,可根据服务集标识确定目标路由器,在待匹配密码与目标密码一致时,说明此时待匹配密码的精度较高,即通过待匹配密码与目标路由器建立网络连接的成功率较高。
应当理解的是,每个路由器都有其对应的服务集标识,因此,在确定服务集标识后,便可根据服务集标识确定目标路由器。
在具体实现中,例如,有D1、D2、D3三个路由器,它们的服务集标识分别为A1、A2、A3,那么,当获得的服务集标识为A1时,目标路由器显然为D1;同理,当获得的服务集标识为A2时,目标路由器为D2。
但是,由于一个路由器可能并不只具有一个服务集标识,可能同时具有多个服务集标识,因此,可能存在的情况是,有D1、D2、D3三个路由器,D1对应的服务集标识为A1,D2对应的服务集标识为A2,D3对应的服务集标识为A3和A4,此时,当获得的服务集标识为A3或A4时,目标路由器都为D3,但不管怎样,都可根据服务集标识与路由器之间的对应关系确定目标路由器。
在具体实现中,例如,蓝牙配网设备从配网指令中提取的服务集标识为A,待匹配密码为B,此时,需要查找本地是否存储有A,在本地存储有A时,查找本地存储的A对应的目标密码C,判断B与C是否一致,在B与C一致时,根据A确定目标服务器D,并根据A、B与D建立网络连接。
在本实施例中,通过接收用户输入的服务集标识和待匹配密码,并根据所述服务集标识和所述待匹配密码生成配网信息;根据所述配网信息生成配网指令;通过所述GATT连接通道将所述配网指令发送至所述蓝牙配网设备,以使所述蓝牙配网设备从所述配网指令中提取所述配网信息,从所述配网信息中提取所述服务集标识和所述待匹配密码,判断本地是否存储有所述服务集标识,在本地存储有所述服务集标识时,查找与所述服务集标识对应的目标密码,判断所述待选密码与所述目标密码是否一致,在所述待匹配密码与所述目标密码一致时,根据服务器标识确定目标路由器,根据所述服务集标识和所述待匹配密码与所述目标路由器建立网络连接。从而在根据服务集标识和待匹配密码生成配网指令发送至蓝牙配网设备,在蓝牙配网设备的本地存储有服务集标识时,先对待匹配密码进行验证,在验证通过之后再基于服务集标识和待匹配密码与目标路由器建立网络连接,提高了配网的成功率,也进一步提升了配网效率。
此外,为实现上述目的,本申请还提出一种终端设备,所述终端设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的蓝牙配网程序,所述蓝牙配网程序配置为实现如上文所述的蓝牙配网方法的步骤。
此外,本申请实施例还提出一种存储介质,所述存储介质上存储有蓝牙配网程序,所述蓝牙配网程序被处理器执行如上文所述的蓝牙配网方法的步骤。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该估算机软件产品存储在如上所述的一个估算机可读存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台智能设备(可以是手机,估算机,蓝牙配网设备,空调器,或者网络蓝牙配网设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (15)

  1. 一种蓝牙配网方法,其中,所述蓝牙配网方法包括以下步骤:
    发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道;
    接收所述终端设备通过所述GATT连接通道发送的配网指令;
    从所述配网指令中提取配网信息,并基于所述配网信息进行配网。
  2. 如权利要求1所述的蓝牙配网方法,其中,所述从所述配网指令中提取配网信息,并基于所述配网信息进行配网,具体包括:
    从所述配网指令中提取配网信息,并从所述配网信息中提取服务集标识和待匹配密码;
    判断本地是否存储有所述服务集标识;
    在本地存储有所述服务集标识时,查找与所述服务集标识对应的目标密码;
    基于所述服务集标识、所述待匹配密码以及所述目标密码进行配网。
  3. 如权利要求2所述的蓝牙配网方法,其中,所述基于所述服务集标识、所述待匹配密码以及所述目标密码进行配网,具体包括:
    判断所述待匹配密码与所述目标密码是否一致;
    在所述待匹配密码与所述目标密码一致时,根据所述服务集标识确定目标路由器;
    根据所述服务集标识和所述待匹配密码与所述目标路由器建立网络连接。
  4. 如权利要求1所述的蓝牙配网方法,其中,所述发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道之前,还包括:
    在接收到广播指令时,根据所述广播指令确定第一当前设备状态;
    判断所述第一当前设备状态是否为第一预设状态;
    在所述第一当前设备状态为所述第一预设状态时,执行所述发送低功耗蓝牙广播的步骤。
  5. 如权利要求1所述的蓝牙配网方法,其中,所述发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道之前,还包括:
    获取设备信息,并根据所述设备信息生成设备标识;
    根据所述设备标识生成蓝牙广播信息;
    相应地,所述发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,建立与蓝牙配网设备之间的GATT连接通道,具体包括:
    基于所述蓝牙广播信息发送低功耗蓝牙广播,以使终端设备在扫描到所述低功耗蓝牙广播时,根据所述蓝牙广播信息确定设备标识,并根据所述设备标识建立与蓝牙配网设备之间的GATT连接通道。
  6. 如权利要求5所述的蓝牙配网方法,其中,所述获取设备信息,并根据所述设备信息生成设备标识,具体包括:
    从所述设备信息中提取设备标识信息;
    根据所述设备标识信息确定设备标识。
  7. 如权利要求6所述的蓝牙配网方法,其中,所述设备标识信息包括:设备ID、蓝牙MAC地址、设备序列号和厂商ID中的至少一项。
  8. 如权利要求6所述的蓝牙配网方法,其中,所述终端设备通过NFC、二维码扫码或其他传输方式获得所述蓝牙配网设备的所述设备标识信息。
  9. 一种蓝牙配网方法,其中,所述蓝牙配网方法包括以下步骤:
    进行蓝牙扫描,在扫描到蓝牙配网设备发送的低功耗蓝牙广播时,建立与所述蓝牙配网设备之间的GATT连接通道;
    生成配网指令,通过所述GATT连接通道将所述配网指令发送至所述蓝牙配网设备,以使所述蓝牙配网设备从所述配网指令中提取配网信息,并基于所述配网信息进行配网。
  10. 如权利要求9所述的蓝牙配网方法,其中,所述进行蓝牙扫描,具体包括:
    所述终端设备在获取到配网请求指令时,根据所述配网请求指令获取第二当前设备状态;
    判断所述第二当前设备状态是否为第二预设状态;
    在所述第二当前设备状态为所述第二预设状态时,启动蓝牙扫描程序;
    通过所述蓝牙扫描程序进行蓝牙扫描。
  11. 如权利要求9所述的蓝牙配网方法,其中,所述生成配网指令,具体包括:
    接收用户输入的服务集标识和待匹配密码,根据所述服务集标识和所述待匹配密码生成配网信息,并根据所述配网信息生成配网指令。
  12. 如权利要求10所述的蓝牙配网方法,其中,所述蓝牙扫描为低功耗蓝牙扫描。
  13. 如权利要求8所述的蓝牙配网方法,其中,所述蓝牙配网设备发送低功耗蓝牙广播,然后在所述蓝牙配网设备发送低功耗蓝牙广播的同时,或者在蓝牙配网设备发送低功耗蓝牙广播之后,进行蓝牙扫描。
  14. 一种设备,其中,所述设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的蓝牙配网程序,所述蓝牙配网程序配为实现如权利要求1至13中任一项所述的蓝牙配网方法的步骤。
  15. 一种存储介质,其中,所述存储介质上存储有蓝牙配网程序,所述蓝牙配网程序被处理器执行时实现如权利要求1至13中任一项所述的蓝牙配网方法的步骤。
PCT/CN2020/113022 2020-07-24 2020-09-02 蓝牙配网方法、设备及存储介质 WO2022016669A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010728734.7A CN111866998A (zh) 2020-07-24 2020-07-24 蓝牙配网方法、设备及存储介质
CN202010728734.7 2020-07-24

Publications (1)

Publication Number Publication Date
WO2022016669A1 true WO2022016669A1 (zh) 2022-01-27

Family

ID=72946977

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/113022 WO2022016669A1 (zh) 2020-07-24 2020-09-02 蓝牙配网方法、设备及存储介质

Country Status (2)

Country Link
CN (1) CN111866998A (zh)
WO (1) WO2022016669A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114895974A (zh) * 2022-04-24 2022-08-12 支付宝(杭州)信息技术有限公司 小程序打开速度的提升方法和装置
WO2023184983A1 (zh) * 2022-03-30 2023-10-05 青岛海尔空调器有限总公司 用于空调直连控制的方法、装置、系统及存储介质
WO2023246038A1 (zh) * 2022-06-21 2023-12-28 珠海格力电器股份有限公司 智能家居设备的配网方法、终端设备与处理器
WO2024082906A1 (zh) * 2022-10-21 2024-04-25 Oppo广东移动通信有限公司 信息获取方法、装置、蓝牙设备、终端设备及存储介质

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399358A (zh) * 2020-11-05 2021-02-23 北京小米移动软件有限公司 电话通知方法、装置、系统、设备及介质
CN112637827A (zh) * 2020-12-22 2021-04-09 珠海格力电器股份有限公司 配网方法、装置、计算机设备和存储介质
CN113055867B (zh) * 2021-03-08 2023-07-18 Oppo广东移动通信有限公司 终端辅助配网的方法和装置、电子设备
CN113316131B (zh) * 2021-05-27 2023-07-07 Oppo广东移动通信有限公司 连接建立方法、装置、电子设备及存储介质
CN113573289B (zh) * 2021-06-30 2024-03-26 杭州博联智能科技股份有限公司 基于蓝牙的客户端添加设备的方法和系统
CN114339787A (zh) * 2021-12-31 2022-04-12 深圳市优必选科技股份有限公司 智能设备的配网方法、终端设备及计算机可读存储介质
CN114567870B (zh) * 2022-02-28 2024-04-16 海信视像科技股份有限公司 基于gatt的配网配账号方法、控制终端及显示设备
CN116847299A (zh) * 2022-03-25 2023-10-03 Oppo广东移动通信有限公司 设备通信方法及相关产品
CN115442872A (zh) * 2022-08-15 2022-12-06 浙江猫精人工智能科技有限公司 设备配网系统、方法、相关设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105873182A (zh) * 2015-12-18 2016-08-17 乐视移动智能信息技术(北京)有限公司 通信方法及装置
CN106535092A (zh) * 2016-11-01 2017-03-22 惠州Tcl移动通信有限公司 一种网络共享方法、接入网络方法及系统
CN106792472A (zh) * 2016-12-30 2017-05-31 杭州士兰微电子股份有限公司 智能硬件设备的Wi‑Fi配网方法
US20190230408A1 (en) * 2018-01-22 2019-07-25 Qualcomm Incorporated System, method, and apparatus for temporary wireless connection
CN110621055A (zh) * 2018-06-19 2019-12-27 中移(杭州)信息技术有限公司 一种配网方法、装置、终端、设备、存储介质及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735670A (zh) * 2015-03-30 2015-06-24 小米科技有限责任公司 网络接入方法及装置
CN107231627B (zh) * 2017-08-10 2020-11-10 乐鑫信息科技(上海)股份有限公司 一种蓝牙网络及配网方法
CN109041036A (zh) * 2018-10-29 2018-12-18 青岛海信传媒网络技术有限公司 Wifi连接方法及设备
CN110868707A (zh) * 2019-09-29 2020-03-06 厦门阳光恩耐照明有限公司 一种基于ble mesh的智能设备配网方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105873182A (zh) * 2015-12-18 2016-08-17 乐视移动智能信息技术(北京)有限公司 通信方法及装置
CN106535092A (zh) * 2016-11-01 2017-03-22 惠州Tcl移动通信有限公司 一种网络共享方法、接入网络方法及系统
CN106792472A (zh) * 2016-12-30 2017-05-31 杭州士兰微电子股份有限公司 智能硬件设备的Wi‑Fi配网方法
US20190230408A1 (en) * 2018-01-22 2019-07-25 Qualcomm Incorporated System, method, and apparatus for temporary wireless connection
CN110621055A (zh) * 2018-06-19 2019-12-27 中移(杭州)信息技术有限公司 一种配网方法、装置、终端、设备、存储介质及系统

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023184983A1 (zh) * 2022-03-30 2023-10-05 青岛海尔空调器有限总公司 用于空调直连控制的方法、装置、系统及存储介质
CN114895974A (zh) * 2022-04-24 2022-08-12 支付宝(杭州)信息技术有限公司 小程序打开速度的提升方法和装置
CN114895974B (zh) * 2022-04-24 2024-03-26 支付宝(杭州)信息技术有限公司 小程序打开速度的提升方法和装置
WO2023246038A1 (zh) * 2022-06-21 2023-12-28 珠海格力电器股份有限公司 智能家居设备的配网方法、终端设备与处理器
WO2024082906A1 (zh) * 2022-10-21 2024-04-25 Oppo广东移动通信有限公司 信息获取方法、装置、蓝牙设备、终端设备及存储介质

Also Published As

Publication number Publication date
CN111866998A (zh) 2020-10-30

Similar Documents

Publication Publication Date Title
WO2022016669A1 (zh) 蓝牙配网方法、设备及存储介质
CN106878923B (zh) 超低功耗智能设备快速入网方法及智能家居系统
EP3151628B1 (en) Method, device and system for accessing a wireless network
US9907016B2 (en) Communication device
US8929348B2 (en) Method and apparatus for connecting wireless network in a digital device
EP2919527B1 (en) Device association methods and systems
US8582471B2 (en) Wireless ad-hoc network configuration method and apparatus
US11452156B2 (en) Configuration system, client device, embedded device configuration method, and storage medium
EP3253080B1 (en) Data sharing method and system
US20090271709A1 (en) Method and apparatus for setting up wireless lan of device
US20160242033A1 (en) Communication service using method and electronic device supporting the same
US10110706B2 (en) Remote access method and device
KR20130079839A (ko) 와이파이 다이렉트 연결 방법
CN106789470B (zh) 终端资源共享方法、装置和系统
CN107567017B (zh) 无线连接系统、装置及方法
CN112448873B (zh) 设备的绑定方法、装置及计算机可读存储介质
WO2017080333A1 (zh) 上网认证方法、认证服务器及其所在认证系统
CN106453370B (zh) 一种ipc向nvr进行注册的方法和装置
CN111934961A (zh) 智能家居网络配置方法、设备及计算机可读存储介质
CN111818613A (zh) 无线网络配置方法、设备及存储介质
JP2017183890A (ja) 通信システム、通信装置及び通信方法
CN104918296A (zh) 网络连接协助系统及方法
WO2022105028A1 (zh) 物联网设备的配网方法及装置
US10630532B2 (en) Wireless communication system, communication method, and information processing apparatus
US10187796B2 (en) Authentication and association method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20945912

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.06.23)

122 Ep: pct application non-entry in european phase

Ref document number: 20945912

Country of ref document: EP

Kind code of ref document: A1