WO2024087384A1 - Bluetooth connection establishment method, electronic device and computer storage medium - Google Patents

Bluetooth connection establishment method, electronic device and computer storage medium Download PDF

Info

Publication number
WO2024087384A1
WO2024087384A1 PCT/CN2022/143678 CN2022143678W WO2024087384A1 WO 2024087384 A1 WO2024087384 A1 WO 2024087384A1 CN 2022143678 W CN2022143678 W CN 2022143678W WO 2024087384 A1 WO2024087384 A1 WO 2024087384A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
key
information
electronic device
bluetooth device
Prior art date
Application number
PCT/CN2022/143678
Other languages
French (fr)
Chinese (zh)
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 WO2024087384A1 publication Critical patent/WO2024087384A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • 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
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast

Definitions

  • the present invention relates to the field of communications, and in particular to a method and device for establishing a Bluetooth connection, an electronic device and a computer storage medium.
  • a key for identity authentication can be set when binding a user. Subsequently, each time the user uses the user device to connect to the Bluetooth device, the user needs to manually enter the key in the key input window of the user device, making the Bluetooth connection operation more cumbersome.
  • a method, device, electronic device and computer storage medium for establishing a Bluetooth connection are provided.
  • the present application provides a method for establishing a Bluetooth connection, which is applied to an electronic device, and the method comprises: receiving Bluetooth broadcast data sent by a Bluetooth device, the Bluetooth broadcast data comprising device information and a binding identifier of the Bluetooth device, the binding identifier being used to indicate whether the Bluetooth device is bound; displaying an icon corresponding to the Bluetooth device; in response to a user's operation on the icon, establishing a connection with the Bluetooth device according to the device information; if the binding identifier is a first identifier, sending a key acquisition request to a server according to the information of a target user currently logged in to the electronic device and the device information; wherein the first identifier is used to indicate that the Bluetooth device has been bound, and the key acquisition request is used to instruct the server to query a key associated with the device information from a key corresponding to a user group to which the target user belongs; receiving the key returned by the server and sending the key to the Bluetooth device for authentication; and after receiving the authentication success information returned by the Bluetooth device,
  • an embodiment of the present application provides a Bluetooth connection establishment device, the Bluetooth connection establishment device comprising: a receiving module, used to receive Bluetooth broadcast data sent by a Bluetooth device, the Bluetooth broadcast data including device information and a binding identifier of the Bluetooth device, the binding identifier being used to indicate whether the Bluetooth device is bound; a display module, used to display an icon corresponding to the Bluetooth device; a connection module, used to establish a connection with the Bluetooth device according to the device information in response to a user's operation on the icon; a request module, used to send a key acquisition request to a server according to the information of a target user currently logged in to the electronic device and the device information if the binding identifier is a first identifier; wherein the first identifier is used to indicate that the Bluetooth device has been bound, and the key acquisition request is used to instruct the server to query a key associated with the device information from the key corresponding to the user group to which the target user belongs; the receiving module is also used to receive the key returned by the server and
  • an embodiment of the present application provides an electronic device, comprising: a memory for storing program instructions; and a processor for reading and executing the program instructions stored in the memory, so that when the program instructions are executed by the processor, the electronic device executes the above-mentioned Bluetooth connection establishment method.
  • an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores program instructions.
  • the program instructions When the program instructions are executed on an electronic device, the electronic device executes the above-mentioned Bluetooth connection establishment method.
  • FIG1 is an application scenario diagram of a method for establishing a Bluetooth connection provided in an embodiment of the present application.
  • FIG. 2 is a flow chart of a method for establishing a Bluetooth connection provided in an embodiment of the present application.
  • FIG3 is an interactive flow chart of a method for establishing a Bluetooth connection provided in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a user interface provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a user group creation interface in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a user group creation interface in another embodiment of the present application.
  • FIG. 7 is a flowchart of a method for establishing a Bluetooth connection provided in another embodiment of the present application.
  • FIG8 is a schematic diagram of the structure of a device for establishing a Bluetooth connection provided in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • the Bluetooth connection establishment method is applied in an interactive system consisting of a Bluetooth device 10, an electronic device 20 and a server 30.
  • the electronic device 20 receives the Bluetooth broadcast data sent by the Bluetooth device 10, generates a key according to the Bluetooth broadcast data or obtains the key from the server 30, and sends the key to the Bluetooth device 10 for authentication.
  • the electronic device 20 After receiving the authentication success information returned by the Bluetooth device 10, the electronic device 20 communicates with the Bluetooth device 10, so that when the electronic device 20 communicates with the Bluetooth device 10, the user is unaware of the connection process and the process of the user performing the connection operation is simplified.
  • the Bluetooth device 10 is an energy storage device
  • the electronic device 20 is a mobile phone.
  • the Bluetooth device 10 can be an IoT device with Bluetooth function, including but not limited to, for example, mobile energy storage devices, household energy storage devices, mobile air conditioners, household air conditioners, lawn mowers, sweepers, smart power distribution panels, etc.
  • the electronic device 20 can be a terminal device such as a tablet computer or a personal computer.
  • FIG. 2 a flow chart of a method for establishing a Bluetooth connection provided in an embodiment of the present application is shown.
  • the above-mentioned method for establishing a Bluetooth connection can be applied to the electronic device 20 shown in FIG. 1.
  • the method for establishing a Bluetooth connection specifically includes the following steps. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.
  • the method for establishing a Bluetooth connection in an embodiment of the present application includes steps 201-206.
  • Step 201 receiving Bluetooth broadcast data sent by a Bluetooth device.
  • Step 202 Display the icon corresponding to the Bluetooth device.
  • Step 203 In response to the user's operation on the above icon, a connection is established with the Bluetooth device according to the device information.
  • Step 204 If the binding identifier is the first identifier, a key acquisition request is sent to the server according to the information of the target user currently logging into the electronic device and the device information.
  • Step 205 Receive the key returned by the server and send the key to the Bluetooth device for authentication.
  • Step 206 After receiving the authentication success information returned by the Bluetooth device, the electronic device communicates with the Bluetooth device through connection.
  • FIG. 3 describes the interaction flow chart of the electronic device 20, the Bluetooth device 10, and the server 30 using the Bluetooth connection establishment method.
  • the Bluetooth connection establishment method in the embodiment of the present application includes steps 301-307.
  • Step 301 receiving Bluetooth broadcast data sent by a Bluetooth device.
  • the Bluetooth device 10 broadcasts Bluetooth broadcast data.
  • the Bluetooth broadcast data includes the device information and binding identifier of the Bluetooth device 10.
  • the device information of the Bluetooth device 10 is used to indicate the identity of the Bluetooth device 10.
  • the device information may include one or more of the product serial number (Serial Number, SN) and the media access control address (Media Access Control Address, MAC address) of the Bluetooth device 10.
  • the binding identifier is used to indicate whether the Bluetooth device 10 is bound. It should be noted that the binding identifier can be set according to the needs of the user, and the first identifier is set to indicate that the Bluetooth device has been bound, and the second identifier is set to indicate that the Bluetooth device is not bound.
  • the preset field in the negotiation broadcast data is the identifier field
  • the value of the identifier field can be the first identifier 11 or the second identifier 00, wherein the value of the identifier field is 11 indicating that the Bluetooth device is bound, and the value of the identifier field is 00 indicating that the Bluetooth device 10 is not bound.
  • whether the Bluetooth device 10 is bound refers to whether the Bluetooth device 10 has previously established an association with any user, and the user here can be understood as a user account.
  • the electronic device can send the device information, key, and information of the user account currently logged in by the electronic device to the server, so that the server can establish an association between the Bluetooth device 10 and the user account.
  • the binding identifier in the Bluetooth broadcast data emitted by the Bluetooth device 10 will be set to the first identifier.
  • the Bluetooth device 10 will authenticate the subsequently established Bluetooth connection with the corresponding key.
  • electronic devices that do not have the key will not be able to connect to the Bluetooth device 10.
  • a corresponding button may be provided on the Bluetooth device 10, and the button may be a physical button, or a virtual button displayed on a touch screen.
  • the Bluetooth device 10 may enable the Bluetooth broadcast function.
  • Figure 4 is a schematic diagram of a user interface 40 provided in an embodiment of the present application.
  • the electronic device 20 can monitor the Bluetooth broadcast data sent by the surrounding Bluetooth devices, thereby receiving the Bluetooth broadcast data sent by the Bluetooth device 10.
  • the user may also trigger the electronic device 20 to listen to the Bluetooth broadcast data sent by the surrounding Bluetooth devices in other ways.
  • the electronic device 20 may also turn on the Bluetooth function and listen to the Bluetooth broadcast data sent by the surrounding Bluetooth devices after detecting that the user has opened a specific application (Application, APP). This embodiment of the application is not limited to this.
  • Step 302 Display the icon corresponding to the Bluetooth device.
  • the electronic device 20 may display an icon 402 of the Bluetooth device 10 on the user interface 40 .
  • the electronic device 20 may not receive Bluetooth broadcast data, or may receive Bluetooth broadcast data sent by one or more Bluetooth devices 10.
  • the electronic device 20 may not display the icon of the Bluetooth device 10 .
  • the electronic device 20 may display icons 402 of the multiple Bluetooth devices 10 .
  • Step 303 In response to the user's operation on the above icon, a connection is established with the Bluetooth device according to the device information.
  • the current connection between the electronic device 20 and the Bluetooth device 10 is a temporary connection. If the Bluetooth device 10 fails to authenticate the key of the electronic device 20 subsequently, the temporary connection will be disconnected.
  • the electronic device 20 may respond to a user clicking operation on the icon 402 (see FIG. 4 ) and establish a temporary connection with the Bluetooth device 20 corresponding to the icon 402 .
  • the electronic device 20 also responds to the user's voice control operation to connect with the Bluetooth device 20 corresponding to the icon 402.
  • the user can control the electronic device 20 to connect to the Bluetooth device 20 corresponding to the icon 402 by voice "connect XX", or control the electronic device 20 to connect to the Bluetooth device 20 corresponding to the icon 402 by voice "connect the first one”.
  • Step 304 If the binding identifier is the first identifier, a key acquisition request is sent to the server according to the information of the target user currently logging into the electronic device and the device information.
  • the electronic device 20 after the electronic device 20 receives the Bluetooth broadcast data, it reads the value of the binding identifier from the preset field. If the binding identifier is the first identifier, it indicates that the Bluetooth device has been bound, and the electronic device 20 needs the corresponding key to establish a stable Bluetooth connection with the Bluetooth device. At this time, the electronic device 20 sends a key acquisition request to the server 30 based on the information of the target user currently logged in to the electronic device 20 and the device information of the Bluetooth device to be connected. The key acquisition request is used to instruct the server 30 to query the key associated with the device information from the key corresponding to the user group to which the target user belongs.
  • the user group includes the user's information, and the user group is associated with the key and the device information.
  • the target user refers to the user corresponding to the user account currently logged in by the electronic device 20, and the target user information refers to the information of the user account currently logged in by the electronic device 20, which can be a user name, account ID or other information, and this application does not limit this.
  • user A registers account XXX, the server assigns ID 1 to the account XXX, and user A logs in to the account XXX on the electronic device 20, then the target user information can be the account name "XXX" or ID 1.
  • the electronic device 20 is logged into a target user account, and the electronic device can access the server 30 through the target user account.
  • the information of the target user account is the information of the target user. For example, if user A logs into account XXX on the electronic device 20, the electronic device 20 can send a key acquisition request to the server 30 based on the information of account XXX and the device information of the Bluetooth device 10 obtained above.
  • the server 30 After receiving the key acquisition request, the server 30 parses the target user information and the device information of the Bluetooth device 10, determines the user group to which the target user belongs, queries the key corresponding to the device information of the Bluetooth device 20 from the key corresponding to the user group, and feeds the key back to the electronic device 20. For example, after the key is encrypted, the encrypted key is carried in the response information sent to the electronic device 20.
  • the server 30 may not find the key corresponding to the Bluetooth device 20. At this time, the server 30 may not respond to the electronic device 20, or the server 30 may feed back to the electronic device 20 a prompt message indicating that the key acquisition failed.
  • Step 305 Receive the key returned by the server and send the key to the Bluetooth device for authentication.
  • the electronic device 20 after the electronic device 20 receives the response information returned by the server 30, it decrypts the encrypted key therein to obtain the key.
  • the server 30 queries the key corresponding to the device information of the Bluetooth device 20 from the key corresponding to the user group, encrypts the key with the public key, and sends the encrypted encrypted key to the electronic device 20.
  • the electronic device 20 decrypts the encrypted key according to the private key corresponding to the public key to obtain the key.
  • the electronic device 20 sends the key to the Bluetooth device 10, and the Bluetooth device 10 uses the key to authenticate the temporary connection established previously.
  • Step 306 After receiving the authentication success information returned by the Bluetooth device, the electronic device communicates with the Bluetooth device through connection.
  • the Bluetooth device 10 may compare the received key with the preset key stored in the Bluetooth device 10. If the received key is consistent with the preset key, the Bluetooth device 10 may send authentication success information to the electronic device 20. If the received key is inconsistent with the preset key, the Bluetooth device 10 may send authentication failure information to the electronic device 20.
  • the temporary connection becomes a formal connection, and the electronic device 20 will subsequently communicate with the Bluetooth device 10 through this connection.
  • the Bluetooth device 10 can directly disconnect the temporary connection. After the electronic device 20 waits for a preset time, if it does not receive the authentication result returned by the Bluetooth device 10 and finds that the temporary connection has been disconnected, it is considered that the authentication has failed.
  • the electronic device 20 sends the key queried from the user group of the server 30 to the Bluetooth device 10 for verification, and after receiving the authentication success information returned by the Bluetooth device 10, the electronic device 20 communicates with the Bluetooth device 10.
  • encrypted authentication is used in the entire connection establishment process, which avoids interference with the connection by unauthenticated devices and allows users to be unaware of the encryption process, thereby improving the user experience.
  • the Bluetooth connection establishment method further includes:
  • Step 307 After receiving the authentication failure information returned by the Bluetooth device, the electronic device disconnects the connection established with the Bluetooth device and continues to monitor the Bluetooth broadcast data sent by other Bluetooth devices.
  • the electronic device 20 disconnects the connection with the Bluetooth device 10 after receiving the authentication failure information returned by the Bluetooth device 10, thereby ensuring the communication security between the electronic device 20 and the Bluetooth device 10.
  • the electronic device 20 may continue to monitor the Bluetooth broadcast data sent by other Bluetooth devices.
  • the above-mentioned Bluetooth connection establishment method after receiving the authentication success information returned by the Bluetooth device 10, the above-mentioned Bluetooth connection establishment method also includes: the electronic device 20 sends a first instruction to the server 30 according to the key, device information and information of the target user.
  • the first instruction is used to instruct the server 30 to establish an association relationship between the key and the device information and the user group corresponding to the target user.
  • the server 30 establishes an association relationship between the key and the device information and the user group corresponding to the target user according to the first instruction.
  • the users (or user devices) in the user group can share the key and the device information, and all users of the entire user group, as long as one user binds the Bluetooth device for the first time, other users can directly obtain the key from the user group to connect to the Bluetooth device, which meets the scenario of multiple users using Bluetooth devices together, without the need for each user to repeatedly perform unbinding and binding operations.
  • the user's operation process is further simplified, and the user does not need to unbind and rebind, which improves the user experience while speeding up the connection speed.
  • the above-mentioned Bluetooth connection establishment method further includes: after receiving the authentication failure information, disconnecting the connection established with the Bluetooth device; and continuing to monitor the Bluetooth broadcast data.
  • the Bluetooth device 10 determines that the key authentication has failed, it will return an authentication failure message to the electronic device 20. After receiving the authentication failure message, the electronic device will disconnect the connection previously established with the Bluetooth device 10. At the same time, it can continue to listen to the Bluetooth broadcast data sent by surrounding Bluetooth devices, including the Bluetooth broadcast data sent by the Bluetooth device 10.
  • the Bluetooth device 10 may also disconnect the connection according to the authentication result.
  • the Bluetooth device 10 determines that the key authentication fails, it disconnects from the electronic device 20 after a first preset time (such as 2 seconds) and resends the broadcast data.
  • the Bluetooth device 10 records the number of authentication failures for the key sent by the same electronic device 20 for multiple consecutive times, and when the number of authentication failures reaches a preset number, it sleeps for a second preset time and resends the broadcast data. That is, here the electronic device 20 cannot monitor the Bluetooth broadcast sent by the Bluetooth device 10 within the second preset time.
  • the Bluetooth device 10 can record the number of authentication failures for the key continuously sent by the electronic device 20, and when the number of authentication failures reaches a preset number, it will sleep for a second preset time and then resend the broadcast data, thereby ensuring the communication security between the Bluetooth device 10 and the electronic device 20.
  • the above-mentioned Bluetooth connection establishment method further includes: displaying a first prompt message, the first prompt message is used to prompt that the Bluetooth connection fails.
  • the Bluetooth device 10 after determining that the key authentication fails, the Bluetooth device 10 returns the authentication failure information to the electronic device 20. After the electronic device 20 disconnects the connection established with the Bluetooth device 10, or after the connection has been disconnected by the Bluetooth device 20, the electronic device 20 displays the first prompt message according to the authentication failure information returned by the Bluetooth device 10, and the first prompt message is used to prompt that the Bluetooth connection fails.
  • the first prompt message includes at least one of a text message notification, a voice notification, and a graphic mark.
  • the electronic device 20 after receiving the authentication failure information returned by the Bluetooth device 10, the electronic device 20 prompts the Bluetooth connection failure by displaying at least one of a text message notification, a voice notification, and a graphic mark, so that the user can be informed of the Bluetooth connection failure information in time, so that the user can perform subsequent Bluetooth connection operations.
  • the above-mentioned Bluetooth connection establishment method also includes: in response to the operation of creating a new user group, obtaining the information of the selected user; generating a user group creation instruction based on the information of the selected user; and sending the user group creation instruction to the server 30, the user group creation instruction being used to instruct the server 30 to create a new user group based on the information of the selected user.
  • the above user group establishment process can be performed at any time, for example, before the user establishes a connection with the Bluetooth device for the first time, or after the connection is established, and this application does not impose any limitation on this.
  • the user group creation interface 50 includes a creation option 501.
  • a user triggers the operation of creating a new user group by clicking the creation option 501.
  • the electronic device 20 displays a list 502 in response to the user clicking the creation option 501.
  • the list 502 includes information of at least one user.
  • the electronic device 20 obtains the user information selected by the user in the list 502, generates a user group creation instruction, and sends the user group creation instruction to the server 30.
  • the server 30 creates a new user group based on the information of the selected user, and associates the user group with the key sent by the electronic device 20 and the device information of the Bluetooth device 10.
  • the users in the new user group created in the present application can share the key and connect to the Bluetooth device 10 by Bluetooth, and other users in the user group can directly obtain the key from the user group to connect to the Bluetooth device, which satisfies the scenario of multiple users using the Bluetooth device together.
  • the Bluetooth connection establishment method after receiving the authentication success information returned by the Bluetooth device, the Bluetooth connection establishment method further includes: associating the key and the device information and storing them in the memory of the electronic device 20.
  • the electronic device 20 after successfully receiving the authentication success information returned by the Bluetooth device, stores the key and device information in association, so that the key can be obtained directly from the local without having to be obtained from the server, which can speed up the connection speed.
  • the Bluetooth device 10 can also accept a reset operation, setting the binding identifier of the Bluetooth device 10 to the second identifier and clearing the above-mentioned key.
  • the reset operation can be triggered by the user operating a corresponding reset button on the Bluetooth device 10.
  • the Bluetooth device 10 is set with a reset button.
  • the binding identifier of the Bluetooth device 10 is set to the second identifier and the preset key is cleared.
  • the Bluetooth device 10 can set the Bluetooth device 10 to be unbound according to the reset operation, which facilitates the binding connection of the Bluetooth device 10 with other electronic devices after unbinding.
  • the reset operation can also be triggered by the user through a corresponding reset operation on the application of the electronic device 20.
  • the application is the application corresponding to the Bluetooth device 10 and is used to control the Bluetooth device 10. It can be understood that at this time, the reset operation can be sent by the electronic device 20 to the server, and then sent by the server to the Bluetooth device. Alternatively, the reset operation can also be sent directly to the Bluetooth device by the electronic device 20.
  • FIG. 7 a flowchart of a method for establishing a Bluetooth connection provided in another embodiment of the present application is shown. As shown in Figure 7, the method for establishing a Bluetooth connection in the embodiment of the present application includes steps 601-605.
  • Step 601 Receive Bluetooth broadcast data sent by a Bluetooth device.
  • Step 602 Display the icon corresponding to the Bluetooth device.
  • Step 603 In response to the user's operation on the above icon, a connection is established with the Bluetooth device according to the device information.
  • steps 601-603 of FIG. 7 are the same as steps 301-303 of FIG. 3 .
  • steps 601-603 of FIG. 7 please refer to the implementation contents of steps 301-303 of the Bluetooth connection establishment method in FIG. 3 , which will not be repeated here.
  • Step 604 If the binding identifier of the broadcast data is the second identifier, the electronic device generates a key and sends the key to the Bluetooth device.
  • the electronic device 20 after the electronic device 20 receives the Bluetooth broadcast data, it reads the value of the binding identifier from the preset field. If the binding identifier is the second identifier, it indicates that the Bluetooth device 10 is not bound and the electronic device 20 is connected to the Bluetooth device 10 for the first time.
  • the electronic device 20 When the electronic device 20 establishes a connection with the Bluetooth device 10 for the first time, it automatically generates a key and sends the key to the Bluetooth device 10.
  • the electronic device 20 generates the key based on at least one of its own device information, the device information of the Bluetooth device 10, and the time information when the electronic device 20 receives the Bluetooth broadcast data. For another example, the electronic device 20 can generate the key based on a selected random number.
  • Step 605 After receiving the authentication success information returned by the Bluetooth device, the electronic device communicates with the Bluetooth device through connection.
  • the Bluetooth device 10 receives the key sent by the electronic device 20, uses the key as a preset key, and directly sends the authentication success information to the electronic device 20. After receiving the authentication success information returned by the Bluetooth device 10, the electronic device 20 communicates with the Bluetooth device 10 through a connection.
  • the Bluetooth device 10 when it is determined that the Bluetooth device 10 is not bound, the Bluetooth device 10 does not need to compare the key with the preset key, and directly returns the authentication success information to the electronic device 20 to realize the communication between the electronic device 20 and the Bluetooth device 10, thereby simplifying the first connection process between the Bluetooth device 10 and the electronic device 20.
  • the Bluetooth device 10 when the Bluetooth device 10 is not bound, the Bluetooth device 10 may also send a key to the electronic device 10 after establishing a connection with the electronic device 10. After receiving the key, the electronic device 20 may feedback key reception information to the Bluetooth device 10. After receiving the key reception information, the Bluetooth device 10 may return authentication success information to the electronic device 20. After receiving the authentication success information returned by the Bluetooth device 10, the electronic device 20 communicates with the Bluetooth device 10 through the connection. That is to say, in the embodiment of the present application, the generator of the key and the key generation method are not limited.
  • Bluetooth connection establishment device 100 which is a schematic diagram of the structure of a Bluetooth connection establishment device 100 provided in an embodiment of the present application.
  • the Bluetooth connection establishment device 100 can be used to implement the above-mentioned Bluetooth connection establishment method.
  • the Bluetooth connection establishing device 100 includes a receiving module 11 , a display module 12 , a connecting module 13 , and a requesting module 14 .
  • the receiving module 11 receives the Bluetooth broadcast data sent by the Bluetooth device.
  • the Bluetooth broadcast data includes the device information and the binding identifier of the Bluetooth device 10.
  • the binding identifier is used to indicate whether the Bluetooth device 10 is bound.
  • the display module 12 displays an icon corresponding to the Bluetooth device 10 .
  • connection module 13 establishes a connection with the Bluetooth device 10 according to the device information in response to the user's operation on the icon.
  • the request module 14 sends a key acquisition request to the server 30 based on the information of the target user currently logged in to the electronic device 20 and the device information; wherein the first identifier is used to indicate that the Bluetooth device 10 has been bound, and the key acquisition request is used to instruct the server 30 to query the key associated with the device information from the key corresponding to the user group to which the target user belongs.
  • the receiving module 11 receives the key returned by the server 30 and sends the key to the Bluetooth device 10 for authentication.
  • connection module 13 After receiving the authentication success information returned by the Bluetooth device 10 , the connection module 13 communicates with the Bluetooth device 10 through connection.
  • Bluetooth connection establishment device 100 and the above-mentioned Bluetooth connection establishment method belong to the same inventive concept, and the specific process of the Bluetooth connection establishment device 100 connecting to implement the Bluetooth connection establishment method is the same as the process of the above-mentioned embodiment, which will not be repeated here.
  • the present application also provides a computer-readable storage medium that stores a plurality of instructions suitable for being loaded and executed by a processor to implement corresponding steps of the above-mentioned Bluetooth connection establishment method, such as steps 201-206, steps 301-307, and steps 601-605.
  • FIG9 is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application.
  • the electronic device 20 may include at least one processor 22, a memory 21, and a communication unit 23.
  • the memory 21 includes a computer-readable storage medium, which is used to store a plurality of logic instructions, and the communication unit 23 is used to communicate with the Bluetooth device 10 or the server 30.
  • the processor 22 can run the logic instructions to execute the above-mentioned Bluetooth connection establishment method.
  • the communication unit 23 includes at least a module with communication function such as a Bluetooth module and a network module, and the present application does not limit this.
  • the logic instructions in the above-mentioned computer-readable storage medium can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
  • the computer-readable storage medium may be configured to store software programs, computer executable programs, such as program instructions corresponding to the Bluetooth connection establishment method in the embodiment of the present application or modules in the Bluetooth connection establishment device 100.
  • the processor 22 executes the functional application and image processing by running the software program, instructions or modules stored in the computer-readable storage medium, that is, implementing the Bluetooth connection establishment method in the above embodiment.
  • the computer-readable storage medium includes a non-volatile computer-readable memory, such as a disk, a memory, etc. It is understood that the computer-readable storage medium may also include other non-volatile computer-readable memories, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one flash memory device and/or other non-volatile solid-state storage devices.
  • a plug-in hard disk such as a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one flash memory device and/or other non-volatile solid-state storage devices.
  • the processor 22 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the processor 22 is the control center of the electronic device 20, and can use various interfaces and lines to connect to other devices and/or systems/modules/units to provide Bluetooth connection establishment functions to applications of other devices and/or systems/modules/units.

Landscapes

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

Abstract

Disclosed in the present application is a Bluetooth connection establishment method. The Bluetooth connection establishment method comprises: an electronic device receiving Bluetooth broadcast data sent by a Bluetooth device; and after a user selects an icon of the Bluetooth device, when it is recognized from the Bluetooth broadcast data that the Bluetooth device has been bound, acquiring a key from a user group of a server, and establishing a Bluetooth connection with the Bluetooth device on the basis of the acquired key, so as to realize communication.

Description

蓝牙连接建立方法、电子设备及计算机存储介质Bluetooth connection establishment method, electronic device and computer storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2022年10月27日提交中国专利局、申请号为202211323028.X、发明名称为“蓝牙连接建立方法、装置、电子设备及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the China Patent Office on October 27, 2022, with application number 202211323028.X and invention name “Bluetooth connection establishment method, device, electronic device and computer storage medium”, the entire contents of which are incorporated by reference in this application.
技术领域Technical Field
本发明涉及通信领域,具体涉及一种蓝牙连接建立方法、装置、电子设备及计算机存储介质。The present invention relates to the field of communications, and in particular to a method and device for establishing a Bluetooth connection, an electronic device and a computer storage medium.
背景技术Background technique
这里的陈述仅提供与本申请有关的背景信息,而不必然地构成示例性技术。The statements herein merely provide background information related to the present application and do not necessarily constitute exemplary techniques.
蓝牙设备在与用户设备连接时,为了确保安全,可以在绑定用户时设置用于身份认证的密钥。后续,用户每次使用用户设备连接该蓝牙设备时,都需要在用户设备的密钥输入窗口中手动输入密钥,使得蓝牙连接操作较为繁琐。When a Bluetooth device is connected to a user device, in order to ensure security, a key for identity authentication can be set when binding a user. Subsequently, each time the user uses the user device to connect to the Bluetooth device, the user needs to manually enter the key in the key input window of the user device, making the Bluetooth connection operation more cumbersome.
发明内容Summary of the invention
根据本申请的各个实施例,提供一种蓝牙连接建立方法、装置、电子设备及计算机存储介质。According to various embodiments of the present application, a method, device, electronic device and computer storage medium for establishing a Bluetooth connection are provided.
第一方面,本申请提供了一种蓝牙连接建立方法,应用于电子设备,所述方法包括:接收蓝牙设备发送的蓝牙广播数据,所述蓝牙广播数据包括所述蓝牙设备的设备信息及绑定标识,所述绑定标识用于表示所述蓝牙设备是否被绑定;显示所述蓝牙设备对应的图标;响应于用户对所述图标的操作,根据所述设备信息与所述蓝牙设备建立连接;若所述绑定标识为第一标识,则根据当前登录所述电子设备的目标用户的信息和所述设备信息向服务器发 送密钥获取请求;其中,所述第一标识用于表示所述蓝牙设备已被绑定,所述密钥获取请求用于指示所述服务器从所述目标用户所在的用户组对应的密钥中查询与所述设备信息关联的密钥;接收所述服务器返回的密钥并将所述密钥发送至所述蓝牙设备进行认证;在接收到所述蓝牙设备返回的认证成功信息后,通过所述连接与所述蓝牙设备进行通信。In the first aspect, the present application provides a method for establishing a Bluetooth connection, which is applied to an electronic device, and the method comprises: receiving Bluetooth broadcast data sent by a Bluetooth device, the Bluetooth broadcast data comprising device information and a binding identifier of the Bluetooth device, the binding identifier being used to indicate whether the Bluetooth device is bound; displaying an icon corresponding to the Bluetooth device; in response to a user's operation on the icon, establishing a connection with the Bluetooth device according to the device information; if the binding identifier is a first identifier, sending a key acquisition request to a server according to the information of a target user currently logged in to the electronic device and the device information; wherein the first identifier is used to indicate that the Bluetooth device has been bound, and the key acquisition request is used to instruct the server to query a key associated with the device information from a key corresponding to a user group to which the target user belongs; receiving the key returned by the server and sending the key to the Bluetooth device for authentication; and after receiving the authentication success information returned by the Bluetooth device, communicating with the Bluetooth device through the connection.
第二方面,本申请实施例提供一种蓝牙连接建立装置,所述蓝牙连接建立装置包括:接收模块,用于接收蓝牙设备发送的蓝牙广播数据,所述蓝牙广播数据包括所述蓝牙设备的设备信息及绑定标识,所述绑定标识用于表示所述蓝牙设备是否被绑定;显示模块,用于显示所述蓝牙设备对应的图标;连接模块,用于响应于用户对所述图标的操作,根据所述设备信息与所述蓝牙设备建立连接;请求模块,用于若所述绑定标识为第一标识,根据当前登录电子设备的目标用户的信息和所述设备信息向服务器发送密钥获取请求;其中,所述第一标识用于表示所述蓝牙设备已被绑定,所述密钥获取请求用于指示所述服务器从所述目标用户所在的用户组对应的密钥中查询与所述设备信息关联的密钥;所述接收模块还用于接收所述服务器返回的密钥并将所述密钥发送至所述蓝牙设备进行认证;所述连接模块在接收到所述蓝牙设备返回的认证成功信息后,通过所述连接与所述蓝牙设备进行通信。In a second aspect, an embodiment of the present application provides a Bluetooth connection establishment device, the Bluetooth connection establishment device comprising: a receiving module, used to receive Bluetooth broadcast data sent by a Bluetooth device, the Bluetooth broadcast data including device information and a binding identifier of the Bluetooth device, the binding identifier being used to indicate whether the Bluetooth device is bound; a display module, used to display an icon corresponding to the Bluetooth device; a connection module, used to establish a connection with the Bluetooth device according to the device information in response to a user's operation on the icon; a request module, used to send a key acquisition request to a server according to the information of a target user currently logged in to the electronic device and the device information if the binding identifier is a first identifier; wherein the first identifier is used to indicate that the Bluetooth device has been bound, and the key acquisition request is used to instruct the server to query a key associated with the device information from the key corresponding to the user group to which the target user belongs; the receiving module is also used to receive the key returned by the server and send the key to the Bluetooth device for authentication; after receiving the authentication success information returned by the Bluetooth device, the connection module communicates with the Bluetooth device through the connection.
第三方面,本申请实施例提供一种电子设备,包括:存储器,用于存储程序指令;及处理器,用于读取并执行所述存储器中存储的所述程序指令,当所述程序指令被所述处理器执行时,使得所述电子设备执行上述蓝牙连接建立方法。In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing program instructions; and a processor for reading and executing the program instructions stored in the memory, so that when the program instructions are executed by the processor, the electronic device executes the above-mentioned Bluetooth connection establishment method.
第四方面,本申请实施例提供一种计算机存储介质,所述计算机存储介质存储有程序指令,当所述程序指令在电子设备上运行时,使得所述电子设备执行上述蓝牙连接建立方法。In a fourth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores program instructions. When the program instructions are executed on an electronic device, the electronic device executes the above-mentioned Bluetooth connection establishment method.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其他特征、目的和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features, objects, and advantages of the present application will become apparent from the description, drawings, and claims.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创 造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work.
图1为本申请一实施例提供的蓝牙连接建立方法的应用场景图。FIG1 is an application scenario diagram of a method for establishing a Bluetooth connection provided in an embodiment of the present application.
图2为本申请一实施例提供的蓝牙连接建立方法的流程图。FIG. 2 is a flow chart of a method for establishing a Bluetooth connection provided in an embodiment of the present application.
图3为本申请一实施例提供的蓝牙连接建立方法的交互流程图。FIG3 is an interactive flow chart of a method for establishing a Bluetooth connection provided in an embodiment of the present application.
图4为本申请实施例提供的用户界面的示意图。FIG. 4 is a schematic diagram of a user interface provided in an embodiment of the present application.
图5为本申请一实施例中用户组创建界面的示意图。FIG. 5 is a schematic diagram of a user group creation interface in an embodiment of the present application.
图6为本申请另一实施例中用户组创建界面的示意图。FIG. 6 is a schematic diagram of a user group creation interface in another embodiment of the present application.
图7为本申请另一实施例提供的蓝牙连接建立方法的流程图。FIG. 7 is a flowchart of a method for establishing a Bluetooth connection provided in another embodiment of the present application.
图8为本申请实施例提供的蓝牙连接建立装置的结构示意图。FIG8 is a schematic diagram of the structure of a device for establishing a Bluetooth connection provided in an embodiment of the present application.
图9为本申请实施例提供的电子设备的结构示意图。FIG. 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
如下具体实施方式将结合上述附图进一步说明本申请。The following specific implementation methods will further illustrate the present application in conjunction with the above-mentioned drawings.
具体实施方式Detailed ways
为了能够更清楚地理解本申请的上述目的、特征和优点,下面结合附图和具体实施例对本申请进行详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
在下面的描述中阐述了很多具体细节以便于充分理解本申请,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
参考图1所示,为本申请实施例提供的蓝牙连接建立方法的应用场景图。蓝牙连接建立方法应用在蓝牙设备10、电子设备20及服务器30构成的交互系统中。电子设备20接收蓝牙设备10发送的蓝牙广播数据,根据蓝牙广播数据生成密钥或从服务器30中获取密钥,并将密钥发送给蓝牙设备10进行认证。在接收到蓝牙设备10返回的认证成功信息后,电子设备20与蓝牙设备10进行通信,如此在电子设备20与蓝牙设备10通信时,实现用户对连接过程的无感知,并简化用户进行连接操作的流程。Referring to FIG1 , there is shown an application scenario diagram of the Bluetooth connection establishment method provided in an embodiment of the present application. The Bluetooth connection establishment method is applied in an interactive system consisting of a Bluetooth device 10, an electronic device 20 and a server 30. The electronic device 20 receives the Bluetooth broadcast data sent by the Bluetooth device 10, generates a key according to the Bluetooth broadcast data or obtains the key from the server 30, and sends the key to the Bluetooth device 10 for authentication. After receiving the authentication success information returned by the Bluetooth device 10, the electronic device 20 communicates with the Bluetooth device 10, so that when the electronic device 20 communicates with the Bluetooth device 10, the user is unaware of the connection process and the process of the user performing the connection operation is simplified.
需要说明的是,图1中蓝牙设备10以储能设备为例,电子设备20以手机为例,上述举例仅为示例性说明,实际应用中并不限于此。可以理解蓝牙设备10可以是具有蓝牙功能的物联网设备,包括但不限于例如移动储能设备、家庭储能设备、移动空调、家用空调、割草机、扫地机、智能配电面板等。电子设备20可以为平板电脑或个人电脑等终端设备。It should be noted that in FIG1 , the Bluetooth device 10 is an energy storage device, and the electronic device 20 is a mobile phone. The above examples are only for illustrative purposes and are not limited to this in actual applications. It can be understood that the Bluetooth device 10 can be an IoT device with Bluetooth function, including but not limited to, for example, mobile energy storage devices, household energy storage devices, mobile air conditioners, household air conditioners, lawn mowers, sweepers, smart power distribution panels, etc. The electronic device 20 can be a terminal device such as a tablet computer or a personal computer.
参考图2所示,为本申请实施例提供的蓝牙连接建立方法的流程图。上述蓝牙连接建立方法可以应用于如图1所示的电子设备20中。如图2所示,蓝牙连接建立方法具体包括以下步骤,根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。如图2所示,本申请实施例中的蓝牙连接建立方法包括步骤201-206。Referring to FIG. 2, a flow chart of a method for establishing a Bluetooth connection provided in an embodiment of the present application is shown. The above-mentioned method for establishing a Bluetooth connection can be applied to the electronic device 20 shown in FIG. 1. As shown in FIG. 2, the method for establishing a Bluetooth connection specifically includes the following steps. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. As shown in FIG. 2, the method for establishing a Bluetooth connection in an embodiment of the present application includes steps 201-206.
步骤201,接收蓝牙设备发送的蓝牙广播数据。Step 201: receiving Bluetooth broadcast data sent by a Bluetooth device.
步骤202,显示蓝牙设备对应的图标。Step 202: Display the icon corresponding to the Bluetooth device.
步骤203,响应于用户对上述图标的操作,根据设备信息与蓝牙设备建立连接。Step 203: In response to the user's operation on the above icon, a connection is established with the Bluetooth device according to the device information.
步骤204,若绑定标识为第一标识,则根据当前登录电子设备的目标用户的信息和设备信息向服务器发送密钥获取请求。Step 204: If the binding identifier is the first identifier, a key acquisition request is sent to the server according to the information of the target user currently logging into the electronic device and the device information.
步骤205,接收服务器返回的密钥并将密钥发送至蓝牙设备进行认证。Step 205: Receive the key returned by the server and send the key to the Bluetooth device for authentication.
步骤206,在接收到蓝牙设备返回的认证成功信息后,电子设备通过连接与蓝牙设备进行通信。Step 206: After receiving the authentication success information returned by the Bluetooth device, the electronic device communicates with the Bluetooth device through connection.
本申请实施例中图2之步骤201-206的具体实施内容请参考图3中蓝牙连接建立方法之步骤301-306的实施内容。图3描述了应用蓝牙连接建立方法的电子设备20与蓝牙设备10、服务器30的交互流程图。如图3所示,本申请实施例中的蓝牙连接建立方法包括步骤301-307。For the specific implementation contents of steps 201-206 of FIG. 2 in the embodiment of the present application, please refer to the implementation contents of steps 301-306 of the Bluetooth connection establishment method in FIG. 3. FIG. 3 describes the interaction flow chart of the electronic device 20, the Bluetooth device 10, and the server 30 using the Bluetooth connection establishment method. As shown in FIG. 3, the Bluetooth connection establishment method in the embodiment of the present application includes steps 301-307.
步骤301,接收蓝牙设备发送的蓝牙广播数据。Step 301: receiving Bluetooth broadcast data sent by a Bluetooth device.
在本申请的一实施例中,蓝牙设备10开启蓝牙功能后,蓝牙设备10广播蓝牙广播数据。蓝牙广播数据包括蓝牙设备10的设备信息及绑定标识。蓝牙设备10的设备信息用于表示蓝牙设备10的身份。例如,设备信息可以包括蓝牙设备10的产品序列号(Serial Number,SN)、媒体存取控制位址(Media Access Control Address,MAC地址)等信息中的一种或多种。绑定标识用于表示蓝牙设备10是否被绑定。需要说明的是,绑定标识可以根据用户的需要 进行设定,设定第一标识用于表示蓝牙设备已被绑定,设定第二标识用于表示蓝牙设备未被绑定。例如,协商广播数据中的预设字段为标识字段,标识字段的值可以为第一标识11或第二标识00,其中,标识字段的值为11表示蓝牙设备被绑定,标识字段的值为00表示蓝牙设备10未被绑定。In one embodiment of the present application, after the Bluetooth device 10 turns on the Bluetooth function, the Bluetooth device 10 broadcasts Bluetooth broadcast data. The Bluetooth broadcast data includes the device information and binding identifier of the Bluetooth device 10. The device information of the Bluetooth device 10 is used to indicate the identity of the Bluetooth device 10. For example, the device information may include one or more of the product serial number (Serial Number, SN) and the media access control address (Media Access Control Address, MAC address) of the Bluetooth device 10. The binding identifier is used to indicate whether the Bluetooth device 10 is bound. It should be noted that the binding identifier can be set according to the needs of the user, and the first identifier is set to indicate that the Bluetooth device has been bound, and the second identifier is set to indicate that the Bluetooth device is not bound. For example, the preset field in the negotiation broadcast data is the identifier field, and the value of the identifier field can be the first identifier 11 or the second identifier 00, wherein the value of the identifier field is 11 indicating that the Bluetooth device is bound, and the value of the identifier field is 00 indicating that the Bluetooth device 10 is not bound.
需要说明的是,此处,蓝牙设备10是否被绑定是指:蓝牙设备10之前是否已经与任意用户建立关联关系,此处的用户可以理解为用户账户。示例性的,若蓝牙设备10之前已经与某一电子设备建立过认证成功的蓝牙连接,则该电子设备可以向服务器发送上述蓝牙设备10的设备信息、密钥以及该电子设备当前登录的用户账户的信息,从而使服务器可以建立蓝牙设备10与该用户账户的关联关系。在绑定后,该蓝牙设备10发出的蓝牙广播数据中的绑定标识都将被置位为第一标识。同时,蓝牙设备10将以对应的密钥对后续建立的蓝牙连接进行认证,此时,不具有密钥的电子设备将无法连接该蓝牙设备10。It should be noted that, here, whether the Bluetooth device 10 is bound refers to whether the Bluetooth device 10 has previously established an association with any user, and the user here can be understood as a user account. Exemplarily, if the Bluetooth device 10 has previously established a successfully authenticated Bluetooth connection with an electronic device, the electronic device can send the device information, key, and information of the user account currently logged in by the electronic device to the server, so that the server can establish an association between the Bluetooth device 10 and the user account. After binding, the binding identifier in the Bluetooth broadcast data emitted by the Bluetooth device 10 will be set to the first identifier. At the same time, the Bluetooth device 10 will authenticate the subsequently established Bluetooth connection with the corresponding key. At this time, electronic devices that do not have the key will not be able to connect to the Bluetooth device 10.
可以理解,蓝牙设备10上可以设置对应按钮,该按钮可以为实体按钮,或者,也可以为触摸屏显示的虚拟按钮。当蓝牙设备10检测到用户对该按钮执行了预设操作后,蓝牙设备10可以开启蓝牙广播功能。It is understood that a corresponding button may be provided on the Bluetooth device 10, and the button may be a physical button, or a virtual button displayed on a touch screen. When the Bluetooth device 10 detects that the user has performed a preset operation on the button, the Bluetooth device 10 may enable the Bluetooth broadcast function.
相对应的,参考图4所示,图4为本申请实施例提供的用户界面40的示意图。在本申请的一实施例中,电子设备20检测到用户在用户界面40上开启蓝牙功能的选项401后,电子设备20可以监听周边蓝牙设备发送的蓝牙广播数据,从而接收蓝牙设备10发送的蓝牙广播数据。Correspondingly, refer to Figure 4, which is a schematic diagram of a user interface 40 provided in an embodiment of the present application. In an embodiment of the present application, after the electronic device 20 detects that the user turns on the option 401 of the Bluetooth function on the user interface 40, the electronic device 20 can monitor the Bluetooth broadcast data sent by the surrounding Bluetooth devices, thereby receiving the Bluetooth broadcast data sent by the Bluetooth device 10.
在其他的一些实施例中,用户也可以通过其他方式触发电子设备20监听周围蓝牙设备发送的蓝牙广播数据。例如,在另一些实施例中,电子设备20也可以在检测到用户打开了特定的应用程序(Application,APP)后,开启蓝牙功能,监听周围蓝牙设备发送的蓝牙广播数据。本申请实施例对此不予限制。In some other embodiments, the user may also trigger the electronic device 20 to listen to the Bluetooth broadcast data sent by the surrounding Bluetooth devices in other ways. For example, in some other embodiments, the electronic device 20 may also turn on the Bluetooth function and listen to the Bluetooth broadcast data sent by the surrounding Bluetooth devices after detecting that the user has opened a specific application (Application, APP). This embodiment of the application is not limited to this.
步骤302,显示蓝牙设备对应的图标。Step 302: Display the icon corresponding to the Bluetooth device.
在电子设备20接收到上述蓝牙设备发送的蓝牙广播数据后,参考图4所示,电子设备20可以在用户界面40上显示蓝牙设备10的图标402。After the electronic device 20 receives the Bluetooth broadcast data sent by the Bluetooth device, as shown in FIG. 4 , the electronic device 20 may display an icon 402 of the Bluetooth device 10 on the user interface 40 .
需要说明的是,在实际的应用场景中,电子设备20可能接收不到蓝牙广播数据,也可能接收到一个或多个蓝牙设备10发送的蓝牙广播数据。It should be noted that in actual application scenarios, the electronic device 20 may not receive Bluetooth broadcast data, or may receive Bluetooth broadcast data sent by one or more Bluetooth devices 10.
相对应的,当电子设备20接收不到蓝牙广播数据时,电子设备20可以不显示蓝牙设备10的图标。Correspondingly, when the electronic device 20 cannot receive Bluetooth broadcast data, the electronic device 20 may not display the icon of the Bluetooth device 10 .
当电子设备20接收到多个蓝牙设备10发送的蓝牙广播数据时,电子设备20可以显示多个蓝牙设备10的图标402。When the electronic device 20 receives Bluetooth broadcast data sent by multiple Bluetooth devices 10 , the electronic device 20 may display icons 402 of the multiple Bluetooth devices 10 .
步骤303,响应于用户对上述图标的操作,根据设备信息与蓝牙设备建立连接。Step 303: In response to the user's operation on the above icon, a connection is established with the Bluetooth device according to the device information.
需要说明的是,电子设备20与蓝牙设备10当前的连接为临时连接,若后续蓝牙设备10对电子设备20的密钥验证失败后,则临时连接将被断开。It should be noted that the current connection between the electronic device 20 and the Bluetooth device 10 is a temporary connection. If the Bluetooth device 10 fails to authenticate the key of the electronic device 20 subsequently, the temporary connection will be disconnected.
在本申请的一实施例中,电子设备20可以响应用户对图标402的点击操作(参考图4),与图标402对应的蓝牙设备20进行临时连接。In one embodiment of the present application, the electronic device 20 may respond to a user clicking operation on the icon 402 (see FIG. 4 ) and establish a temporary connection with the Bluetooth device 20 corresponding to the icon 402 .
在本申请的一实施例中,电子设备20还响应用户的语音控制操作,与图标402对应的蓝牙设备20进行连接。例如,用户可以通过语音“连接XX”,操控电子设备20连接图标402对应的蓝牙设备20,或者通过语音“连接第一个”操控电子设备20连接图标402对应的蓝牙设备20。In one embodiment of the present application, the electronic device 20 also responds to the user's voice control operation to connect with the Bluetooth device 20 corresponding to the icon 402. For example, the user can control the electronic device 20 to connect to the Bluetooth device 20 corresponding to the icon 402 by voice "connect XX", or control the electronic device 20 to connect to the Bluetooth device 20 corresponding to the icon 402 by voice "connect the first one".
步骤304,若绑定标识为第一标识,则根据当前登录电子设备的目标用户的信息和设备信息向服务器发送密钥获取请求。Step 304: If the binding identifier is the first identifier, a key acquisition request is sent to the server according to the information of the target user currently logging into the electronic device and the device information.
在本申请的一实施例中,电子设备20接收到蓝牙广播数据后,从预设字段中读取到该绑定标识的值,若绑定标识为第一标识,则表明蓝牙设备已经被绑定,电子设备20需要对应的密钥才能与蓝牙设备建立稳定的蓝牙连接。此时,电子设备20根据当前登录电子设备20的目标用户的信息、和需要连接的蓝牙设备的设备信息向服务器30发送密钥获取请求。该密钥获取请求用于指示服务器30从目标用户所在的用户组对应的密钥中查询与设备信息关联的密钥。在本申请的一实施例中,用户组包括用户的信息,且用户组与密钥及设备信息关联。In one embodiment of the present application, after the electronic device 20 receives the Bluetooth broadcast data, it reads the value of the binding identifier from the preset field. If the binding identifier is the first identifier, it indicates that the Bluetooth device has been bound, and the electronic device 20 needs the corresponding key to establish a stable Bluetooth connection with the Bluetooth device. At this time, the electronic device 20 sends a key acquisition request to the server 30 based on the information of the target user currently logged in to the electronic device 20 and the device information of the Bluetooth device to be connected. The key acquisition request is used to instruct the server 30 to query the key associated with the device information from the key corresponding to the user group to which the target user belongs. In one embodiment of the present application, the user group includes the user's information, and the user group is associated with the key and the device information.
目标用户是指电子设备20当前登录的用户账户对应的用户,目标用户的信息是指电子设备20当前登录的用户账户的信息,可以是用户名称、账户标识或其他信息,本申请对此不作限制。例如,用户A注册了账户XXX,服务器为该账户XXX分配了标识1,用户A在电子设备20上登录该账户XXX,则目标用户的信息可以是账户名称“XXX”,也可以是标识1。The target user refers to the user corresponding to the user account currently logged in by the electronic device 20, and the target user information refers to the information of the user account currently logged in by the electronic device 20, which can be a user name, account ID or other information, and this application does not limit this. For example, user A registers account XXX, the server assigns ID 1 to the account XXX, and user A logs in to the account XXX on the electronic device 20, then the target user information can be the account name "XXX" or ID 1.
在本申请的一实施例中,电子设备20登录有目标用户账户,电子设备可 以通过目标用户账户访问服务器30,目标用户账户的信息即目标用户的信息。例如,用户A在电子设备20上登录了账户XXX,则电子设备20可以根据账户XXX的信息和前述获取到的蓝牙设备10的设备信息向服务器30发送密钥获取请求。In one embodiment of the present application, the electronic device 20 is logged into a target user account, and the electronic device can access the server 30 through the target user account. The information of the target user account is the information of the target user. For example, if user A logs into account XXX on the electronic device 20, the electronic device 20 can send a key acquisition request to the server 30 based on the information of account XXX and the device information of the Bluetooth device 10 obtained above.
服务器30接收该密钥获取请求后,解析得到目标用户的信息和蓝牙设备10的设备信息,确定该目标用户所在的用户组,从用户组所对应的密钥中查询到与蓝牙设备20的设备信息对应的密钥,并将该密钥反馈给电子设备20。例如,将该密钥加密处理后,在发送给电子设备20的应答信息中,携带该加密处理后的密钥。After receiving the key acquisition request, the server 30 parses the target user information and the device information of the Bluetooth device 10, determines the user group to which the target user belongs, queries the key corresponding to the device information of the Bluetooth device 20 from the key corresponding to the user group, and feeds the key back to the electronic device 20. For example, after the key is encrypted, the encrypted key is carried in the response information sent to the electronic device 20.
相对的,服务器30也可能未查询到蓝牙设备20对应的密钥。此时,服务器30可以不对电子设备20进行应答,或者,服务器30也可以向电子设备20反馈密钥获取失败的提示信息。In contrast, the server 30 may not find the key corresponding to the Bluetooth device 20. At this time, the server 30 may not respond to the electronic device 20, or the server 30 may feed back to the electronic device 20 a prompt message indicating that the key acquisition failed.
步骤305,接收服务器返回的密钥并将密钥发送至蓝牙设备进行认证。Step 305: Receive the key returned by the server and send the key to the Bluetooth device for authentication.
在本申请的一实施例中,电子设备20接收到服务器30返回的应答信息后,对其中加密的密钥后进行解密处理得到密钥。例如,服务器30从用户组所对应的密钥中查询到与蓝牙设备20的设备信息对应的密钥后用公钥对密钥进行加密,并将经过加密处理后的加密密钥发送给电子设备20。电子设备20根据公钥对应的私钥对加密密钥进行解密处理后得到密钥。电子设备20将密钥发送给蓝牙设备10,蓝牙设备10将使用该密钥对之前建立的临时连接进行认证。In one embodiment of the present application, after the electronic device 20 receives the response information returned by the server 30, it decrypts the encrypted key therein to obtain the key. For example, the server 30 queries the key corresponding to the device information of the Bluetooth device 20 from the key corresponding to the user group, encrypts the key with the public key, and sends the encrypted encrypted key to the electronic device 20. The electronic device 20 decrypts the encrypted key according to the private key corresponding to the public key to obtain the key. The electronic device 20 sends the key to the Bluetooth device 10, and the Bluetooth device 10 uses the key to authenticate the temporary connection established previously.
步骤306,在接收到蓝牙设备返回的认证成功信息后,电子设备通过连接与蓝牙设备进行通信。Step 306: After receiving the authentication success information returned by the Bluetooth device, the electronic device communicates with the Bluetooth device through connection.
在本申请的一实施例中,蓝牙设备10可以将接收到密钥与存储在蓝牙设备10中的预设密钥进行比对。若接收到密钥与预设密钥一致,蓝牙设备10可以将认证成功信息发送给电子设备20。若接收到密钥与预设密钥不一致,蓝牙设备10可以将认证失败信息发送给电子设备20。In one embodiment of the present application, the Bluetooth device 10 may compare the received key with the preset key stored in the Bluetooth device 10. If the received key is consistent with the preset key, the Bluetooth device 10 may send authentication success information to the electronic device 20. If the received key is inconsistent with the preset key, the Bluetooth device 10 may send authentication failure information to the electronic device 20.
电子设备20在接收到蓝牙设备10返回的认证成功信息后,临时连接成为正式连接,电子设备20后续将通过该连接与蓝牙设备10进行通信。After the electronic device 20 receives the authentication success information returned by the Bluetooth device 10, the temporary connection becomes a formal connection, and the electronic device 20 will subsequently communicate with the Bluetooth device 10 through this connection.
在一些实施例中,若接收到密钥与预设密钥不一致,蓝牙设备10可以直接断开上述临时连接,电子设备20等待预设时间后,若未收到蓝牙设备10 返回的认证结果且发现临时连接已被断开,则认为认证失败。In some embodiments, if the received key is inconsistent with the preset key, the Bluetooth device 10 can directly disconnect the temporary connection. After the electronic device 20 waits for a preset time, if it does not receive the authentication result returned by the Bluetooth device 10 and finds that the temporary connection has been disconnected, it is considered that the authentication has failed.
本申请上述实施例中,电子设备20将从服务器30的用户组中查询出的密钥发送给蓝牙设备10进行验证,并在接收到蓝牙设备10返回的认证成功信息后,实现电子设备20与蓝牙设备10的通信,如此在电子设备20与蓝牙设备10建立通信连接过程中,整个连接建立过程中采用加密认证,避免了未认证设备的干扰连接,又可以实现用户对加密过程的无感知,提升了用户体验。In the above embodiment of the present application, the electronic device 20 sends the key queried from the user group of the server 30 to the Bluetooth device 10 for verification, and after receiving the authentication success information returned by the Bluetooth device 10, the electronic device 20 communicates with the Bluetooth device 10. In this way, in the process of establishing a communication connection between the electronic device 20 and the Bluetooth device 10, encrypted authentication is used in the entire connection establishment process, which avoids interference with the connection by unauthenticated devices and allows users to be unaware of the encryption process, thereby improving the user experience.
在本申请的一实施例中,在步骤305之后,上述蓝牙连接建立方法还包括:In one embodiment of the present application, after step 305, the Bluetooth connection establishment method further includes:
步骤307,在接收到蓝牙设备返回的认证失败信息后,电子设备断开与蓝牙设备建立的连接,并继续监听其他蓝牙设备发送的蓝牙广播数据。Step 307: After receiving the authentication failure information returned by the Bluetooth device, the electronic device disconnects the connection established with the Bluetooth device and continues to monitor the Bluetooth broadcast data sent by other Bluetooth devices.
本申请的一实施例中,电子设备20在接收到蓝牙设备10返回的认证失败信息后断开与蓝牙设备10建立的连接,如此保证了电子设备20与蓝牙设备10之间的通信安全。In one embodiment of the present application, the electronic device 20 disconnects the connection with the Bluetooth device 10 after receiving the authentication failure information returned by the Bluetooth device 10, thereby ensuring the communication security between the electronic device 20 and the Bluetooth device 10.
后续,电子设备20可以继续监听其他蓝牙设备发送的蓝牙广播数据。Subsequently, the electronic device 20 may continue to monitor the Bluetooth broadcast data sent by other Bluetooth devices.
在本申请的一实施例中,在接收到蓝牙设备10返回的认证成功信息之后,上述蓝牙连接建立方法还包括:电子设备20根据密钥、设备信息以及目标用户的信息向服务器30发送第一指令。In one embodiment of the present application, after receiving the authentication success information returned by the Bluetooth device 10, the above-mentioned Bluetooth connection establishment method also includes: the electronic device 20 sends a first instruction to the server 30 according to the key, device information and information of the target user.
需要说明的是,第一指令用于指示服务器30建立密钥与设备信息和目标用户对应的用户组的关联关系。服务器30根据第一指令建立密钥与设备信息和目标用户对应的用户组的关联关系。上述实施例中在服务器30建立了密钥、设备信息及目标用户对应的用户组的关联关系后,用户组中的用户(或用户设备)可以共享密钥及设备信息,并且,整个用户组的所有用户,只要有一个用户首次绑定了蓝牙设备,其他用户都可以直接从用户组中获取到该密钥连接蓝牙设备,满足了多用户共同使用蓝牙设备的场景,无需各个用户重复执行解绑和绑定操作。在避免未认证设备干扰连接的前提下,又进一步简化了用户的操作流程,无需用户解绑又重新绑定,提升用户体验的同时加快了连接速度。It should be noted that the first instruction is used to instruct the server 30 to establish an association relationship between the key and the device information and the user group corresponding to the target user. The server 30 establishes an association relationship between the key and the device information and the user group corresponding to the target user according to the first instruction. In the above embodiment, after the server 30 establishes an association relationship between the key, the device information and the user group corresponding to the target user, the users (or user devices) in the user group can share the key and the device information, and all users of the entire user group, as long as one user binds the Bluetooth device for the first time, other users can directly obtain the key from the user group to connect to the Bluetooth device, which meets the scenario of multiple users using Bluetooth devices together, without the need for each user to repeatedly perform unbinding and binding operations. Under the premise of avoiding unauthenticated devices interfering with the connection, the user's operation process is further simplified, and the user does not need to unbind and rebind, which improves the user experience while speeding up the connection speed.
在本申请的一实施例中,上述蓝牙连接建立方法还包括:在接收到认证失败信息后,断开与蓝牙设备建立的连接;继续监听蓝牙广播数据。In one embodiment of the present application, the above-mentioned Bluetooth connection establishment method further includes: after receiving the authentication failure information, disconnecting the connection established with the Bluetooth device; and continuing to monitor the Bluetooth broadcast data.
需要说明的是,蓝牙设备10在确定密钥认证失败后,将返回认证失败消息至电子设备20,电子设备接收到该认证失败消息后,将断开之前与蓝牙设备10建立的连接,同时,可以继续监听周围蓝牙设备发送的蓝牙广播数据,这里也包括蓝牙设备10发送的蓝牙广播数据。It should be noted that after the Bluetooth device 10 determines that the key authentication has failed, it will return an authentication failure message to the electronic device 20. After receiving the authentication failure message, the electronic device will disconnect the connection previously established with the Bluetooth device 10. At the same time, it can continue to listen to the Bluetooth broadcast data sent by surrounding Bluetooth devices, including the Bluetooth broadcast data sent by the Bluetooth device 10.
可以理解的是,在电子设备20断开该连接前,蓝牙设备10也可以根据认证结果将该连接断开。It is understandable that before the electronic device 20 disconnects the connection, the Bluetooth device 10 may also disconnect the connection according to the authentication result.
可以理解的是,在本申请的一实施例中,蓝牙设备10确定密钥认证失败时,在第一预设时间(如2秒)后断开与电子设备20的连接,并重新发送广播数据。蓝牙设备10记录对同一电子设备20连续多次发送的密钥进行认证的认证失败次数,并在认证失败次数达到预设次数时,休眠第二预设时间后重新发送广播数据。也即,此处电子设备20无法在第二预设时间内再监听到蓝牙设备10发送的蓝牙广播。It is understood that in one embodiment of the present application, when the Bluetooth device 10 determines that the key authentication fails, it disconnects from the electronic device 20 after a first preset time (such as 2 seconds) and resends the broadcast data. The Bluetooth device 10 records the number of authentication failures for the key sent by the same electronic device 20 for multiple consecutive times, and when the number of authentication failures reaches a preset number, it sleeps for a second preset time and resends the broadcast data. That is, here the electronic device 20 cannot monitor the Bluetooth broadcast sent by the Bluetooth device 10 within the second preset time.
上述实施例中在电子设备20连续多次对蓝牙设备10进行恶意连接时,蓝牙设备10能够记录对电子设备20连续发送的密钥进行认证的认证失败次数,并在认证失败次数达到预设次数时,休眠第二预设时间后重新发送广播数据,如此保证了蓝牙设备10与电子设备20之间的通信安全。In the above embodiment, when the electronic device 20 maliciously connects to the Bluetooth device 10 multiple times in a row, the Bluetooth device 10 can record the number of authentication failures for the key continuously sent by the electronic device 20, and when the number of authentication failures reaches a preset number, it will sleep for a second preset time and then resend the broadcast data, thereby ensuring the communication security between the Bluetooth device 10 and the electronic device 20.
在本申请的一实施例中,在断开与蓝牙设备10建立的连接后,上述蓝牙连接建立方法还包括:显示第一提示信息,第一提示信息用于提示蓝牙连接失败。在本申请的一实施例中,蓝牙设备10在确定密钥认证失败后,向电子设备20返回认证失败信息。电子设备20断开与蓝牙设备10建立的连接后,或者在该连接已经被蓝牙设备20断开后,电子设备20根据蓝牙设备10返回的认证失败信息显示第一提示信息,第一提示信息用于提示蓝牙连接失败。在本申请的一实施例中,第一提示信息包括短信通知、语音通知、图形标记中的至少一种。例如,在接收到蓝牙设备10返回的认证失败信息后,电子设备20通过显示短信通知、语音通知、图形标记中的至少一种提示蓝牙连接失败,如此用户可及时获悉蓝牙连接失败信息,以便用户进行后续的蓝牙连接操作。In one embodiment of the present application, after disconnecting the connection established with the Bluetooth device 10, the above-mentioned Bluetooth connection establishment method further includes: displaying a first prompt message, the first prompt message is used to prompt that the Bluetooth connection fails. In one embodiment of the present application, after determining that the key authentication fails, the Bluetooth device 10 returns the authentication failure information to the electronic device 20. After the electronic device 20 disconnects the connection established with the Bluetooth device 10, or after the connection has been disconnected by the Bluetooth device 20, the electronic device 20 displays the first prompt message according to the authentication failure information returned by the Bluetooth device 10, and the first prompt message is used to prompt that the Bluetooth connection fails. In one embodiment of the present application, the first prompt message includes at least one of a text message notification, a voice notification, and a graphic mark. For example, after receiving the authentication failure information returned by the Bluetooth device 10, the electronic device 20 prompts the Bluetooth connection failure by displaying at least one of a text message notification, a voice notification, and a graphic mark, so that the user can be informed of the Bluetooth connection failure information in time, so that the user can perform subsequent Bluetooth connection operations.
在本申请的一实施例中,上述蓝牙连接建立方法还包括:响应于新建用户组的操作,获取被选中的用户的信息;根据被选中的用户的信息,生成用户组创建指令;向服务器30发送用户组创建指令,用户组创建指令用于指示 服务器30根据被选中的用户的信息创建新的用户组。In one embodiment of the present application, the above-mentioned Bluetooth connection establishment method also includes: in response to the operation of creating a new user group, obtaining the information of the selected user; generating a user group creation instruction based on the information of the selected user; and sending the user group creation instruction to the server 30, the user group creation instruction being used to instruct the server 30 to create a new user group based on the information of the selected user.
可以理解,上述用户组的建立过程可以在任意时间进行,例如,在用户首次与蓝牙设备建立连接前,或者建立连接后,本申请对此不作限制。It is understandable that the above user group establishment process can be performed at any time, for example, before the user establishes a connection with the Bluetooth device for the first time, or after the connection is established, and this application does not impose any limitation on this.
参考图5所示,为本申请一实施例中用户组创建界面50的示意图。用户组创建界面50包括创建选项501。参考图5,用户通过点击创建选项501触发新建用户组的操作。参考图6,电子设备20响应于用户点击创建选项501的操作显示一列表502。列表502包括至少一用户的信息。电子设备20获取用户在列表502中选中的用户信息,生成用户组创建指令,并向服务器30发送用户组创建指令。服务器30根据被选中的用户的信息创建新的用户组,并将用户组与电子设备20发送的密钥、蓝牙设备10的设备信息进行关联。本申请中创建的新的用户组中的用户可以共享密钥并与蓝牙设备10进行蓝牙连接,用户组中的其他用户都可以直接从用户组中获取到该密钥连接蓝牙设备,满足了多用户共同使用蓝牙设备的场景。Referring to FIG5 , a schematic diagram of a user group creation interface 50 in an embodiment of the present application is shown. The user group creation interface 50 includes a creation option 501. Referring to FIG5 , a user triggers the operation of creating a new user group by clicking the creation option 501. Referring to FIG6 , the electronic device 20 displays a list 502 in response to the user clicking the creation option 501. The list 502 includes information of at least one user. The electronic device 20 obtains the user information selected by the user in the list 502, generates a user group creation instruction, and sends the user group creation instruction to the server 30. The server 30 creates a new user group based on the information of the selected user, and associates the user group with the key sent by the electronic device 20 and the device information of the Bluetooth device 10. The users in the new user group created in the present application can share the key and connect to the Bluetooth device 10 by Bluetooth, and other users in the user group can directly obtain the key from the user group to connect to the Bluetooth device, which satisfies the scenario of multiple users using the Bluetooth device together.
在本申请的一实施例中,在接收到蓝牙设备返回的认证成功信息之后,上述蓝牙连接建立方法还包括:将密钥及设备信息进行关联并存储在电子设备20的存储器中。In one embodiment of the present application, after receiving the authentication success information returned by the Bluetooth device, the Bluetooth connection establishment method further includes: associating the key and the device information and storing them in the memory of the electronic device 20.
本申请中,在认证成功接收到蓝牙设备返回的认证成功信息后,电子设备20将密钥及设备信息关联存储,如此,后续可以直接从本地获取密钥而无需再从服务器获取,可以加快连接速度。In the present application, after successfully receiving the authentication success information returned by the Bluetooth device, the electronic device 20 stores the key and device information in association, so that the key can be obtained directly from the local without having to be obtained from the server, which can speed up the connection speed.
在本申请的一实施例中,蓝牙设备10还可以接受重置操作,将蓝牙设备10的绑定标识设置为第二标识及将上述密钥清除。In one embodiment of the present application, the Bluetooth device 10 can also accept a reset operation, setting the binding identifier of the Bluetooth device 10 to the second identifier and clearing the above-mentioned key.
可以理解,该重置操作可以由用户在蓝牙设备10上操作响应的重置按钮触发,例如,蓝牙设备10设置重置按钮,当蓝牙设备10检测到用户对重置按钮执行了预设操作后将蓝牙设备10的绑定标识设置为第二标识及将预设密钥清除,如此蓝牙设备10根据重置操作能够将蓝牙设备10设定为未被绑定,方便了将蓝牙设备10解绑后与其他电子设备进行绑定连接。该重置操作也可以由用户在电子设备20的应用程序上通过响应的重置操作触发,该应用程序为蓝牙设备10对应的应用程序,用于对蓝牙设备10进行操控。可以理解是,此时,该重置操作可以由电子设备20发送至服务器后,由服务器发送至蓝牙设备。或者,该重置操作也可以由电子设备20直接发送至蓝牙设备。It can be understood that the reset operation can be triggered by the user operating a corresponding reset button on the Bluetooth device 10. For example, the Bluetooth device 10 is set with a reset button. When the Bluetooth device 10 detects that the user has performed a preset operation on the reset button, the binding identifier of the Bluetooth device 10 is set to the second identifier and the preset key is cleared. In this way, the Bluetooth device 10 can set the Bluetooth device 10 to be unbound according to the reset operation, which facilitates the binding connection of the Bluetooth device 10 with other electronic devices after unbinding. The reset operation can also be triggered by the user through a corresponding reset operation on the application of the electronic device 20. The application is the application corresponding to the Bluetooth device 10 and is used to control the Bluetooth device 10. It can be understood that at this time, the reset operation can be sent by the electronic device 20 to the server, and then sent by the server to the Bluetooth device. Alternatively, the reset operation can also be sent directly to the Bluetooth device by the electronic device 20.
参考图7所示,为本申请另一实施例提供的蓝牙连接建立方法的流程图。如图7所示,本申请实施例中的蓝牙连接建立方法包括步骤601-605。Referring to Figure 7, a flowchart of a method for establishing a Bluetooth connection provided in another embodiment of the present application is shown. As shown in Figure 7, the method for establishing a Bluetooth connection in the embodiment of the present application includes steps 601-605.
步骤601,接收蓝牙设备发送的蓝牙广播数据。Step 601: Receive Bluetooth broadcast data sent by a Bluetooth device.
步骤602,显示蓝牙设备对应的图标。Step 602: Display the icon corresponding to the Bluetooth device.
步骤603,响应于用户对上述图标的操作,根据设备信息与蓝牙设备建立连接。Step 603: In response to the user's operation on the above icon, a connection is established with the Bluetooth device according to the device information.
本申请实施例中图7之步骤601-603与图3之步骤301-303相同,图7之步骤601-603的具体实施内容请参考图3中蓝牙连接建立方法之步骤301-303的实施内容,这里不再重复描述。In the embodiment of the present application, steps 601-603 of FIG. 7 are the same as steps 301-303 of FIG. 3 . For the specific implementation contents of steps 601-603 of FIG. 7 , please refer to the implementation contents of steps 301-303 of the Bluetooth connection establishment method in FIG. 3 , which will not be repeated here.
步骤604,若广播数据的绑定标识为第二标识,电子设备生成密钥并将密钥发送给蓝牙设备。Step 604: If the binding identifier of the broadcast data is the second identifier, the electronic device generates a key and sends the key to the Bluetooth device.
在本申请的一实施例中,电子设备20接收到蓝牙广播数据后,从预设字段中读取到该绑定标识的值,若绑定标识为第二标识,则表明蓝牙设备10未被绑定,且电子设备20首次与蓝牙设备10进行连接。电子设备20在首次与蓝牙设备10建立连接时,自动生成密钥,并将密钥发送给蓝牙设备10。例如,电子设备20根据自身的设备信息、蓝牙设备10的设备信息、电子设备20接收到蓝牙广播数据的时间信息中的至少一种信息生成密钥。再例如,电子设备20可以依据选择的一随机数生成密钥。In one embodiment of the present application, after the electronic device 20 receives the Bluetooth broadcast data, it reads the value of the binding identifier from the preset field. If the binding identifier is the second identifier, it indicates that the Bluetooth device 10 is not bound and the electronic device 20 is connected to the Bluetooth device 10 for the first time. When the electronic device 20 establishes a connection with the Bluetooth device 10 for the first time, it automatically generates a key and sends the key to the Bluetooth device 10. For example, the electronic device 20 generates the key based on at least one of its own device information, the device information of the Bluetooth device 10, and the time information when the electronic device 20 receives the Bluetooth broadcast data. For another example, the electronic device 20 can generate the key based on a selected random number.
步骤605,在接收到蓝牙设备返回的认证成功信息后,电子设备通过连接与蓝牙设备进行通信。Step 605: After receiving the authentication success information returned by the Bluetooth device, the electronic device communicates with the Bluetooth device through connection.
在本申请的一实施例中,蓝牙设备10接收电子设备20发送的密钥,将密钥作为预设密钥,并直接将认证成功信息发送给电子设备20。电子设备20在接收到蓝牙设备10返回的认证成功信息后,通过连接与蓝牙设备10进行通信。In one embodiment of the present application, the Bluetooth device 10 receives the key sent by the electronic device 20, uses the key as a preset key, and directly sends the authentication success information to the electronic device 20. After receiving the authentication success information returned by the Bluetooth device 10, the electronic device 20 communicates with the Bluetooth device 10 through a connection.
本申请的上述实施例中,在确定蓝牙设备10未被绑定时,蓝牙设备10无需将密钥与预设密钥进行比较,并直接向电子设备20返回认证成功信息以实现电子设备20与蓝牙设备10的通信,从而简化蓝牙设备10首次与电子设备20的连接过程。In the above-mentioned embodiment of the present application, when it is determined that the Bluetooth device 10 is not bound, the Bluetooth device 10 does not need to compare the key with the preset key, and directly returns the authentication success information to the electronic device 20 to realize the communication between the electronic device 20 and the Bluetooth device 10, thereby simplifying the first connection process between the Bluetooth device 10 and the electronic device 20.
在本申请的另一实施例中,在蓝牙设备10未被绑定时,蓝牙设备10也可以在与电子设备10建立连接后,向电子设备10发送密钥。电子设备20 在接收到密钥后,可以向蓝牙设备10反馈密钥接收信息。蓝牙设备10接收到密钥接收信息后,可以向电子设备20返回认证成功信息。电子设备20在接收到蓝牙设备10返回的认证成功信息后,通过连接与蓝牙设备10进行通信。也即是说,在本申请实施例中,并不对密钥的生成方以及密钥生成方式进行限定。In another embodiment of the present application, when the Bluetooth device 10 is not bound, the Bluetooth device 10 may also send a key to the electronic device 10 after establishing a connection with the electronic device 10. After receiving the key, the electronic device 20 may feedback key reception information to the Bluetooth device 10. After receiving the key reception information, the Bluetooth device 10 may return authentication success information to the electronic device 20. After receiving the authentication success information returned by the Bluetooth device 10, the electronic device 20 communicates with the Bluetooth device 10 through the connection. That is to say, in the embodiment of the present application, the generator of the key and the key generation method are not limited.
参考图8所示,为本申请实施例提供的蓝牙连接建立装置100的结构示意图。蓝牙连接建立装置100可用于实现上述蓝牙连接建立方法。8, which is a schematic diagram of the structure of a Bluetooth connection establishment device 100 provided in an embodiment of the present application. The Bluetooth connection establishment device 100 can be used to implement the above-mentioned Bluetooth connection establishment method.
具体地,蓝牙连接建立装置100包括接收模块11,显示模块12、连接模块13、请求模块14。Specifically, the Bluetooth connection establishing device 100 includes a receiving module 11 , a display module 12 , a connecting module 13 , and a requesting module 14 .
接收模块11接收蓝牙设备发送的蓝牙广播数据,蓝牙广播数据包括蓝牙设备10的设备信息及绑定标识,绑定标识用于表示蓝牙设备10是否被绑定。The receiving module 11 receives the Bluetooth broadcast data sent by the Bluetooth device. The Bluetooth broadcast data includes the device information and the binding identifier of the Bluetooth device 10. The binding identifier is used to indicate whether the Bluetooth device 10 is bound.
显示模块12显示蓝牙设备10对应的图标。The display module 12 displays an icon corresponding to the Bluetooth device 10 .
连接模块13响应于用户对图标的操作,根据设备信息与蓝牙设备10建立连接。The connection module 13 establishes a connection with the Bluetooth device 10 according to the device information in response to the user's operation on the icon.
若绑定标识为第一标识,请求模块14根据当前登录电子设备20的目标用户的信息和设备信息向服务器30发送密钥获取请求;其中,第一标识用于表示蓝牙设备10已被绑定,密钥获取请求用于指示服务器30从目标用户所在的用户组对应的密钥中查询与设备信息关联的密钥。If the binding identifier is the first identifier, the request module 14 sends a key acquisition request to the server 30 based on the information of the target user currently logged in to the electronic device 20 and the device information; wherein the first identifier is used to indicate that the Bluetooth device 10 has been bound, and the key acquisition request is used to instruct the server 30 to query the key associated with the device information from the key corresponding to the user group to which the target user belongs.
接收模块11接收服务器30返回的密钥并将密钥发送至蓝牙设备10进行认证。The receiving module 11 receives the key returned by the server 30 and sends the key to the Bluetooth device 10 for authentication.
连接模块13在接收到蓝牙设备10返回的认证成功信息后,通过连接与蓝牙设备10进行通信。After receiving the authentication success information returned by the Bluetooth device 10 , the connection module 13 communicates with the Bluetooth device 10 through connection.
可以理解,蓝牙连接建立装置100与上述蓝牙连接建立方法属于同一发明构思,蓝牙连接建立装置100连接实现蓝牙连接建立方法的具体过程与上述实施例过程相同,此处不再赘述。It can be understood that the Bluetooth connection establishment device 100 and the above-mentioned Bluetooth connection establishment method belong to the same inventive concept, and the specific process of the Bluetooth connection establishment device 100 connecting to implement the Bluetooth connection establishment method is the same as the process of the above-mentioned embodiment, which will not be repeated here.
本申请还提供了一种计算机可读存储介质。该计算机可读存储介质存储多条指令,多条指令适于由处理器加载并执行,以实现上述蓝牙连接建立方法的相应步骤,如步骤201-206,步骤301-307,步骤601-605。The present application also provides a computer-readable storage medium that stores a plurality of instructions suitable for being loaded and executed by a processor to implement corresponding steps of the above-mentioned Bluetooth connection establishment method, such as steps 201-206, steps 301-307, and steps 601-605.
请参考图9所示,为本申请实施例提供的电子设备20的结构示意图。该电子设备20可包括至少一个处理器22、存储器21以及通信单元23。存储器 21包括计算机可读存储介质,该计算机可读存储介质用于存储多条逻辑指令,通信单元23用于与蓝牙设备10或服务器30进行通信,处理器22可以运行该逻辑指令,以执行上述蓝牙连接建立方法。Please refer to FIG9, which is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include at least one processor 22, a memory 21, and a communication unit 23. The memory 21 includes a computer-readable storage medium, which is used to store a plurality of logic instructions, and the communication unit 23 is used to communicate with the Bluetooth device 10 or the server 30. The processor 22 can run the logic instructions to execute the above-mentioned Bluetooth connection establishment method.
可以理解,在一些实施例中,通信单元23至少包括蓝牙模块、网络模块等具有通信功能的模块,本申请对此不作限制。It can be understood that in some embodiments, the communication unit 23 includes at least a module with communication function such as a Bluetooth module and a network module, and the present application does not limit this.
其中,上述的计算机可读存储介质中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。The logic instructions in the above-mentioned computer-readable storage medium can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
计算机可读存储介质可设置为存储软件程序、计算机可执行程序,如本申请实施例中的蓝牙连接建立方法对应的程序指令或蓝牙连接建立装置100中的模块。处理器22通过运行存储在计算机可读存储介质中的软件程序、指令或模块,从而执行功能应用以及图像处理,即实现上述实施例中的蓝牙连接建立方法。The computer-readable storage medium may be configured to store software programs, computer executable programs, such as program instructions corresponding to the Bluetooth connection establishment method in the embodiment of the present application or modules in the Bluetooth connection establishment device 100. The processor 22 executes the functional application and image processing by running the software program, instructions or modules stored in the computer-readable storage medium, that is, implementing the Bluetooth connection establishment method in the above embodiment.
在本申请实施方式中,计算机可读存储介质包括非易失性计算机可读存储器,例如磁盘、内存等。可以理解,计算机可读存储介质还可以包括其他非易失性计算机可读存储器,例如插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)、至少一个闪存器件和/或其他非易失性固态存储器件。In the embodiment of the present application, the computer-readable storage medium includes a non-volatile computer-readable memory, such as a disk, a memory, etc. It is understood that the computer-readable storage medium may also include other non-volatile computer-readable memories, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one flash memory device and/or other non-volatile solid-state storage devices.
在本申请实施方式中,处理器22可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器22是电子设备20的控制中心,可以利用各种接口和线路连接其他设备和/或系统/模块/单元,以向其他设备和/或系统/模块/单元的应用提供蓝牙连接建立功能。In the embodiment of the present application, the processor 22 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 22 is the control center of the electronic device 20, and can use various interfaces and lines to connect to other devices and/or systems/modules/units to provide Bluetooth connection establishment functions to applications of other devices and/or systems/modules/units.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。It should be noted that, for the sake of simplicity of description, the aforementioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited to the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

  1. 一种蓝牙连接建立方法,应用于电子设备,所述方法包括:A method for establishing a Bluetooth connection, applied to an electronic device, the method comprising:
    接收蓝牙设备发送的蓝牙广播数据,所述蓝牙广播数据包括所述蓝牙设备的设备信息及绑定标识,所述绑定标识被配置为表示所述蓝牙设备是否被绑定;Receiving Bluetooth broadcast data sent by a Bluetooth device, wherein the Bluetooth broadcast data includes device information and a binding identifier of the Bluetooth device, wherein the binding identifier is configured to indicate whether the Bluetooth device is bound;
    显示所述蓝牙设备对应的图标;Display the icon corresponding to the Bluetooth device;
    响应于用户对所述图标的操作,根据所述设备信息与所述蓝牙设备建立连接;In response to a user's operation on the icon, establishing a connection with the Bluetooth device according to the device information;
    若所述绑定标识为第一标识,则根据当前登录所述电子设备的目标用户的信息和所述设备信息向服务器发送密钥获取请求;其中,所述第一标识被配置为表示所述蓝牙设备已被绑定,所述密钥获取请求被配置为指示所述服务器从所述目标用户所在的用户组对应的密钥中查询与所述设备信息关联的密钥;If the binding identifier is the first identifier, a key acquisition request is sent to the server according to the information of the target user currently logging into the electronic device and the device information; wherein the first identifier is configured to indicate that the Bluetooth device has been bound, and the key acquisition request is configured to instruct the server to query the key associated with the device information from the key corresponding to the user group to which the target user belongs;
    接收所述服务器返回的密钥并将所述密钥发送至所述蓝牙设备进行认证;Receiving the key returned by the server and sending the key to the Bluetooth device for authentication;
    在接收到所述蓝牙设备返回的认证成功信息后,通过所述连接与所述蓝牙设备进行通信。After receiving the authentication success information returned by the Bluetooth device, communicate with the Bluetooth device through the connection.
  2. 如权利要求1所述的蓝牙连接建立方法,其特征在于,所述根据所述设备信息与所述蓝牙设备建立连接之后,所述蓝牙连接建立方法还包括:The Bluetooth connection establishment method according to claim 1, characterized in that after establishing a connection with the Bluetooth device according to the device information, the Bluetooth connection establishment method further comprises:
    若所述绑定标识为第二标识,则生成密钥并将所述密钥发送给所述蓝牙设备;其中,所述第二标识被配置为表示所述蓝牙设备未被绑定;If the binding identifier is a second identifier, generating a key and sending the key to the Bluetooth device; wherein the second identifier is configured to indicate that the Bluetooth device is not bound;
    在接收到所述蓝牙设备返回的认证成功信息后,根据所述密钥、所述设备信息以及所述目标用户的信息向所述服务器发送第一指令,所述第一指令被配置为指示所述服务器建立所述密钥、所述设备信息和所述目标用户对应的用户组的关联关系。After receiving the authentication success information returned by the Bluetooth device, a first instruction is sent to the server according to the key, the device information and the information of the target user, wherein the first instruction is configured to instruct the server to establish an association relationship between the key, the device information and the user group corresponding to the target user.
  3. 如权利要求1所述的蓝牙连接建立方法,其特征在于,所述蓝牙连接建立方法还包括:The method for establishing a Bluetooth connection according to claim 1, wherein the method for establishing a Bluetooth connection further comprises:
    响应于新建用户组的操作,获取被选中的用户的信息;In response to the operation of creating a new user group, obtaining information of the selected user;
    根据所述被选中的用户的信息,生成用户组创建指令;Generate a user group creation instruction according to the information of the selected user;
    向所述服务器发送所述用户组创建指令,所述用户组创建指令被配置为指示所述服务器根据所述被选中的用户的信息创建新的用户组。The user group creation instruction is sent to the server, where the user group creation instruction is configured to instruct the server to create a new user group according to the information of the selected user.
  4. 如权利要求2所述的蓝牙连接建立方法,其特征在于,所述根据所述密钥、所述设备信息以及所述目标用户的信息向所述服务器发送第一指令,包括:The method for establishing a Bluetooth connection according to claim 2, wherein the step of sending a first instruction to the server according to the key, the device information, and the target user information comprises:
    根据所述目标用户的信息、所述密钥和所述设备信息生成所述第一指令;Generate the first instruction according to the target user information, the key and the device information;
    向所述服务器发送所述第一指令。The first instruction is sent to the server.
  5. 如权利要求1或2所述的蓝牙连接建立方法,其特征在于,所述蓝牙连接建立方法还包括:The method for establishing a Bluetooth connection according to claim 1 or 2, characterized in that the method for establishing a Bluetooth connection further comprises:
    在接收到认证失败信息后,断开与所述蓝牙设备建立的连接;After receiving the authentication failure information, disconnecting the connection established with the Bluetooth device;
    继续监听蓝牙广播数据。Continue to monitor Bluetooth broadcast data.
  6. 如权利要求5所述的蓝牙连接建立方法,其特征在于,所述断开与所述蓝牙设备建立的连接之后,所述蓝牙连接建立方法还包括:The Bluetooth connection establishment method according to claim 5, characterized in that after disconnecting the connection established with the Bluetooth device, the Bluetooth connection establishment method further comprises:
    显示第一提示信息,所述第一提示信息被配置为提示蓝牙连接失败。A first prompt message is displayed, where the first prompt message is configured to prompt that the Bluetooth connection fails.
  7. 如权利要求5所述的蓝牙连接建立方法,其特征在于,所述根据所述设备信息与所述蓝牙设备建立连接之后,所述蓝牙连接建立方法还包括::The Bluetooth connection establishment method according to claim 5, characterized in that after establishing a connection with the Bluetooth device according to the device information, the Bluetooth connection establishment method further comprises:
    若所述绑定标识为第二标识,接收所述蓝牙设备发送的密钥并向所述蓝牙设备反馈密钥接收信息。If the binding identifier is the second identifier, the key sent by the Bluetooth device is received and key reception information is fed back to the Bluetooth device.
  8. 如权利要求1所述的蓝牙连接建立方法,其特征在于,所述在接收到认证成功信息之后,所述蓝牙连接建立方法还包括:The Bluetooth connection establishment method according to claim 1, characterized in that after receiving the authentication success information, the Bluetooth connection establishment method further comprises:
    将所述密钥及所述设备信息关联存储在所述电子设备的存储器中。The key and the device information are associated and stored in a memory of the electronic device.
  9. 一种电子设备,包括:An electronic device, comprising:
    存储器,被配置为存储程序指令;及a memory configured to store program instructions; and
    处理器,被配置为读取并执行所述存储器中存储的所述程序指令,当所述程序指令被所述处理器执行时,使得所述电子设备执行如权利要求1至7中任一项所述的蓝牙连接建立方法。The processor is configured to read and execute the program instructions stored in the memory, and when the program instructions are executed by the processor, the electronic device executes the Bluetooth connection establishment method as described in any one of claims 1 to 7.
  10. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序指令,当所述程序指令在电子设备上运行时,使得所述电子设备执行如权利要求1至7中任一项所述的蓝牙连接建立方法。A computer storage medium, characterized in that the computer storage medium stores program instructions, and when the program instructions are executed on an electronic device, the electronic device executes the Bluetooth connection establishment method as described in any one of claims 1 to 7.
PCT/CN2022/143678 2022-10-27 2022-12-30 Bluetooth connection establishment method, electronic device and computer storage medium WO2024087384A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211323028.X 2022-10-27
CN202211323028.XA CN115379590B (en) 2022-10-27 2022-10-27 Bluetooth connection establishing method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
WO2024087384A1 true WO2024087384A1 (en) 2024-05-02

Family

ID=84074198

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/143678 WO2024087384A1 (en) 2022-10-27 2022-12-30 Bluetooth connection establishment method, electronic device and computer storage medium

Country Status (2)

Country Link
CN (1) CN115379590B (en)
WO (1) WO2024087384A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379590B (en) * 2022-10-27 2023-02-14 深圳市正浩创新科技股份有限公司 Bluetooth connection establishing method and device, electronic equipment and computer storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150373760A1 (en) * 2014-06-19 2015-12-24 Nokia Technologies Oy Device pairing
CN105450269A (en) * 2015-12-21 2016-03-30 飞天诚信科技股份有限公司 Method and device for realizing safe interaction and pairing authentication between Bluetooth devices
CN108111998A (en) * 2017-12-18 2018-06-01 北京博创联动科技有限公司 A kind of wireless method for unlocking and system
CN112822630A (en) * 2021-01-12 2021-05-18 上海钧正网络科技有限公司 Data processing method of device and computer-readable storage medium
CN113596827A (en) * 2021-07-29 2021-11-02 Oppo广东移动通信有限公司 Key generation method and device, electronic equipment and storage medium
CN114554470A (en) * 2022-02-25 2022-05-27 杭州涂鸦信息技术有限公司 Interaction method based on Bluetooth device and related device
CN115379590A (en) * 2022-10-27 2022-11-22 深圳市正浩创新科技股份有限公司 Bluetooth connection establishing method and device, electronic equipment and computer storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2514055B (en) * 2012-06-20 2018-07-11 Certis Cisco Security Pte Ltd Bluetooth (RTM) pairing system, method, and apparatus
WO2017076269A1 (en) * 2015-11-03 2017-05-11 国民技术股份有限公司 Smart device, and method and apparatus for establishing bluetooth connection between devices therefor
CN106788977A (en) * 2016-12-28 2017-05-31 北京握奇数据系统有限公司 Low-power consumption bluetooth device talk encryption method and system
CN109862560B (en) * 2017-11-30 2022-06-14 阿里巴巴集团控股有限公司 Bluetooth authentication method, device, equipment and medium
CN109785490A (en) * 2019-01-29 2019-05-21 上海博泰悦臻网络技术服务有限公司 Bi-directional verification method and system, intelligent terminal and the T-BOX of bluetooth key
CN110072221B (en) * 2019-04-16 2021-03-23 华为技术有限公司 Bluetooth scanning method and electronic equipment
CN112351390A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Method for mutual identification or mutual communication of Bluetooth devices
CN110730441B (en) * 2019-10-18 2021-07-02 飞天诚信科技股份有限公司 Bluetooth device and working method thereof
CN111954196B (en) * 2020-08-18 2021-02-26 龙杰科技(深圳)有限公司 Smart card recharging method and system based on Bluetooth, terminal equipment and storage medium
CN113993115B (en) * 2021-12-27 2022-04-01 飞天诚信科技股份有限公司 Method and device for automatically unlocking screen, electronic equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150373760A1 (en) * 2014-06-19 2015-12-24 Nokia Technologies Oy Device pairing
CN105450269A (en) * 2015-12-21 2016-03-30 飞天诚信科技股份有限公司 Method and device for realizing safe interaction and pairing authentication between Bluetooth devices
CN108111998A (en) * 2017-12-18 2018-06-01 北京博创联动科技有限公司 A kind of wireless method for unlocking and system
CN112822630A (en) * 2021-01-12 2021-05-18 上海钧正网络科技有限公司 Data processing method of device and computer-readable storage medium
CN113596827A (en) * 2021-07-29 2021-11-02 Oppo广东移动通信有限公司 Key generation method and device, electronic equipment and storage medium
CN114554470A (en) * 2022-02-25 2022-05-27 杭州涂鸦信息技术有限公司 Interaction method based on Bluetooth device and related device
CN115379590A (en) * 2022-10-27 2022-11-22 深圳市正浩创新科技股份有限公司 Bluetooth connection establishing method and device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN115379590A (en) 2022-11-22
CN115379590B (en) 2023-02-14

Similar Documents

Publication Publication Date Title
US11259178B2 (en) Bluetooth mesh network provisioning authentication
CN109150568B (en) Network management method, device, system, equipment and storage medium
TWI787383B (en) Device connection method, device and system
JP6515207B2 (en) Internet access authentication method and client, and computer storage medium
EP2696559B1 (en) Method and Device for Resource Sharing Between Devices
JP6280641B2 (en) Account login method, device and system
US10110706B2 (en) Remote access method and device
US20210211502A1 (en) Systems and methods for remote management of appliances
US11057821B2 (en) Method and device for connecting to hidden wireless access point
WO2015043455A1 (en) Data transmission method, device, and system
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
CN111049946B (en) Portal authentication method, portal authentication system, electronic equipment and storage medium
WO2020011194A1 (en) Wireless connection method and device
US20170171496A1 (en) Method and Electronic Device for Screen Projection
JP2016502338A (en) Network connection parameter setting method, apparatus, network facility, program, and recording medium
CN113490207B (en) Internet of things equipment binding method and device, computer equipment and storage medium
CN111194035B (en) Network connection method, device and storage medium
WO2024087384A1 (en) Bluetooth connection establishment method, electronic device and computer storage medium
CN112738046B (en) One-key login method, terminal and system server
CN109041036A (en) WIFI connection method and equipment
CN112422518A (en) Network access method, device and storage medium
CN105812413B (en) Communication method and device
CN111356090B (en) Networking method of network, device thereof, terminal and computer readable storage medium
CN109451497B (en) Wireless network connection method and device, electronic equipment and storage medium
WO2023236512A1 (en) Information code display method and apparatus, and terminal device and storage medium