Smart device binding method and device, storage medium and electronic device
The near-field communication module between the terminal device and the intelligent device transmits information and sends binding reference information, solving the problem of low success rate of connection between the intelligent device and the terminal device, and achieving efficient device binding.
Patent Information
- Application Number
- CN202210700289.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2042-06-20
AI Technical Summary
In the prior art, the success rate of connection between the smart device and the mobile terminal is low, resulting in low efficiency of device binding.
Information transmission is carried out through the near field communication module on the terminal device and the near field communication module on the intelligent device, the device information of the target intelligent device is obtained, and the binding reference information is sent without binding, so as to realize device binding.
It improves the success rate of establishing connections between smart devices and terminal devices, improves the efficiency of device binding, and solves the problem of low device binding efficiency.
Smart Images

Figure CN115175152B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a smart device binding method and apparatus, a storage medium, and an electronic device. Background Art
[0002] In the related technology, when a smart device needs to be bound, the mobile phone terminal can establish a connection with the smart device through BLE (Bluetooth Low Energy) or Wi-Fi (Wireless Fidelity), and access the network through the network information obtained from the mobile phone terminal, thereby completing the binding of the smart device and the mobile phone terminal through BLE or Wi-Fi.
[0003] However, the connection between the mobile phone terminal and the smart device depends on the compatibility and stability of the WiFi or BLE communication components, which makes the success rate of the connection between the mobile phone terminal and the smart device low and requires repeated connections, resulting in low efficiency of smart device binding.
[0004] It can be seen from this that the device binding method in the related art has the problem of low efficiency of device binding due to the low success rate of establishing a connection with the device. Summary of the invention
[0005] The embodiments of the present application provide a smart device binding method and apparatus, a storage medium and an electronic device to at least solve the problem of low efficiency of device binding due to a low success rate of establishing a connection with a device in the device binding method in the related art.
[0006] According to one aspect of an embodiment of the present application, a smart device binding method is provided, comprising: obtaining target device information of a target smart device from a second communication module through a first communication module, wherein the first communication module is a near field communication module on a terminal device of the target object, and the second communication module is a near field communication module on the target smart device; in a case where it is determined according to the target device information that the target smart device is not bound to the target object, obtaining binding reference information, wherein the binding reference information is information used to bind the target smart device to the target object; and sending the binding reference information to the second communication module through the first communication module, so that the target smart device uses the binding reference information to bind to the target object.
[0007] According to another aspect of an embodiment of the present application, a smart device binding device is also provided, including: a first acquisition unit, used to acquire target device information of a target smart device from a second communication module through a first communication module, wherein the first communication module is a near field communication module on a terminal device of the target object, and the second communication module is a near field communication module on the target smart device; a second acquisition unit, used to acquire binding reference information when it is determined according to the target device information that the target smart device is not bound to the target object, wherein the binding reference information is information used to bind the target smart device to the target object; a first sending unit, used to send the binding reference information to the second communication module through the first communication module, so that the target smart device uses the binding reference information to bind to the target object.
[0008] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned smart device binding method when running.
[0009] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the smart device binding method through the computer program.
[0010] In an embodiment of the present application, a method of transmitting device information through a near field communication module to bind smart devices is adopted, and target device information of a target smart device is obtained from a second communication module through a first communication module, wherein the first communication module is a near field communication module on a terminal device of the target object, and the second communication module is a near field communication module on the target smart device; when it is determined according to the target device information that the target smart device is not bound to the target object, binding reference information is obtained, wherein the binding reference information is information used to bind the target smart device to the target object; the binding reference information is sent to the second communication module through the first communication module, so that the target smart device uses the binding reference information The information is bound to the target object. Since the connection between the near-field communication module on the terminal device and the near-field communication module of the device to be bound is relatively stable, the near-field communication module on the terminal device and the near-field communication module of the device to be bound are used to obtain the binding reference information of the device to be bound, and the device to be bound is bound through the binding reference information, which reduces the occurrence of connection failures between the terminal device and the device to be bound, and can achieve the purpose of improving the success rate of establishing connection between the terminal device and the device to be bound, achieving the technical effect of improving the efficiency of device binding, thereby solving the problem of low efficiency of device binding due to the low success rate of establishing connection between the devices in the device binding method in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] 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.
[0012] 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.
[0013] Figure 1 is a schematic diagram of a hardware environment of an optional smart device binding method according to an embodiment of the present application;
[0014] Figure 2 is a flowchart of an optional smart device binding method according to an embodiment of the present application;
[0015] Figure 3 is a schematic diagram of the system composition of an optional smart device binding method according to an embodiment of the present application;
[0016] Figure 4 is a schematic diagram of device binding according to an optional smart device binding method of an embodiment of the present application;
[0017] Figure 5 is a schematic diagram of a device binding process of an optional smart device binding method according to an embodiment of the present application;
[0018] Figure 6 is a structural block diagram of an optional smart device binding apparatus according to an embodiment of the present application;
[0019] Figure 7 It is a structural block diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0020] 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.
[0021] 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.
[0022] According to one aspect of an embodiment of the present application, a smart device binding method is provided. The smart device binding method is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned smart device binding method can be applied to Figure 1 In the hardware environment composed of the terminal 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. 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 104.
[0023] The network may include but is not limited to at least one of the following: wired network, wireless network. The 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 wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0024] The smart device binding method of the embodiment of the present application can be executed by the server 104, or by the terminal 102, or by both the server 104 and the terminal 102. The terminal 102 can also execute the smart device binding method of the embodiment of the present application by a client installed thereon.
[0025] Taking the smart device binding method in this embodiment executed by the terminal 102 as an example, Figure 2 is a flow chart of an optional smart device binding method according to an embodiment of the present application, such as Figure 2 As shown, the process of the method may include the following steps:
[0026] Step S202: acquiring target device information of a target smart device from a second communication module through a first communication module, wherein the first communication module is a near field communication module on a terminal device of the target object, and the second communication module is a near field communication module on the target smart device.
[0027] The smart device binding method in this embodiment can be applied to the scenario of binding smart home devices through terminal devices. The above-mentioned smart home devices can be smart home devices (such as smart home appliances) located in the user's home, and can be electronic devices equipped with smart chips such as smart TVs, smart refrigerators, and smart water heaters. Compared with traditional home appliances, the above-mentioned smart home devices have added computing modules, network interfaces, input and output devices, etc., so that the smart home devices in this embodiment have the functions of intelligent analysis and intelligent services.
[0028] In this embodiment, the binding reference information of the device to be bound can be obtained through the terminal device of the target object, so that the device to be bound and the target object can be bound according to the obtained binding reference information. Here, the terminal device can be a user's mobile terminal, etc., the target object can be the user of the terminal device, or it can be the object represented by the target account used to log in to the target application on the terminal device. Here, the target application can be an application corresponding to the Internet of Things cloud platform, such as a smart home appliance application, through which the target object or the smart device to which the target object belongs can be bound.
[0029] The target smart device may be a smart device that has been bound to the target object or an unbound smart device. When the target smart device needs to be bound or managed, the target device information of the target smart device can be obtained from the second communication module through the first communication module. The first communication module is a near field communication (NFC) module on the terminal device, and the second communication module is a near field communication module on the target smart device.
[0030] Optionally, the target device information may be the device identification information of the target smart device or the network configuration information of the target smart device, which is not limited in this embodiment. For example, the DID (Device Identification, device identification, device ID, used to identify the device model code, which may be a unique identifier of the device) sent by the device NFC module (an example of the above-mentioned second communication module) on the smart device may be obtained through the terminal NFC module (an example of the above-mentioned first communication module) on the smart device, or the device SSID (Service Set Identifier, service set identification) and device Password (password for connecting to the router) stored in the smart device may be obtained through the terminal NFC module on the smart phone.
[0031] Optionally, the above process of obtaining the target device information of the target smart device from the second communication module through the first communication module may be: when the distance between the first communication module and the second communication module is less than or equal to a set distance threshold, the target device information of the target smart device is obtained from the second communication module through the first communication module.
[0032] It should be noted that in order to save resource consumption caused by the second communication module, the second communication module can be set as a closable communication module. When the second communication module is in the on state, the target object can obtain the target device information of the target smart device from the second communication module through the first communication module, and when the second communication module is in the off state, the target object cannot obtain the target device information of the target smart device from the second communication module through the first communication module.
[0033] Step S204, when it is determined according to the target device information that the target smart device is not bound to the target object, obtaining binding reference information, wherein the binding reference information is information used to bind the target smart device to the target object.
[0034] In this embodiment, after obtaining the target device information of the target smart device, the terminal device can determine whether the target smart device is bound to the target object according to the obtained target device information. For example, it can be determined whether the smart device has established a connection with the user object through the obtained DID; or it can be determined whether the smart device has established a connection with the user object through the obtained device SSID and device PASSWORD.
[0035] Optionally, when it is determined based on the target device information that the target smart device is not bound to the target object, binding reference information can be obtained, and the above binding reference information is the information used to bind the target smart device to the target object. For example, when the smartphone perceives that the smart home appliance is a new home appliance, it is not connected to the network and has not been configured for binding, then the terminal SSID, terminal PASSWORD, USEID (User Identification, user unique identifier), FID (Family Identification, family unique identifier), FKEY (Family Key, family communication and authentication key) and other binding reference information stored in the smartphone can be automatically sent to the smart home appliance.
[0036] Optionally, in order to more conveniently obtain the binding reference information, the binding reference information can be encapsulated into a data packet and stored in the terminal device. When it is determined according to the target device information that the target smart device is not bound to the target object, the data packet can be called from the terminal device, thereby speeding up the process of obtaining the binding reference information.
[0037] Optionally, when it is determined according to the target device information that the target smart device is not bound to the target object, but the target smart device has been bound to other objects, the binding reference information may not be obtained, that is, the target smart device is not re-bound to the target object, or the binding reference information may be obtained, that is, the target smart device is re-bound to the target object. This is not limited in this embodiment.
[0038] It should be noted that when the target smart device is re-bound to the target object, in order to ensure the security of user privacy, a prompt message can be sent to the binding object of the target smart device to prompt the binding object that other objects have requested to establish a binding relationship with the target smart device. After receiving the binding consent message sent by the binding object, the target smart device is re-bound to the target object. If the target smart device is re-bound to the target object, the binding relationship with the original binding object can be released, or the binding relationship with the original binding object can be maintained.
[0039] Step S206: Send the binding reference information to the second communication module through the first communication module, so that the target smart device uses the binding reference information to bind with the target object.
[0040] In this embodiment, after acquiring the binding reference information, the terminal device may send the binding reference information to the second communication module through the first communication module, so that the target smart device uses the binding reference information to bind to the target object.
[0041] In this embodiment, after the terminal device sends the binding reference information to the second communication module, the target smart device can receive the binding reference information and bind with the target object according to the received binding reference information. Optionally, after receiving the binding reference information, the target smart device can send a feedback message to the terminal device, and the feedback message is used to feedback to the terminal device that the binding reference information has been received. When the terminal device does not receive the feedback message sent by the target smart device within a preset time threshold, the binding reference information can be re-sent to the second communication module through the first communication module.
[0042] Optionally, when the terminal device does not receive a feedback message sent by the target smart device within a preset number of times, a prompt message may be sent to the target object to prompt the target object that the target smart device cannot be bound to the target object at this time.
[0043] It should be noted that the terminal device may also send the binding reference information to the second communication module via other communication modules on the terminal device. For example, the binding reference information may be sent to the target smart device via a BLE module or a WIFI module on a smart phone.
[0044] Through the above steps S202 to S206, the target device information of the target smart device is obtained from the second communication module through the first communication module, wherein the first communication module is a near field communication module on the terminal device of the target object, and the second communication module is a near field communication module on the target smart device; when it is determined according to the target device information that the target smart device is not bound to the target object, binding reference information is obtained, wherein the binding reference information is information used to bind the target smart device to the target object; the binding reference information is sent to the second communication module through the first communication module, so that the target smart device uses the binding reference information to bind to the target object, thereby solving the problem of low efficiency of device binding due to low success rate of establishing connection with the device in the device binding method in the related art, thereby improving the efficiency of device binding.
[0045] In an exemplary embodiment, acquiring target device information of a target smart device from a second communication module through a first communication module includes:
[0046] S11, when the distance between the first communication module and the second communication module is less than or equal to a trigger distance threshold, acquiring target device information from the second communication module through the first communication module.
[0047] In this embodiment, the terminal device can obtain the target device information from the second communication module through the first communication module when the distance between the first communication module and the second communication module is less than or equal to the trigger distance threshold. For example, a smart phone can be brought close to the NFC area of a smart home appliance, and communication is triggered when the distance is less than the trigger distance (10 cm).
[0048] Since the position of the first communication module on the terminal device is fixed, the position of the second communication module on the target smart device is also fixed. Optionally, when the distance between the terminal device and the target smart device is less than or equal to the trigger distance threshold, the target device information can be obtained from the second communication module through the first communication module.
[0049] Optionally, the distance between the first communication module and the second communication module can be the physical distance between the first communication module and the second communication module, that is, the real distance between the first communication module and the second communication module. When the distance between the first communication module and the second communication module is less than or equal to the trigger distance threshold, near-field communication between the first communication module and the second communication module is triggered. At this time, the first communication module can receive the signal sent by the second communication module, and the second communication module can receive the signal sent by the first communication module.
[0050] Through this embodiment, when the distance between the communication module of the terminal device and the communication module of the smart device is less than or equal to the trigger distance threshold, the transmission of device information is triggered, which can improve the success rate of device information transmission.
[0051] In an exemplary embodiment, after acquiring the target device information of the target smart device from the second communication module through the first communication module, the method further includes:
[0052] S21, when the device identification of the target smart device does not belong to the device identification bound to the target object, determining that the target smart device is not bound to the target object, wherein the target device information includes the device identification of the target smart device; or
[0053] S22: When the network configuration information of the target smart device is empty or is initial configuration information, determine that the target smart device is not bound to the target object, wherein the target device information includes the network configuration information of the target smart device.
[0054] In this embodiment, after the target device information of the target smart device is obtained from the second communication module through the first communication module, the terminal device can determine whether the target smart device is bound to the target object according to the target device information. For example, a smart phone can automatically communicate with a smart home appliance and determine whether the smart home appliance has completed the network connection and binding with the user according to the information on the smart home appliance.
[0055] The process of determining whether the target smart device is bound to the target object based on the target device information may be: determining whether the target smart device is bound to the target object based on the device identification of the target smart device; or determining whether the target smart device is bound to the target object based on the network configuration information of the target smart device.
[0056] As an optional implementation, when the device identification of the target smart device does not belong to the device identification bound to the target object, it can be determined that the target smart device is not bound to the target object, and the above target device information includes the device identification of the target smart device. For example, when the device identification of the smart home appliance is A, and the device identification of the device bound to the user object of the terminal device is B, C, or D, it can be determined that the smart home appliance does not belong to the device identification bound to the user object.
[0057] As another optional implementation, when the network configuration information of the target smart device is empty or initial configuration information, it can be determined that the target smart device is not bound to the target object, and the target device information includes the network configuration information of the target smart device. For example, when the network configuration information of the smart home appliance shows that the device SSID and the device PASSWORD are empty, it can be determined that the smart home appliance does not belong to the device identification bound to the user object.
[0058] Through this embodiment, whether the smart device is bound to the target object is determined according to the device identification or network configuration information of the smart device, which can simplify the process of determining whether the smart device is bound to the target object and improve the binding speed of the smart device.
[0059] In an exemplary embodiment, after sending the binding reference information to the second communication module through the first communication module, the method further includes:
[0060] S31, receiving, through the second communication module, binding reference information sent by the first communication module, wherein the binding reference information includes network connection information for connecting to a target server and object binding information for binding with a target object;
[0061] S32, using the network connection information to establish a network connection between the target smart device and the target server;
[0062] S33, the network connection between the target smart device and the target server uses the object binding information to bind the target smart device to the target object.
[0063] In this embodiment, for the target smart device, after the binding reference information is sent to the second communication module through the first communication module, the target smart device can receive the binding reference information sent by the first communication module through the second communication module, and the above binding reference information includes network connection information for connecting to the target server and object binding information for binding with the target object. For example, the smart home appliance can receive the binding reference information through the device NFC module set, and the binding reference information may include all or part of the terminal SSID, terminal PASSWORD, USEID, FID, FKEY, etc.
[0064] Optionally, the process of receiving the binding reference information sent by the first communication module through the second communication module is similar to the process of acquiring the target device information of the target smart device from the second communication module through the first communication module, which is not limited in this embodiment.
[0065] After receiving the binding reference information sent by the first communication module, the target smart device can use the network connection information to establish a network connection between the target smart device and the target server. For example, after receiving the terminal SSID, terminal PASSWORD, USEID, FID, and FKEY information, the smart home appliance can automatically connect to the router and connect to the IoT cloud (i.e., the IoT cloud platform) according to the terminal SSID, terminal PASSWORD and other information.
[0066] After the network connection between the target smart device and the target server is established using the network connection information, the target smart device can use the object binding information included in the binding reference information to bind the target smart device to the target object. Optionally, the target smart device can use the object binding information to bind the target smart device to the target object through the network connection with the target server. For example, a smart home appliance can send its own information DID, DKEY, TYPEID (Type Identification, device type unique identification) and obtain USEID, FID, FKEY and other information to the IoT cloud to apply for binding users and join the family.
[0067] Optionally, after binding the target smart device to the target object, the target smart device can continue to communicate with the terminal device so that the terminal device can obtain the required device information. For example, after binding the smart home appliance to the object, the terminal device can continue to communicate with the smart home appliance through the NFC module to obtain the device information of the smart home appliance, such as DID, DKEY, TYPEID, etc.
[0068] Optionally, the process of binding the target smart device to the target object may be associating the target device information of the target smart device with the object binding information. For example, the DID and the USERID may be associated to bind the device to the user object and add the device to the home, and the association may be performed by the target server.
[0069] Through this embodiment, by using network connection information to perform device network configuration and using object binding information to perform device binding, the success rate of device binding can be improved and the efficiency of device binding can be improved.
[0070] In an exemplary embodiment, the method further comprises:
[0071] S41, when the target smart device is successfully bound to the target object, determining the target device function supported by the target smart device according to the device type of the target smart device;
[0072] S42, displaying a device control page corresponding to the target smart device on the terminal device, wherein the device control page includes a target function identifier corresponding to the target device function, and the target function identifier is used to control the target smart device to perform a device operation corresponding to the target device function.
[0073] In this embodiment, when it is determined that the target smart device is successfully bound to the target object, the target device function supported by the target smart device can be determined according to the device type of the target smart device. The target device function supported by the target smart device can be obtained from the target server using the device type of the target smart device, and the obtained device function information can match the target smart device. For example, when the device type of the smart home appliance is a smart air conditioner, the device function supported by the smart home appliance can be a temperature adjustment function; when the device type of the smart home appliance is a smart TV, the device function supported by the smart home appliance can be a video playback function.
[0074] Optionally, the process of determining the target device function supported by the target smart device according to the device type of the target smart device may be: first, determining the device type corresponding to the target smart device according to the device type identifier of the target smart device, and then determining the target device function supported by the target smart device according to the device type of the target smart device. For example, the device type of the smart home appliance may be determined according to the TYPEID information in the device information corresponding to the smart home appliance.
[0075] Optionally, the device type identifiers correspond to device types one by one, and different device type identifiers may correspond to different device types. For example, the device type corresponding to the device type identifier "1" may be a smart air conditioner, and the device type corresponding to the device type identifier "2" may be a smart TV.
[0076] After determining the target device function supported by the target smart device, the device control page corresponding to the target smart device can be displayed on the terminal device. The device control page contains the target function identifier corresponding to the target device function, and the target function identifier is used to control the target smart device to perform the device operation corresponding to the target device function. For example, detailed information can be obtained in the IoT cloud based on device information such as DID and TYPEID to generate a card page, and the detail page can be preloaded on the smartphone.
[0077] Optionally, the above-mentioned device control page may include device function options corresponding to the target smart device. By performing target operations on the device function options, the target smart device can be controlled to perform corresponding device functions. For example, when the smart home appliance is an air conditioner, the details page may include options for increasing the temperature and lowering the temperature. When the user clicks the option for lowering the temperature, the smart home appliance will lower the temperature.
[0078] Optionally, the device control page may include a device status option corresponding to the target smart device, and the device status is used to indicate whether the target smart device is online at the current moment. For example, the details page corresponding to the smart home appliance may include a device status corresponding to the target smart device, and the device status is used to indicate the status of one or more device attributes of the target smart device, and may include the current status of the device (e.g., current status, offline status). For example, the device status can be obtained through a mobile phone App (Application), and the device can be controlled and managed normally when it is online.
[0079] It should be noted that the target smart device can periodically send survival messages to the server. When the server receives the survival message, it can be determined that the target smart device is online. When the server does not receive the survival message sent by the target smart device within a threshold time or a threshold number of times, it can be considered that the target smart device is offline at this time, and a prompt message is sent to the terminal device of the target object bound to the target smart device to prompt the terminal device that the target smart device is offline at this time.
[0080] Through this embodiment, the device functions supported by the smart device are determined according to the device type of the smart device, and the device control page corresponding to the smart device is displayed on the terminal device, which can simplify the control process of the smart device and improve the user experience.
[0081] In an exemplary embodiment, before displaying the device control page corresponding to the target smart device on the terminal device, the method further includes:
[0082] S51, obtaining a device key of a target smart device from a second communication module through the first communication module;
[0083] S52: Use the device key of the target smart device to obtain the device control authority of the target smart device.
[0084] In this embodiment, before (or after) the device control page corresponding to the target smart device is displayed on the terminal device, the terminal device can obtain the device key of the target smart device from the second communication module through the first communication module. For example, the mobile phone terminal can obtain the DKEY (Device Key) of the smart appliance from the device NFC module of the smart appliance through the terminal NFC module.
[0085] Optionally, the process of acquiring the device key of the target smart device from the second communication module through the first communication module is similar to the process of acquiring the target device information of the target smart device from the second communication module through the first communication module, which will not be described in detail in this implementation.
[0086] Optionally, after obtaining the device key of the target smart device, the terminal device can use the device key of the target smart device to obtain the device control permission of the target smart device. For example, a smartphone can automatically start the smart home appliance application APP based on the TYPEID information and jump to the details page, and obtain control and management permissions through DID and DKEY.
[0087] Through this embodiment, before displaying the device control page, the device control authority of the smart device is obtained by using the device key of the smart device, so that the security of the device control page can be improved.
[0088] In an exemplary embodiment, after displaying a device control page corresponding to the target smart device on the terminal device, the method further includes:
[0089] S61, when the target smart device is in an online state, in response to a trigger operation performed on a target function identifier, generating an operation control instruction, wherein the operation control instruction is used to control the target smart device to perform a target device operation corresponding to the target device function;
[0090] S62: Send the operation control instruction to the target smart device to control the target smart device to perform the target device operation.
[0091] In this embodiment, after the device control page corresponding to the target smart device is displayed on the terminal device, different device operations can be performed on the target smart device according to the state of the target smart device. Optionally, when the target smart device is in an online state, an operation control instruction can be generated in response to a trigger operation performed on the target function identifier, and the operation control instruction is used to control the target smart device to perform the target device operation corresponding to the target device function.
[0092] Optionally, the process of generating an operation control instruction in response to a trigger operation performed on a target function identifier may be: after detecting a trigger operation on the target function identifier, generating an operation control instruction corresponding to the target device function according to the target device function corresponding to the target function identifier. For example, after detecting a trigger operation on a temperature increase identifier on a detail page of an air conditioner, a control instruction corresponding to temperature increase may be generated.
[0093] Optionally, the trigger operation performed on the target function identifier may be a click operation performed on the target function identifier, or a press operation performed on the target function identifier, or other operations performed on the target function identifier, which is not limited in this embodiment.
[0094] It should be noted that the above-mentioned trigger operation performed on the target function identifier can also be a voice operation performed on the target function identifier. For example, when the smartphone receives the control instruction "Raise the air conditioner temperature by 2 degrees" sent by the user, it can respond to the voice instruction sent to the temperature increase identifier (target function identifier) and generate a control instruction corresponding to increasing the temperature.
[0095] After the operation control instruction is generated, the operation control instruction can be sent to the target smart device to control the target smart device to perform the target device operation. Optionally, the process of sending the operation control instruction to the target smart device can be: sending the operation control instruction to the second communication module through the first communication module, or sending the operation control instruction to the target smart device via the cloud server (for example, the target server). This is not limited in this embodiment.
[0096] Through this embodiment, when the smart device is online, by performing a trigger operation on the device function identifier in the device control page, the smart device is controlled to execute the corresponding device function, which can improve the flexibility of device control and thus enhance the user experience.
[0097] The following is an explanation of the smart device binding method in the embodiment of the present application in conjunction with an optional example. In this optional example, the terminal device is a mobile phone terminal, the first communication module is a terminal NFC module, the target smart device is a smart home appliance, and the second communication module is a device NFC module.
[0098] The related art provides a variety of solutions for smart devices to join the network and bind users, but for most users, they are still too complicated. In order to facilitate user use, it is usually adopted to reduce restrictions, which will greatly increase the probability of misoperation. In order to ensure the safety of device operation, some restrictions need to be added, which will increase the complexity of smart devices joining the network and binding users.
[0099] In the related technologies, most of them scan the passive NFC tag information through the mobile phone, obtain the device information, use the device information to find the device through WiFi or BLE and establish a connection with the device to complete the network configuration. The process of device access and binding can be as follows: Figure 3 As shown:
[0100] The first step is to turn on the NFC function and App on your phone and touch the NFC tag of the device;
[0101] In the second step, the mobile phone obtains the device ID information through NFC, and the "App" uses BLE or Wi-Fi to find the device with the corresponding device ID information and establish a connection with the device;
[0102] In the third step, the user uses the "App" to send the network SSID and Password to the smart device using BLE or Wi-Fi communication;
[0103] Step 4: Connect smart devices to the IoT cloud;
[0104] In the fifth step, the IoT Cloud associates the user ID with the device ID, and all devices under the account can be found and managed through the user ID. After completing the device access and binding, the user can manage and control the device anywhere with network by logging into the account.
[0105] It can be seen from the above process that in the smart device binding method in the related technology, when the user is connecting the device to the network, the user needs to establish a connection between the mobile phone and the device through BLE or Wi-Fi. For some mobile phones using closed operating systems, it is impossible to automatically find the device and accurately establish a connection with the device. It is often necessary to manually select the hotspot name or BLE name of the device through the settings of the mobile phone to establish a connection. In addition, because the distance between the mobile phone and the device WiFi or BLE communication component is uncertain during use, and there are BLE compatibility issues, therefore, using the above device binding method, there is a certain probability that the device binding will fail, reducing the user experience.
[0106] In addition, when the user changes the router password, the device needs to reconnect to the network, and the user needs to repeat the above complex network connection operation, which will further reduce the user experience. Moreover, if the user changes the router and the router password multiple times, each time the router and the router password are changed, the device needs to be reconnected.
[0107] It can be seen that the smart device binding method in the related technology has a cumbersome process of device configuration and network access, which requires users to operate smart devices, mobile phone App applications, etc. multiple times. Mobile phone App applications need to communicate with devices in various ways. The process is cumbersome and difficult for users to use, which affects the user experience.
[0108] This optional example provides a method for implementing network information settings and a method and system for network self-recovery using NFC communication. By combining the unique security features and clear intention features of NFC, through active NFC technology, and using the characteristics of NFC, the user's intention can be accurately judged. When the user's mobile phone touches NFC, the network SSID, Password, USERID, FID, and FKEY are sent to the device at the same time. The device uses the SSID / Password to accurately connect to the network and connect to the IoT cloud. The device sends the DID, FID, and FKEY to the IoT cloud, and the IoT cloud completes the binding of the device and the home. At the same time, the mobile phone can obtain the device's DID, DKEY, and TYPEID through NFC, create a device card on the mobile phone card page, and the mobile phone pre-pull the details page at the same time. When the device is connected to the IoT cloud platform and the App application on the mobile phone is connected to the IoT cloud platform, they are connected asynchronously at the same time and are independent of each other, which greatly improves the user experience.
[0109] At the same time, if the user changes the router password, as long as the router's FID and FKEY have not changed, the device can automatically connect to the network based on the updated SSID and password. On the one hand, it can easily allow the device to access the network safely and accurately, and on the other hand, when the router or mobile phone information changes, it can easily achieve network self-recovery. When the device is connected to the network, the mobile phone App generates a card page and preloads it asynchronously at the same time, which greatly improves the user experience. In addition, the method of synchronizing device network information based on FID and FKEY makes it more convenient for new devices to access the network and replace routers.
[0110] For an NFC smart appliance (a smart appliance with an NFC module), the NFC smart appliance is powered on, and the user opens the App and the NFC on the phone. With a few simple steps, the smart function can be enabled. Figure 4 As shown, when the smart home appliance is a new device with no configuration information, the process of the smart device binding method in this optional example may include the following steps:
[0111] Step S402: NFC communication is triggered when the distance is less than 10 cm.
[0112] Bring your mobile phone close to the NFC area of the smart appliance, and trigger communication when the distance is less than the trigger distance (10cm).
[0113] Step S404: The mobile phone communicates with the smart home appliance to obtain the status of the smart home appliance.
[0114] The mobile phone communicates with the smart home appliance automatically. The mobile phone first determines whether the smart home appliance has completed the network connection and binding with the user based on the information on the smart home appliance.
[0115] Step S406: If the mobile phone detects that the smart home appliance is in the factory state, the mobile phone automatically sends SSID, PASSWORD, USERID, FID, and FKEY to the smart home appliance.
[0116] The mobile phone senses that this is a new home appliance, which is not connected to the Internet and has not been configured and bound. Then the mobile phone automatically sends the SSID, Password, USEID, FID, and FKEY to the smart home appliance.
[0117] Step S4081, obtain DID, DKEY, and TYPEID.
[0118] For the mobile phone App side, it can continue to communicate with smart home appliances through NFC to obtain DID, DKEY, and TYPEID.
[0119] Step S4082, connect to the router, connect to the cloud, apply to bind the user, and join the family.
[0120] For the smart home appliance side, after receiving the SSID, Password, USEID, FID, and FKEY information, the smart home appliance automatically connects to the router, connects to the IoT cloud, sends its own information DID, DKEY, TYPEID and the information USEID, FID, and FKEY just obtained to the IoT cloud, applies to bind the user, and join the family.
[0121] Step S4101, generate a card page and preload the details page.
[0122] For the mobile app side, it can obtain detailed information from the IoT cloud based on DID and TYPEID to generate a card page and preload the details page.
[0123] Step S4102, bind the device.
[0124] On the IoT cloud side, the IoT cloud can bind devices (associate DID and USERID) and add devices to the home.
[0125] Step S412, obtaining device status and control.
[0126] The mobile app obtains the device status, and the device can be controlled and managed normally when it is online.
[0127] Combination Figure 5 As shown, when the home appliance already has configuration information, the process of the smart device binding method in this optional example may include the following steps:
[0128] Step S502: NFC communication is triggered when the distance is less than 10 cm.
[0129] The mobile phone is brought close to the NFC area of the smart appliance, and communication is triggered when the distance is less than the trigger distance (10cm).
[0130] Step S504: The mobile phone communicates with the smart home appliance to obtain the status of the smart home appliance.
[0131] The mobile phone communicates with the smart home appliance automatically, and the mobile phone determines whether the smart home appliance has completed the network connection and binding with the user based on the information on the smart home appliance.
[0132] Step S506: The mobile phone senses that this is a home appliance connected to the network, and the mobile phone App communicates with the smart home appliance through NFC to obtain DID, DKEY, and TYPEID.
[0133] Step S508: The mobile phone automatically starts the App according to the TYPEID information and jumps to the detail page, and obtains control and management permissions through DID and DKEY.
[0134] Step 510, obtain device status and control.
[0135] The mobile app obtains the device status, and the device can be controlled and managed normally when it is online.
[0136] Through this embodiment, the two-way communication technology based on the NFC active module of the mobile phone App can be used to complete the device settings conveniently, safely and quickly, and a good asynchronous and waiting-free experience can be achieved through the corresponding device DID and DKEY authentication; through the physical distance security limit, users near the device can easily obtain device control and management permissions, which is quick and convenient; and the electronic communication capabilities and wireless communication capabilities of active NFC are fully utilized to conveniently realize two-way communication between the mobile phone and the home appliance baseboard; at the same time, due to the certainty of distance, the problem of uncertainty in traditional BLE and Wi-Fi configuration binding solutions is solved, and the problem that passive NFC can only communicate in one direction is also solved.
[0137] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0138] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM (Read-Only Memory) / RAM (Random Access Memory), a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0139] According to another aspect of the embodiments of the present application, a smart device binding apparatus for implementing the above-mentioned smart device binding method is also provided. Figure 6 is a structural block diagram of an optional smart device binding device according to an embodiment of the present application, such as Figure 6 As shown, the device may include:
[0140] A first acquisition unit 602 is used to acquire target device information of a target smart device from a second communication module through a first communication module, wherein the first communication module is a near field communication module on a terminal device of the target object, and the second communication module is a near field communication module on the target smart device;
[0141] The second acquisition unit 604 is connected to the first acquisition unit 602 and is used to acquire binding reference information when it is determined according to the target device information that the target smart device is not bound to the target object, wherein the binding reference information is information used to bind the target smart device to the target object;
[0142] The first sending unit 606 is connected to the second acquiring unit 604 and is configured to send the binding reference information to the second communication module through the first communication module, so that the target smart device uses the binding reference information to bind with the target object.
[0143] It should be noted that the first acquisition unit 602 in this embodiment can be used to execute the above step S202, the second acquisition unit 604 in this embodiment can be used to execute the above step S204, and the first sending unit 606 in this embodiment can be used to execute the above step S206.
[0144] Through the above modules, the target device information of the target smart device is obtained from the second communication module through the first communication module, wherein the first communication module is a near field communication module on the terminal device of the target object, and the second communication module is a near field communication module on the target smart device; when it is determined according to the target device information that the target smart device is not bound to the target object, binding reference information is obtained, wherein the binding reference information is information used to bind the target smart device to the target object; the binding reference information is sent to the second communication module through the first communication module, so that the target smart device uses the binding reference information to bind to the target object, thereby solving the problem of low efficiency of device binding due to low success rate of establishing connection with the device in the device binding method in the related art, and improving the efficiency of device binding.
[0145] In an exemplary embodiment, the first acquiring unit includes:
[0146] The acquisition module is used to acquire the target device information from the second communication module through the first communication module when the distance between the first communication module and the second communication module is less than or equal to a trigger distance threshold.
[0147] In an exemplary embodiment, the above device further comprises:
[0148] A first determining unit is configured to determine that the target smart device is not bound to the target object after acquiring the target device information of the target smart device from the second communication module through the first communication module, if the device identification of the target smart device does not belong to the device identification bound to the target object, wherein the target device information includes the device identification of the target smart device; or
[0149] The second determining unit is configured to determine that the target smart device is not bound to the target object when the network configuration information of the target smart device is empty or is initial configuration information, wherein the target device information includes the network configuration information of the target smart device.
[0150] In an exemplary embodiment, the above device further comprises:
[0151] a receiving unit, configured to receive the binding reference information sent by the first communication module through the second communication module after the binding reference information is sent to the second communication module through the first communication module, wherein the binding reference information includes network connection information for connecting to a target server and object binding information for binding with a target object;
[0152] An establishing unit, used to establish a network connection between a target smart device and a target server using the network connection information;
[0153] The binding unit is used for the network connection between the target intelligent device and the target server to bind the target intelligent device with the target object using the object binding information.
[0154] In an exemplary embodiment, the above device further comprises:
[0155] A third determining unit is used to determine the target device function supported by the target smart device according to the device type of the target smart device when the target smart device is successfully bound to the target object;
[0156] The display unit is used to display a device control page corresponding to the target smart device on the terminal device, wherein the device control page includes a target function identifier corresponding to the target device function, and the target function identifier is used to control the target smart device to perform a device operation corresponding to the target device function.
[0157] In an exemplary embodiment, the above device further comprises:
[0158] A third acquisition unit, configured to acquire a device key of the target smart device from the second communication module through the first communication module before displaying a device control page corresponding to the target smart device on the terminal device;
[0159] The fourth acquisition unit is used to acquire the device control authority of the target smart device using the device key of the target smart device.
[0160] In an exemplary embodiment, the above device further comprises:
[0161] A generating unit, configured to generate an operation control instruction in response to a trigger operation performed on a target function identifier after displaying a device control page corresponding to a target smart device on a terminal device, when the target smart device is in an online state, wherein the operation control instruction is used to control the target smart device to perform a target device operation corresponding to the target device function;
[0162] The second sending unit is used to send the operation control instruction to the target smart device to control the target smart device to perform the target device operation.
[0163] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.
[0164] According to another aspect of the embodiments of the present application, a storage medium is further provided. Optionally, in this embodiment, the storage medium can be used to execute the program code of any of the smart device binding methods in the embodiments of the present application.
[0165] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.
[0166] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:
[0167] S1, acquiring target device information of a target smart device from a second communication module through a first communication module, wherein the first communication module is a near field communication module on a terminal device of the target object, and the second communication module is a near field communication module on the target smart device;
[0168] S2, when it is determined according to the target device information that the target smart device is not bound to the target object, obtaining binding reference information, wherein the binding reference information is information used to bind the target smart device to the target object;
[0169] S3: Send the binding reference information to the second communication module through the first communication module, so that the target smart device uses the binding reference information to bind with the target object.
[0170] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, which will not be described in detail in this embodiment.
[0171] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.
[0172] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned smart device binding method is also provided. The electronic device may be a server, a terminal, or a combination thereof.
[0173] Figure 7 is a structural block diagram of an optional electronic device according to an embodiment of the present application, such as Figure 7 As shown, it includes a processor 702, a communication interface 704, a memory 706 and a communication bus 708, wherein the processor 702, the communication interface 704 and the memory 706 communicate with each other through the communication bus 708, wherein,
[0174] Memory 706, used to store computer programs;
[0175] The processor 702 is used to implement the following steps when executing the computer program stored in the memory 706:
[0176] S1, acquiring target device information of a target smart device from a second communication module through a first communication module, wherein the first communication module is a near field communication module on a terminal device of the target object, and the second communication module is a near field communication module on the target smart device;
[0177] S2, when it is determined according to the target device information that the target smart device is not bound to the target object, obtaining binding reference information, wherein the binding reference information is information used to bind the target smart device to the target object;
[0178] S3: Send the binding reference information to the second communication module through the first communication module, so that the target smart device uses the binding reference information to bind with the target object.
[0179] Optionally, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The communication interface is used for communication between the electronic device and other devices.
[0180] The above-mentioned memory may include RAM, or may include non-volatile memory (non-volatile memory), for example, at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the above-mentioned processor.
[0181] As an example, the memory 706 may include but is not limited to the first acquisition unit 602, the second acquisition unit 604 and the first sending unit 606 in the control device of the device. In addition, it may also include but is not limited to other module units in the control device of the device, which will not be repeated in this example.
[0182] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0183] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0184] It can be understood by those skilled in the art that Figure 7 The structure shown is for illustration only. The device for implementing the above-mentioned smart device binding method may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 7 Different configurations shown.
[0185] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.
[0186] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0187] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0188] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0189] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0190] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.
[0191] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0192] 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 smart device binding method, characterized in that: include: Acquire target device information of a target smart device from a second communication module through a first communication module, wherein the first communication module is a near field communication module on a terminal device of a target object, and the second communication module is a near field communication module on the target smart device; In the case where it is determined according to the target device information that the target smart device is not bound to the target object, obtaining binding reference information, wherein the binding reference information is information used to bind the target smart device to the target object; Sending the binding reference information to the second communication module through the first communication module, so that the target smart device uses the binding reference information to bind to the target object; After the binding reference information is sent to the second communication module through the first communication module, the method further comprises: when the password of the router is changed and the home unique identifier and the home communication and authentication key of the router are unchanged, sending the updated service set identifier of the router and the updated password of the router to the second communication module through the first communication module, so that the target smart device automatically connects to the router; Among them, the binding reference information includes network connection information for connecting to the target server, and object binding information for binding with the target object; the object binding information includes: a user unique identifier, the family unique identifier, and the family communication and authentication key.
2. The method according to claim 1, characterized in that: The step of acquiring target device information of a target smart device from a second communication module through the first communication module includes: When the distance between the first communication module and the second communication module is less than or equal to a trigger distance threshold, the target device information is acquired from the second communication module through the first communication module.
3. The method according to claim 1, characterized in that After acquiring the target device information of the target smart device from the second communication module through the first communication module, the method further includes: In the case where the device identification of the target smart device does not belong to the device identification bound to the target object, determining that the target smart device is not bound to the target object, wherein the target device information includes the device identification of the target smart device; or In a case where the network configuration information of the target smart device is empty or is initial configuration information, it is determined that the target smart device is not bound to the target object, wherein the target device information includes the network configuration information of the target smart device.
4. The method according to claim 1, characterized in that After sending the binding reference information to the second communication module through the first communication module, the method further includes: receiving, by the second communication module, the binding reference information sent by the first communication module; Using the network connection information to establish a network connection between the target smart device and the target server; The network connection between the target smart device and the target server uses the object binding information to bind the target smart device to the target object.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: When the target smart device is successfully bound to the target object, the target device function supported by the target smart device is determined according to the device type of the target smart device; and a device control page corresponding to the target smart device is displayed on the terminal device, wherein the device control page includes a target function identifier corresponding to the target device function, and the target function identifier is used to control the target smart device to perform the device operation corresponding to the target device function.
6. The method according to claim 5, characterized in that Before displaying a device control page corresponding to the target smart device on the terminal device, the method further includes: Acquire a device key of the target smart device from the second communication module through the first communication module; The device control authority of the target smart device is obtained using the device key of the target smart device.
7. The method according to claim 5, characterized in that After displaying a device control page corresponding to the target smart device on the terminal device, the method further includes: When the target smart device is in an online state, in response to a trigger operation performed on the target function identifier, an operation control instruction is generated, wherein the operation control instruction is used to control the target smart device to perform a target device operation corresponding to the target device function; The operation control instruction is sent to the target smart device to control the target smart device to perform the target device operation.
8. A smart device binding device, characterized in that: include: A first acquisition unit, configured to acquire target device information of a target smart device from a second communication module through a first communication module, wherein the first communication module is a near field communication module on a terminal device of a target object, and the second communication module is a near field communication module on the target smart device; A second acquisition unit is configured to acquire binding reference information when it is determined according to the target device information that the target smart device is not bound to the target object, wherein the binding reference information is information used to bind the target smart device to the target object; A sending unit, configured to send the binding reference information to the second communication module through the first communication module, so that the target smart device uses the binding reference information to bind to the target object; The device is further configured to: after sending the binding reference information to the second communication module through the first communication module, if the password of the router is changed and the home unique identifier and the home communication and authentication key of the router are not changed, send the updated service set identifier of the router and the updated password of the router to the second communication module through the first communication module, so that the target smart device automatically connects to the router; Among them, the binding reference information includes network connection information for connecting to the target server, and object binding information for binding with the target object; the object binding information includes: a user unique identifier, the family unique identifier, and the family communication and authentication key.
9. 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.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
Citation Information
Patent Citations
Method and device for activating and binding intelligent equipment
CN111787517A
Binding method and device of intelligent equipment, storage medium and electronic device
CN112737845A
Intelligent equipment management method and device, storage medium and electronic equipment
CN112737899A