Equipment binding method and device, equipment, storage medium and product
By sending a Bluetooth broadcast packet carrying a specific identifier through the user terminal, the Bluetooth device compares the data and sends back a broadcast packet to simplify the binding process, thus solving the problem of complex device binding operations and achieving efficient device binding.
Patent Information
- Application Number
- CN202410692414.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2025-12-02
AI Technical Summary
The existing smart device binding process is complex, lengthy, and lacks clear user guidance, resulting in low device binding efficiency.
The user terminal actively sends a Bluetooth broadcast packet carrying a specific identifier. The Bluetooth device compares the identifier and sends back a Bluetooth broadcast packet to establish a binding relationship, simplifying the binding process.
It improves the efficiency of device binding, allowing users to quickly complete device binding without complicated operations.
Smart Images

Figure CN121056843A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of data processing technology, and in particular relates to a device binding method, apparatus, device, storage medium and product. Background Technology
[0002] With technological advancements and changing times, smart devices are increasingly entering households. The variety of smart devices is also expanding. Besides smart speakers, smart cameras, smart air conditioners, smart refrigerators, and smart TVs, pure Bluetooth devices are becoming increasingly intelligent, such as smart blood pressure monitors, smart body fat scales, and smart pulse oximeters. These devices don't require network data transmission; they connect to smart terminals via Bluetooth. When these devices are to be directly associated with a user, a unique relationship must be established between the device and the user—device binding. Only after device binding is complete does the user have the authority to manage and control the device, making it a crucial step. However, binding these devices often involves complex operations, lengthy processes, and unclear user instructions, resulting in low binding efficiency. Summary of the Invention
[0003] This application provides a device binding method, apparatus, device, storage medium, and product to solve the problem of low device binding efficiency.
[0004] In a first aspect, embodiments of this application provide a device binding method applied to a user terminal, the method comprising:
[0005] Send a first Bluetooth broadcast packet, the first Bluetooth broadcast packet carrying a first identifier corresponding to the user terminal;
[0006] Upon receiving a second Bluetooth broadcast packet from the first Bluetooth device based on the first Bluetooth broadcast packet, a binding relationship is established between the user terminal and the first Bluetooth device;
[0007] The second Bluetooth broadcast packet is determined by the first Bluetooth device by comparing the first identifier and the second identifier of the first Bluetooth device, and the second Bluetooth broadcast packet is used to request the user terminal to establish a binding relationship with the first Bluetooth device.
[0008] Secondly, embodiments of this application provide a device binding method applied to a first Bluetooth device, the method comprising:
[0009] Receive a first Bluetooth broadcast packet sent by a user terminal, wherein the first Bluetooth broadcast packet carries a first identifier corresponding to the user terminal;
[0010] If the second identifier of the first Bluetooth device is different from the first identifier, a second Bluetooth broadcast packet is sent to the user terminal. The second Bluetooth broadcast packet is used to establish a binding relationship with the user terminal.
[0011] The second identifier is the identifier of the user terminal pre-stored in the first Bluetooth device.
[0012] Thirdly, embodiments of this application provide a device binding apparatus applied to a user terminal, the apparatus comprising:
[0013] The first transmitting module is used to transmit a first Bluetooth broadcast packet, wherein the first Bluetooth broadcast packet carries a first identifier corresponding to the user terminal;
[0014] The first receiving module is configured to establish a binding relationship between the user terminal and the first Bluetooth device upon receiving a second Bluetooth broadcast packet fed back by the first Bluetooth device based on the first Bluetooth broadcast packet;
[0015] The second Bluetooth broadcast packet is determined by the first Bluetooth device by comparing the first identifier and the second identifier of the first Bluetooth device, and the second Bluetooth broadcast packet is used to request the user terminal to establish a binding relationship with the first Bluetooth device.
[0016] Fourthly, this embodiment provides a device binding device applied to a first Bluetooth device, the device comprising:
[0017] The second receiving module is used to receive a first Bluetooth broadcast packet sent by a user terminal, wherein the first Bluetooth broadcast packet carries a first identifier corresponding to the user terminal.
[0018] The second sending module is used to send a second Bluetooth broadcast packet to the user terminal when the second identifier of the first Bluetooth device is different from the first identifier. The second Bluetooth broadcast packet is used to establish a binding relationship with the user terminal.
[0019] The second identifier is the identifier of the user terminal pre-stored in the first Bluetooth device.
[0020] Fifthly, embodiments of this application provide a terminal device, the device including: a processor and a memory storing computer program instructions;
[0021] When the processor executes computer program instructions, it implements device binding methods such as the first or second aspect.
[0022] Fourthly, embodiments of this application provide a computer storage medium on which computer program instructions are stored, which, when executed by a processor, implement the device binding method as described in the first or second aspect.
[0023] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform the device binding method as described in the first aspect, or to implement the device binding method as described in the second aspect.
[0024] The device binding method provided in this application embodiment involves the user terminal actively sending a Bluetooth broadcast packet with a specific identifier. This allows all first Bluetooth devices within the user terminal's Bluetooth connection range to receive the Bluetooth broadcast packet and establish a binding relationship by receiving Bluetooth broadcast packets returned by the first Bluetooth devices. This makes the entire binding process more direct and simple, eliminating the need for complex user operations. Users can complete device binding faster without waiting for lengthy processes or complex setup steps, thus improving device binding efficiency. Attached Figure Description
[0025] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0026] Figure 1 This is a flowchart illustrating the device binding method provided in an embodiment of this application;
[0027] Figure 2 This is a schematic diagram of the device binding device provided in the embodiments of this application;
[0028] Figure 3 This is another structural schematic diagram of the device binding device provided in the embodiments of this application;
[0029] Figure 4 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application. Detailed Implementation
[0030] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0031] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0032] To address the problems in the prior art, embodiments of this application provide a device binding method, apparatus, device, storage medium, and product.
[0033] The device binding method provided in the embodiments of this application will be described below.
[0034] Figure 1 This illustration shows an interactive flow diagram of a device binding method provided in one embodiment of this application. For example... Figure 1 As shown, the method includes:
[0035] Step 101: The user terminal sends a first Bluetooth broadcast packet, which carries a first identifier corresponding to the user terminal.
[0036] In this embodiment, the user terminal can be an electronic device such as a mobile phone or tablet. A relevant Bluetooth control application, such as a smart home app, can be installed on the user terminal. First, log in to the relevant app installed on the smart terminal and simultaneously enable both the central device and peripheral device modes. The central device mode is used to scan and receive Bluetooth broadcasts from surrounding devices, while the peripheral device mode is mainly used to send a specific device binding detection packet, i.e., the first Bluetooth broadcast packet, which contains the user's unique user identifier, i.e., the first identifier. The specific format of the first Bluetooth broadcast packet is as follows:
[0037] The peripheral name and LocalName fields in the Bluetooth broadcast are: CheckAutoBindDevice. The Manufacture Data field in the Bluetooth broadcast stores the user's unique identifier in bits 0-7.
[0038] As an example, if the user's unique identifier contained in the first Bluetooth broadcast packet is 18645678952, then its specific format is:
[0039] LocalName:CheckAutoBindDevice
[0040] Manufacture Data: 0x180x640x560x780x950x020x00
[0041] Step 102: The first Bluetooth device receives the first Bluetooth broadcast packet sent by the user terminal;
[0042] In this embodiment, the first Bluetooth device refers to a Bluetooth device within the Bluetooth range of the user terminal. When the user terminal broadcasts the first Bluetooth broadcast packet, the broadcast packet can only be transmitted within the Bluetooth range; therefore, the Bluetooth device within this range is the first Bluetooth device. There can be multiple first Bluetooth devices, so each Bluetooth device can receive the first Bluetooth broadcast packet, thereby enabling batch Bluetooth pairing and improving pairing efficiency.
[0043] Step 103: If the second identifier of the first Bluetooth device is different from the first identifier, the first Bluetooth device sends a second Bluetooth broadcast packet to the user terminal.
[0044] The second identifier is a user terminal identifier pre-stored by the first Bluetooth device. This identifier may be manually set or saved because the first Bluetooth device has previously bound the user terminal. If the second identifier is different from the first identifier, it indicates that there is not a one-to-one correspondence between the first Bluetooth device and the user terminal. Therefore, the first Bluetooth device needs to send a second Bluetooth broadcast packet to request binding with the user terminal. The second Bluetooth broadcast packet is determined by the first Bluetooth device by comparing the first identifier and the second identifier of the first Bluetooth device.
[0045] Step 104: When the user terminal receives a second Bluetooth broadcast packet fed back by the first Bluetooth device based on the first Bluetooth broadcast packet, the user terminal establishes a binding relationship between the user terminal and the first Bluetooth device.
[0046] In this embodiment, the user terminal is in peripheral device mode and receives the second Bluetooth broadcast packet by continuously scanning for broadcasts from surrounding devices. From the second Bluetooth broadcast, the local area network address (MAC address) can be obtained, and the MAC address is stored in the server along with the user terminal's first identifier, thereby achieving binding between the user terminal and the first Bluetooth device. In addition to the second Bluetooth broadcast packet, there is also a pending binding Bluetooth broadcast packet. The bound Bluetooth broadcast packet is sent by the already bound Bluetooth device, and the user terminal can discard it upon receiving it.
[0047] It should be noted that the specific formats for Bluetooth broadcast packets to be bound and those already bound are as follows:
[0048] The peripheral name and LocalName fields in the Bluetooth broadcast are: ToBeBindDevice / AlreadyBindDevice.
[0049] In Bluetooth broadcasts, the Manufacture Data field (bits 0-6) stores the device's MAC address.
[0050] In the Bluetooth broadcast, the 7th bit of the Manufacture Data stores the registration identifier: 0x01 unbound, 0x02 bound.
[0051] As an example, the second Bluetooth broadcast example is as follows: the device MAC address is: aa:cc:21:32:ce:df, and it is not registered; its corresponding format is:
[0052] LocalName:ToBeBindDevice
[0053] Manufacture Data: 0xaa 0xcc 0x210x320xce 0xdf0x01
[0054] In this embodiment, by having the user terminal actively send a Bluetooth broadcast packet with a specific identifier, all first Bluetooth devices within the user terminal's Bluetooth connection range can receive the Bluetooth broadcast packet and establish a binding relationship by receiving Bluetooth broadcast packets returned by the first Bluetooth devices. This makes the entire binding process more direct and simple, eliminating the need for complex user operations. Users can complete device binding faster without waiting for lengthy processes or complex setup steps, thus improving device binding efficiency.
[0055] In one embodiment of this application, after establishing the binding relationship between the user terminal and the first Bluetooth device upon receiving a second Bluetooth broadcast packet fed back by the first Bluetooth device based on the first Bluetooth broadcast packet, the method further includes:
[0056] Receive a third Bluetooth broadcast packet sent by the first Bluetooth device, which carries a first local area network address, wherein the first local area network address is the local area network address of the second Bluetooth device;
[0057] Using the first local area network address, a binding relationship is established between the user terminal and the second Bluetooth device, wherein the second Bluetooth device is a Bluetooth device located outside the Bluetooth range of the user terminal.
[0058] In this embodiment, after the user terminal completes the binding with the first Bluetooth device, the first Bluetooth device can act as a relay device to forward the third Bluetooth broadcast packet from the second Bluetooth device, which is outside the Bluetooth range, to the user terminal, thereby achieving the binding between the user terminal and the second Bluetooth device outside the Bluetooth range. The third Bluetooth broadcast packet is the Bluetooth broadcast packet to be bound.
[0059] In one embodiment of this application, establishing the binding relationship between the user terminal and the first Bluetooth device includes:
[0060] The user terminal and the first Bluetooth device are bound together using the second local area network address of the first Bluetooth device.
[0061] After establishing the binding relationship between the user terminal and the first Bluetooth device, the method further includes:
[0062] Scan for the fifth Bluetooth broadcast packet within the Bluetooth range of the user terminal; the fifth Bluetooth broadcast packet is used to request the establishment of a Bluetooth connection with the user terminal.
[0063] If the first local area network address is the same as the third local area network address in the fifth Bluetooth broadcast packet, a Bluetooth connection is established between the target Bluetooth device corresponding to the fifth Bluetooth broadcast packet.
[0064] In this embodiment, although a binding relationship is established between the user terminal and the first Bluetooth device, no actual Bluetooth connection is established. Therefore, when establishing a Bluetooth connection between the user terminal and the first Bluetooth device, the user terminal needs to scan for a fifth Bluetooth broadcast within Bluetooth range. This fifth Bluetooth broadcast may be issued by multiple Bluetooth devices, but some of these devices may be bound to other devices of the user terminal. Therefore, it is necessary to compare the first local area network address with the third local area network address in the fifth Bluetooth broadcast to determine which device sent the fifth Bluetooth broadcast to the user terminal in this embodiment. If the two local area network addresses are the same, it indicates that a binding relationship has been established between them, and a Bluetooth connection can then be established with the target Bluetooth device that issued the fifth Bluetooth broadcast.
[0065] In one embodiment of this application, after establishing a Bluetooth connection between the target Bluetooth device corresponding to the fifth Bluetooth broadcast packet when the third LAN address in the fifth Bluetooth broadcast packet is the same as the first LAN address, the method further includes:
[0066] Send a login command carrying the first identifier to the target Bluetooth device;
[0067] If the target Bluetooth device receives a successful authentication result based on the login command, the target Bluetooth device is controlled.
[0068] In this embodiment, after establishing a Bluetooth connection, the user terminal also needs to obtain control permissions over the target Bluetooth device. Therefore, it needs to send a login command to the target Bluetooth device, which then authenticates based on the login command. Specifically, the target Bluetooth device can determine the authentication result by comparing whether the first identifier and the second identifier are the same. If they are the same, the authentication is successful, and control permissions are granted to the user terminal; if they are different, the authentication fails, and control permissions are refused to be granted to the user terminal.
[0069] In one embodiment of this application, sending a second Bluetooth broadcast packet to the user terminal when the second identifier of the first Bluetooth device is different from the first identifier includes:
[0070] If the second identifier of the first Bluetooth device is different from the first identifier, and the binding status of the first Bluetooth device is unbound, then the first identifier is saved as the second identifier, and the second Bluetooth broadcast packet is sent to the user terminal.
[0071] If the second identifier of the first Bluetooth device is different from the first identifier, and the binding status of the first Bluetooth device is already bound, then the already bound identifier in the first Bluetooth device is updated to the first identifier, and the first identifier is determined as the second identifier, and the second Bluetooth broadcast is sent to the user terminal.
[0072] In this embodiment, when the first Bluetooth device receives the first Bluetooth broadcast packet, it may be in a bound state or an unbound state. Therefore, this embodiment needs to explain the situation on a case-by-case basis.
[0073] When the first Bluetooth device is in an unbound state, the first Bluetooth device can store the first identifier, switch from central device mode to peripheral device mode, and send a Bluetooth broadcast packet for device to be bound.
[0074] When the first Bluetooth device is in a bound state, if the locally stored second identifier is inconsistent with the first identifier in the received broadcast content, the locally stored second identifier is updated, and the device mode is changed from central device mode to peripheral device mode, and a Bluetooth broadcast packet for device binding is sent.
[0075] In addition, if the first identifier is the same as the second identifier and the first Bluetooth device is in the bound state, it means that the user terminal and the first Bluetooth device have been bound. In this case, the first Bluetooth device changes from the central device mode to the peripheral device mode and sends a Bluetooth broadcast packet indicating that the device is bound.
[0076] In this embodiment, the accuracy of establishing Bluetooth binding relationships is improved by comparing the first identifier and the second identifier to send the second Bluetooth broadcast packet.
[0077] In one embodiment of this application, after sending a second Bluetooth broadcast packet to the user terminal when the second identifier of the first Bluetooth device is different from the first identifier, the method further includes:
[0078] When the first Bluetooth device establishes a binding relationship with the user terminal, it receives a fourth Bluetooth broadcast packet sent by the second Bluetooth device, which is a Bluetooth device outside the Bluetooth range of the user terminal.
[0079] Determine the first local area network address in the fourth Bluetooth broadcast packet;
[0080] A third Bluetooth broadcast packet carrying the first local area network address is sent to the user terminal so that the user terminal establishes a binding relationship with the second Bluetooth device.
[0081] In this embodiment, after the first Bluetooth device establishes a binding relationship with the user terminal, it broadcasts its locally stored first identifier via Bluetooth. This causes a second Bluetooth device outside the range to detect the broadcast and send a fourth Bluetooth broadcast packet to the first Bluetooth device. The Bluetooth broadcasts carrying the first identifier and the fourth Bluetooth broadcast packet are continuously transmitted. The fourth Bluetooth broadcast packet is an unbound Bluetooth broadcast packet.
[0082] After the first Bluetooth device resolves and obtains the first local area network address, it can send the first local area network address to the user terminal via a third Bluetooth broadcast, thereby enabling the user terminal to establish a binding relationship with the second Bluetooth device.
[0083] In addition, after the second Bluetooth device is successfully paired with the user terminal, it can also be used as a relay device, switching from central device mode to peripheral device mode, to continue sending and receiving Bluetooth broadcast packets, thereby pairing with a third Bluetooth device at a greater distance and achieving long-distance pairing.
[0084] In this embodiment, a Bluetooth device that has already been bound is used as a relay, and Bluetooth broadcasting is used as an intermediary to achieve binding of Bluetooth devices beyond the Bluetooth device itself.
[0085] In one embodiment of this application, after sending a second Bluetooth broadcast packet to the user terminal when the second identifier of the first Bluetooth device is different from the first identifier, the method further includes:
[0086] When a Bluetooth connection is established between the user terminal and the first Bluetooth device, a login command carrying the first identifier is received from the user terminal.
[0087] If the first identifier and the second identifier are the same, an authentication result indicating successful authentication is sent to the user terminal.
[0088] In this embodiment, after establishing a Bluetooth connection, the user terminal also needs to obtain control permissions over the target Bluetooth device. Therefore, it needs to send a login command to the target Bluetooth device, which then authenticates based on the login command. Specifically, the target Bluetooth device can determine the authentication result by comparing whether the first identifier and the second identifier are the same. If they are the same, the authentication is successful, and control permissions are granted to the user terminal; if they are different, the authentication fails, and control permissions are refused to be granted to the user terminal.
[0089] like Figure 2 As shown in the figure, this application embodiment also provides a device binding device 200, applied to a user terminal, the device comprising:
[0090] The first sending module 201 is used to send a first Bluetooth broadcast packet, wherein the first Bluetooth broadcast packet carries a first identifier corresponding to the user terminal;
[0091] The first receiving module 202 is used to establish a binding relationship between the user terminal and the first Bluetooth device when it receives a second Bluetooth broadcast packet fed back by the first Bluetooth device based on the first Bluetooth broadcast packet;
[0092] The second Bluetooth broadcast packet is determined by the first Bluetooth device by comparing the first identifier and the second identifier of the first Bluetooth device, and the second Bluetooth broadcast packet is used to request the user terminal to establish a binding relationship with the first Bluetooth device.
[0093] Optionally, the device binding device 200 further includes:
[0094] The third receiving module is used to receive a third Bluetooth broadcast packet sent by the first Bluetooth device, which carries a first local area network address, wherein the first local area network address is the local area network address of the second Bluetooth device.
[0095] The first establishment module is used to establish a binding relationship between the user terminal and the second Bluetooth device using the first local area network address, wherein the second Bluetooth device is a Bluetooth device located outside the Bluetooth range of the user terminal.
[0096] Optionally, the first receiving module 202 is specifically used for:
[0097] The user terminal and the first Bluetooth device are bound together using the second local area network address of the first Bluetooth device.
[0098] Optionally, the device binding device 200 further includes:
[0099] The scanning module is used to scan for the fifth Bluetooth broadcast packet within the Bluetooth range of the user terminal, the fifth Bluetooth broadcast packet being used to request the establishment of a Bluetooth connection with the user terminal;
[0100] The second establishment module is used to establish a Bluetooth connection between the target Bluetooth device corresponding to the fifth Bluetooth broadcast packet when the first local area network address is the same as the third local area network address in the fifth Bluetooth broadcast packet.
[0101] Optionally, the device binding device 200 further includes:
[0102] The third sending module is used to send a login command carrying the first identifier to the target Bluetooth device;
[0103] The control module is used to control the target Bluetooth device when it receives a successful authentication result from the target Bluetooth device based on the login command.
[0104] like Figure 3 As shown in the illustration, this application also provides a device binding device 300, applied to a first Bluetooth device, the device comprising:
[0105] The second receiving module 301 is used to receive a first Bluetooth broadcast packet sent by a user terminal, wherein the first Bluetooth broadcast packet carries a first identifier corresponding to the user terminal.
[0106] The second sending module 302 is used to send a second Bluetooth broadcast packet to the user terminal when the second identifier of the first Bluetooth device is different from the first identifier. The second Bluetooth broadcast packet is used to establish a binding relationship with the user terminal.
[0107] The second identifier is the identifier of the user terminal pre-stored in the first Bluetooth device.
[0108] Optionally, the second transmitting module 302 includes:
[0109] The first transmitting submodule is configured to, if the second identifier of the first Bluetooth device is different from the first identifier, and the binding status of the first Bluetooth device is unbound, save the first identifier as the second identifier and send the second Bluetooth broadcast packet to the user terminal.
[0110] The second transmitting submodule is configured to, if the second identifier of the first Bluetooth device is different from the first identifier, update the already bound identifier in the first Bluetooth device to the first identifier and determine the first identifier as the second identifier, and send the second Bluetooth broadcast to the user terminal if the binding status of the first Bluetooth device is already bound.
[0111] Optionally, the device binding device 200 further includes:
[0112] The fourth receiving module is used to receive a fourth Bluetooth broadcast packet sent by a second Bluetooth device when the first Bluetooth device establishes a binding relationship with the user terminal. The second Bluetooth device is a Bluetooth device that is outside the Bluetooth range of the user terminal.
[0113] The determining module is used to determine the first local area network address in the fourth Bluetooth broadcast packet;
[0114] The fourth sending module is used to send a third Bluetooth broadcast packet carrying the first local area network address to the user terminal, so that the user terminal establishes a binding relationship with the second Bluetooth device.
[0115] Optionally, the device binding device 200 further includes:
[0116] The fifth receiving module is used to receive a login command carrying the first identifier sent by the user terminal when the user terminal establishes a Bluetooth connection with the first Bluetooth device.
[0117] The fifth sending module is used to send an authentication result indicating successful authentication to the user terminal when the first identifier and the second identifier are the same.
[0118] It should be noted that the device binding device 300 is a device corresponding to the device binding method applied to the server described above. All implementation methods in the above method embodiments are applicable to the embodiments of this device and can achieve the same technical effect.
[0119] Figure 4 A schematic diagram of the hardware structure of the terminal device provided in an embodiment of this application is shown.
[0120] The terminal device may include a processor 401 and a memory 402 storing computer program instructions.
[0121] Specifically, the processor 401 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0122] Memory 402 may include mass storage for data or instructions. For example, and not limitingly, memory 402 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 402 may include removable or non-removable (or fixed) media. Where appropriate, memory 402 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 402 is non-volatile solid-state memory.
[0123] In a particular embodiment, memory 402 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Thus, generally, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this disclosure.
[0124] The processor 401 implements any of the device bonding methods described in the above embodiments by reading and executing computer program instructions stored in the memory 402.
[0125] In one example, the terminal device may also include a communication interface 404 and a bus 410. Wherein, as... Figure 4 As shown, the processor 401, memory 402, and communication interface 404 are connected through bus 410 and complete communication with each other.
[0126] Communication interface 404 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0127] Bus 410 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 410 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.
[0128] Furthermore, in conjunction with the device binding methods in the above embodiments, this application embodiment can provide a computer storage medium for implementation. This computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the device binding methods in the above embodiments.
[0129] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0130] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0131] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0132] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable device-attached means to produce a machine such that these instructions, which execute via the processor of the computer or other programmable device-attached means, enable the implementation of the function / action specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified function or action, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0133] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A device binding method, characterized in that, Applied to user terminals, the methods include: Send a first Bluetooth broadcast packet, the first Bluetooth broadcast packet carrying a first identifier corresponding to the user terminal; Upon receiving a second Bluetooth broadcast packet from the first Bluetooth device based on the first Bluetooth broadcast packet, a binding relationship is established between the user terminal and the first Bluetooth device; The second Bluetooth broadcast packet is determined by the first Bluetooth device by comparing the first identifier and the second identifier of the first Bluetooth device, and the second Bluetooth broadcast packet is used to request the user terminal to establish a binding relationship with the first Bluetooth device.
2. The device binding method as described in claim 1, characterized in that, After establishing the binding relationship between the user terminal and the first Bluetooth device upon receiving a second Bluetooth broadcast packet fed back by the first Bluetooth broadcast packet based on the first Bluetooth broadcast packet, the method further includes: Receive a third Bluetooth broadcast packet sent by a first Bluetooth device, which carries a first local area network address, wherein the first local area network address is the local area network address of the second Bluetooth device; Using the first local area network address, a binding relationship is established between the user terminal and the second Bluetooth device, wherein the second Bluetooth device is a Bluetooth device located outside the Bluetooth range of the user terminal.
3. The device binding method as described in claim 1, characterized in that, Establishing the binding relationship between the user terminal and the first Bluetooth device includes: The user terminal and the first Bluetooth device are bound together using the second local area network address of the first Bluetooth device. After establishing the binding relationship between the user terminal and the first Bluetooth device, the method further includes: Scan for the fifth Bluetooth broadcast packet within the Bluetooth range of the user terminal; the fifth Bluetooth broadcast packet is used to request the establishment of a Bluetooth connection with the user terminal. If the first local area network address is the same as the third local area network address in the fifth Bluetooth broadcast packet, a Bluetooth connection is established between the target Bluetooth device corresponding to the fifth Bluetooth broadcast packet.
4. The device binding method as described in claim 3, characterized in that, When the third LAN address in the fifth Bluetooth broadcast packet is the same as the first LAN address, after establishing a Bluetooth connection between the target Bluetooth device corresponding to the fifth Bluetooth broadcast packet, the method further includes: Send a login command carrying the first identifier to the target Bluetooth device; If the target Bluetooth device receives a successful authentication result based on the login command, the target Bluetooth device is controlled.
5. A device binding method, characterized in that, Applied to a first Bluetooth device, the method includes: Receive a first Bluetooth broadcast packet sent by a user terminal, wherein the first Bluetooth broadcast packet carries a first identifier corresponding to the user terminal; If the second identifier of the first Bluetooth device is different from the first identifier, a second Bluetooth broadcast packet is sent to the user terminal. The second Bluetooth broadcast packet is used to establish a binding relationship with the user terminal. The second identifier is the identifier of the user terminal pre-stored in the first Bluetooth device.
6. The device binding method as described in claim 5, characterized in that, The step of sending a second Bluetooth broadcast packet to the user terminal when the second identifier of the first Bluetooth device is different from the first identifier includes: If the second identifier of the first Bluetooth device is different from the first identifier, and the binding status of the first Bluetooth device is unbound, then the first identifier is saved as the second identifier, and the second Bluetooth broadcast packet is sent to the user terminal. If the second identifier of the first Bluetooth device is different from the first identifier, and the binding status of the first Bluetooth device is already bound, then the already bound identifier in the first Bluetooth device is updated to the first identifier, and the first identifier is determined as the second identifier, and the second Bluetooth broadcast is sent to the user terminal.
7. The device binding method as described in claim 5, characterized in that, After sending a second Bluetooth broadcast packet to the user terminal when the second identifier of the first Bluetooth device is different from the first identifier, the method further includes: When the first Bluetooth device establishes a binding relationship with the user terminal, it receives a fourth Bluetooth broadcast packet sent by the second Bluetooth device, which is a Bluetooth device outside the Bluetooth range of the user terminal. Determine the first local area network address in the fourth Bluetooth broadcast packet; A third Bluetooth broadcast packet carrying the first local area network address is sent to the user terminal so that the user terminal establishes a binding relationship with the second Bluetooth device.
8. The device binding method as described in claim 7, characterized in that, After sending a second Bluetooth broadcast packet to the user terminal when the second identifier of the first Bluetooth device is different from the first identifier, the method further includes: When a Bluetooth connection is established between the user terminal and the first Bluetooth device, a login command carrying the first identifier is received from the user terminal. If the first identifier and the second identifier are the same, an authentication result indicating successful authentication is sent to the user terminal.
9. A device binding device, characterized in that, The device, applied to a user terminal, includes: The first sending module is used to send a first Bluetooth broadcast packet, wherein the first Bluetooth broadcast packet carries a first identifier corresponding to the user terminal; The first receiving module is configured to establish a binding relationship between the user terminal and the first Bluetooth device upon receiving a second Bluetooth broadcast packet fed back by the first Bluetooth device based on the first Bluetooth broadcast packet; The second Bluetooth broadcast packet is determined by the first Bluetooth device by comparing the first identifier and the second identifier of the first Bluetooth device, and the second Bluetooth broadcast packet is used to request the user terminal to establish a binding relationship with the first Bluetooth device.
10. A device binding device, characterized in that, Applied to a first Bluetooth device, the device includes: The second receiving module is used to receive a first Bluetooth broadcast packet sent by the user terminal, wherein the first Bluetooth broadcast packet carries a first identifier corresponding to the user terminal. The second sending module is used to send a second Bluetooth broadcast packet to the user terminal when the second identifier of the first Bluetooth device is different from the first identifier. The second Bluetooth broadcast packet is used to establish a binding relationship with the user terminal. The second identifier is the identifier of the user terminal pre-stored in the first Bluetooth device.
11. A terminal device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the device bonding method as described in any one of claims 1-8.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, implement the device bonding method as described in any one of claims 1-8.
13. A computer program product, characterized in that, The computer product includes a computer program that, when executed by a processor, implements the device binding method according to any one of claims 1-8.