CN112202747A - Target device binding method and device, storage medium and electronic device - Google Patents

Target device binding method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112202747A
CN112202747A CN202011017867.XA CN202011017867A CN112202747A CN 112202747 A CN112202747 A CN 112202747A CN 202011017867 A CN202011017867 A CN 202011017867A CN 112202747 A CN112202747 A CN 112202747A
Authority
CN
China
Prior art keywords
target
binding
terminal
binding code
target device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011017867.XA
Other languages
Chinese (zh)
Inventor
古滔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011017867.XA priority Critical patent/CN112202747A/en
Publication of CN112202747A publication Critical patent/CN112202747A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Abstract

The invention discloses a binding method and a binding device of target equipment, a storage medium and an electronic device, wherein the method comprises the following steps: the method comprises the steps that under the condition that a first request sent by target equipment is received, a binding code corresponding to the target equipment is obtained from a target server, wherein the first request is used for requesting a terminal to send the binding code to the target equipment; sending the binding code to the target device; and under the condition that the target equipment passes the verification of the binding code, indicating the completion of binding the target equipment and the terminal, namely, verifying whether the terminal has the authority of binding the target equipment or not through the binding code when the target equipment and the terminal are bound, thereby ensuring the safety of the binding process.

Description

Target device binding method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for binding a target device, a storage medium, and an electronic apparatus.
Background
A smart device refers to any device, instrument, or machine having computing processing capabilities. As computer technology becomes more advanced and less expensive, various types of devices can be built, in addition to personal and palm top computers, as well as many smart devices, including medical instruments, geological equipment, and home appliances.
The smart device usually has a network connection function, and can perform operations such as query, binding, and management through an APP installed on a smart phone or a tablet computer. To implement management and operation of the smart device, the APP needs to establish a one-to-one operation relationship, which is called binding. When the intelligent equipment is used for the first time or the APP is installed and then runs for the first time, binding operation is needed. The management and operation of the intelligent device cannot be realized without binding. In the prior art, the intelligent device cannot distinguish the legality of the APP, and the intelligent device can respond to all requests. The APP searches the intelligent equipment in the same local area network, the binding request is sent after the APP finds the intelligent equipment, and the intelligent equipment responds to the binding request. After the binding is completed, the APP can manage and operate the intelligent device, and under the condition of the same local area network, the binding of the intelligent device can be realized as long as the unauthorized APP obtains the access permission of the same wifi and knows the protocol format of the intelligent device for searching and binding, and then the intelligent device is operated.
Aiming at the problems that the binding between the target equipment and the terminal lacks a necessary safety control mechanism and the like in the related technology, an effective solution is not provided yet.
Disclosure of Invention
The embodiment of the invention provides a target device binding method and device, a storage medium and an electronic device, and aims to at least solve the problems that the binding between a target device and a terminal lacks a necessary safety control mechanism and the like in the related art.
According to an aspect of the embodiments of the present invention, there is provided a target device binding method, including: the method comprises the steps that under the condition that a first request sent by target equipment is received, a binding code corresponding to the target equipment is obtained from a target server, wherein the first request is used for requesting a terminal to send the binding code to the target equipment; sending the binding code to the target device; and indicating the target equipment and the terminal to finish binding under the condition that the target equipment passes the verification of the binding code.
In an exemplary embodiment, obtaining the binding code corresponding to the target device from the target server includes: acquiring identification information corresponding to the target equipment, wherein the identification information is used for identifying the target equipment; and sending the identification information to the target server so as to acquire the binding code corresponding to the identification information from the target server.
In an exemplary embodiment, before obtaining the binding code corresponding to the target device from the target server, the method further includes: searching the devices existing in the target area to determine one or more devices meeting preset conditions, wherein the preset conditions comprise at least one of the following conditions: the equipment does not establish connection, and the equipment has a binding code; and adding one or more devices meeting the preset conditions to a target display interface of the terminal.
In an exemplary embodiment, before obtaining the binding code corresponding to the target device from the target server, the method further includes: selecting the target device from the one or more devices, and sending indication information for binding the target device and the terminal to the target device; and receiving a first request sent by target equipment, responding to the first request, and prompting the target equipment to request a binding code in the target display interface.
In an exemplary embodiment, after sending the binding code to the target device, the method further includes: and under the condition that the target equipment does not verify the binding code, displaying prompt information of binding failure on a target display interface of the terminal.
In an exemplary embodiment, after indicating that the target device and the terminal complete the binding, the method further includes: and sending a modification request to the target device in the case that the binding code sent to the target device is an initial binding code, wherein the modification request is used for instructing the target device to modify the binding code, and the initial binding code is a unique character string converted from a random number generated by the target device.
In an exemplary embodiment, obtaining the binding code corresponding to the target device from the target server includes: sending second identification information of the terminal to the target server, wherein the second identification information is used for uniquely identifying the terminal; and acquiring a binding code corresponding to the target equipment from the target server under the condition that the target server passes the verification of the terminal according to the second identification information.
According to another aspect of the embodiments of the present invention, there is also provided a binding apparatus for a target device, including: the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a binding code corresponding to target equipment from a target server under the condition of receiving a first request sent by the target equipment, and the first request is used for requesting a terminal to send the binding code to the target equipment; a sending module, configured to send the binding code to the target device; and the binding module is used for indicating the completion of binding between the target equipment and the terminal under the condition that the target equipment passes the verification of the binding code.
In an exemplary embodiment, the obtaining module is further configured to obtain first identification information corresponding to the target device, where the first identification information is located in the target device and is used to identify the target device; and sending the first identification information to the target server so as to acquire a binding code corresponding to the first identification information from the target server.
In an exemplary embodiment, the apparatus further includes: the device identification method comprises a determining module, a determining module and a processing module, wherein the determining module is used for searching devices existing in a target area to determine one or more devices meeting preset conditions, and the preset conditions comprise at least one of the following conditions: the equipment does not establish connection, and the equipment has a binding code; and adding one or more devices meeting the preset conditions to a target display interface of the terminal.
In an exemplary embodiment, the determining module is further configured to select the target device from the one or more devices, and send, to the target device, indication information for binding the target device and the terminal; and receiving a first request sent by target equipment, responding to the first request, and prompting the target equipment to request a binding code in the target display interface.
In an exemplary embodiment, the apparatus further includes: and the prompt module is used for displaying prompt information of binding failure on a target display interface of the terminal under the condition that the target equipment does not verify the binding code.
In an exemplary embodiment, the apparatus further includes: a modification module, configured to send a modification request to the target device if the binding code sent to the target device is an initial binding code, where the modification request is used to instruct the target device to modify the binding code, and the initial binding code is a unique character string converted from a random number generated by the target device.
In an exemplary embodiment, the obtaining module is further configured to send second identification information of the terminal to the target server, where the second identification information is used to uniquely identify the terminal; and acquiring a binding code corresponding to the target equipment from the target server under the condition that the target server passes the verification of the terminal according to the second identification information.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the binding method of the target device when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for binding the target device through the computer program.
In the embodiment of the invention, under the condition of receiving a first request sent by target equipment, a binding code corresponding to the target equipment is obtained from a target server, wherein the first request is used for requesting a terminal to send the binding code to the target equipment; sending the binding code to the target device; when the target device passes the verification of the binding code, the target device is indicated to finish the binding with the terminal, namely when the target device is bound with the terminal, whether the terminal has the authority of binding the target device is verified through the binding code, and the safety of the binding process is further ensured.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a computer terminal of a binding method of a target device according to an embodiment of the present invention;
FIG. 2 is a flow chart of a binding method of a target device according to an embodiment of the present invention;
fig. 3 is a schematic view of an interaction flow between an APP terminal and an intelligent device according to an optional embodiment of the present invention;
FIG. 4 is a flow chart illustrating a binding method for an intelligent device in an alternative embodiment of the invention;
FIG. 5 is a flow diagram illustrating a first binding of a smart device in an alternative embodiment of the present invention;
fig. 6 is a block diagram of a binding apparatus of a target device according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a computer terminal or a similar operation device. Taking an example of the method running on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of a method for binding target devices according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the binding method of the target device in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for binding a target device is provided, and fig. 2 is a flowchart of the method for binding a target device according to the embodiment of the present invention, where the flowchart includes the following steps:
step S202, under the condition that a first request sent by target equipment is received, a binding code corresponding to the target equipment is obtained from a target server, wherein the first request is used for requesting a terminal to send the binding code to the target equipment;
step S204, sending the binding code to the target device;
step S206, under the condition that the target device passes the verification of the binding code, indicating the completion of the binding between the target device and the terminal.
Through the steps, under the condition that a first request sent by target equipment is received, a binding code corresponding to the target equipment is obtained from a target server, wherein the first request is used for requesting a terminal to send the binding code to the target equipment; sending the binding code to the target device; when the target device passes the verification of the binding code, the target device is indicated to finish the binding with the terminal, namely when the target device is bound with the terminal, whether the terminal has the authority of binding the target device is verified through the binding code, and the safety of the binding process is further ensured.
The step S202 can be implemented in various ways, and in an alternative embodiment, the following scheme can be implemented: acquiring identification information corresponding to the target equipment, wherein the identification information is used for identifying the target equipment; the identification information is sent to the target server so as to obtain the binding code corresponding to the identification information from the target server, namely, by adopting the technical scheme, the binding code in the target server can be quickly searched, the problem that the binding code cannot be quickly confirmed when the target equipment is the same equipment is avoided, and the target equipment can be determined by the identification information which the target equipment has.
In this embodiment of the present invention, before obtaining the binding code corresponding to the target device from the target server, the method further includes: searching the devices existing in the target area to determine one or more devices meeting preset conditions, wherein the preset conditions comprise at least one of the following conditions: the equipment does not establish connection, and the equipment has a binding code; and adding one or more devices meeting the preset conditions to a target display interface of the terminal.
That is to say, when a plurality of devices exist in the target area, in order to distinguish that the devices have a binding code binding process, the devices in the target area are searched by the terminal, one or more devices which do not establish binding connection and have binding codes in the devices and meet the preset conditions are determined, the bindable devices meeting the preset conditions are displayed on a target display interface of the terminal, and therefore the target object can conveniently select the devices which need to be bound.
In this embodiment of the present invention, before obtaining the binding code corresponding to the target device from the target server, the method further includes: selecting the target device from the one or more devices, and sending indication information for binding the target device and the terminal to the target device; and receiving a first request sent by target equipment, responding to the first request, and prompting the target equipment to request a binding code in the target display interface.
When entering a binding process, the terminal sends indication information for binding to target equipment needing to be bound, the target equipment sends a first request for responding to binding to the terminal after receiving the indication information, so that the terminal displays prompt information that the target equipment needs to be subjected to binding code confirmation on an interface after receiving the first request, reminds a target object that the binding code can be input, and sends the binding code to the target equipment for confirmation after the re-input is completed.
In this embodiment of the present invention, after sending the binding code to the target device, the method further includes: and under the condition that the target equipment does not verify the binding code, displaying prompt information of binding failure on a target display interface of the terminal.
In short, in order to ensure that the connection state can be known by the target object, when the binding code uploaded to the target device is different from the binding code existing in the target device, that is, the binding code does not pass the verification of the target device, the target device sends a binding failure message to the terminal, and after the terminal receives the failure message, the terminal displays a binding failure prompt message on a target display interface, so that the target object can know the binding process in time.
In this embodiment of the present invention, after the target device is indicated to complete the binding with the terminal, the method further includes: and sending a modification request to the target device in the case that the binding code sent to the target device is an initial binding code, wherein the modification request is used for instructing the target device to modify the binding code, and the initial binding code is a unique character string converted from a random number generated by the target device.
In order to increase the security of the binding code, the target device is randomly allocated with an initial binding code when shipped from the factory and issued with the device, for example, the binding code may be a unique character string with a format of more than 10 bits, which is converted from a random number generated by the device, and when used, the binding code is bound by the initial binding code. And the target object sends a modification request to modify the binding code after finishing binding. If the binding code is modified, other target objects can only carry out the connection of the target equipment through the modified binding code, and other target objects except the target object bound by the initial code cannot modify the binding code.
In the embodiment of the present invention, acquiring, from a target server, a binding code corresponding to the target device includes: sending second identification information of the terminal to the target server, wherein the second identification information is used for uniquely identifying the terminal; and acquiring a binding code corresponding to the target equipment from the target server under the condition that the target server passes the verification of the terminal according to the second identification information.
That is, in order to ensure that the current terminal is an authorized terminal, when the terminal obtains the binding code corresponding to the target device from the target server, the terminal also sends the identification information of the terminal to the server, and when the target server confirms that the current terminal is an authorized terminal, the corresponding binding code is found out according to the received identification information of the target device and is sent to the terminal.
In order to better understand the process of the binding method of the target device, the following describes a flow of the binding method of the target device with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
In an optional embodiment of the present invention, a binding process between a terminal and a device is provided, in which an APP terminal searches for an intelligent device (equivalent to a target device in the embodiment of the present invention), the APP terminal sends a binding request to the intelligent device, the intelligent device responds to the request, waits for an APP terminal to input a binding code, the APP terminal sends the binding code, the intelligent device determines the binding code, enters the binding process after confirming that the binding code is correct, and when binding for the first time, if it is confirmed that an initial binding code is used, after binding, a user (equivalent to a target object in the embodiment of the present invention) can modify the binding code.
Optionally, fig. 3 is a schematic view of an interaction flow between an APP terminal and an intelligent device according to an optional embodiment of the present invention, including the following steps:
step S302, the APP terminal searches for the intelligent equipment and sends a binding request to the intelligent equipment;
step S304, the intelligent device responds to the binding request and waits for the APP terminal to input a binding code;
and S306, the APP terminal inputs the binding code, the intelligent device verifies the binding code, if the intelligent device is verified to enter the binding process, the binding of the intelligent device is completed, when the intelligent device is bound for the first time, the initial binding code is used, and after the binding, a user can modify the binding code.
It should be noted that, the APP terminal and the smart device must perform binding code verification before the binding operation. When the intelligent equipment leaves a factory, an initial binding code is randomly distributed and distributed along with the equipment. Binding is carried out by an initial binding code when the binding agent is used for the first time. The binding code can be modified after the first user is bound, and other users can enter the binding process only by providing the correct binding code. No other user than the first one can modify the binding code. If the binding code is forgotten, the binding operation can not be carried out. The hardware can be restored to the factory state only by restoring the factory setting mode, and the initial binding code is used again for binding.
Optionally, fig. 4 is a flowchart illustrating a binding method of an intelligent device in an optional embodiment of the present invention.
Optionally, in an optional embodiment of the present invention, a binding code is used to perform security control on a binding behavior of the intelligent device, and the binding code is stored in a Flash storage area of the intelligent device. The generation and modification mechanism of the binding code is as follows: (1) the binding code is converted from a random number generated by the intelligent equipment, and the format of the binding code is a character string with more than 10 bits, so that the uniqueness of the binding code is ensured. (2) The binding code generated by first power-on is the default binding code, and the binding code is restored to the default binding code when the system reset occurs. (3) And the user who finishes the binding process by using the default binding code for the first time obtains the modification authority of the binding code, and can send a modification instruction to enable the intelligent equipment to generate a new binding code. Fig. 5 is a flowchart illustrating first binding of an intelligent device in an alternative embodiment of the present invention.
According to the optional embodiment of the invention, an effective security control mechanism is formed when the intelligent equipment and the APP terminal are bound through the method of binding the code, the binding of the unauthorized APP terminal to the intelligent equipment is prevented, the control and operation security of the intelligent equipment is ensured, and the problem that the intelligent equipment is bound by the unauthorized APP is further avoided.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a binding apparatus for a target device is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram illustrating a structure of a binding apparatus of a target device according to an embodiment of the present invention, and as shown in fig. 6, the apparatus includes:
(1) an obtaining module 62, configured to obtain, from a target server, a binding code corresponding to a target device when a first request sent by the target device is received, where the first request is used to request a terminal to send the binding code to the target device;
(2) a sending module 64, configured to send the binding code to the target device;
(3) a binding module 66, configured to indicate that the binding between the target device and the terminal is completed when the target device verifies the binding code.
By the device, under the condition of receiving a first request sent by target equipment, a binding code corresponding to the target equipment is obtained from a target server, wherein the first request is used for requesting a terminal to send the binding code to the target equipment; sending the binding code to the target device; when the target device passes the verification of the binding code, the target device is indicated to finish the binding with the terminal, namely when the target device is bound with the terminal, whether the terminal has the authority of binding the target device is verified through the binding code, and the safety of the binding process is further ensured.
In an exemplary embodiment, the obtaining module is further configured to obtain first identification information corresponding to the target device, where the first identification information is located in the target device and is used to identify the target device; the first identification information is sent to the target server, so that the target server can obtain the binding code corresponding to the first identification information, namely, by the technical scheme, the binding code in the target server can be quickly found, the problem that the binding code cannot be quickly confirmed when the target equipment is the same equipment is avoided, and the target equipment can be determined by the identification information which is provided by the target equipment.
In an exemplary embodiment, the apparatus further includes: the device identification method comprises a determining module, a determining module and a processing module, wherein the determining module is used for searching devices existing in a target area to determine one or more devices meeting preset conditions, and the preset conditions comprise at least one of the following conditions: the equipment does not establish connection, and the equipment has a binding code; and adding one or more devices meeting the preset conditions to a target display interface of the terminal.
That is to say, when a plurality of devices exist in the target area, in order to distinguish that the devices have a binding code binding process, the devices in the target area are searched by the terminal, one or more devices which do not establish binding connection and have binding codes in the devices and meet the preset conditions are determined, the bindable devices meeting the preset conditions are displayed on a target display interface of the terminal, and therefore the target object can conveniently select the devices which need to be bound.
In an exemplary embodiment, the determining module is further configured to select the target device from the one or more devices, and send, to the target device, indication information for binding the target device and the terminal; and receiving a first request sent by target equipment, responding to the first request, and prompting the target equipment to request a binding code in the target display interface.
When entering a binding process, the terminal sends indication information for binding to target equipment needing to be bound, the target equipment sends a first request for responding to binding to the terminal after receiving the indication information, so that the terminal displays prompt information that the target equipment needs to be subjected to binding code confirmation on an interface after receiving the first request, reminds a target object that the binding code can be input, and sends the binding code to the target equipment for confirmation after the re-input is completed.
In an exemplary embodiment, the apparatus further includes: and the prompt module is used for displaying prompt information of binding failure on a target display interface of the terminal under the condition that the target equipment does not verify the binding code.
In short, in order to ensure that the connection state can be known by the target object, when the binding code uploaded to the target device is different from the binding code existing in the target device, that is, the binding code does not pass the verification of the target device, the target device sends a binding failure message to the terminal, and after the terminal receives the failure message, the terminal displays a binding failure prompt message on a target display interface, so that the target object can know the binding process in time.
In an exemplary embodiment, the apparatus further includes: a modification module, configured to send a modification request to the target device if the binding code sent to the target device is an initial binding code, where the modification request is used to instruct the target device to modify the binding code, and the initial binding code is a unique character string converted from a random number generated by the target device.
In order to increase the security of the binding code, the target device is randomly allocated with an initial binding code when shipped from the factory and issued with the device, for example, the binding code may be a unique character string with a format of more than 10 bits, which is converted from a random number generated by the device, and when used, the binding code is bound by the initial binding code. And the target object sends a modification request to modify the binding code after finishing binding. If the binding code is modified, other target objects can only carry out the connection of the target equipment through the modified binding code, and other target objects except the target object bound by the initial code cannot modify the binding code.
In an exemplary embodiment, the obtaining module is further configured to send second identification information of the terminal to the target server, where the second identification information is used to uniquely identify the terminal; and acquiring a binding code corresponding to the target equipment from the target server under the condition that the target server passes the verification of the terminal according to the second identification information.
That is, in order to ensure that the current terminal is an authorized terminal, when the terminal obtains the binding code corresponding to the target device from the target server, the terminal also sends the identification information of the terminal to the server, and when the target server confirms that the current terminal is an authorized terminal, the corresponding binding code is found out according to the received identification information of the target device and is sent to the terminal.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a binding code corresponding to a target device from a target server under the condition of receiving a first request sent by the target device, wherein the first request is used for requesting a terminal to send the binding code to the target device;
s2, sending the binding code to the target device;
and S3, indicating the completion of binding between the target device and the terminal under the condition that the target device passes the verification of the binding code.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a binding code corresponding to a target device from a target server under the condition of receiving a first request sent by the target device, wherein the first request is used for requesting a terminal to send the binding code to the target device;
s2, sending the binding code to the target device;
and S3, indicating the completion of binding between the target device and the terminal under the condition that the target device passes the verification of the binding code.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for binding a target device, comprising:
the method comprises the steps that under the condition that a first request sent by target equipment is received, a binding code corresponding to the target equipment is obtained from a target server, wherein the first request is used for requesting a terminal to send the binding code to the target equipment;
sending the binding code to the target device;
and indicating the target equipment and the terminal to finish binding under the condition that the target equipment passes the verification of the binding code.
2. The method of claim 1, wherein obtaining the binding code corresponding to the target device from a target server comprises:
acquiring first identification information corresponding to the target device, wherein the first identification information is located in the target device and is used for identifying the target device;
and sending the first identification information to the target server so as to acquire a binding code corresponding to the first identification information from the target server.
3. The method of claim 1, wherein prior to obtaining the binding code corresponding to the target device from the target server, the method further comprises:
searching the devices existing in the target area to determine one or more devices meeting preset conditions, wherein the preset conditions comprise at least one of the following conditions: the equipment does not establish connection, and the equipment has a binding code;
and adding one or more devices meeting the preset conditions to a target display interface of the terminal.
4. The method of claim 3, wherein prior to obtaining the binding code corresponding to the target device from the target server, the method further comprises:
selecting the target device from the one or more devices, and sending indication information for binding the target device and the terminal to the target device;
and receiving a first request sent by target equipment, responding to the first request, and prompting the target equipment to request a binding code in the target display interface.
5. The method of claim 1, wherein after sending the binding code to the target device, the method further comprises:
and under the condition that the target equipment does not verify the binding code, displaying prompt information of binding failure on a target display interface of the terminal.
6. The method of claim 1, wherein after indicating the target device to complete binding with the terminal, the method further comprises:
and sending a modification request to the target device in the case that the binding code sent to the target device is an initial binding code, wherein the modification request is used for instructing the target device to modify the binding code, and the initial binding code is a unique character string converted from a random number generated by the target device.
7. The method of claim 1, wherein obtaining the binding code corresponding to the target device from a target server comprises:
sending second identification information of the terminal to the target server, wherein the second identification information is used for uniquely identifying the terminal;
and acquiring a binding code corresponding to the target equipment from the target server under the condition that the target server passes the verification of the terminal according to the second identification information.
8. A binding apparatus of a target device, comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a binding code corresponding to target equipment from a target server under the condition of receiving a first request sent by the target equipment, and the first request is used for requesting a terminal to send the binding code to the target equipment;
a sending module, configured to send the binding code to the target device;
and the binding module is used for indicating the completion of binding between the target equipment and the terminal under the condition that the target equipment passes the verification of the binding code.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202011017867.XA 2020-09-24 2020-09-24 Target device binding method and device, storage medium and electronic device Pending CN112202747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011017867.XA CN112202747A (en) 2020-09-24 2020-09-24 Target device binding method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011017867.XA CN112202747A (en) 2020-09-24 2020-09-24 Target device binding method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112202747A true CN112202747A (en) 2021-01-08

Family

ID=74007089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011017867.XA Pending CN112202747A (en) 2020-09-24 2020-09-24 Target device binding method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112202747A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220690A (en) * 2021-05-26 2021-08-06 青岛海尔科技有限公司 Target data storage method and device, storage medium and electronic device
CN113365225A (en) * 2021-06-03 2021-09-07 青岛海尔科技有限公司 Method and device for receiving building connection result, storage medium and electronic device
CN113595992A (en) * 2021-07-07 2021-11-02 青岛海尔科技有限公司 Secure binding method and system, storage medium and electronic device
CN113596005A (en) * 2021-07-22 2021-11-02 杭州华橙软件技术有限公司 Equipment binding method, device, system, storage medium and electronic device
CN113839991A (en) * 2021-08-30 2021-12-24 青岛海尔科技有限公司 Method and device for confirming equipment information, storage medium and electronic device
CN115277387A (en) * 2021-04-30 2022-11-01 广州视源电子科技股份有限公司 Method and device for associating equipment, nonvolatile storage medium and processor

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105792103A (en) * 2016-02-19 2016-07-20 青岛海尔智能家电科技有限公司 Intelligent device binding method and device
CN108200192A (en) * 2018-01-30 2018-06-22 北京小米移动软件有限公司 The method and device of control terminal apparatus bound
CN108347731A (en) * 2018-01-11 2018-07-31 海尔优家智能科技(北京)有限公司 A kind of method, medium, equipment and terminal carrying out secure binding
CN108390873A (en) * 2018-02-11 2018-08-10 广东美的厨房电器制造有限公司 Authentication binding method, device and the system of smart machine
CN110049040A (en) * 2019-04-16 2019-07-23 深思数盾(天津)科技有限公司 To the methods, devices and systems of the control authority authorization of smart machine
CN110351169A (en) * 2019-09-06 2019-10-18 珠海格力电器股份有限公司 The method and apparatus that a kind of pair of equipment is bound

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105792103A (en) * 2016-02-19 2016-07-20 青岛海尔智能家电科技有限公司 Intelligent device binding method and device
CN108347731A (en) * 2018-01-11 2018-07-31 海尔优家智能科技(北京)有限公司 A kind of method, medium, equipment and terminal carrying out secure binding
CN108200192A (en) * 2018-01-30 2018-06-22 北京小米移动软件有限公司 The method and device of control terminal apparatus bound
CN108390873A (en) * 2018-02-11 2018-08-10 广东美的厨房电器制造有限公司 Authentication binding method, device and the system of smart machine
CN110049040A (en) * 2019-04-16 2019-07-23 深思数盾(天津)科技有限公司 To the methods, devices and systems of the control authority authorization of smart machine
CN110351169A (en) * 2019-09-06 2019-10-18 珠海格力电器股份有限公司 The method and apparatus that a kind of pair of equipment is bound

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277387A (en) * 2021-04-30 2022-11-01 广州视源电子科技股份有限公司 Method and device for associating equipment, nonvolatile storage medium and processor
CN113220690A (en) * 2021-05-26 2021-08-06 青岛海尔科技有限公司 Target data storage method and device, storage medium and electronic device
CN113365225A (en) * 2021-06-03 2021-09-07 青岛海尔科技有限公司 Method and device for receiving building connection result, storage medium and electronic device
CN113595992A (en) * 2021-07-07 2021-11-02 青岛海尔科技有限公司 Secure binding method and system, storage medium and electronic device
WO2023279897A1 (en) * 2021-07-07 2023-01-12 青岛海尔科技有限公司 Secure binding method and system, storage medium, and electronic apparatus
CN113596005A (en) * 2021-07-22 2021-11-02 杭州华橙软件技术有限公司 Equipment binding method, device, system, storage medium and electronic device
CN113839991A (en) * 2021-08-30 2021-12-24 青岛海尔科技有限公司 Method and device for confirming equipment information, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN112202747A (en) Target device binding method and device, storage medium and electronic device
EP3337219B1 (en) Carrier configuration processing method, device and system, and computer storage medium
CN104967997A (en) Wireless network accessing method, Wi-Fi equipment, terminal equipment and system
CN103152402A (en) Method and system for logging in through mobile terminal and cloud server
CN111355723B (en) Single sign-on method, device, equipment and readable storage medium
CN105337974A (en) Account authorization method, account login method, account authorization device and client end
CN104580235A (en) Authentication method and authentication system for equipment connection
CN111065090A (en) Method for establishing network connection and wireless routing equipment
CN112292845B (en) Information processing apparatus, information processing method, and program
CN104469736A (en) Data processing method, server and terminal
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
CN101800985B (en) Authentication method and system, terminal, server and data downloading method and device
CN113438264B (en) Wearable massager connection method, device, computer equipment and storage medium
CN112466053A (en) Control system of household appliance and execution method and device of target operation
CN111372224A (en) Method, device and equipment for sharing seed code number by eSIM (embedded subscriber identity Module)
CN111131324A (en) Login method and device of business system, storage medium and electronic device
CN113301557B (en) eSIM card state management method, device, equipment and storage medium
CN111159693B (en) Electronic equipment permission verification method, device and system and readable medium
CN113709849A (en) Network access method and device of equipment to be accessed to network, storage medium and electronic device
EP3331257A1 (en) Terminal configuration management method and apparatus
CN114585055A (en) Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal
CN110851161B (en) Firmware updating method for intelligent household equipment
CN112600744A (en) Authority control method and device, storage medium and electronic device
CN110769399B (en) Internet of things equipment connection networking method, internet of things equipment system and information access and transmission method
CN109241728B (en) Method and device for acquiring password information, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210108

RJ01 Rejection of invention patent application after publication