Movatterモバイル変換


[0]ホーム

URL:


CN112448873B - Binding method and device for equipment and computer readable storage medium - Google Patents

Binding method and device for equipment and computer readable storage medium
Download PDF

Info

Publication number
CN112448873B
CN112448873BCN202011291547.3ACN202011291547ACN112448873BCN 112448873 BCN112448873 BCN 112448873BCN 202011291547 ACN202011291547 ACN 202011291547ACN 112448873 BCN112448873 BCN 112448873B
Authority
CN
China
Prior art keywords
binding
client
gateway
code
bound
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.)
Active
Application number
CN202011291547.3A
Other languages
Chinese (zh)
Other versions
CN112448873A (en
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co LtdfiledCriticalShenzhen TCL New Technology Co Ltd
Priority to CN202011291547.3ApriorityCriticalpatent/CN112448873B/en
Publication of CN112448873ApublicationCriticalpatent/CN112448873A/en
Application grantedgrantedCritical
Publication of CN112448873BpublicationCriticalpatent/CN112448873B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses a binding method and device of equipment and a computer readable storage medium, wherein the method comprises the following steps: when a network allocation request sent by a first device is received, determining the device to be bound, and feeding back a device binding code to the first device so that the first device feeds back the device binding code to a second device; and when a binding request comprising a device binding code and sent by the second device is received, binding the device to be bound and the second device. In the network distribution stage, the invention does not need to search local area network by introducing the equipment binding code, thereby improving the success rate of network distribution.

Description

Binding method and device for equipment and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device binding method, a device binding apparatus, and a computer readable storage medium.
Background
With the development of communication technology, intelligent devices are more and more, and in order to better implement functional operations of these devices, it is generally required that the intelligent devices receive instructions of clients and perform functional implementation according to the instructions. The premise of this process is that there is already a client to which binding is complete and the intelligent device has completed the distribution network. However, the binding operation often needs to search for a local area network, and once the function of the intelligent device is unstable, the success rate of network allocation is affected.
Disclosure of Invention
The invention mainly aims to provide a binding method and device of equipment and a computer readable storage medium, and aims to solve the technical problem that the success rate of distribution network is affected due to the need of local area network searching in the prior art.
In order to achieve the above object, the present invention provides a binding method of a device, applied to a cloud, the method comprising:
when a network allocation request sent by a first device is received, determining the device to be bound, and feeding back a device binding code to the first device so that the first device feeds back the device binding code to a second device;
and when a binding request comprising a device binding code and sent by the second device is received, binding the device to be bound and the second device.
In addition, in order to achieve the above object, the present invention further provides a binding method of a device, applied to a client, the method comprising:
when receiving a network allocation starting instruction of a user, transmitting a user datagram protocol UDP broadcast to a gateway so that the gateway returns a device binding code acquired from a cloud end by a sub device through the gateway after communicating with the bound sub device;
and sending a binding request comprising the device binding code to the cloud end so that the cloud end binds the client end and the sub device corresponding to the device binding code.
In addition, in order to achieve the above object, the present invention further provides a binding method of a device, applied to a client, the method comprising:
when a network allocation starting instruction of a user is received, a network allocation request is sent to a cloud to receive a device binding code fed back by the cloud;
acquiring router login information, and sending a device binding code and the router login information to the to-be-distributed network device so that the to-be-distributed network device can initiate a binding request comprising the device binding code to a cloud after completing network distribution according to the router login information;
and receiving information pushed by the cloud after binding the client and the equipment to be distributed according to the equipment binding code.
In addition, in order to achieve the above object, the present invention also provides a binding apparatus for a device, where the binding apparatus for a device includes a memory, a processor, and a binding program for a device stored in the memory and capable of running on the processor, and the processor implements the steps of the above method when executing the binding program for a device.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, on which a binding program of a device is stored, which when executed by a processor, implements the steps of the above method.
The embodiment of the invention provides a binding method, a binding device and a computer readable storage medium of equipment, which are used for determining equipment to be bound when a network allocation request sent by first equipment is received, and feeding back equipment binding codes to the first equipment so that the first equipment feeds back equipment binding codes to second equipment; and when a binding request comprising a device binding code and sent by the second device is received, binding the device to be bound and the second device. The device binding codes are introduced in the network distribution stage, devices are directly associated in the cloud, the devices do not need to be searched in the local area network, and the network distribution success rate is improved. On the other hand, the equipment distribution network is combined with the binding, so that the operation process is reduced.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of an embodiment of a binding method of the device of the present invention;
FIG. 3 is a flow chart illustrating another embodiment of a binding method of the device of the present invention;
FIG. 4 is a flowchart illustrating another embodiment of a binding method of the device of the present invention when applied to a client;
FIG. 5 is a flow chart illustrating an implementation of a further embodiment of the binding method of the device of the present invention;
fig. 6 is a flowchart of a binding method of the device according to another embodiment of the present invention when applied to a client.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware running environment according to an embodiment of the present invention.
The hardware running environment of the embodiment of the invention is a device for equipment distribution network/binding, which can be a single piece of equipment, such as a computer, a mobile phone or an intelligent television, and a client is installed on the device and can send or interact with the intelligent equipment. The device may be a cloud terminal including a plurality of control devices, such as a plurality of servers and terminal devices.
As shown in fig. 1, the binding apparatus of the device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above. The memory 1005 stores a binding program of a device, which when executed by the processor can implement all steps of an embodiment of a binding method of a device described below.
Optionally, the distribution network system may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a Wi-Fi module, and the like. Among other sensors, such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor and a proximity sensor.
Those skilled in the art will appreciate that the distribution network system architecture shown in fig. 1 is not limiting of the distribution network system and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
Referring to fig. 2, in an embodiment of a binding method of the device of the present invention, when the method is applied to a cloud, the method includes:
step S10, when a network allocation request sent by a first device is received, determining the device to be bound, and feeding back a device binding code to the first device so that the first device feeds back the device binding code to a second device;
and step S20, when a binding request comprising a device binding code and sent by the second device is received, the device to be bound and the second device are bound.
In this embodiment, the cloud may be a cloud server, which may directly generate or store a device binding code (bind code) in advance, where the device binding code that the cloud feeds back to each device is unique. Further, the device binding code may be generated according to the device information requested to be bound, or may be generated according to an own algorithm. The first device may be a gateway, or may be an intelligent device, for example, a client or a device to be connected to a network, where the client refers to an entity device on which client software is installed, and the device to be connected to the network may be an air conditioning device, or may be other intelligent devices similar to an intelligent thermometer or an intelligent sound box. When the first device is a gateway, the corresponding second device is a client; when the first device is a client, the corresponding second device is a gateway or a device to be bound by the network.
When a user starts the distribution network, the equipment to be bound can be reset, a distribution network starting instruction is sent to the client through man-machine interaction with the client, after the client receives the distribution network starting instruction of the user, the client can be used as first equipment to send a distribution network request to the cloud, handshake can be carried out with a gateway or the equipment to be bound, and the gateway or the equipment to be bound correspondingly sends the distribution network request as first equipment. It can be understood that binding is an operation of two parties, when a network allocation request is sent by a client, a device to be bound is the client itself, and the cloud searches for the intelligent device matched with the binding pairing needed by the client; when a client triggers a gateway or equipment to be bound by a network to send a network allocation request, the cloud needs to record intelligent equipment which is essentially required to be bound by the network. It can be understood that the gateway is used as an intermediate device, which is not a device that needs to bind to the distribution network in the present solution, and when the client interacts with the gateway, it actually interacts with the sub-device bound by the gateway, so that the client can distribute the network for the sub-device, bind the sub-device to the sub-device, and in this case, the determined device to be bound is the sub-device bound by the gateway.
The device binding code is fed back to the first device, so that the first device can send the device binding code to the second device in the subsequent interaction process, the second device further uses the device binding code to send a binding request to the cloud, and once the cloud receives the device binding code which is consistent with the previous feedback, the determined device to be bound and the second device can be bound. In addition, after binding is completed, a binding result is returned to the client, information of successful binding can be pushed, and when binding fails, the reason of failure can be inquired and fed back to the client, so that a user can know the binding process in time by means of the client, and further processing is facilitated.
According to the method and the device, the device binding code is introduced in the network distribution stage, devices are directly associated in the cloud, devices do not need to be searched in a local area network, and the network distribution success rate is improved. On the other hand, the equipment network distribution flow is combined with the binding flow, so that the operation process is reduced.
Further, an embodiment of a binding method based on the device of the present invention proposes another embodiment, in which the first device is a gateway and the second device is a client; step S10 may include:
step S11, when a network allocation request sent by a gateway is received, determining generating equipment of the network allocation request, wherein the generating equipment is equipment to be bound;
step S12, feeding back the device binding code to the gateway so that the gateway can trigger the client to call the cloud interface to send a binding request after feeding back the device binding code to the client.
This embodiment may be further described in connection with fig. 3. In this embodiment, after the user completes the network configuration device reset and triggers the client to start the network configuration, the client interacts with the gateway, so that the gateway interacts with the bound sub-device, and the sub-device sends a network configuration request to the cloud through the gateway to obtain the device binding code serving as the sub-device ID (Identity document, identification number). It should be noted that, the client and the gateway are connected under the same router, and information transmission interaction can be performed through broadcasting by UDP (User Datagram Protocol ), or when the gateway is a G3 gateway of MQTT (Message Queuing Telemetry Transport, message queue telemetry transmission), interaction can also be performed through issuing an instruction through an MQTT channel. The sub-device is bound with the intelligent gateway in advance, wherein the sub-device can be a Zigbee device and can be connected with the gateway through a Zigbee protocol. Thus, the request for the distribution network is sent after the gateway connects with the client and with the generating device via the Zigbee protocol. After receiving the device binding code serving as the sub-device ID fed back by the cloud, the gateway can return the device binding code to the client, and the client calls the cloud interface through the device binding code to send a binding request so as to apply for sub-device binding with the gateway. In addition, after the binding of the client and the sub-device is completed through the same device binding code, a binding result can be returned to the client.
The above transmission procedure gives the whole process from the start of the distribution network to the completion of the binding of the device, see fig. 4, and when the corresponding scheme is applied to the client, the method comprises the following steps:
step S13, when a network allocation starting instruction of a user is received, a user datagram protocol UDP is sent to a gateway so that the gateway returns a device binding code acquired from a cloud end by the sub-device through the gateway after communicating with the bound sub-device;
step S14, a binding request comprising the device binding code is sent to the cloud end, so that the cloud end binds the client end and the sub device corresponding to the device binding code.
The scheme provides the realization process of binding which needs to use the gateway as the relay equipment to carry out equipment, in particular to Zigbee equipment, and does not need equipment to carry out local area network searching in the whole binding process, thereby improving the success rate of network allocation. In addition, after the binding is successful, the cloud feeds back the successful binding information to the client, so that the client can know the binding process of the device in time.
Further, an embodiment of the binding method based on the device of the present invention proposes a further embodiment, in which the first device is a client, and the second device is an MQTT device; the step S10 includes:
step S15, when a network allocation request sent by a client is received, determining that equipment to be bound is the client;
and S16, feeding back the device binding code to the client so that the client can send the device binding code to the MQTT device.
This embodiment may be further described with reference to fig. 5, where after the user completes the reset of the MQTT device, the MQTT device may enter a reset mode, and at the same time, turn on the Wi-Fi or bluetooth hotspot to prepare to connect with the client. The network distribution can be started when a network distribution starting instruction generated by user triggering is received at the client level, at the moment, the client can send a network distribution request to the cloud, the cloud confirms that the equipment to be bound which needs to participate in binding is the client according to the network distribution request, and the equipment binding code can be returned to the client. After receiving the device binding code fed back by the cloud end, the client can send the device binding code and router login information needed by the MQTT device to be distributed after being connected with the device through Bluetooth or Wi-Fi, wherein the router login information can comprise an SSID (Service Set Identifier, service set identification) and a password. The MQTT device, after receiving the information, performs information configuration, and then returns information such as MAC (Media Access Control Address) address of the device to the client.
The client can confirm that the MQTT equipment completes the network distribution according to the returned information, the client and the MQTT equipment can be switched to an available network, wherein the client can be switched to a self mobile network or a local area network formed by a router, and the MQTT equipment can be connected to the router network according to the login information of the router. After the router is switched to a usable router network, a binding request can be initiated to the cloud through a device binding code fed back by the client, and after the registration of the MQTT device is completed, the MQTT device and a corresponding client can be bound according to the same device binding code. And further pushing information of successful binding to the client after the binding is completed.
The transmission process gives the whole process from the start of the distribution network to the completion of the binding of the device, see fig. 6, and when the corresponding scheme is applied to the client, the method comprises the following steps:
step S17, when a network allocation starting instruction of a user is received, a network allocation request is sent to a cloud to receive a device binding code fed back by the cloud;
step S18, obtaining router login information, and sending a device binding code and the router login information to the network equipment to be allocated so that the network equipment to be allocated can initiate a binding request comprising the device binding code to the cloud after the network allocation is completed according to the router login information;
step S19, information pushed by the cloud after binding the client and the network equipment to be allocated according to the equipment binding code is received.
The scheme provides an implementation process of device binding by the MQTT device, does not need the device to perform local area network searching in the whole binding process, and improves the success rate of network allocation.
In addition, the embodiment of the invention also provides a computer readable storage medium, and the computer readable storage medium stores a binding program of the device. The computer readable storage medium may be the Memory 1005 in fig. 1, or may be at least one of ROM (Read-Only Memory)/RAM (Random Access Memory ), magnetic disk, or optical disk, where the computer readable storage medium includes several instructions for causing a terminal device (which may be a helmet, smart tv, mobile phone, computer, server, or network device) having a processor to execute the method of the embodiments of the present invention by the processor.
The specific embodiments of the computer readable storage medium of the present invention are substantially the same as the above-described embodiments of the binding method of the device, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or server that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or server. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or server comprising the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

CN202011291547.3A2020-11-172020-11-17Binding method and device for equipment and computer readable storage mediumActiveCN112448873B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202011291547.3ACN112448873B (en)2020-11-172020-11-17Binding method and device for equipment and computer readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202011291547.3ACN112448873B (en)2020-11-172020-11-17Binding method and device for equipment and computer readable storage medium

Publications (2)

Publication NumberPublication Date
CN112448873A CN112448873A (en)2021-03-05
CN112448873Btrue CN112448873B (en)2023-07-25

Family

ID=74737494

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202011291547.3AActiveCN112448873B (en)2020-11-172020-11-17Binding method and device for equipment and computer readable storage medium

Country Status (1)

CountryLink
CN (1)CN112448873B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113079515A (en)*2021-03-302021-07-06四川虹美智能科技有限公司Safety binding method and system and intelligent device
CN113573339B (en)*2021-07-232024-03-22青岛海尔科技有限公司 Device wireless connection method and system
CN113691427B (en)*2021-08-232023-07-14珠海格力电器股份有限公司Distribution network method, first equipment, second equipment, distribution network system and processor
CN113904949B (en)*2021-11-112024-02-09宁波奥克斯电气股份有限公司 Distribution network binding method and device, intelligent equipment and storage medium
CN114302425B (en)*2021-12-212024-06-04深圳Tcl新技术有限公司Equipment network distribution method and device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104639549A (en)*2015-02-052015-05-20小米科技有限责任公司 Device binding method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103795571B (en)*2014-01-242017-10-17北京搜狗科技发展有限公司Binding method and device between equipment
CN104780154B (en)*2015-03-132018-06-19小米科技有限责任公司Apparatus bound method and apparatus
CN106302762B (en)*2016-08-192019-10-08北京小米移动软件有限公司Smart machine binding method and device
CN109510796B (en)*2017-09-142022-02-01杭州萤石网络股份有限公司Equipment binding method and system
CN108259643B (en)*2018-01-122021-01-26美的智慧家居科技有限公司Binding method and device of intelligent device and user operation terminal, and electronic device
CN108401037B (en)*2018-01-232021-07-06创新先进技术有限公司Binding method, device and system of user terminal and equipment
CN110912761B (en)*2019-12-312021-05-14美的集团股份有限公司Binding method and false allocation prevention method for automatic distribution network of equipment and cloud server

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104639549A (en)*2015-02-052015-05-20小米科技有限责任公司 Device binding method and device

Also Published As

Publication numberPublication date
CN112448873A (en)2021-03-05

Similar Documents

PublicationPublication DateTitle
CN112448873B (en)Binding method and device for equipment and computer readable storage medium
US12047872B2 (en)Method for provisioning of smart device, system, and readable medium
WO2022016669A1 (en)Bluetooth network configuration method, device, and storage medium
CN111867007A (en) Intelligent device automatic distribution network method, system and storage medium
CN113518407B (en) A smart device WiFi network configuration method, system, electronic device and medium
JP5574544B2 (en) Unified device management method and system
EP4210297B1 (en)Edge application discovery method and apparatus
CN113115480A (en)Address information sending method, address information obtaining method, address information sending device, address information obtaining device, address information equipment and address information medium
US8810839B2 (en)Information processing apparatus for transferring image data, server apparatus for receiving transferred image data, and control methods and storage media therefor
US11452156B2 (en)Configuration system, client device, embedded device configuration method, and storage medium
CN111885115B (en)Device binding changing method and device
CN103152624A (en)Remote control processing method, device and system
CN111147337A (en)Network distribution method of third-party equipment, terminal equipment and computer readable storage medium
CN118018517A (en)Data processing method, network element equipment and readable storage medium
CN112436986A (en)Network distribution method and device, network distribution equipment and computer readable storage medium
CN113612861A (en)Remote access method, system and computer readable storage medium
CN111478816A (en)Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment
CN105657055A (en)Local area network equipment finding method and device oriented to WEB page
JP6406045B2 (en) Karaoke system, address lease server, management server, karaoke equipment
CN111356090B (en)Networking method of network, device thereof, terminal and computer readable storage medium
CN112637221B (en)Equipment control method and device
CN106231538B (en)Method and device for binding OneM2M architecture equipment
CN108541078B (en)Terminal binding method, system, terminal and server
CN114760348B (en)Service processing method and device, storage medium and electronic device
JP4445302B2 (en) Wireless terminal device and service search method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp