Equipment binding method and device and storage medium
By establishing a proxy binding process between the mobile terminal and the platform, the problem of the device to be bound cannot be bound when it cannot be connected to the Internet or the platform is solved, and the effect of improving binding efficiency and reducing user operation difficulty in a poor network environment is achieved.
Patent Information
- Application Number
- CN202510151044.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-11
- Publication Date
- 2025-05-13
AI Technical Summary
In the prior art, the device to be bound cannot be bound without being able to connect to the Internet or the platform, resulting in increased user operation difficulty and reduced binding efficiency.
When a specific preset condition is met (such as the inability to connect to the Internet or the platform), the device to be bound sends instructions to the mobile terminal, and the mobile terminal forwards the information to the platform, so that the platform and the device to be bound to be bound.
In the case of poor network environment, the device to be bound can be bound through the interaction between the mobile terminal and the platform, reducing the difficulty of user operation and improving the binding efficiency.
Smart Images

Figure CN119997058A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of terminal technology, and specifically relates to a device binding method, apparatus and storage medium. Background Art
[0002] Before using IoT devices, users need to use their mobile phones to configure and bind them. If the router signal in the area where the user is located is poor or the router cannot be connected, resulting in configuration and binding failure, the user needs to re-configure and bind, which increases the difficulty of user operation and affects the user's normal use. Summary of the invention
[0003] The embodiments of the present application provide a device binding method, apparatus and storage medium, which solve the problem in the prior art that the device to be bound cannot be bound to the platform service when it cannot connect to the Internet or the platform.
[0004] In order to achieve the above objectives, this application adopts the following technical solutions:
[0005] In a first aspect, a device binding method is provided, the method comprising: sending a first indication message to a mobile terminal when a first preset condition is met; the first indication message is used to instruct the mobile terminal to interact with a platform to bind a platform service; receiving feedback information; the feedback information is used to characterize the platform service permissions obtained by the device to be bound; wherein the first preset condition includes at least one of the following: unable to connect to the Internet, unable to connect to the platform.
[0006] In a possible implementation manner of the first aspect, the inability to connect to the Internet includes at least one of the following: the number of interactions between the device to be bound and the router reaches a first preset threshold, the signal strength of the connected router is less than a second preset threshold, and the first connection time exceeds a third preset threshold; the inability to connect to the platform includes at least one of the following: the number of connections of the device to be bound to the platform reaches a fourth preset threshold, and the second connection time exceeds a fifth preset threshold.
[0007] In a possible implementation manner of the first aspect, the method also includes: interacting with a router to establish a connection and obtaining a first interaction result; determining whether the first interaction result meets the first preset condition; if so, sending the first indication information to the mobile terminal; if not, continuing to interact with the router until the first preset condition is met, or the connection is successfully established.
[0008] In a possible implementation of the first aspect, the method also includes: interacting with the platform to establish a connection to obtain a second interaction result; determining whether the second interaction result meets the first preset condition; if so, sending the first indication information to the mobile terminal; if not, continuing to interact with the platform until the first preset condition is met, or the connection is successfully established.
[0009] In a possible implementation manner of the first aspect, the to-be-bound device interacts with the platform based on a backoff mechanism.
[0010] In a possible implementation manner of the first aspect, the first indication information includes at least: binding information, information of a device to be bound, and a timestamp.
[0011] In a second aspect, another device binding method is provided, receiving a first indication information from a device to be bound; wherein the first indication information is sent based on the fact that the device to be bound satisfies a first preset condition; the first indication information is used to instruct the mobile terminal to interact with a platform to bind a platform service; forwarding the first indication information to the platform; receiving feedback data from the platform; forwarding the feedback data to the device to be bound; wherein the feedback information is used to characterize the platform service permissions obtained by the device to be bound; the first preset condition includes at least one of the following: unable to connect to the Internet, unable to connect to the platform.
[0012] In a third aspect, a device binding device is provided, comprising: a sending module, used to send a first indication message to a mobile terminal when a first preset condition is met; the first indication message is used to instruct the mobile terminal to interact with the platform so that the device to be bound is bound to the platform service; a receiving module is used to receive feedback information; the feedback information is used to characterize the platform service permissions obtained by the device to be bound; wherein the first preset condition includes at least one of the following: unable to connect to the Internet, unable to connect to the platform.
[0013] In a fourth aspect, another device binding device is provided, comprising: a receiving module for receiving a first indication message from a device to be bound; and also for receiving feedback data from the platform; a forwarding module for forwarding the first indication message to the platform; and also for forwarding feedback data to the device to be bound; wherein, the first indication message is sent based on the condition that the device to be bound satisfies a first preset condition; the first indication message is used to instruct the mobile terminal to interact with the platform so that the device to be bound is bound to the platform service; wherein, the feedback information is used to characterize the platform service permissions obtained by the device to be bound; the first preset condition includes at least one of the following: unable to connect to the Internet, unable to connect to the platform.
[0014] In a fifth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program is used to run the method provided by the first aspect, or any possible implementation of the first aspect, and the second aspect, or any possible implementation of the second invention.
[0015] After adopting the above technical solution, the present application has the following beneficial effects compared with the prior art: under the condition of satisfying the first preset condition, the present application sends the first indication information to the mobile terminal, and the mobile terminal forwards the first indication information to the platform, so that the platform binds it with the platform service. In this way, the device to be bound can bind the device to be bound and the platform service through the interaction between the mobile terminal and the platform when the first preset condition is met (for example, it is unable to establish a connection with the platform or the Internet), thereby avoiding the user from inputting information multiple times when the network environment is not good, thereby reducing the user's operation difficulty and improving the binding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 It is an interactive schematic diagram of a device binding method provided in an embodiment of the present application;
[0019] Figure 2 is an interactive schematic diagram of another device binding method provided in an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of a device binding apparatus provided in an embodiment of the present application;
[0021] Figure 4 It is a schematic diagram of another device binding apparatus provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] Before introducing the specific contents of the embodiments of the present application, the relevant technical terms of the embodiments of the present application are first introduced.
[0025] According to one aspect of an embodiment of the present application, a network distribution method is provided. The device binding method is widely used in whole-house intelligent digital control application scenarios such as smart home, smart home, smart home device ecology, and smart residential (Intelligence House) ecology. Optionally, in this embodiment, the above-mentioned device binding method can be applied to a hardware environment consisting of a terminal device and a server. The server is connected to the terminal device through a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server, and cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server.
[0026] The above network may include but is not limited to at least one of the following: wired network, wireless network. The above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device may be but is not limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projection equipment, smart TV, smart clothes drying rack, smart curtain, smart audio and video, smart socket, smart audio, smart speaker, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robot, smart window cleaning robot, smart mopping robot, smart air purification equipment, smart steamer, smart microwave oven, smart kitchen treasure, smart purifier, smart water dispenser, smart door lock, etc.
[0027] Devices to be bound refer to devices that have not yet completed the binding process with the system, platform or application. Devices to be bound need to go through a specific binding process, such as entering relevant information or performing relevant operations, before they can be successfully bound to the system, platform or application. Common devices to be bound, such as IoT devices, are also called IoT devices, IoT terminals, IoT devices, IoT nodes, etc. IoT devices refer to devices that are connected to the Internet through communication technology to collect and exchange data. IoT devices usually include wireless communication modules for communicating with other devices, such as wifi modules, cellular network modules and Bluetooth modules. IoT devices may include but are not limited to at least one of the following: temperature sensors, humidity sensors, smart sockets, smart switches, smart homes, smart watches, and smart glasses.
[0028] At present, in the existing technology, users use mobile devices to bind the platform service to the device to be bound through WiFi or Bluetooth. Once there is an abnormality in the router or network, the platform service binding may fail, requiring the user to operate the mobile device to re-enter the information, which increases the difficulty of user binding. In an environment with poor network, the binding efficiency is reduced and the binding difficulty is increased.
[0029] In order to solve the above problems, this application proposes a device binding method, which uses a mobile terminal and a platform to perform proxy binding. Even if the device to be bound is in a poor network environment, the binding can be completed. For details, please refer to Figure 1 ,like Figure 1 The method specifically includes the following steps S101-S106:
[0030] S101, when a first preset condition is met, the device to be bound sends first indication information to a mobile terminal; wherein the first indication information is used to instruct the mobile terminal to interact with a platform so that the device to be bound is bound to a platform service.
[0031] Specifically, when the device to be bound meets the first preset condition, it means that the device is in a poor network environment, that is, the device to be bound cannot access the Internet normally after multiple attempts, or cannot interact with the platform normally through the Internet. At this time, the device to be bound can use the mobile terminal to forward the information of the device to be bound and the platform, thereby realizing the service function of binding the device to be bound to the platform.
[0032] Among them, the present application does not specifically limit the type of the first preset condition. Specifically, the first preset condition can be divided into two categories: unable to connect to the Internet and unable to connect to the platform. Among them, when the device to be bound cannot connect to the Internet, at least one of the following events may occur, including but not limited to: the number of interactions between the device to be bound and the router reaches the first preset threshold, the signal strength of the connected router is less than the second preset threshold, and the connection time with the router exceeds the third preset threshold (for example, 1 minute). When the device to be bound cannot connect to the platform, at least one of the following events may occur, including but not limited to: the number of connections between the device to be bound and the platform reaches the fourth preset threshold (for example, 2 times), and the connection time with the platform exceeds the fifth preset threshold (for example, 1 minute). When the number of interactions between the device to be bound and the router reaches the first preset threshold, it means that the device to be bound cannot be connected normally. At this time, it may be that the router identifier (such as service set identifier (ServiceSet Identifier, SSID), media access control address (Media Access Control Address, MAC)) entered by the user is wrong, the password is wrong, and other connection errors cause the connection timeout. Furthermore, the first preset condition may also include: the number of consecutive SSID failures exceeds a sixth preset threshold (e.g., 2 times), the number of consecutive router password errors exceeds a seventh preset threshold (e.g., 3 times), and the number of suspected router password errors exceeds an eighth preset threshold (e.g., 2 times). It should be understood that the present application does not specifically limit the specific values and types of the above-mentioned first preset threshold, second preset threshold, third preset threshold, fourth preset threshold, fifth preset threshold, sixth preset threshold, and seventh preset threshold, which can be determined according to actual conditions.
[0033] When binding the platform function, the device to be bound needs to send first indication information to the platform through the mobile device, wherein the first indication information at least includes: binding information, information of the device to be bound, and a timestamp.
[0034] The binding information refers to the specific characters used to establish a connection between the device to be bound and the platform service. After the platform establishes a relationship between the binding information and the platform service, the device to be bound can use the binding information to obtain the platform service. The binding information is usually: bindcode, login account, etc., which are not exhaustive here.
[0035] The information of the device to be bound is used to assist the platform in obtaining the type, permissions and other information of the device to be bound, so as to bind different platform services according to different device types. The information of the device to be bound includes but is not limited to at least one of the following: the model of the device to be bound, the name of the device to be bound, the category of the device to be bound, the manufacturer information, and the function of the device to be bound.
[0036] The timestamp is used to record the key time of the binding process of the device to be bound, for example, the time when the device to be bound executes the binding process. If no further confirmation information is received within the preset time range, it can be considered that the binding has failed and the binding process can be stopped. This can avoid users waiting too long and affecting the user experience to a certain extent.
[0037] Furthermore, the first indication information may also carry an error code. The error code may be used to assist the mobile terminal in locating problems in network connection or platform operation, thereby accelerating the resolution of the problem. For example, when the error code displays the cause of the error and the user inputs an account number, password, or other information that is incorrect, the mobile terminal may promptly prompt the user to modify the input information, thereby saving the user time waiting for binding.
[0038] S102: The mobile terminal receives first indication information from the device to be bound.
[0039] In this step, the mobile terminal and the device to be bound can be connected in various forms such as Bluetooth, cellular network, wifi, etc. Usually, the mobile terminal uses Bluetooth Low Energy (BLE) to establish a connection and bind with the device to be bound.
[0040] During the connection process between the mobile terminal and the device to be bound, the mobile terminal can send a connection request to the device to be bound, and the device to be bound will respond after receiving the connection request, thereby establishing a connection with the mobile terminal. In the above process, the first indication information can also be carried in the response information sent by the device to be bound to the mobile terminal, and there is no need to send information again after the connection is established, thereby saving communication resources.
[0041] S103: The mobile terminal forwards the first indication information to the platform.
[0042] Specifically, the mobile terminal can forward the first indication information to the platform when establishing a connection relationship with the platform. The way in which the mobile terminal establishes a connection with the platform is not limited, including but not limited to at least one of the following: establishing a connection based on the Internet, establishing a connection based on Bluetooth, establishing a connection based on near field communication technology, and connecting based on wired technology. When the network environment where the mobile terminal is located is not good, the user can choose other ways to forward the first indication information according to the actual situation.
[0043] After receiving the first indication information, the platform can bind the corresponding platform service to the device to be bound based on the first indication information and send feedback information. The platform can use the mobile terminal as the receiver of the feedback information based on the sender of the first indication information, and forward it to the data to be bound by the mobile terminal (i.e., steps S104-S105). Alternatively, if a connection is established between the device to be bound and the platform before the platform sends the feedback information, the platform can send the feedback information directly to the device to be bound via the Internet, thereby saving the communication resources of the mobile terminal.
[0044] Among them, platform services refer to services that the devices to be bound need to connect to, so as to realize the functions of the devices to be bound, such as smart home platforms and cloud computing services.
[0045] S104, the mobile terminal receives feedback data from the platform.
[0046] S105: The mobile terminal forwards the feedback data to the device to be bound.
[0047] After receiving the feedback data, the mobile terminal may forward the feedback data to the device to be bound. The path for the mobile terminal to forward the feedback data to the device to be bound and the path for receiving the first indication information may be the same or different. Specifically, the mobile terminal may receive the first indication information via Bluetooth, and when sending the feedback data, it may be sent to the mobile terminal via the Internet. In this way, the flexibility of the system can be improved to a certain extent.
[0048] The feedback information is used to feedback the platform service permissions obtained by the device to be bound. Furthermore, the feedback information can also carry the permissions assigned by the platform to the device to be bound, such as a permission token. In addition, the feedback information can also be used to feedback whether the binding of the device to be bound to the platform service is successful. The feedback information can also be related information of the platform service depending on the platform. For example, when the platform is a cloud computing service, the feedback information can be the service data of the toolkit (Alexa Connect Kit, ACK).
[0049] S106: The device to be bound receives feedback information from the mobile terminal.
[0050] When the feedback information indicates that the binding service of the device to be bound is successful, the device to be bound can read the feedback information and interact with the platform based on the permission information carried in the feedback information to obtain the corresponding service. When the feedback information indicates that the binding fails, the device to be bound can re-initiate the binding process, or terminate the binding process.
[0051] In summary, in this application, when the first preset condition is met, the device to be bound sends the first indication information to the mobile terminal, and the mobile terminal forwards the first indication information to the platform, so that the platform binds it with the platform service. In this way, the device to be bound can bind the device to be bound and the platform service through the interaction between the mobile terminal and the platform when the first preset condition is met (for example, it is unable to establish a connection with the platform or the Internet), thereby avoiding the user from entering information multiple times when the network environment is not good, thereby reducing the user's operation difficulty and improving the binding efficiency.
[0052] In actual applications, in addition to the above-mentioned devices to be bound, mobile terminals and platforms, the device binding system may also include other devices, such as routers. When the system includes a router, the device to be bound may directly initiate the above-mentioned proxy binding (i.e., steps S101-S105) process to the mobile terminal, or may first try to interact through the Internet and / or platform, and then initiate the above-mentioned proxy binding process when the connection with the Internet and / or platform fails. Please refer to the following for details:
[0053] In an exemplary embodiment, when the device to be bound establishes a connection with the router, the following steps are specifically included:
[0054] S21, the device to be bound interacts with the router to establish a connection, and obtains a first interaction result.
[0055] In this step, the device to be bound can first establish a connection with the router. Specifically, the device to be bound can be bound to the router password through the router's identification information (such as SSID, MAC, etc.). After the information is verified, the router can return a first interaction result to the device to be bound, wherein the first interaction result can be used to indicate whether the connection is successful. The first interaction result may include but is not limited to at least one of the following information: the number of interactions between the device to be bound and the router, and the error code of the failed connection.
[0056] It should be noted that the present application does not specifically limit the manner in which the device to be bound obtains the router identification information. The information may be obtained by being sent by other devices or by reading information stored locally, and the examples are not exhaustive here.
[0057] Optionally, in order to avoid the connection time being too long, thereby affecting the normal use of the user, the present application can use dynamic CRT to count the binding time between the device to be bound and the router. Within a preset time interval, the device to be bound can be cyclically connected to the router until the connection is successful, or the subsequent step S22 is executed after the preset time is reached.
[0058] S22: The device to be bound determines whether the first interaction result meets the first preset condition.
[0059] According to the first interaction result, the device to be bound can determine whether the connection process is successful. If the connection fails, it is necessary to determine whether the interaction result meets the first preset condition. If the first preset condition is met, it means that the router information is wrong or the router signal strength is not good. In order not to affect the subsequent binding process of the device to be bound and the platform, step S22A is executed. If not, step S22B is executed.
[0060] S22A: If yes, the device to be bound sends the first indication information to the mobile terminal.
[0061] Specifically, when the device to be bound cannot connect to the router and thus to the Internet, a proxy binding step of the mobile terminal can be initiated, that is, a first indication message is sent to the mobile terminal, thereby executing the above steps S101-S105.
[0062] S22B, if not, the device to be bound continues to interact with the router until the first preset condition is met, or a connection is successfully established.
[0063] When the device to be bound is successfully connected to the router, the device to be bound can access the Internet through the router. Optionally, the device to be bound can connect to the platform through the Internet and perform subsequent platform connection steps (ie, S31-S32).
[0064] According to the above statements, the interaction process between the device to be bound and the platform can be divided into direct interaction and indirect interaction according to the different ways of interaction between the two. Direct interaction can be understood as the device to be bound directly interacting with the platform through wireless communication, physical lines, etc. Indirect interaction can be understood as the interaction between the device to be bound and the platform through other media (such as routers).
[0065] In another exemplary embodiment, during the interaction process, the connection between the device to be bound and the platform may fail due to factors such as poor intermediate media signal, poor network signal, packet loss, interference, etc. For the specific connection process, please refer to the following steps S31-S32:
[0066] S31, the device to be bound interacts with the platform to establish a connection, and obtains a second interaction result.
[0067] Specifically, the device to be bound can send connection data to the platform. When the two interact directly, the platform can directly receive the connection data. When the two interact indirectly, the connection data can be forwarded via a medium (such as a router) and sent to the platform. After receiving the connection data, the platform can perform data verification, thereby returning a second interaction result to the device to be bound. Among them, the second interaction result is at least used to characterize whether the connection is successful. The second interaction result may include, but is not limited to, at least one of the following information: the number of interactions between the device to be bound and the platform, and the error code for the connection failure. Among them, the error code may include, but is not limited to, at least one of the following: Domain Name System (DNS) failure, Transmission Control Protocol (TCP) connection failure, Transport Layer Security (TLS) connection failure, and no platform response received.
[0068] S32: The device to be bound determines whether the second interaction result meets the first preset condition.
[0069] After receiving the second interaction result, the device to be bound can determine whether it meets the first preset condition according to the second interaction result. If the first preset condition is met, the subsequent step S32A is executed, and if the first preset condition is not met, S32B is executed.
[0070] S32A: If yes, the device to be bound sends the first indication information to the mobile terminal.
[0071] Specifically, when the device to be bound still cannot connect to the platform after multiple attempts, a proxy binding step of the mobile terminal can be initiated, that is, a first indication message is sent to the mobile terminal, thereby executing the above steps S101-S105.
[0072] S32B: If not, the device to be bound continues to interact with the platform until the first preset condition is met, or a connection is successfully established.
[0073] If the device to be bound fails to establish a connection with the platform, the device will enter a connection loop and continuously try to reconnect to the platform until the first preset condition is met or the connection is successful. During the cyclic connection process, optionally, in order to avoid placing too much load on the platform, the device to be bound can interact with the platform based on a backoff mechanism. That is to say, after each connection failure, the device to be bound can wait for a period of time before trying to connect again. The waiting time can be a fixed value, or it can gradually increase with the increase in the number of connection failures, such as waiting for 4 seconds for the first failure, waiting for 8 seconds for the second failure, and so on. In this way, the situation where the device reconnects immediately after a connection failure can be reduced, thereby reducing the frequency of connection requests from the platform, thereby reducing the platform load.
[0074] When the device to be bound is successfully connected to the platform, the device to be bound can initiate a binding process, that is, the device to be bound sends a first indication message to the platform, and the platform returns feedback data to the device to be bound after the binding is successful. In this way, the binding platform service of the device to be bound can be realized.
[0075] Optionally, in the process of the device to be bound interacting with the platform to achieve connection, the interaction information between the device to be bound and the platform can carry the first indication information. That is to say, after receiving the interaction information, the platform can establish a connection with the device to be bound according to the interaction information, and can also bind the platform service for the device to be bound, thereby reducing the number of interactions between the platform and the device to be bound, thereby saving communication resources.
[0076] It should be noted that if the device to be bound has completed platform service binding through proxy binding before it is connected to the router or platform, the device to be bound does not need to repeat the above process of sending the first indication information to the platform to avoid repeated binding and waste of platform resources.
[0077] It should be understood that in actual applications, the above two embodiments (i.e. the process of the device to be bound establishing connection with the router and the platform respectively) can be used in combination. That is to say, when the device to be bound cannot connect normally during the binding platform service process, the above-mentioned proxy binding process can be executed.
[0078] For easier understanding, the following will be explained with pictures. Figure 2 ,like Figure 2 As shown, the process can be specifically as follows: the mobile phone (i.e., the mobile terminal in this application) uses BLE to configure and bind with the device (i.e., the device to be bound involved in this application), and the binding of the mobile terminal can be completed after the device has processed the binding information. After that, the router connection process (i.e., the aforementioned steps S21-S22) can be started. This process specifically corresponds to Figure 2The router connection process is the interaction between the device and the router, connecting to the router, the router verifies the information, and returns to the device whether the connection is successful. Within the time range, the two can cycle through the connection multiple times until it succeeds. If the preset time range is exceeded and the connection is still not successful, a Figure 2 The proxy binding process in the process is that the device initiates proxy binding to the mobile phone. This step corresponds to the device sending the first indication information to the mobile terminal in this application. The mobile phone transmits the proxy binding information (i.e., the first indication information) to the platform, and the platform returns ACK data to the mobile phone. The mobile phone then sends the ACK data to the device, and the device processes the successful binding result to complete the platform service binding. If the router and the device are successfully bound, you can further execute Figure 2 The platform connection process. (i.e. the aforementioned steps S31-S32), the process specifically corresponds to Figure 2 The platform connection process is that the device and the platform interact through the router, the platform verifies the information, and returns to the device whether the connection is successful. Within the time range, the two can cycle through the connection multiple times until it succeeds. If the preset time range is exceeded and the connection is still not successful, a Figure 2 For the details of the proxy binding process, please refer to the above text, and no further details will be given. When the device is successfully connected to the platform and the device to be bound has not been bound to the platform service, the device can initiate the platform service binding process to the platform through the router, and the platform will then return ACK data (i.e. the aforementioned feedback data) to the device through the router. Finally, the user can use the mobile phone to query the binding result on the platform.
[0079] Optionally, before the device to be bound sends the first indication information, in order to avoid information leakage and enhance system security, the device to be bound may encrypt the first indication information, and the specific steps include: the device to be bound obtains an encryption key; the device to be bound uses the encryption key to encrypt the first indication information to obtain the encrypted first indication information. Among them, this application does not specifically limit the method for obtaining the encryption key, which can be sent to the device to be bound by other devices or generated by the device to be bound itself.
[0080] In summary, this application can improve the binding success rate, allowing users to avoid the tedious operation of secondary configuration binding, which has a positive effect on the elderly at home or users who are not very familiar with smart devices. And it can solve the scene of weak signal strength such as insufficient router coverage. For the staff who come to the door to install, even if they accidentally enter the wrong router information or the user does not have a router, they can still bind the platform service, which is an effective way to improve operational efficiency.
[0081] The above is a device binding method provided by the present application. The above embodiments can be combined according to actual conditions, and the present application does not make any specific restrictions here.
[0082] In addition, the present application also provides a device binding apparatus 300, for details, please refer to Figure 3 ,like Figure 3 As shown, the apparatus includes: a sending module 301, which is used to send a first indication message to a mobile terminal when a first preset condition is met; the first indication message is used to instruct the mobile terminal to interact with the platform so that the device to be bound is bound to the platform service.
[0083] The receiving module 302 is used to receive feedback information; the feedback information is used to characterize the platform service permissions obtained by the device to be bound; wherein the first preset condition includes at least one of the following: unable to connect to the Internet, unable to connect to the platform.
[0084] Furthermore, the device binding apparatus 300 is also configured such that the inability to connect to the Internet includes at least one of the following: the number of interactions between the device to be bound and the router reaches a first preset threshold, the signal strength of the connected router is less than a second preset threshold, and the first connection time exceeds a third preset threshold; the inability to connect to the platform includes at least one of the following: the number of connections of the device to be bound to the platform reaches a fourth preset threshold, and the second connection time exceeds a fifth preset threshold.
[0085] Furthermore, the device binding device 300 is also configured to interact with the router to establish a connection and obtain a first interaction result; determine whether the first interaction result meets the first preset condition; if so, send the first indication information to the mobile terminal; if not, continue to interact with the router until the first preset condition is met, or the connection is successfully established.
[0086] Furthermore, the device binding device 300 is also configured to interact with the platform to establish a connection and obtain a second interaction result; determine whether the second interaction result meets the first preset condition; if so, send the first indication information to the mobile terminal; if not, continue to interact with the platform until the first preset condition is met, or the connection is successfully established.
[0087] Furthermore, the device binding apparatus 300 is also configured so that the device to be bound interacts with the platform based on a backoff mechanism.
[0088] Furthermore, the device binding apparatus 300 is further configured so that the first indication information at least includes: binding information, information of the device to be bound, and a timestamp.
[0089] In addition, the present application also provides a device binding apparatus 400, for details, please refer to Figure 4 , the device comprises:
[0090] The receiving module 401 is used to receive first indication information from the device to be bound; and is also used to receive feedback data from the platform;
[0091] Forwarding module 402 is used to forward the first indication information to the platform; it is also used to forward feedback data to the device to be bound; wherein, the first indication information is sent based on the fact that the device to be bound meets the first preset condition; the first indication information is used to instruct the mobile terminal to interact with the platform so that the device to be bound is bound to the platform service; wherein, the feedback information is used to characterize the platform service permissions obtained by the device to be bound; the first preset condition includes at least one of the following: unable to connect to the Internet, unable to connect to the platform.
[0092] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein the program is used to execute one or more steps in the above method embodiment.
[0093] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A device binding method, characterized in that: Applied to the device to be bound, the method includes: When a first preset condition is met, sending first indication information to the mobile terminal; the first indication information is used to instruct the mobile terminal to interact with the platform so that the device to be bound is bound to the platform service; Receiving feedback information; the feedback information is used to represent the platform service authority obtained by the device to be bound; The first preset condition includes at least one of the following: being unable to connect to the Internet and being unable to connect to the platform.
2. The method according to claim 1, characterized in that The inability to connect to the Internet includes at least one of the following: the number of interactions between the device to be bound and the router reaches a first preset threshold, the signal strength of the connected router is less than a second preset threshold, and the first connection time exceeds a third preset threshold; the inability to connect to the platform includes at least one of the following: the number of connections of the device to be bound to the platform reaches a fourth preset threshold, and the second connection time exceeds a fifth preset threshold.
3. The method according to claim 1 or 2, characterized in that The method further comprises: Interacting with the router to establish a connection and obtaining a first interaction result; Determining whether the first interaction result meets the first preset condition; If yes, sending the first indication information to the mobile terminal; If not, continue to interact with the router until the first preset condition is met, or a connection is successfully established.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: interacting with the platform to establish a connection and obtain a second interaction result; Determining whether the second interaction result meets the first preset condition; If yes, sending the first indication information to the mobile terminal; If not, continue to interact with the platform until the first preset condition is met, or the connection is successfully established.
5. The method according to any one of claims 1 to 4, characterized in that: The device to be bound interacts with the platform based on a backoff mechanism.
6. The method according to any one of claims 1 to 5, characterized in that: The first indication information at least includes: binding information, information of the device to be bound, and a timestamp.
7. A device binding method, characterized in that: Applied to a mobile terminal, the method comprises: Receiving first indication information from a device to be bound; wherein the first indication information is sent based on the condition that the device to be bound meets a first preset condition; the first indication information is used to instruct the mobile terminal to interact with the platform so that the device to be bound is bound to a platform service; forwarding the first indication information to the platform; Receiving feedback data from the platform; Forwarding the feedback data to the device to be bound; The feedback information is used to characterize the platform service authority obtained by the device to be bound; the first preset condition includes at least one of the following: unable to connect to the Internet, unable to connect to the platform.
8. A device binding apparatus, characterized in that: The device comprises: A sending module, configured to send first indication information to a mobile terminal when a first preset condition is met; the first indication information is used to instruct the mobile terminal to interact with the platform so that the device to be bound is bound to the platform service; A receiving module, used to receive feedback information; the feedback information is used to represent the platform service authority obtained by the device to be bound; The first preset condition includes at least one of the following: being unable to connect to the Internet and being unable to connect to the platform.
9. A device binding apparatus, characterized in that: The device comprises: A receiving module, used to receive first indication information from a device to be bound; and also used to receive feedback data from the platform; A forwarding module, used for forwarding the first indication information to the platform; and also used for forwarding feedback data to the device to be bound; The first indication information is sent based on the condition that the device to be bound meets the first preset condition; the first indication information is used to instruct the mobile terminal to interact with the platform so that the device to be bound is bound to the platform service; The feedback information is used to characterize the platform service authority obtained by the device to be bound; the first preset condition includes at least one of the following: unable to connect to the Internet, unable to connect to the platform.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.