Binding method, device, equipment, storage medium and product of Internet of Things devices

By encoded information from IoT devices into audio sub-signals for broadcasting, the problem of cumbersome binding process between mobile terminals and IoT devices is solved, and more efficient binding efficiency is achieved.

CN115086370BActive Publication Date: 2024-11-29GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202210633136.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-06
Publication Date
2024-11-29
Estimated Expiration
2042-06-06

AI Technical Summary

Technical Problem

In the prior art, the binding process between mobile terminals and Internet of Things devices is cumbersome, and QR codes are required to scan, resulting in inefficiency.

Method used

By encoded device information of IoT devices into encoded characters and converting them into audio sub-signals to broadcast on the audio channel, the mobile terminal can receive and decode to achieve binding.

Benefits of technology

The binding process between IoT devices and mobile terminals is simplified, the binding efficiency is improved, and the complexity of the binding process is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086370B_ABST
    Figure CN115086370B_ABST
Patent Text Reader

Abstract

The present application provides a binding method, apparatus, device, storage medium and product for an IoT device, belonging to the field of IoT technology. The method includes: obtaining device information of an IoT device; encoding the device information to obtain coded data, the coded data including multiple coded characters corresponding to the device information; converting the multiple coded characters into multiple first audio sub-signals; broadcasting the first audio sub-signals corresponding to the audio channels on multiple audio channels respectively, the multiple first audio sub-signals are used for decoding by a mobile terminal to obtain device information, and binding with the IoT device based on the device information. The method improves the efficiency of the mobile terminal in obtaining the device information of the IoT device, simplifies the binding process between the mobile terminal and the IoT device, and thus improves the efficiency of binding the mobile terminal with the IoT device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a binding method, apparatus, device, storage medium and product for Internet of Things devices. Background Art

[0002] With the development of the Internet of Things, there are more and more Internet of Things devices, such as air conditioners, door locks, etc. In order to improve the convenience of operating Internet of Things devices, these Internet of Things devices can be controlled through mobile terminals. For example, the air conditioner can be turned on or the temperature can be adjusted through the mobile terminal; for another example, the door lock can be controlled through the mobile terminal. Before the mobile terminal controls the Internet of Things device, it is generally necessary to bind the mobile terminal to the Internet of Things device.

[0003] In the related art, when a mobile terminal is bound to the IoT device, the mobile terminal generally scans a QR code generated based on the device information of the IoT device, and then obtains the device information of the IoT device through the QR code, so as to bind to the IoT device based on the device information.

[0004] Since the mobile terminal needs to scan the QR code of the IoT device to achieve binding with the IoT device, the binding process between the mobile terminal and the IoT device is relatively cumbersome, thereby reducing the efficiency of binding between the mobile terminal and the IoT device. Summary of the invention

[0005] The embodiments of the present application provide a method, apparatus, device, storage medium and product for binding an IoT device, which can improve the efficiency of binding a mobile terminal with an IoT device. The technical solution is as follows:

[0006] On the one hand, a method for binding an IoT device is provided, the method comprising:

[0007] Get device information of IoT devices;

[0008] Encoding the device information to obtain encoded data, wherein the encoded data includes a plurality of encoded characters corresponding to the device information;

[0009] Converting the plurality of coded characters into a plurality of first audio sub-signals;

[0010] On multiple audio channels, first audio sub-signals corresponding to the audio channels are broadcasted respectively, and the multiple first audio sub-signals are used for the mobile terminal to decode and obtain the device information, and bind with the Internet of Things device based on the device information.

[0011] On the other hand, a method for binding an IoT device is provided, the method comprising:

[0012] Perform signal detection on multiple audio channels to obtain multiple first audio sub-signals broadcast by the IoT device;

[0013] Converting the plurality of first audio sub-signals into a plurality of coded characters;

[0014] Decoding the multiple coded characters to obtain device information of the IoT device;

[0015] Based on the device information, binding is performed with the IoT device.

[0016] On the other hand, a binding device for an Internet of Things device is provided, the device comprising:

[0017] The acquisition module is used to obtain the device information of the IoT device;

[0018] An encoding module, used for encoding the device information to obtain encoded data, wherein the encoded data includes a plurality of encoded characters corresponding to the device information;

[0019] A first conversion module, configured to convert the plurality of coded characters into a plurality of first audio sub-signals;

[0020] The broadcast module is used to broadcast the first audio sub-signals corresponding to the audio channels on multiple audio channels respectively, and the multiple first audio sub-signals are used for the mobile terminal to decode and obtain the device information, and bind with the Internet of Things device based on the device information.

[0021] On the other hand, a binding device for an Internet of Things device is provided, the device comprising:

[0022] A detection module, used to perform signal detection on multiple audio channels to obtain multiple first audio sub-signals broadcast by the IoT device;

[0023] A second conversion module, used for converting the plurality of first audio sub-signals into a plurality of coded characters;

[0024] A decoding module, used for decoding the plurality of coded characters to obtain device information of the IoT device;

[0025] The first binding module is used to bind with the Internet of Things device based on the device information.

[0026] On the other hand, an Internet of Things device is provided, comprising one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the binding method of the Internet of Things device described in any of the above-mentioned implementation methods.

[0027] On the other hand, a mobile terminal is provided, comprising one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the binding method of the Internet of Things device described in any of the above-mentioned implementation methods.

[0028] On the other hand, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the binding method of the Internet of Things device described in any of the above implementation modes.

[0029] On the other hand, a computer program product is provided, wherein the computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the binding method of an Internet of Things device as described in any of the above implementations.

[0030] The present application provides a binding method for an Internet of Things device. Since the Internet of Things device encodes its device information into coded characters, and converts the coded characters into audio sub-signals and broadcasts them on an audio channel, the Internet of Things device can output its own device information through the audio sub-signals, and then the mobile terminal can obtain the device information of the Internet of Things device by receiving the audio sub-signals, thereby realizing binding with the Internet of Things device. This method improves the efficiency of the mobile terminal in obtaining the device information of the Internet of Things device, simplifies the binding process between the mobile terminal and the Internet of Things device, and thus improves the efficiency of binding the mobile terminal with the Internet of Things device. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram showing an implementation environment of an exemplary embodiment of the present application is shown;

[0032] Figure 2 A flowchart of a method for binding an IoT device shown in an exemplary embodiment of the present application is shown;

[0033] Figure 3 A flowchart of a method for binding an IoT device shown in an exemplary embodiment of the present application is shown;

[0034] Figure 4 A flowchart of a method for binding an IoT device shown in an exemplary embodiment of the present application is shown;

[0035] Figure 5 A schematic diagram of encoded data shown in an exemplary embodiment of the present application is shown;

[0036] Figure 6A schematic diagram showing broadcasting a first audio sub-signal on an audio channel according to an exemplary embodiment of the present application is shown;

[0037] Figure 7 A schematic diagram of sending and receiving an audio sub-signal according to an exemplary embodiment of the present application is shown;

[0038] Figure 8 A flowchart of a method for binding an IoT device shown in an exemplary embodiment of the present application is shown;

[0039] Fig. 9 A block diagram of a binding device for an Internet of Things device shown in an exemplary embodiment of the present application is shown;

[0040] Fig.10 A block diagram of a binding device for an Internet of Things device shown in an exemplary embodiment of the present application is shown;

[0041] Fig.11 A block diagram of an Internet of Things device shown in an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0042] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0043] The "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of related objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects before and after are in an "or" relationship. In addition, the relevant data involved in this application can be data authorized by the user or fully authorized by all parties.

[0044] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the device information involved in this application is obtained with full authorization.

[0045] Please refer to Figure 1, which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. In the implementation environment, an Internet of Things device 100 and a mobile terminal 200 are involved, and the Internet of Things device 100 and the mobile terminal 200 are connected in a wired or wireless manner. In some embodiments, the Internet of Things device 100 outputs its own device information. After the mobile terminal 200 obtains the device information, it binds with the Internet of Things device 100 based on the device information, and then the Internet of Things device 100 can be controlled by the mobile terminal 200. Among them, the Internet of Things device 100 can be a smart home, a wearable device, a TV, a headset, a smart phone, a tablet computer, etc.; the mobile terminal 200 can be a smart phone, a tablet computer, etc., which is not specifically limited here.

[0046] Please refer to Figure 2 , which shows a flowchart of a method for binding an IoT device shown in an exemplary embodiment of the present application. The execution subject in the embodiment of the present application is an IoT device, and the method includes:

[0047] 201. Obtain device information of the IoT device.

[0048] 202. Encode the device information to obtain encoded data, where the encoded data includes a plurality of encoded characters corresponding to the device information.

[0049] 203. Convert a plurality of coded characters into a plurality of first audio sub-signals.

[0050] 204. Broadcast first audio sub-signals corresponding to the audio channels on multiple audio channels respectively. The multiple first audio sub-signals are used for decoding by the mobile terminal to obtain device information, and are bound to the IoT device based on the device information.

[0051] In some embodiments, encoding the device information to obtain encoded data includes:

[0052] Encode the device information to obtain information characters;

[0053] Acquire a leading character, a header character, and an anti-interference character, wherein the leading character is used to identify types of the plurality of first audio sub-signals, the header character is used to identify contents of the plurality of first audio sub-signals, and the anti-interference character is used to increase decoding difficulty of the plurality of first audio sub-signals;

[0054] The leading character, header character, information character and anti-interference character are concatenated in sequence to generate encoded data.

[0055] In some embodiments, the leading character, the header character, the information character and the anti-interference character are sequentially concatenated to generate the encoded data, including:

[0056] Determine the number of characters in the message character;

[0057] The leading character, header character, length character, information character and anti-interference character are concatenated in sequence to obtain the encoded data, and the length character is used to store the number of characters.

[0058] In some embodiments, the device information includes a plurality of sub-information; the device information is encoded to obtain information characters, including:

[0059] Based on the first information comparison table, first information identifiers corresponding to the plurality of sub-information are obtained to obtain a plurality of first information identifiers, and the plurality of first information identifiers are encoded to obtain information characters, wherein the first information comparison table is used to store the correspondence between the sub-information and the first information identifier; or

[0060] Based on the first information comparison table, obtain the first information identifiers corresponding to the multiple sub-information respectively to obtain multiple first information identifiers; based on the second information comparison table, obtain a second information identifier corresponding to the multiple first information identifiers, encode the second information identifier to obtain information characters; the first information comparison table is used to store the correspondence between the sub-information and the first information identifier, and the second information comparison table is used to store the correspondence between the second information identifier and the multiple first information identifiers.

[0061] In some embodiments, encoding the device information to obtain information characters includes:

[0062] Determine first device information from the device information, the first device information being necessary device information, and encode the first device information to obtain information characters;

[0063] The process of obtaining anti-interference characters includes:

[0064] The second device information is determined from the device information, where the second device information is auxiliary device information, and the second device information is encoded to obtain an anti-interference character.

[0065] In some embodiments, broadcasting first audio sub-signals corresponding to the audio channels respectively on multiple audio channels includes:

[0066] Determining broadcasting times of a plurality of first audio sub-signals;

[0067] The plurality of first audio sub-signals are broadcast on a plurality of audio channels based on broadcasting times of the plurality of first audio sub-signals.

[0068] In some embodiments, broadcasting the plurality of first audio sub-signals on the plurality of audio channels based on the broadcasting times of the plurality of first audio sub-signals includes:

[0069] The broadcasting times of the multiple first audio sub-signals are all different. Then, whenever a first broadcasting time is reached, the corresponding first audio sub-signal is broadcast on the first audio channel. The first broadcasting time is any broadcasting time among the broadcasting times of the multiple first audio sub-signals. The broadcasting time of the first audio sub-signal broadcast on the first audio channel is the first broadcasting time; or,

[0070] The broadcasting times of the plurality of first audio sub-signals are all the same, then when the second broadcasting time is reached, the plurality of first audio sub-signals are broadcasted simultaneously on the plurality of audio channels, and the second broadcasting time is the broadcasting time of the plurality of first audio sub-signals;

[0071] The broadcasting times of the multiple first audio sub-signals are partially the same. Then, each time the third broadcasting time is reached, the corresponding multiple first audio sub-signals are broadcast on the multiple second audio channels respectively, and the broadcasting time of the multiple first audio sub-signals broadcast on the second audio channels is the third broadcasting time.

[0072] In some embodiments, the method further comprises:

[0073] receiving a plurality of second audio sub-signals from a mobile terminal, where the plurality of second audio sub-signals are used to request binding with an Internet of Things device;

[0074] Binding is performed with the mobile terminal based on the multiple second audio sub-signals.

[0075] In some embodiments, binding with a mobile terminal based on multiple second audio sub-signals includes at least one of the following implementations:

[0076] When the IoT device is not bound to other mobile terminals, binding with the mobile terminal based on multiple second audio sub-signals; or

[0077] When the IoT device is not bound to other mobile terminals, determine the first network information to which the IoT device is connected and the second network information to which the mobile terminal is connected, and when the first network information and the second network information are the same, bind the IoT device to the mobile terminal based on the multiple second audio sub-signals; or

[0078] In the case where the IoT device has been bound to other mobile terminals, sending a confirmation request to the other mobile terminals, the confirmation request carrying device information of the mobile terminal, and upon receiving a confirmation indication returned by the other mobile terminals, binding with the mobile terminal based on the multiple second audio sub-signals; or

[0079] When the IoT device is bound to other mobile terminals, determine whether the device information of the mobile terminal is in the sharing list of other mobile terminals. If the device information of the mobile terminal is in the sharing list, bind the mobile terminal based on multiple second audio sub-signals.

[0080] The present application provides a binding method for an Internet of Things device. Since the Internet of Things device encodes its device information into coded characters, and converts the coded characters into audio sub-signals and broadcasts them on an audio channel, the Internet of Things device can output its own device information through the audio sub-signals, and then the mobile terminal can obtain the device information of the Internet of Things device by receiving the audio sub-signals, thereby realizing binding with the Internet of Things device. This method improves the efficiency of the mobile terminal in obtaining the device information of the Internet of Things device, simplifies the binding process between the mobile terminal and the Internet of Things device, and thus improves the efficiency of binding the mobile terminal with the Internet of Things device.

[0081] Please refer to Figure 3 , which shows a flowchart of a method for binding an IoT device shown in an exemplary embodiment of the present application. The execution subject in the embodiment of the present application is a mobile terminal, and the method includes:

[0082] 301. Perform signal detection on multiple audio channels to obtain multiple first audio sub-signals broadcast by IoT devices.

[0083] 302. Convert a plurality of first audio sub-signals into a plurality of coded characters.

[0084] 303. Decode the multiple encoded characters to obtain device information of the IoT device.

[0085] 304. Bind with IoT devices based on device information.

[0086] In some embodiments, converting the plurality of first audio sub-signals into a plurality of coded characters comprises:

[0087] Converting the multiple first audio sub-signals into a character string, where the character string includes a leading character, a header character, and a target character that are sequentially concatenated, the leading character is used to identify the types of the multiple first audio sub-signals, the header character is used to identify the contents of the multiple first audio sub-signals, the target character is a character generated based on the information character and the anti-interference character, the information character is used to store device information of the IoT device, and the anti-interference character is used to increase the difficulty of decoding the multiple first audio sub-signals;

[0088] When the plurality of first audio sub-signals are verified to be successful based on the leading character and the header character, information characters are identified from the target characters, where the information characters include a plurality of coded characters.

[0089] In some embodiments, the plurality of first audio sub-signals include a leading signal, a header signal, and a target signal that are sequentially concatenated, and converting the plurality of first audio sub-signals into a plurality of coded characters includes:

[0090] Converting the leading signal to obtain a leading character, where the leading character is used to identify types of the plurality of first audio sub-signals;

[0091] In the case where the leading character is a target leading character, the header signal and the target signal are converted to obtain a header character and a target character;

[0092] When the plurality of first audio sub-signals are verified to be successful based on the header characters, information characters are identified from the target characters, where the information characters include a plurality of coded characters.

[0093] In some embodiments, identifying the information character from the target character includes:

[0094] Parsing a target length of information characters from a plurality of first audio sub-signals;

[0095] Starting from the first character in the target character set, read characters of the target length to obtain information characters.

[0096] In some embodiments, converting the header signal and the target signal to obtain the header character and the target character includes:

[0097] Obtaining the signal strength corresponding to the pilot signal;

[0098] In the case where the signal strengths corresponding to the header signal and the target signal respectively match the signal strengths, the header signal and the target signal are converted to obtain the header character and the target character.

[0099] In some embodiments, converting the plurality of first audio sub-signals into a plurality of coded characters comprises:

[0100] determining a distance between the mobile terminal and the Internet of Things device, and converting the plurality of first audio sub-signals into a plurality of coded characters when the distance is less than a distance threshold; or

[0101] Determine the distance between the mobile terminal and the Internet of Things device, and output prompt information when the distance is less than a distance threshold, the prompt information is used to prompt whether to process multiple first audio sub-signals after receiving the audio sub-signal, and when a confirmation indication is received, convert the multiple first audio sub-signals into multiple coded characters, and the confirmation indication includes a confirmation indication triggered by any one of a touch screen operation and a key operation.

[0102] In some embodiments, determining the distance between the mobile terminal and the IoT device includes:

[0103] Based on the sound waves corresponding to the multiple first audio sub-signals, the distance between the mobile terminal and the Internet of Things device is measured to obtain the distance.

[0104] In some embodiments, binding with an IoT device based on device information includes:

[0105] If the target application is not installed in the mobile terminal, the target application is installed in the mobile terminal, where the target application is the application corresponding to the IoT device;

[0106] In the target application, bind with IoT devices based on device information.

[0107] The present application provides a binding method for an Internet of Things device. After a mobile terminal receives multiple first audio sub-signals sent by the Internet of Things device, it can obtain device information of the Internet of Things device by converting and decoding the multiple first audio sub-signals, thereby improving the efficiency of the mobile terminal in obtaining the device information of the Internet of Things device, simplifying the binding process between the mobile terminal and the Internet of Things device, and thus improving the efficiency of binding the mobile terminal and the Internet of Things device.

[0108] Please refer to Figure 4 , which shows a flow chart of a method for binding an IoT device shown in an exemplary embodiment of the present application. The method includes:

[0109] 401. The IoT device obtains device information of the IoT device.

[0110] Among them, the device information includes at least one of the device type information, device peripheral configuration information, communication mode information supported by the device, device identification information and extension information of the IoT device. The device type information is used to indicate which type of IoT device the IoT device belongs to, including at least one of smart phones, smart TVs, smart home devices, wearable devices or headphone devices. The device peripheral configuration information is used to indicate the indication method by which the IoT device is bound to the mobile terminal. For example, if the IoT device includes a button, the device peripheral configuration information is used to indicate that the IoT device can be bound to the mobile terminal through a button operation indication; if the IoT device includes a touchable screen, the device peripheral configuration information is used to indicate that the IoT device can be bound to the mobile terminal through a touch operation indication. The communication mode information supported by the device includes at least one of the communication protocol (Bit Torrent, BT), Bluetooth Low Energy (Bluetooth LowEnergy, BLE), wireless network communication technology (WIFI) and wireless cellular network. The device identification information includes at least one of the brand, model, version, etc. of the IoT device. The extended information includes at least one of the channel information, frequency information, wireless access point (AP), AP password and preset key of the IoT device for transmitting audio sub-signals by the IoT device. The preset key is used to encrypt information transmitted from the IoT device to the mobile terminal after the IoT device is bound to the mobile terminal.

[0111] 402. The IoT device encodes the device information to obtain information characters.

[0112] In some embodiments, the IoT device encodes the device information in a header encoding manner to obtain information characters, which are represented by binary characters, that is, the information characters are represented by 0 and 1. It should be noted that the IoT device can also encode the device information in other ways, which are not specifically limited here.

[0113] In some embodiments, the IoT device encodes the device information to obtain information characters, including the following steps: the IoT device determines first device information from the device information, the first device information is necessary device information, and then the IoT device encodes the first device information to obtain information characters.

[0114] The first device information is necessary information for binding the IoT device to the mobile terminal, such as at least one of the device identification information and the communication mode information supported by the device, which is not specifically limited here. In this embodiment, only the necessary device information of the IoT device is encoded to obtain the information character, so that the information character is as short as possible while meeting the information volume, thereby improving the broadcast efficiency and the accuracy of parsing the audio sub-signal.

[0115] In some embodiments, the device information includes multiple sub-information. In order to make the encoded data as short as possible, improve the efficiency of the IoT device in broadcasting audio sub-signals and the accuracy of the mobile terminal in parsing audio sub-signals, the IoT device also encodes the device information in the following way to obtain information characters.

[0116] In one implementation, the IoT device obtains first information identifiers corresponding to multiple sub-information based on a first information comparison table, obtains multiple first information identifiers, encodes the multiple first information identifiers, and obtains information characters. The first information comparison table is used to store the correspondence between the sub-information and the first information identifier.

[0117] The plurality of sub-information includes at least two of the following: device type information, device peripheral configuration information, device supported communication mode information, device identification information, and extended information, which are not specifically limited here. The number of coded characters of the plurality of sub-information is respectively less than the number of coded characters of the corresponding first information identification.

[0118] It should be noted that the first information comparison table is an information comparison table agreed upon by the IoT device and the mobile terminal, which is stored on the IoT device side and the mobile terminal side respectively. The IoT device encodes the device information based on the first information comparison table to obtain information characters, and the mobile terminal decodes the information characters based on the first information comparison table to obtain device information. In this implementation, by encoding the information identifier of the sub-information to obtain the information characters, the number of characters of the information characters can be reduced, making the encoded data as short as possible, thereby improving the broadcast efficiency and parsing accuracy of the audio sub-signal.

[0119] In another implementation, the IoT device obtains first information identifiers corresponding to multiple sub-information based on a first information comparison table to obtain multiple first information identifiers, obtains a second information identifier corresponding to the multiple first information identifiers based on a second information comparison table, encodes the second information identifier to obtain information characters, and the first information comparison table is used to store the correspondence between the sub-information and the first information identifier, and the second information comparison table is used to store the correspondence between the second information identifier and multiple first information identifiers.

[0120] The number of coded characters of the plurality of first information identifiers is greater than the number of coded characters of the second information identifier. In this implementation, by encoding the plurality of first information identifiers corresponding to one second information identifier to obtain information characters, the number of coded characters of the device information is further reduced, thereby further improving the broadcast efficiency and parsing accuracy of the audio sub-signal.

[0121] 403. The IoT device obtains leading characters, header characters and anti-interference characters.

[0122] Among them, the leading character is used to identify the type of multiple first audio sub-signals, the header character is used to identify the content of multiple first audio sub-signals, and the anti-interference character is used to increase the decoding difficulty of multiple first audio sub-signals. The leading character, header character and anti-interference character are expressed in the same form as the information character, such as being represented by binary characters. Optionally, the length of the leading character is fixed, and the content of the leading character can be set and changed as needed, such as the leading character is set to 01010101. The length of the header character can also be fixed, which is used to indicate the content of the multiple first audio sub-signals, which may include the purpose of the IoT device broadcasting the audio sub-signal, such as the purpose of binding with a mobile terminal.

[0123] Among them, the multiple coded characters respectively included in the information character, the leading character, the header character and the anti-interference character are used to convert into multiple first audio sub-signals, and the multiple first audio sub-signals are broadcast on the audio channel to bind the Internet of Things device to the mobile terminal. In this embodiment, by setting the leading character and the header character of a fixed length, when the multiple first audio sub-signals are subsequently parsed, the leading character and the header character can be quickly parsed based on the fixed length, thereby improving the parsing efficiency of the multiple first audio sub-signals.

[0124] The anti-interference character can be set and changed as needed. For example, the anti-interference character is a cyclic redundancy check (CRC) character to increase the difficulty of decoding the first audio sub-signals by increasing the anti-interference capability of the first audio sub-signals.

[0125] In some embodiments, the process of obtaining anti-interference characters by an IoT device includes the following steps: the IoT device determines second device information from the device, the second device information is auxiliary device information, and then the IoT device encodes the second device information to obtain anti-interference characters. The auxiliary device information includes at least one of device type information, device peripheral configuration information, and extended information. In this embodiment, by using the auxiliary device information as the anti-interference character, not only the anti-interference capability of the multiple first audio sub-signals is achieved, but also the device information carried by the multiple first audio sub-signals is enriched, thereby improving the effectiveness of the transmission information of the multiple first audio sub-signals.

[0126] 404. The IoT device sequentially concatenates the leading character, the header character, the information character, and the anti-interference character to generate encoded data.

[0127] The coded data includes a plurality of coded characters corresponding to the device information. In some embodiments, the IoT device sequentially concatenates the leading character, the header character, the information character, and the anti-interference character to generate coded data, including the following steps: the IoT device determines the number of characters of the information character; the IoT device sequentially concatenates the leading character, the header character, the length character, the information character, and the anti-interference character to obtain coded data, and the length character is used to store the number of characters. Figure 5 , which shows a schematic diagram of encoded data shown in an exemplary embodiment of the present application.

[0128] In this embodiment, by splicing the length character of the number of characters storing information characters into the encoded data, the mobile terminal can quickly and effectively distinguish information characters from anti-interference characters based on the length character during decoding, thereby improving the efficiency of decoding multiple first audio sub-signals.

[0129] In this embodiment, the leading character, the header character, the information character and the anti-interference character are sequentially concatenated to generate coded data, so that the coded data can not only identify the types and contents of the multiple first audio sub-signals, but also can achieve anti-interference for the multiple first audio sub-signals, thereby ensuring the safe and effective transmission of the multiple first audio sub-signals.

[0130] 405. The IoT device converts the multiple coded characters into multiple first audio sub-signals.

[0131] In some embodiments, the IoT device converts the plurality of coded characters into a plurality of first audio sub-signals having a preset frequency and a preset duration. The preset durations of the plurality of first audio sub-signals may be the same, such as 1 millisecond. The preset frequencies of the plurality of first audio sub-signals may be different, and any first audio sub-signal may determine its corresponding audio channel based on the preset frequency, and the corresponding audio channel is used to transmit the first audio sub-signal of the preset frequency.

[0132] 406. The Internet of Things device broadcasts the first audio sub-signals corresponding to the audio channels on multiple audio channels respectively.

[0133] Among them, the multiple first audio sub-signals are used for the mobile terminal to decode and obtain device information, and are bound to the IoT device based on the device information. One audio channel corresponds to one first audio sub-signal, and the audio channel is used to broadcast the corresponding first audio sub-signal. Optionally, the multiple audio channels are audio channels arranged in sequence, and the multiple first audio sub-signals correspond to the multiple audio channels respectively according to their arrangement order.

[0134] Among them, one first audio sub-signal corresponds to one coding character, that is, one audio channel corresponds to one coding character; for example, the coding character is a binary coding character, that is, the coding character is represented by 0 and 1, and for audio channels f1, f2, f3 and f4, f1 and f3 are audio channels corresponding to character 0, and f2 and f4 are audio channels corresponding to character 1. In some embodiments, multiple audio channels are arranged in sequence, and one first audio sub-signal is broadcasted in sequence, and then the mobile terminal converts the multiple first audio sub-signals of the multiple audio channels detected to obtain multiple coding characters arranged in sequence in the coded data.

[0135] In some embodiments, the Internet of Things device broadcasts the first audio sub-signals corresponding to the audio channels on multiple audio channels respectively, including the following steps: the Internet of Things device determines the broadcast time of the multiple first audio sub-signals; the Internet of Things device broadcasts the multiple first audio sub-signals on the multiple audio channels based on the broadcast time of the multiple first audio sub-signals.

[0136] In one implementation, the IoT device broadcasts the plurality of first audio sub-signals on the plurality of audio channels based on the broadcasting times of the plurality of first audio sub-signals, including at least one of the following implementations:

[0137] In one implementation, the broadcast times of multiple first audio sub-signals are different. Whenever the first broadcast time is reached, the Internet of Things device broadcasts its corresponding first audio sub-signal on the first audio channel. The first broadcast time is any broadcast time among the broadcast times of the multiple first audio sub-signals, and the broadcast time of the first audio sub-signal broadcast on the first audio channel is the first broadcast time.

[0138] Optionally, the broadcasting order of the plurality of first audio sub-signals corresponds to the arrangement order of the plurality of coded characters, that is, the broadcasting time of the first audio sub-signals of the coded characters arranged in the front is earlier than the broadcasting time of the first audio sub-signals of the coded characters arranged in the back. Figure 6 , which shows a schematic diagram of an exemplary embodiment of the present application showing the broadcasting of a first audio sub-signal on an audio channel; wherein, there are 4 coding characters, the multiple coding characters are respectively 0101, the multiple audio channels are respectively audio channels f1, f2, f3 and f4, and the broadcasting duration of each first audio sub-signal is 1 millisecond. Then, the Internet of Things device sequentially and continuously sends out the first audio sub-signal with a preset frequency of 1 millisecond on the audio channels f1, f2, f3 and f4, that is, the time taken to send out the four coding characters 0101 is 4 milliseconds.

[0139] In this implementation, by broadcasting multiple first audio sub-signals at different broadcast times, the mobile terminal can receive the multiple first audio sub-signals in sequence at different broadcast times, thereby reducing the performance requirements of the Internet of Things device and the mobile terminal for sending and receiving multiple first audio sub-signals, and improving the universality of the binding method of the Internet of Things device provided in the embodiment of the present application.

[0140] In another implementation, the broadcasting times of the multiple first audio sub-signals are the same. Then, when the second broadcasting time is reached, the IoT device simultaneously broadcasts the multiple first audio sub-signals on multiple audio channels, and the second broadcasting time is the broadcasting time of the multiple first audio sub-signals.

[0141] For example, the multiple coding characters are 4, and the multiple coding characters are 0101 respectively; the multiple audio channels are audio channels f1, f2, f3 and f4, and the broadcasting duration of each first audio sub-signal is 1 millisecond. Then, the IoT device simultaneously sends out the first audio sub-signal with a preset frequency of 1 millisecond on the audio channels f1, f2, f3 and f4, that is, the time taken to send out the four coding characters 0101 is 1 millisecond.

[0142] In this implementation, by broadcasting multiple first audio sub-signals at the same broadcast time, the broadcast duration is reduced, thereby improving the efficiency of the Internet of Things device in broadcasting multiple first audio sub-signals.

[0143] In another implementation, the broadcasting times of multiple first audio sub-signals are partially the same. Then, every time the third broadcasting time is reached, the Internet of Things device broadcasts the corresponding multiple first audio sub-signals on multiple second audio channels respectively, and the broadcasting times of the multiple first audio sub-signals broadcast on the second audio channels are all the third broadcasting time.

[0144] The number of first audio sub-signals with the same broadcast time can be set and changed as needed, such as the broadcast time of every two first audio sub-signals is the same, and the two first audio sub-signals can be two adjacent first audio sub-signals or two first audio sub-signals with the same coding characters. In addition, which part of the first audio sub-signals have the same broadcast time can also be set and changed as needed, such as the first audio sub-signals with the same coding characters have the same broadcast time, and the first audio sub-signals with different coding characters have different broadcast times.

[0145] For example, there are four coding characters, which are 0101 respectively, and the multiple audio channels are audio channels f1, f2, f3 and f4 respectively. The broadcasting duration of each first audio sub-signal is 1 millisecond. Then, the IoT device simultaneously sends out the first audio sub-signal with a preset frequency of 1 millisecond on audio channels f1 and f3. Audio channels f1 and f3 are used to broadcast the first audio sub-signal with the coding character 0. Then, audio channels f2 and f4 simultaneously send out the first audio sub-signal with a preset frequency of 1 millisecond. Audio channels f2 and f4 are used to broadcast the first audio sub-signal with the coding character 1. Then, the time taken to send out the four coding characters 0101 is 2 milliseconds.

[0146] In this implementation, by setting the broadcast time of multiple first audio sub-signals to be partially the same, the broadcast efficiency of the Internet of Things device is improved, while the performance requirements for the Internet of Things device and the mobile terminal to send and receive multiple first audio sub-signals are reduced, thereby improving the universality of the binding method for the Internet of Things device provided in the embodiment of the present application.

[0147] In some embodiments, in order to improve the security of binding the IoT device to the mobile terminal, the IoT device is also bound to the mobile terminal in the following manner: the IoT device receives multiple second audio sub-signals from the mobile terminal, and the multiple second audio sub-signals are used to request binding with the IoT device; the IoT device is bound to the mobile terminal based on the multiple second audio sub-signals.

[0148] See Figure 7 , which shows a schematic diagram of the reception and transmission of an audio sub-signal shown in an exemplary embodiment of the present application. Both the Internet of Things device and the mobile terminal are configured with a speaker and a microphone. After the Internet of Things device broadcasts multiple first audio sub-signals on multiple audio channels through its speaker, the mobile terminal receives the multiple first audio sub-signals through its microphone; after the mobile terminal receives the multiple first audio sub-signals, it broadcasts multiple second audio sub-signals on multiple audio channels through its speaker, and the Internet of Things device receives the multiple second audio sub-signals through its microphone. Among them, the multiple audio channels for broadcasting multiple first audio sub-signals and the multiple audio channels for broadcasting multiple second audio sub-signals may be the same or different, and are not specifically limited here.

[0149] The multiple second audio sub-signals are feedback signals generated by the mobile terminal after receiving the multiple first audio sub-signals broadcast by the IoT device; optionally, the multiple second audio sub-signals carry device information of the mobile terminal. In some embodiments, the IoT device is bound to the mobile terminal based on the multiple second audio sub-signals, including at least one of the following implementations:

[0150] When the IoT device is not bound to other mobile terminals, the IoT device is bound to the mobile terminal based on multiple second audio sub-signals. In this implementation, the IoT device is directly bound to the mobile terminal based on multiple second audio sub-signals, which improves the efficiency of binding the IoT device to the mobile terminal.

[0151] When the IoT device is not bound to other mobile terminals, the first network information connected to the IoT device and the second network information connected to the mobile terminal are determined. When the first network information and the second network information are the same, the IoT device is bound to the mobile terminal based on multiple second audio sub-signals. In this implementation, the IoT device and the mobile terminal are connected to the same network, indicating that the IoT device and the mobile terminal are both within the same security area, such as if the connected networks are both home networks. In this way, the IoT device is bound to the mobile terminal only when the IoT device and the mobile terminal are connected to the same network, thereby improving the security of binding the IoT device and the mobile terminal.

[0152] In the case where the IoT device has been bound to other mobile terminals, a confirmation request is sent to the other mobile terminals, the confirmation request carries the device information of the mobile terminal, and when a confirmation indication is received from the other mobile terminals, the IoT device is bound to the mobile terminal based on multiple second audio sub-signals. In this implementation, by confirming with the mobile terminal to which the IoT device has been bound, it is prevented that any mobile terminal can be bound to the IoT device, thereby improving the security of the mobile terminal binding the IoT device.

[0153] In the case where the IoT device has been bound to other mobile terminals, it is determined whether the device information of the mobile terminal is in the sharing list of other mobile terminals. If the device information of the mobile terminal is in the sharing list, the mobile terminal is bound based on multiple second audio sub-signals. In this implementation, the IoT device is bound to the mobile terminal only when the device information of the mobile terminal is in the sharing list of the bound mobile terminal, thereby preventing any mobile terminal from being able to bind the IoT device, thereby improving the security of the mobile terminal binding the IoT device.

[0154] The present application provides a binding method for an Internet of Things device. Since the Internet of Things device encodes its device information into coded characters, and converts the coded characters into audio sub-signals and broadcasts them on an audio channel, the Internet of Things device can output its own device information through the audio sub-signals, and then the mobile terminal can obtain the device information of the Internet of Things device by receiving the audio sub-signals, thereby realizing binding with the Internet of Things device. This method improves the efficiency of the mobile terminal in obtaining the device information of the Internet of Things device, simplifies the binding process between the mobile terminal and the Internet of Things device, and thus improves the efficiency of binding the mobile terminal with the Internet of Things device.

[0155] Please refer to Figure 8 , which shows a flow chart of a method for binding an IoT device shown in an exemplary embodiment of the present application. The method includes:

[0156] 801. A mobile terminal performs signal detection on multiple audio channels to obtain multiple first audio sub-signals broadcast by an Internet of Things device.

[0157] The multiple first audio sub-signals are used to bind with the mobile terminal. Optionally, the mobile terminal detects the multiple audio channels sequentially or simultaneously, which is not specifically limited here.

[0158] 802. The mobile terminal converts the multiple first audio sub-signals into a character string, where the character string includes a leading character, a header character, and a target character that are sequentially concatenated.

[0159] Among them, the leading character is used to identify the types of multiple first audio sub-signals, the header character is used to identify the contents of multiple first audio sub-signals, the target character is a character generated based on the information character and the anti-interference character, the information character is used to store the device information of the Internet of Things device, and the anti-interference character is used to increase the decoding difficulty of the multiple first audio sub-signals.

[0160] 803. When the mobile terminal verifies the plurality of first audio sub-signals based on the leading character and the header character, the mobile terminal identifies information characters from the target characters, where the information characters include a plurality of coded characters.

[0161] In the embodiment of the present application, the multiple first audio sub-signals are verified by leading characters and header characters, and only when the verification is passed, the information characters are identified from the target characters, thereby improving the strictness of the screening of the multiple first audio sub-signals and avoiding interference from other audio sub-signals, thereby ensuring the security of the binding between the mobile terminal and the Internet of Things device.

[0162] It should be noted that the mobile terminal converts the multiple first audio sub-signals into multiple coded characters through steps 802-803. In some embodiments, the mobile terminal converts the multiple first audio sub-signals into multiple coded characters, and further includes the following steps: the mobile terminal converts the audio sub-signals to obtain a leading character, which is used to identify the types of the multiple first audio sub-signals; when the leading character is a target leading character, the header signal and the target signal are converted to obtain a header character and a target character; when the multiple first audio sub-signals are verified based on the header character, the information character is identified from the target character, and the information character includes multiple coded characters.

[0163] Optionally, the mobile terminal converts the header signal and the target signal in sequence, or converts the header signal and the target signal at the same time, which is not specifically limited here.

[0164] Among them, when the leading character is not the target leading character, the multiple first audio sub-signals are no longer processed. In this embodiment, by converting the header signal and the target signal only when the leading character is the target leading character, it is ensured that the header signal and the target signal are converted only when the multiple first audio sub-signals are audio sub-signals broadcast by the Internet of Things device for binding the mobile terminal, thereby ensuring the accuracy and effectiveness of the conversion of the multiple first audio sub-signals, and avoiding the waste of resources and time caused by processing other audio sub-signals.

[0165] In one implementation, the mobile terminal converts the header signal and the target signal to obtain the header character and the target character, including the following steps: the mobile terminal obtains the signal strength corresponding to the leading signal; the mobile terminal converts the header signal and the target signal to obtain the header character and the target character when the signal strengths corresponding to the header signal and the target signal respectively match the signal strength. When the signal strengths corresponding to the header signal and the target signal respectively do not match the signal strength, the header signal and the target signal are no longer converted.

[0166] If the difference between the signal strength of the header signal and the target signal and the signal strength of the pilot signal is within a preset range, it is determined that the signal strengths corresponding to the header signal and the target signal respectively match the signal strength of the pilot signal. Optionally, the signal strength is a decibel value.

[0167] In one implementation, the mobile terminal identifies the information character from the target character, including the following steps: the mobile terminal parses the target length of the information character from the multiple first audio sub-signals; then the mobile terminal starts from the first character of the target character and reads the characters of the target length to obtain the information character. In this implementation, by parsing the target length of the information character carried in the multiple first audio sub-signals, the information character in the target character can be quickly and effectively identified based on the target length, thereby improving the efficiency of the mobile terminal in decoding the multiple first audio sub-signals.

[0168] In some embodiments, the mobile terminal converts the multiple first audio sub-signals into multiple coded characters, which also includes the following implementation methods.

[0169] In one implementation, the mobile terminal determines the distance between itself and the IoT device, and when the distance is less than a distance threshold, converts multiple first audio sub-signals into multiple coded characters. When the distance is not less than the distance threshold, the multiple first audio sub-signals are not processed. In this implementation, the IoT devices that are allowed to be bound to the mobile terminal are controlled by distance, thereby preventing any IoT device from being able to be bound to the mobile terminal, thereby improving the do not disturb performance of the mobile terminal.

[0170] Optionally, the mobile terminal determines the distance between itself and the Internet of Things, including the following method: the mobile terminal measures the distance between the mobile terminal and the Internet of Things device based on sound waves corresponding to multiple first audio sub-signals to obtain the distance.

[0171] The mobile terminal determines the distance between the mobile terminal and the IoT device based on the sending time, receiving time and transmission speed of the sound wave. In this implementation, since the sound wave is convenient for distance measurement, the distance between the mobile terminal and the IoT device is measured based on the sound wave, which improves the efficiency and convenience of obtaining the distance.

[0172] It should be noted that the mobile terminal can automatically bind with the IoT device through the above implementation method. In another implementation method, the mobile terminal binds with the IoT device based on the operation of its user. The mobile terminal determines the distance between it and the IoT device, and outputs prompt information when the distance is less than the distance threshold. The prompt information is used to prompt whether to process the multiple first audio sub-signals after receiving the multiple first audio sub-signals. When the mobile terminal receives a confirmation indication, the multiple first audio sub-signals are converted into multiple coded characters. The confirmation indication includes a confirmation indication triggered by any one of a touch screen operation and a key operation.

[0173] In this implementation, the multiple first audio sub-signals are converted only when the user of the mobile terminal confirms the processing of the multiple first audio sub-signals, thereby avoiding the mobile terminal from converting any received audio sub-signal, thereby improving the security of the mobile terminal in receiving and processing audio sub-signals.

[0174] 804. The mobile terminal decodes the multiple coded characters to obtain device information of the IoT device.

[0175] Among them, the decoding method matches the method in which the IoT device encodes device information, which will not be repeated here.

[0176] 805. The mobile terminal is bound to the IoT device based on the device information.

[0177] Optionally, the mobile terminal stores the device information of the IoT device in its database, so that when subsequently connecting to the IoT device, it can directly connect based on the device information stored in the database, thereby achieving binding between the mobile terminal and the IoT device.

[0178] In some embodiments, the IoT device is bound to the mobile terminal through a target application, and the step also includes the following implementation method: if the mobile terminal does not have the target application installed, the target application is installed in the mobile terminal, and the target application is the application corresponding to the IoT device; the mobile terminal is bound to the IoT device in the target application based on the device information.

[0179] In this embodiment, the IoT device and the mobile terminal are bound through a target application, so that the binding between the IoT device and the mobile terminal can realize system management in the target application, and the mobile terminal can also control the bound IoT device through the target application, thereby improving the convenience of the mobile terminal in managing the bound IoT device.

[0180] The present application provides a binding method for an Internet of Things device. After a mobile terminal receives multiple first audio sub-signals sent by the Internet of Things device, it can obtain device information of the Internet of Things device by converting and decoding the multiple first audio sub-signals, thereby improving the efficiency of the mobile terminal in obtaining the device information of the Internet of Things device, simplifying the binding process between the mobile terminal and the Internet of Things device, and thus improving the efficiency of binding the mobile terminal and the Internet of Things device.

[0181] Please refer to Fig. 9 , which shows a block diagram of a binding device for an Internet of Things device shown in an exemplary embodiment of the present application, the device includes:

[0182] The acquisition module 901 is used to acquire device information of the IoT device;

[0183] The encoding module 902 is used to encode the device information to obtain encoded data, where the encoded data includes a plurality of encoded characters corresponding to the device information;

[0184] A first conversion module 903, configured to convert a plurality of coded characters into a plurality of first audio sub-signals;

[0185] The broadcast module 904 is used to broadcast the first audio sub-signals corresponding to the audio channels on multiple audio channels respectively. The multiple first audio sub-signals are used for the mobile terminal to decode and obtain device information, and bind with the IoT device based on the device information.

[0186] In some embodiments, the encoding module 902 is used to:

[0187] Encode the device information to obtain information characters;

[0188] Acquire a leading character, a header character, and an anti-interference character, wherein the leading character is used to identify types of the plurality of first audio sub-signals, the header character is used to identify contents of the plurality of first audio sub-signals, and the anti-interference character is used to increase decoding difficulty of the plurality of first audio sub-signals;

[0189] The leading character, header character, information character and anti-interference character are concatenated in sequence to generate encoded data.

[0190] In some embodiments, the encoding module 902 is used to:

[0191] Determine the number of characters in the message character;

[0192] The leading character, header character, length character, information character and anti-interference character are concatenated in sequence to obtain the encoded data, and the length character is used to store the number of characters.

[0193] In some embodiments, the device information includes multiple sub-information; the encoding module 902 is used to:

[0194] Based on the first information comparison table, first information identifiers corresponding to the plurality of sub-information are obtained to obtain a plurality of first information identifiers, and the plurality of first information identifiers are encoded to obtain information characters, wherein the first information comparison table is used to store the correspondence between the sub-information and the first information identifier; or

[0195] Based on the first information comparison table, obtain the first information identifiers corresponding to the multiple sub-information respectively to obtain multiple first information identifiers; based on the second information comparison table, obtain a second information identifier corresponding to the multiple first information identifiers, encode the second information identifier to obtain information characters; the first information comparison table is used to store the correspondence between the sub-information and the first information identifier, and the second information comparison table is used to store the correspondence between the second information identifier and the multiple first information identifiers.

[0196] In some embodiments, the encoding module 902 is used to:

[0197] Determine first device information from the device information, the first device information being necessary device information, and encode the first device information to obtain information characters;

[0198] The process of obtaining anti-interference characters includes:

[0199] The second device information is determined from the device information, where the second device information is auxiliary device information, and the second device information is encoded to obtain an anti-interference character.

[0200] In some embodiments, the broadcast module 904 is configured to:

[0201] Determining broadcasting times of a plurality of first audio sub-signals;

[0202] The plurality of first audio sub-signals are broadcast on a plurality of audio channels based on broadcasting times of the plurality of first audio sub-signals.

[0203] In some embodiments, the broadcast module 904 is configured to:

[0204] The broadcasting times of the multiple first audio sub-signals are all different. Then, whenever a first broadcasting time is reached, the corresponding first audio sub-signal is broadcast on the first audio channel. The first broadcasting time is any broadcasting time among the broadcasting times of the multiple first audio sub-signals. The broadcasting time of the first audio sub-signal broadcast on the first audio channel is the first broadcasting time; or,

[0205] The broadcasting times of the plurality of first audio sub-signals are all the same, then when the second broadcasting time is reached, the plurality of first audio sub-signals are broadcasted simultaneously on the plurality of audio channels, and the second broadcasting time is the broadcasting time of the plurality of first audio sub-signals;

[0206] The broadcasting times of the multiple first audio sub-signals are partially the same. Then, each time the third broadcasting time is reached, the corresponding multiple first audio sub-signals are broadcast on the multiple second audio channels respectively, and the broadcasting time of the multiple first audio sub-signals broadcast on the second audio channels is the third broadcasting time.

[0207] In some embodiments, the apparatus further comprises:

[0208] A receiving module, used to receive a plurality of second audio sub-signals from a mobile terminal, wherein the plurality of second audio sub-signals are used to request binding with an IoT device;

[0209] The second binding module is used to bind with the mobile terminal based on multiple second audio sub-signals.

[0210] In some embodiments, the second binding module is used to:

[0211] When the IoT device is not bound to other mobile terminals, binding with the mobile terminal based on multiple second audio sub-signals; or

[0212] When the IoT device is not bound to other mobile terminals, determine the first network information to which the IoT device is connected and the second network information to which the mobile terminal is connected, and when the first network information and the second network information are the same, bind the IoT device to the mobile terminal based on the multiple second audio sub-signals; or

[0213] In the case where the IoT device has been bound to other mobile terminals, sending a confirmation request to the other mobile terminals, the confirmation request carrying device information of the mobile terminal, and upon receiving a confirmation indication returned by the other mobile terminals, binding with the mobile terminal based on the multiple second audio sub-signals; or

[0214] When the IoT device is bound to other mobile terminals, determine whether the device information of the mobile terminal is in the sharing list of other mobile terminals. If the device information of the mobile terminal is in the sharing list, bind the mobile terminal based on multiple second audio sub-signals.

[0215] The present application provides a binding device for an Internet of Things device. Since the Internet of Things device encodes its device information into coded characters, and converts the coded characters into audio sub-signals and broadcasts them on an audio channel, the Internet of Things device can output its own device information through the audio sub-signals. Then, the mobile terminal can obtain the device information of the Internet of Things device by receiving the audio sub-signals, thereby realizing binding with the Internet of Things device, improving the efficiency of the mobile terminal in obtaining the device information of the Internet of Things device, simplifying the binding process between the mobile terminal and the Internet of Things device, and thus improving the efficiency of binding the mobile terminal with the Internet of Things device.

[0216] Please refer to Fig.10 , which shows a block diagram of a binding device for an Internet of Things device shown in an exemplary embodiment of the present application, the device includes:

[0217] The detection module 1001 is used to perform signal detection on multiple audio channels to obtain multiple first audio sub-signals broadcast by the IoT device;

[0218] A second conversion module 1002, configured to convert the plurality of first audio sub-signals into a plurality of coded characters;

[0219] A decoding module 1003 is used to decode multiple coded characters to obtain device information of the IoT device;

[0220] The first binding module 1004 is used to bind with the IoT device based on the device information.

[0221] In some embodiments, the second conversion module 1002 is configured to:

[0222] Converting the multiple first audio sub-signals into a character string, where the character string includes a leading character, a header character, and a target character that are sequentially concatenated, the leading character is used to identify the types of the multiple first audio sub-signals, the header character is used to identify the contents of the multiple first audio sub-signals, the target character is a character generated based on the information character and the anti-interference character, the information character is used to store device information of the IoT device, and the anti-interference character is used to increase the difficulty of decoding the multiple first audio sub-signals;

[0223] When the plurality of first audio sub-signals are verified to be successful based on the leading character and the header character, information characters are identified from the target characters, where the information characters include a plurality of coded characters.

[0224] In some embodiments, the plurality of first audio sub-signals include a leading signal, a header signal and a target signal that are sequentially concatenated, and the second conversion module 1002 is configured to:

[0225] Converting the leading signal to obtain a leading character, where the leading character is used to identify types of the plurality of first audio sub-signals;

[0226] In the case where the leading character is a target leading character, the header signal and the target signal are converted to obtain a header character and a target character;

[0227] When the plurality of first audio sub-signals are verified to be successful based on the header characters, information characters are identified from the target characters, where the information characters include a plurality of coded characters.

[0228] In some embodiments, the second conversion module 1002 is configured to:

[0229] Parsing a target length of information characters from a plurality of first audio sub-signals;

[0230] Starting from the first character in the target character set, read characters of the target length to obtain information characters.

[0231] In some embodiments, the second conversion module 1002 is configured to:

[0232] Obtaining the signal strength corresponding to the pilot signal;

[0233] In the case where the signal strengths corresponding to the header signal and the target signal respectively match the signal strengths, the header signal and the target signal are converted to obtain the header character and the target character.

[0234] In some embodiments, the second conversion module 1002 is configured to:

[0235] determining a distance between the mobile terminal and the Internet of Things device, and converting the plurality of first audio sub-signals into a plurality of coded characters when the distance is less than a distance threshold; or

[0236] Determine the distance between the mobile terminal and the Internet of Things device, and output prompt information when the distance is less than a distance threshold, the prompt information is used to prompt whether to process the multiple first audio sub-signals after receiving the multiple first audio sub-signals, and when a confirmation indication is received, convert the multiple first audio sub-signals into multiple coded characters, and the confirmation indication includes a confirmation indication triggered by any one of a touch screen operation and a key operation.

[0237] In some embodiments, the second conversion module 1002 is configured to:

[0238] Based on the sound waves corresponding to the multiple first audio sub-signals, the distance between the mobile terminal and the Internet of Things device is measured to obtain the distance.

[0239] In some embodiments, the first binding module 1004 is configured to:

[0240] If the target application is not installed in the mobile terminal, the target application is installed in the mobile terminal, where the target application is the application corresponding to the IoT device;

[0241] In the target application, bind with IoT devices based on device information.

[0242] The present application provides a binding device for an Internet of Things device. After a mobile terminal receives multiple first audio sub-signals sent by the Internet of Things device, it can obtain device information of the Internet of Things device by converting and decoding the multiple first audio sub-signals, thereby improving the efficiency of the mobile terminal in obtaining the device information of the Internet of Things device, simplifying the binding process between the mobile terminal and the Internet of Things device, and thus improving the efficiency of binding the mobile terminal and the Internet of Things device.

[0243] Please refer to Fig.11 , which shows a block diagram of the structure of an Internet of Things device 1100 provided by an exemplary embodiment of the present application. The Internet of Things device 1100 may be a smart home, a wearable device, a TV, a headset, a smart phone, a tablet computer, etc. The Internet of Things device 1100 in the present application may include one or more of the following components: a processor 1110, a memory 1120, and a display screen 1130.

[0244] The processor 1110 may include one or more processing cores. The processor 1110 uses various interfaces and lines to connect the various parts of the entire IoT device 1100, and executes various functions and processes data of the IoT device 1100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1120, and calling data stored in the memory 1120. Optionally, the processor 1110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. The CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen 1130; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1110, but may be implemented by a separate chip.

[0245] The memory 1120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1120 includes a non-transitory computer-readable storage medium. The memory 1120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data (such as audio data, a phone book), etc., created according to the use of the Internet of Things device 1100.

[0246] The display screen 1130 is a display component for displaying a user interface. Optionally, the display screen 1130 is a display screen with a touch function, through which the user can use any suitable object such as a finger, a touch pen, etc. to perform touch operations on the display screen 1130.

[0247] The display screen 1130 is usually arranged on the front panel of the IoT device 1100. The display screen 1130 can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. The display screen 1130 can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.

[0248] In addition, those skilled in the art can understand that the structure of the IoT device 1100 shown in the above drawings does not constitute a limitation on the IoT device 1100, and the IoT device 1100 may include more or fewer components than shown, or combine certain components, or arrange components differently. For example, the IoT device 1100 also includes a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, Wi-Fi) module, a power supply, a Bluetooth module and other components, which will not be described in detail here.

[0249] An embodiment of the present application also provides a computer-readable medium, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the binding method of the Internet of Things device shown in the above embodiments.

[0250] An embodiment of the present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the binding method of the Internet of Things device shown in the above embodiments.

[0251] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0252] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for binding an Internet of Things device, characterized in that: The method comprises: Get device information of IoT devices; Encoding the device information to obtain information characters; Acquire a leading character, a header character, and an anti-interference character, wherein the leading character is used to identify the types of the plurality of first audio sub-signals, the header character is used to identify the contents of the plurality of first audio sub-signals, and the anti-interference character is used to increase the difficulty of decoding the plurality of first audio sub-signals; sequentially concatenating the leading character, the header character, the information character and the anti-interference character to generate coded data, the coded data including a plurality of coded characters corresponding to the device information; Converting the plurality of coded characters into the plurality of first audio sub-signals, wherein the plurality of coded characters correspond to the plurality of first audio sub-signals in one-to-one correspondence; On multiple audio channels, first audio sub-signals corresponding to the audio channels are broadcast respectively. The multiple audio channels correspond to the multiple first audio sub-signals one-to-one. The multiple first audio sub-signals are used for decoding by a mobile terminal to obtain the device information, and are bound to the IoT device based on the device information.

2. The method according to claim 1, characterized in that The step of sequentially concatenating the leading character, the header character, the information character and the anti-interference character to generate coded data comprises: Determining the number of characters of the information character; The leading character, the header character, the length character, the information character and the anti-interference character are sequentially concatenated to obtain the coded data, wherein the length character is used to store the number of characters.

3. The method according to claim 1, characterized in that The device information includes a plurality of sub-information; the encoding of the device information to obtain information characters includes: Based on the first information comparison table, first information identifiers corresponding to the plurality of sub-information are obtained to obtain a plurality of first information identifiers, and the plurality of first information identifiers are encoded to obtain the information character, wherein the first information comparison table is used to store the correspondence between the sub-information and the first information identifier; or Based on the first information comparison table, the first information identifiers corresponding to the multiple sub-information are obtained to obtain multiple first information identifiers. Based on the second information comparison table, a second information identifier corresponding to the multiple first information identifiers is obtained, and the second information identifier is encoded to obtain the information character. The first information comparison table is used to store the correspondence between the sub-information and the first information identifier, and the second information comparison table is used to store the correspondence between the second information identifier and multiple first information identifiers.

4. The method according to claim 1, characterized in that: The encoding of the device information to obtain information characters includes: Determine first device information from the device information, where the first device information is necessary device information, and encode the first device information to obtain the information character; The process of obtaining the anti-interference character includes: Second device information is determined from the device information, where the second device information is auxiliary device information, and the second device information is encoded to obtain the anti-interference character.

5. The method according to claim 1, characterized in that The broadcasting of the first audio sub-signals corresponding to the audio channels respectively on the multiple audio channels includes: Determining broadcasting times of the plurality of first audio sub-signals; The plurality of first audio sub-signals are broadcasted on the plurality of audio channels based on broadcasting times of the plurality of first audio sub-signals.

6. The method according to claim 5, characterized in that The method of broadcasting the plurality of first audio sub-signals on the plurality of audio channels based on the broadcasting times of the plurality of first audio sub-signals comprises: The broadcasting times of the multiple first audio sub-signals are all different, then whenever a first broadcasting time is reached, the corresponding first audio sub-signal is broadcast on the first audio channel, the first broadcasting time is any broadcasting time among the broadcasting times of the multiple first audio sub-signals, and the broadcasting time of the first audio sub-signal broadcast on the first audio channel is the first broadcasting time; or, The broadcasting times of the plurality of first audio sub-signals are all the same, and when a second broadcasting time is reached, the plurality of first audio sub-signals are broadcasted simultaneously on the plurality of audio channels, and the second broadcasting time is the broadcasting time of the plurality of first audio sub-signals; The broadcasting times of the multiple first audio sub-signals are partially the same. Then, each time the third broadcasting time is reached, the corresponding multiple first audio sub-signals are broadcast on the multiple second audio channels respectively, and the broadcasting times of the multiple first audio sub-signals broadcast on the second audio channels are all the third broadcasting time.

7. The method according to claim 1, characterized in that The method further comprises: receiving a plurality of second audio sub-signals from the mobile terminal, where the plurality of second audio sub-signals are used to request binding with the Internet of Things device; Based on the multiple second audio sub-signals, binding is performed with the mobile terminal.

8. The method according to claim 7, characterized in that The binding with the mobile terminal based on the multiple second audio sub-signals includes at least one of the following implementations: When the IoT device is not bound to other mobile terminals, binding the IoT device to the mobile terminal based on the multiple second audio sub-signals; or, When the IoT device is not bound to other mobile terminals, determine first network information to which the IoT device is connected and second network information to which the mobile terminal is connected, and when the first network information is the same as the second network information, bind the mobile terminal based on the multiple second audio sub-signals; or, In a case where the IoT device has been bound to other mobile terminals, sending a confirmation request to the other mobile terminals, the confirmation request carrying device information of the mobile terminal, and upon receiving a confirmation indication returned by the other mobile terminal, binding with the mobile terminal based on the multiple second audio sub-signals; or, In a case where the IoT device has been bound to other mobile terminals, determine whether the device information of the mobile terminal is in a sharing list of the other mobile terminals. If the device information of the mobile terminal is in the sharing list, bind the mobile terminal based on the multiple second audio sub-signals.

9. A method for binding an Internet of Things device, characterized in that: The method comprises: Perform signal detection on multiple audio channels to obtain multiple first audio sub-signals broadcast by the IoT device, where the multiple audio channels correspond to the multiple first audio sub-signals one by one; Convert the multiple first audio sub-signals into a character string, wherein the character string includes a leading character, a header character, and a target character that are sequentially concatenated, the leading character is used to identify the type of the multiple first audio sub-signals, the header character is used to identify the content of the multiple first audio sub-signals, the target character is a character generated based on an information character and an anti-interference character, the information character is used to store device information of the IoT device, and the anti-interference character is used to increase the decoding difficulty of the multiple first audio sub-signals; In a case where the plurality of first audio sub-signals are verified to be passed based on the leading character and the header character, identifying the information character from the target character, the information character comprising a plurality of coded characters; Decoding the multiple coded characters to obtain device information of the IoT device; Based on the device information, binding is performed with the IoT device.

10. The method according to claim 9, characterized in that The plurality of first audio sub-signals include a leading signal, a header signal, and a target signal that are sequentially spliced, and the manner of converting the plurality of first audio sub-signals into the plurality of coded characters includes: Converting the leading signal to obtain the leading character; In the case where the leading character is a target leading character, converting the header signal and the target signal to obtain the header character and the target character; In a case where the plurality of first audio sub-signals are verified to be successful based on the header characters, the information characters are identified from the target characters.

11. The method according to claim 9 or 10, characterized in that: The step of identifying the information character from the target character comprises: Parsing the target length of the information character from the plurality of first audio sub-signals; Starting from the first character of the target characters, characters of the target length are read to obtain the information characters.

12. The method according to claim 10, characterized in that The converting the header signal and the target signal to obtain the header character and the target character comprises: Obtaining a signal strength corresponding to the pilot signal; In the case where the signal strengths corresponding to the header signal and the target signal respectively match the signal strength, the header signal and the target signal are converted to obtain the header character and the target character.

13. The method according to claim 9, characterized in that The method of converting the plurality of first audio sub-signals into the plurality of coded characters comprises: determining a distance between the mobile terminal and the IoT device, and converting the plurality of first audio sub-signals into the plurality of coded characters when the distance is less than a distance threshold; or Determine the distance between the mobile terminal and the Internet of Things device, and if the distance is less than the distance threshold, output prompt information, wherein the prompt information is used to prompt whether to process the multiple first audio sub-signals after receiving the multiple first audio sub-signals, and convert the multiple first audio sub-signals into the multiple coded characters when a confirmation indication is received, and the confirmation indication includes a confirmation indication triggered by any one of a touch screen operation and a key operation.

14. The method according to claim 13, characterized in that The determining the distance between the mobile terminal and the Internet of Things device includes: Based on the sound waves corresponding to the multiple first audio sub-signals, the distance between the mobile terminal and the Internet of Things device is measured to obtain the distance.

15. The method according to claim 9, characterized in that The binding with the IoT device based on the device information includes: If the target application is not installed in the mobile terminal, installing the target application in the mobile terminal, the target application being an application corresponding to the IoT device; In the target application, binding is performed with the IoT device based on the device information.

16. A binding device for an Internet of Things device, characterized in that: The device comprises: The acquisition module is used to obtain the device information of the IoT device; an encoding module, configured to encode the device information to obtain an information character; obtain a leading character, a header character, and an anti-interference character, wherein the leading character is used to identify the type of a plurality of first audio sub-signals, the header character is used to identify the content of the plurality of first audio sub-signals, and the anti-interference character is used to increase the difficulty of decoding the plurality of first audio sub-signals; and sequentially concatenate the leading character, the header character, the information character, and the anti-interference character to generate encoding data, wherein the encoding data includes a plurality of encoding characters corresponding to the device information; A first conversion module, configured to convert the plurality of coded characters into the plurality of first audio sub-signals, wherein the plurality of coded characters correspond to the plurality of first audio sub-signals in a one-to-one manner; A broadcast module is used to broadcast first audio sub-signals corresponding to the audio channels on multiple audio channels, respectively. The multiple audio channels correspond to the multiple first audio sub-signals one by one. The multiple first audio sub-signals are used for decoding by a mobile terminal to obtain the device information, and binding with the Internet of Things device based on the device information.

17. A binding device for an Internet of Things device, characterized in that: The device comprises: A detection module, configured to perform signal detection on a plurality of audio channels to obtain a plurality of first audio sub-signals broadcast by the IoT device, wherein the plurality of audio channels correspond to the plurality of first audio sub-signals in a one-to-one manner; a second conversion module, configured to convert the plurality of first audio sub-signals into a character string, the character string comprising a leading character, a header character and a target character concatenated in sequence, the leading character being used to identify the type of the plurality of first audio sub-signals, the header character being used to identify the content of the plurality of first audio sub-signals, the target character being a character generated based on an information character and an anti-interference character, the information character being used to store device information of the IoT device, and the anti-interference character being used to increase the difficulty of decoding the plurality of first audio sub-signals; and in the case where the plurality of first audio sub-signals are verified to be passed based on the leading character and the header character, identifying the information character from the target character, the information character comprising a plurality of coded characters; A decoding module, used for decoding the plurality of coded characters to obtain device information of the IoT device; The first binding module is used to bind with the Internet of Things device based on the device information.

18. An Internet of Things device, characterized in that: The Internet of Things device includes one or more processors and one or more memories, and at least one program code is stored in the one or more memories. The at least one program code is loaded and executed by the one or more processors to implement the binding method of the Internet of Things device according to any one of claims 1 to 8.

19. A mobile terminal, characterized in that: The mobile terminal includes one or more processors and one or more memories, and at least one program code is stored in the one or more memories. The at least one program code is loaded and executed by the one or more processors to implement the binding method of the Internet of Things device as described in any one of claims 9 to 15.

20. A computer-readable storage medium, characterized in that: The storage medium stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the binding method for an Internet of Things device as described in any one of claims 1 to 15.

21. A computer program product, characterized in that The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the binding method for an Internet of Things device as described in any one of claims 1 to 15.

Citation Information

Patent Citations

  • Intelligent household electrical appliance system and accessing control method of intelligent household electrical appliance

    CN104754578A

  • Binding method, binding device, equipment, intelligent terminal and binding system

    CN105897534A

  • Audio processing method and apparatus, electronic device, and computer-readable storage medium

    CN108988909A

  • IOT device and user binding method and device based on near-field authentication, and medium

    CN110856145A

  • Equipment binding method and equipment, terminal equipment and network side equipment

    CN111093192A