CN112422313A - Pairing method based on upper computer and related device - Google Patents

Pairing method based on upper computer and related device Download PDF

Info

Publication number
CN112422313A
CN112422313A CN202011052573.0A CN202011052573A CN112422313A CN 112422313 A CN112422313 A CN 112422313A CN 202011052573 A CN202011052573 A CN 202011052573A CN 112422313 A CN112422313 A CN 112422313A
Authority
CN
China
Prior art keywords
internet
things
gateway
equipment
information
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.)
Granted
Application number
CN202011052573.0A
Other languages
Chinese (zh)
Other versions
CN112422313B (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.)
Zhangzhou Lidaxin Optoelectronic Technology Co ltd
Original Assignee
Zhangzhou Lidaxin Optoelectronic 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 Zhangzhou Lidaxin Optoelectronic Technology Co ltd filed Critical Zhangzhou Lidaxin Optoelectronic Technology Co ltd
Priority to CN202011052573.0A priority Critical patent/CN112422313B/en
Publication of CN112422313A publication Critical patent/CN112422313A/en
Application granted granted Critical
Publication of CN112422313B publication Critical patent/CN112422313B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a pairing method and a related device based on an upper computer, and relates to the technical field of Internet of things, wherein the pairing method comprises the following steps: acquiring gateway configuration information of the gateway of the Internet of things based on an upper computer; respectively sending gateway configuration information to each piece of Internet of things equipment connected with the upper computer so as to trigger each piece of Internet of things equipment to be paired with the Internet of things gateway; acquiring equipment information of each piece of Internet of things equipment; and sending the information of each device to the gateway of the Internet of things so that the gateway of the Internet of things can acquire the related information of each device of the Internet of things paired currently. According to the technical scheme, the technical effect of uniformly pairing the Internet of things gateway and the Internet of things equipment based on the upper computer is achieved, and the convenience and the reliability of pairing the Internet of things gateway and the Internet of things equipment are effectively improved.

Description

Pairing method based on upper computer and related device
Technical Field
The application relates to the technical field of Internet of things, in particular to a pairing method based on an upper computer and a related device.
Background
The internet of things is a network which collects various required information such as sound, light, heat, electricity, mechanics, chemistry, biology, position and the like by adopting various information sensors, radio frequency identification technology, global positioning system, infrared sensor, laser scanner and the like, and realizes the ubiquitous connection of objects and objects, people and objects and people based on various communication modes so as to realize the intelligent and remote management of the internet of things equipment. It is easy to know that the technology for pairing the internet of things gateway and the internet of things device is the basis of the technology for internet of things, and the internet of things device can be further managed only by pairing the internet of things gateway and the internet of things device, so how to improve the technology for pairing the internet of things gateway and the internet of things device at present becomes the key point of research of technicians in the field.
In the prior art, each piece of internet of things equipment has different pairing modes with the internet of things gateway, and a user needs to pair each piece of internet of things equipment with the internet of things gateway according to the specification of each piece of internet of things equipment or equipment prompt tones and the like.
Disclosure of Invention
The application provides a pairing method and a related device based on an upper computer, which can effectively improve the convenience and reliability of pairing an Internet of things gateway and each Internet of things device.
In order to achieve the above technical effects, a first aspect of the present application provides a pairing method based on an upper computer, where the upper computer establishes a communication connection with an internet of things gateway, and the upper computer establishes a communication connection with one or more internet of things devices, and the pairing method includes:
acquiring gateway configuration information of the Internet of things gateway based on the upper computer;
respectively sending the gateway configuration information to each piece of Internet of things equipment connected with the upper computer so as to trigger each piece of Internet of things equipment to be paired with the Internet of things gateway;
acquiring equipment information of the Internet of things equipment;
and sending the equipment information to the Internet of things gateway so that the Internet of things gateway can acquire the relevant information of the currently paired Internet of things equipment.
Based on the first aspect of the present application, in a first possible implementation manner, after the sending each piece of the device information to the internet of things gateway, the pairing method further includes:
detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not;
if the internet of things devices are not successfully paired with the internet of things gateway, then: respectively sending the gateway configuration information to various abnormal Internet of things devices to trigger the abnormal Internet of things devices to be paired with the Internet of things gateway, wherein the abnormal Internet of things devices are Internet of things devices which are not successfully paired with the Internet of things gateway in the Internet of things devices;
and sending the equipment information of the abnormal Internet of things equipment to the Internet of things gateway so that the Internet of things gateway can acquire the relevant information of the currently paired abnormal Internet of things equipment.
Based on the first possible implementation manner of the first aspect of the present application, in a second possible implementation manner, the sending the gateway configuration information to each piece of heterogeneous internet of things equipment includes:
if all the Internet of things equipment is the abnormal Internet of things equipment, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to all the abnormal Internet of things equipment;
and if the internet of things equipment is not the abnormal internet of things equipment, respectively sending the latest acquired gateway configuration information to the abnormal internet of things equipment.
Based on the first possible implementation manner of the first aspect of the present application, in a third possible implementation manner, after detecting whether each piece of internet-of-things equipment is successfully paired with the internet-of-things gateway, the pairing method further includes:
if the internet of things equipment is successfully paired with the internet of things gateway, outputting normal state information to indicate that the internet of things gateway and the internet of things equipment are in a normal pairing state.
Based on the first, second, or third possible implementation manner of the first aspect of the present application, in a fourth possible implementation manner, the detecting whether each piece of internet-of-things equipment is successfully paired with the internet-of-things gateway includes:
acquiring package information of the gateway of the Internet of things;
detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not based on the set of package information;
the package information includes information indicating the internet of things devices that have reported status information to the internet of things gateway among the internet of things devices, and the package information is generated by the internet of things gateway based on the device information of the internet of things devices and the device information of the internet of things devices that have reported status information.
This application second aspect provides a pair device based on host computer, and above-mentioned host computer has established the communication with thing networking gateway and is connected, and above-mentioned host computer has established the communication with more than one thing networking device respectively and is connected, and the aforesaid pair device includes:
the first acquisition unit is used for acquiring gateway configuration information of the Internet of things gateway based on the upper computer;
the first sending unit is used for sending the gateway configuration information to each piece of Internet of things equipment connected with the upper computer respectively so as to trigger each piece of Internet of things equipment to be paired with the Internet of things gateway;
the second obtaining unit is used for obtaining the equipment information of each piece of Internet of things equipment;
and the second sending unit is used for sending the equipment information to the Internet of things gateway so that the Internet of things gateway can obtain the relevant information of the currently paired Internet of things equipment.
Based on the second aspect of the present application, in a first possible implementation manner, the pairing apparatus further includes:
the detection unit is used for detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not;
a processing unit to: when the internet of things devices are not successfully paired with the internet of things gateway: respectively sending the gateway configuration information to various abnormal Internet of things devices to trigger the abnormal Internet of things devices to be paired with the Internet of things gateway, wherein the abnormal Internet of things devices are Internet of things devices which are not successfully paired with the Internet of things gateway in the Internet of things devices; and sending the equipment information of the abnormal Internet of things equipment to the Internet of things gateway so that the Internet of things gateway can acquire the relevant information of the currently paired abnormal Internet of things equipment.
Based on the first possible implementation manner of the second aspect of the present application, in a second possible implementation manner, the processing unit is specifically configured to:
when all the Internet of things equipment is the abnormal Internet of things equipment, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to all the abnormal Internet of things equipment;
and when the Internet of things equipment is not the abnormal Internet of things equipment, respectively sending the latest acquired gateway configuration information to the abnormal Internet of things equipment.
The third aspect of the present application provides a pairing device based on an upper computer, wherein the upper computer establishes a communication connection with an internet of things gateway, and the upper computer establishes a communication connection with one or more internet of things devices, respectively, and the pairing device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the pairing method mentioned in the first aspect or any possible implementation manner of the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the pairing method mentioned in the first aspect or any of the possible implementations of the first aspect.
It can be seen from the above that, according to the technical scheme of the application, the internet of things gateway and the internet of things equipment are configured through the upper computer system which is in communication connection with the internet of things gateway and the internet of things equipment respectively, so that a user does not need to pair the internet of things equipment with the internet of things gateway according to the specification or the equipment prompt tone and the like of the internet of things equipment, the technical effect of unified pairing of the internet of things gateway and the internet of things equipment is realized, and the convenience and the reliability of the pairing of the internet of things gateway and the internet of things equipment are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of an embodiment of an upper computer, an internet of things gateway and an internet of things device provided by the present application;
fig. 2 is a schematic flowchart of an embodiment of a pairing method based on an upper computer according to the present application;
fig. 3 is an interaction schematic diagram of an embodiment of an upper computer, an internet of things gateway and an internet of things device provided by the application;
fig. 4 is a schematic structural diagram of an embodiment of a pairing device based on an upper computer provided by the present application;
fig. 5 is a schematic structural diagram of another embodiment of the pairing device based on the upper computer provided by the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The technical solutions in the embodiments of the present application are clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, but the present application may be practiced in other ways than those described herein, and it will be apparent to those of ordinary skill in the art that the present application is not limited by the specific embodiments disclosed below.
Example one
The application provides a pairing method based on an upper computer, wherein the upper computer is in communication connection with an Internet of things gateway, and the upper computer is in communication connection with more than one Internet of things device respectively;
specifically, as shown in fig. 1, the communication connection established between the upper computer 101 and the internet of things gateway 102 may be a wireless communication connection, and the communication connections established between the upper computer 101 and the one or more internet of things devices 103 may be wired communication connections (e.g., serial connections).
As shown in fig. 2, the pairing method includes:
step 201, acquiring gateway configuration information of the internet of things gateway based on the upper computer;
in the embodiment of the application, the upper computer sends a request for acquiring gateway configuration information to the internet of things gateway, and the internet of things gateway sends the gateway configuration information to the upper computer after receiving the request, so that the upper computer can obtain the configuration information required by each piece of internet of things equipment when the internet of things equipment is paired with the internet of things gateway.
Optionally, the gateway configuration information may include one or more of network parameter information, device initialization information, cluster configuration information, and other information required for pairing.
Step 202, sending the gateway configuration information to each piece of internet of things equipment connected with the upper computer respectively so as to trigger each piece of internet of things equipment to be paired with the internet of things gateway;
in the embodiment of the application, the upper computer sends the gateway configuration information acquired from the internet of things gateway to each internet of things device connected with the upper computer, and each internet of things device carries out parameter setting based on the gateway configuration information so as to pair each internet of things device with the internet of things gateway.
Step 203, acquiring equipment information of the Internet of things equipment;
in the embodiment of the application, each piece of internet-of-things equipment sends respective equipment information to the upper computer.
Optionally, the device information may include one or more of a model number, a system version, a hardware address, cluster configuration information, and other device information.
And 204, sending the equipment information to the internet of things gateway so that the internet of things gateway can obtain the relevant information of the currently paired internet of things equipment.
In the embodiment of the application, the upper computer sends the information of each device acquired from each internet of things device to the internet of things gateway, so that the internet of things gateway can acquire the related information of each internet of things device which is currently paired.
In practical application, for the internet of things devices and the internet of things gateways sold in a set before leaving a factory, the internet of things devices and the internet of things gateways sold in a set are paired in advance based on the pairing method shown in fig. 2, so that after a user purchases a product sold in a set, the internet of things devices do not need to be paired, and convenience is provided for the user.
In order to further increase the reliability of the pairing, a pairing check may be performed after step 204 and corresponding measures may be performed based on the result of the pairing check. Specifically, in an application scenario, after the device information is sent to the internet of things gateway, the pairing method further includes:
detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not;
if the internet of things equipment is not successfully paired with the internet of things gateway, acquiring gateway configuration information of the internet of things gateway, and then respectively sending newly acquired gateway configuration information to the internet of things equipment so as to trigger the internet of things equipment and the internet of things gateway to be paired based on the newly acquired gateway configuration information;
and sending the equipment information of the Internet of things equipment to the Internet of things gateway so that the Internet of things gateway can obtain the relevant information of the currently paired Internet of things equipment.
Specifically, before the sending of the device information of each piece of internet-of-things equipment to the internet-of-things gateway, the pairing method may further include:
re-acquiring the equipment information of the Internet of things equipment;
the sending of the device information of each piece of internet-of-things device to the internet-of-things gateway is specifically as follows:
and sending the newly acquired equipment information of the equipment of the Internet of things to the gateway of the Internet of things.
In another application scenario, after the sending of the device information to the internet of things gateway, the pairing method further includes:
detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not;
if the internet of things devices are not successfully paired with the internet of things gateway, then: respectively sending the gateway configuration information to various abnormal Internet of things devices to trigger the abnormal Internet of things devices to be paired with the Internet of things gateway based on newly acquired gateway configuration information, wherein the abnormal Internet of things devices are Internet of things devices which are not successfully paired with the Internet of things gateway in the Internet of things devices;
and sending the equipment information of the abnormal Internet of things equipment to the Internet of things gateway so that the Internet of things gateway can acquire the relevant information of the currently paired abnormal Internet of things equipment.
Specifically, before the sending of the device information of each abnormal internet of things device to the internet of things gateway, the pairing method may further include:
re-acquiring the equipment information of the different abnormal Internet of things equipment;
the sending of the device information of the abnormal internet of things devices to the internet of things gateway specifically includes:
and sending the latest acquired equipment information of the abnormal Internet of things equipment to the Internet of things gateway.
Further, the sending the gateway configuration information to each piece of abnormal internet-of-things equipment includes:
if all the Internet of things equipment is the abnormal Internet of things equipment, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to all the abnormal Internet of things equipment;
and if the internet of things equipment is not the abnormal internet of things equipment, respectively sending the latest acquired gateway configuration information to the abnormal internet of things equipment.
Further, after detecting whether each piece of internet-of-things equipment is successfully paired with the internet-of-things gateway, the pairing method further includes:
if the internet of things equipment is successfully paired with the internet of things gateway, outputting normal state information to indicate that the internet of things gateway and the internet of things equipment are in a normal pairing state.
Further, the above-mentioned whether each above-mentioned thing networking device of detection all pairs with above-mentioned thing networking gateway successfully includes:
acquiring package information of the gateway of the Internet of things;
detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not based on the set of package information;
the package information includes information indicating the internet of things devices that have reported status information to the internet of things gateway among the internet of things devices, and the package information is generated by the internet of things gateway based on the device information of the internet of things devices and the device information of the internet of things devices that have reported status information.
Specifically, the status information may include: ID information and running state information of each Internet of things device.
It should be noted that the operation state information of different types of internet of things devices is different, for example, as follows: the running state information of the door magnetic sensor is the opening and closing state information of the door magnetic sensor; the running state information of the infrared sensor is obstacle detection information; the operation state information of the temperature and humidity sensor is temperature and humidity detection information;
the gateway of the Internet of things can judge whether each ID information is wrong or not based on each running state information and the corresponding ID information; if the ID information is correct, whether the ID information can be matched with the equipment information of the Internet of things equipment one by one can be judged based on the ID information and the equipment information of the Internet of things equipment, and the package information is generated based on the judgment result, so that the upper computer can detect whether the Internet of things equipment is successfully matched with the Internet of things gateway based on the package information; if the ID information is wrong, triggering the Internet of things equipment corresponding to the wrong ID information to report the state information again, and judging that the Internet of things equipment corresponding to the ID information with wrong continuous preset times is not successfully paired with the Internet of things gateway when the ID information is wrong in continuous preset times after the state information with the preset times is continuously reported again;
or the internet of things gateway can directly judge whether each ID information can be matched with all the equipment information of each internet of things equipment one by one based on each ID information and the equipment information of each internet of things equipment, and generates the package information based on the judgment result, so that the upper computer can detect whether each internet of things equipment is successfully matched with the internet of things gateway based on the package information.
The following describes a specific application scenario of the pairing method provided by the present application with reference to an interaction diagram shown in fig. 3. As shown in fig. 3, the specific interaction process of the pairing method based on the upper computer may be as follows:
301, requesting to acquire gateway configuration information from an internet of things gateway by an upper computer;
step 302, the gateway of the internet of things returns gateway configuration information to the upper computer;
step 303, the upper computer sends gateway configuration information to each piece of Internet of things equipment;
304, each Internet of things device sends device information to the upper computer;
305, sending equipment information to an Internet of things gateway by an upper computer;
step 306, the gateway of the internet of things confirms to the upper computer that the equipment information is received;
step 307, each Internet of things device reports state information to an Internet of things gateway;
step 308, the gateway of the internet of things confirms to each internet of things device which has reported the state information that the gateway of the internet of things receives the reported state information;
step 309, the upper computer requests the internet of things gateway to acquire package information, and the package information is generated by the internet of things gateway based on the equipment information of each piece of internet of things equipment and the equipment information of the internet of things equipment with reported state information;
and 310, returning package information to the upper computer by the Internet of things gateway so that the upper computer can detect whether all the Internet of things equipment are successfully matched with the Internet of things gateway or not based on the package information, and then further processing the Internet of things gateway and all the Internet of things equipment by the upper computer based on the detection result.
It can be seen from the above that, according to the technical scheme of the application, the internet of things gateway and the internet of things equipment are configured through the upper computer system which is in communication connection with the internet of things gateway and the internet of things equipment respectively, so that a user does not need to pair the internet of things equipment with the internet of things gateway according to the specification or the equipment prompt tone and the like of the internet of things equipment, the technical effect of unified pairing of the internet of things gateway and the internet of things equipment is realized, and the convenience and the reliability of the pairing of the internet of things gateway and the internet of things equipment are improved.
Example two
The application also provides a pairing device based on the upper computer, wherein the upper computer is in communication connection with the internet of things gateway, and the upper computer is in communication connection with more than one internet of things device;
as shown in fig. 4, the pairing apparatus 40 includes:
a first obtaining unit 401, configured to obtain gateway configuration information of the internet of things gateway based on the upper computer;
a first sending unit 402, configured to send the gateway configuration information to each piece of internet of things equipment connected to the upper computer, so as to trigger each piece of internet of things equipment to pair with the internet of things gateway;
a second obtaining unit 403, configured to obtain device information of each piece of internet-of-things device;
a second sending unit 404, configured to send the device information to the internet of things gateway, so that the internet of things gateway obtains relevant information of currently paired internet of things devices.
Optionally, as shown in fig. 3, the pairing apparatus 40 further includes:
a detecting unit 405, configured to detect whether each piece of internet-of-things equipment is successfully paired with the internet-of-things gateway;
a processing unit 406 to: when the internet of things devices are not successfully paired with the internet of things gateway: respectively sending the gateway configuration information to various abnormal Internet of things devices to trigger the abnormal Internet of things devices to be paired with the Internet of things gateway, wherein the abnormal Internet of things devices are Internet of things devices which are not successfully paired with the Internet of things gateway in the Internet of things devices; and sending the equipment information of the abnormal Internet of things equipment to the Internet of things gateway so that the Internet of things gateway can acquire the relevant information of the currently paired abnormal Internet of things equipment.
Further, the processing unit 406 is specifically configured to:
when all the Internet of things equipment is the abnormal Internet of things equipment, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to all the abnormal Internet of things equipment;
and when the Internet of things equipment is not the abnormal Internet of things equipment, respectively sending the latest acquired gateway configuration information to the abnormal Internet of things equipment.
Further, the processing unit 406 is further configured to:
and when the Internet of things equipment is successfully paired with the Internet of things gateway, outputting normal state information to indicate that the Internet of things gateway and the Internet of things equipment are in a normal pairing state.
Further, the detecting unit 405 is specifically configured to:
acquiring package information of the gateway of the Internet of things;
detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not based on the set of package information;
the package information includes information indicating the internet of things devices that have reported status information to the internet of things gateway among the internet of things devices, and the package information is generated by the internet of things gateway based on the device information of the internet of things devices and the device information of the internet of things devices that have reported status information.
It can be seen from the above that, according to the technical scheme of the application, the internet of things gateway and the internet of things equipment are configured through the upper computer system which is in communication connection with the internet of things gateway and the internet of things equipment respectively, so that a user does not need to pair the internet of things equipment with the internet of things gateway according to the specification or the equipment prompt tone and the like of the internet of things equipment, the technical effect of unified pairing of the internet of things gateway and the internet of things equipment is realized, and the convenience and the reliability of the pairing of the internet of things gateway and the internet of things equipment are improved.
EXAMPLE III
This application still provides another kind of device that pairs based on host computer, and above-mentioned host computer has established the communication with thing networking gateway and is connected, and above-mentioned host computer has established the communication with more than one thing networking device respectively and is connected, as shown in fig. 5, the device that pairs in this application embodiment includes: a memory 501, a processor 502, and a computer program stored in the memory 501 and executable on the processor 502, wherein: the memory 501 is used to store software programs and modules, the processor 502 executes various functional applications and data processing by running the software programs and modules stored in the memory 501, and the memory 501 and the processor 502 are connected by a bus 503.
Specifically, the processor 502 implements the following steps by running the above-mentioned computer program stored in the memory 501:
acquiring gateway configuration information of the Internet of things gateway based on the upper computer;
respectively sending the gateway configuration information to each piece of Internet of things equipment connected with the upper computer so as to trigger each piece of Internet of things equipment to be paired with the Internet of things gateway;
acquiring equipment information of the Internet of things equipment;
and sending the equipment information to the Internet of things gateway so that the Internet of things gateway can acquire the relevant information of the currently paired Internet of things equipment.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner based on the first possible implementation manner, after the sending each piece of the device information to the internet of things gateway, the pairing method further includes:
detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not;
if the internet of things devices are not successfully paired with the internet of things gateway, then: respectively sending the gateway configuration information to various abnormal Internet of things devices to trigger the abnormal Internet of things devices to be paired with the Internet of things gateway, wherein the abnormal Internet of things devices are Internet of things devices which are not successfully paired with the Internet of things gateway in the Internet of things devices;
and sending the equipment information of the abnormal Internet of things equipment to the Internet of things gateway so that the Internet of things gateway can acquire the relevant information of the currently paired abnormal Internet of things equipment.
In a third possible implementation manner based on the second possible implementation manner, the sending the gateway configuration information to each of the heterogeneous internet of things devices includes:
if all the Internet of things equipment is the abnormal Internet of things equipment, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to all the abnormal Internet of things equipment;
and if the internet of things equipment is not the abnormal internet of things equipment, respectively sending the latest acquired gateway configuration information to the abnormal internet of things equipment.
In a fourth possible implementation manner based on the second possible implementation manner, after the detecting whether each piece of internet-of-things equipment is successfully paired with the internet-of-things gateway, the pairing method further includes:
if the internet of things equipment is successfully paired with the internet of things gateway, outputting normal state information to indicate that the internet of things gateway and the internet of things equipment are in a normal pairing state.
In a fifth possible implementation manner based on the second, third, or fourth possible implementation manner, the detecting whether each piece of internet-of-things equipment is successfully paired with the internet-of-things gateway includes:
acquiring package information of the gateway of the Internet of things;
detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not based on the set of package information;
the package information includes information indicating the internet of things devices that have reported status information to the internet of things gateway among the internet of things devices, and the package information is generated by the internet of things gateway based on the device information of the internet of things devices and the device information of the internet of things devices that have reported status information.
It can be seen from the above that, according to the technical scheme of the application, the internet of things gateway and the internet of things equipment are configured through the upper computer system which is in communication connection with the internet of things gateway and the internet of things equipment respectively, so that a user does not need to pair the internet of things equipment with the internet of things gateway according to the specification or the equipment prompt tone and the like of the internet of things equipment, the technical effect of unified pairing of the internet of things gateway and the internet of things equipment is realized, and the convenience and the reliability of the pairing of the internet of things gateway and the internet of things equipment are improved.
Example four
The present application also provides a computer readable storage medium having a computer program stored thereon, which when executed, can implement the steps provided by the above-described embodiments. Specifically, the computer program includes computer program code, which may be in one of a source code form, an object code form, an executable file or some intermediate form, and is not limited herein; the computer readable storage medium can be any entity or device capable of carrying the computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, Read-only memory (ROM), Random Access Memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, and is not limited herein. It should be noted that the contents contained in the computer-readable storage medium can be increased or decreased as required by legislation and patent practice in the jurisdiction.
It can be seen from the above that, according to the technical scheme of the application, the internet of things gateway and the internet of things equipment are configured through the upper computer system which is in communication connection with the internet of things gateway and the internet of things equipment respectively, so that a user does not need to pair the internet of things equipment with the internet of things gateway according to the specification or the equipment prompt tone and the like of the internet of things equipment, the technical effect of unified pairing of the internet of things gateway and the internet of things equipment is realized, and the convenience and the reliability of the pairing of the internet of things gateway and the internet of things equipment are improved.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It should be noted that, the methods and the details thereof provided by the foregoing embodiments may be combined with the apparatuses and devices provided by the embodiments, which are referred to each other and are not described again.
Those of ordinary skill in the art would appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described apparatus/device embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and the actual implementation may be implemented by another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A pairing method based on an upper computer is characterized in that the upper computer is in communication connection with an Internet of things gateway, and the upper computer is in communication connection with more than one Internet of things device respectively, and the pairing method comprises the following steps:
acquiring gateway configuration information of the gateway of the Internet of things based on the upper computer;
respectively sending the gateway configuration information to each piece of Internet of things equipment connected with the upper computer so as to trigger each piece of Internet of things equipment to be paired with the Internet of things gateway;
acquiring equipment information of each piece of Internet of things equipment;
and sending the equipment information to the Internet of things gateway so that the Internet of things gateway can acquire the relevant information of the currently paired Internet of things equipment.
2. The pairing method according to claim 1, wherein after the sending of the pieces of device information to the internet of things gateway, the pairing method further comprises:
detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not;
if the internet of things equipment is not successfully paired with the internet of things gateway, then: respectively sending the gateway configuration information to various abnormal Internet of things devices to trigger the various abnormal Internet of things devices to be paired with the Internet of things gateway, wherein the abnormal Internet of things devices are Internet of things devices which are not successfully paired with the Internet of things gateway in the various Internet of things devices;
and sending the equipment information of each abnormal Internet of things equipment to the Internet of things gateway so that the Internet of things gateway can obtain the relevant information of each currently paired abnormal Internet of things equipment.
3. The pairing method of claim 2, wherein the sending the gateway configuration information to each of the heterogeneous internet of things devices comprises:
if all the Internet of things equipment is the abnormal Internet of things equipment, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to all the abnormal Internet of things equipment;
and if the Internet of things equipment is not the abnormal Internet of things equipment, respectively sending the latest acquired gateway configuration information to the abnormal Internet of things equipment.
4. The pairing method according to claim 2, wherein after the detecting whether each of the internet of things devices is successfully paired with the internet of things gateway, the pairing method further comprises:
if the Internet of things equipment is successfully paired with the Internet of things gateway, outputting normal state information to indicate that the Internet of things gateway and the Internet of things equipment are in a normal pairing state.
5. The pairing method according to any one of claims 2 to 4, wherein the detecting whether each Internet of things device is successfully paired with the Internet of things gateway comprises:
acquiring package information of the gateway of the Internet of things;
detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not based on the package information;
the package information includes information of the internet of things device for indicating that the state information has been reported to the internet of things gateway in each internet of things device, and the package information is generated by the internet of things gateway based on the device information of each internet of things device and the device information of the internet of things device for which the state information has been reported.
6. The utility model provides a pair device based on host computer, its characterized in that, the host computer has established communication connection with thing networking gateway, just the host computer has established communication connection with more than one thing networking device respectively, pair the device and include:
the first acquisition unit is used for acquiring gateway configuration information of the gateway of the Internet of things based on the upper computer;
the first sending unit is used for sending the gateway configuration information to each piece of Internet of things equipment connected with the upper computer respectively so as to trigger each piece of Internet of things equipment to be paired with the Internet of things gateway;
the second acquisition unit is used for acquiring the equipment information of each piece of Internet of things equipment;
and the second sending unit is used for sending the equipment information to the Internet of things gateway so that the Internet of things gateway can obtain the relevant information of the currently paired Internet of things equipment.
7. The pairing apparatus as claimed in claim 6, further comprising:
the detection unit is used for detecting whether each piece of Internet of things equipment is successfully paired with the Internet of things gateway or not;
a processing unit to: when the internet of things devices are not successfully paired with the internet of things gateway: respectively sending the gateway configuration information to various abnormal Internet of things devices to trigger the various abnormal Internet of things devices to be paired with the Internet of things gateway, wherein the abnormal Internet of things devices are Internet of things devices which are not successfully paired with the Internet of things gateway in the various Internet of things devices; and sending the equipment information of each abnormal Internet of things equipment to the Internet of things gateway so that the Internet of things gateway can obtain the relevant information of each currently paired abnormal Internet of things equipment.
8. The pairing apparatus as claimed in claim 7, wherein the processing unit is specifically configured to:
when all the Internet of things equipment is the abnormal Internet of things equipment, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to all the abnormal Internet of things equipment;
and when the Internet of things equipment is not the abnormal Internet of things equipment, the latest acquired gateway configuration information is sent to the abnormal Internet of things equipment respectively.
9. A pairing device based on an upper computer, wherein the upper computer is in communication connection with an Internet of things gateway, and the upper computer is in communication connection with more than one Internet of things device respectively, and the pairing device is characterized by comprising a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN202011052573.0A 2020-09-29 2020-09-29 Pairing method based on upper computer and related device Active CN112422313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011052573.0A CN112422313B (en) 2020-09-29 2020-09-29 Pairing method based on upper computer and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011052573.0A CN112422313B (en) 2020-09-29 2020-09-29 Pairing method based on upper computer and related device

Publications (2)

Publication Number Publication Date
CN112422313A true CN112422313A (en) 2021-02-26
CN112422313B CN112422313B (en) 2023-10-17

Family

ID=74854811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011052573.0A Active CN112422313B (en) 2020-09-29 2020-09-29 Pairing method based on upper computer and related device

Country Status (1)

Country Link
CN (1) CN112422313B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494560A (en) * 2009-02-20 2009-07-29 华为技术有限公司 Method, apparatus and system for configuring master-salve network device
CN105897691A (en) * 2016-03-24 2016-08-24 美的集团股份有限公司 Method, apparatus, and system for connection of IoT device to network
CN106973381A (en) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 A kind of Wi-Fi hotspot password shares processing method, system and mobile terminal
CN107613530A (en) * 2017-10-11 2018-01-19 上海斐讯数据通信技术有限公司 The collocation method and double-frequency wireless router of internet of things equipment based on router
US20180189080A1 (en) * 2015-06-30 2018-07-05 Societal Innovations Ipco Limited System And Method For Reacquiring A Running Service After Restarting A Configurable Platform Instance
CN109302440A (en) * 2017-07-25 2019-02-01 西门子股份公司 The matching method of IoT equipment and cloud service
CN109474936A (en) * 2019-01-03 2019-03-15 上海顺舟智能科技股份有限公司 Applied to the Internet of Things means of communication and system between multiple lora gateways
CN111149335A (en) * 2017-11-23 2020-05-12 阿姆有限公司 Distributed management system and method for remote equipment
CN111245714A (en) * 2020-03-31 2020-06-05 上海庆科信息技术有限公司 Access method and device of home gateway module, storage medium and electronic device
WO2022105028A1 (en) * 2020-11-19 2022-05-27 美的集团股份有限公司 Network configuration method and apparatus for internet of things device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494560A (en) * 2009-02-20 2009-07-29 华为技术有限公司 Method, apparatus and system for configuring master-salve network device
US20180189080A1 (en) * 2015-06-30 2018-07-05 Societal Innovations Ipco Limited System And Method For Reacquiring A Running Service After Restarting A Configurable Platform Instance
CN105897691A (en) * 2016-03-24 2016-08-24 美的集团股份有限公司 Method, apparatus, and system for connection of IoT device to network
CN106973381A (en) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 A kind of Wi-Fi hotspot password shares processing method, system and mobile terminal
CN109302440A (en) * 2017-07-25 2019-02-01 西门子股份公司 The matching method of IoT equipment and cloud service
CN107613530A (en) * 2017-10-11 2018-01-19 上海斐讯数据通信技术有限公司 The collocation method and double-frequency wireless router of internet of things equipment based on router
CN111149335A (en) * 2017-11-23 2020-05-12 阿姆有限公司 Distributed management system and method for remote equipment
CN109474936A (en) * 2019-01-03 2019-03-15 上海顺舟智能科技股份有限公司 Applied to the Internet of Things means of communication and system between multiple lora gateways
CN111245714A (en) * 2020-03-31 2020-06-05 上海庆科信息技术有限公司 Access method and device of home gateway module, storage medium and electronic device
WO2022105028A1 (en) * 2020-11-19 2022-05-27 美的集团股份有限公司 Network configuration method and apparatus for internet of things device

Also Published As

Publication number Publication date
CN112422313B (en) 2023-10-17

Similar Documents

Publication Publication Date Title
CN110609937B (en) Crawler identification method and device
US9357381B2 (en) Security management in M2M area network
CN102571732B (en) A kind of methods, devices and systems of processes sensor protocol information
CN105745869B (en) For regional network/home network security gateway
CN107770226B (en) Control method and device for smart home, home gateway and mobile terminal
EP3490304B1 (en) Method for identifying access point and hotspot, and related products
CN103759393B (en) Air conditioner wireless controller, system and control method thereof
CA2545444A1 (en) Configuration of a terminal
US9949116B2 (en) Method and apparatus for establishing SSID-based connection between terminal device and gateway device
JP2017535122A (en) Sensor code verification processing method, apparatus, network platform device, and Internet gateway of things
TW201924300A (en) Systems and methods for context-based device address generation
WO2014205165A1 (en) Network activity association system and method
CN111131493B (en) Data acquisition method and device and user portrait generation method and device
CN113468515A (en) User identity authentication method and device, electronic equipment and storage medium
CN115150795A (en) Information filtering method, bluetooth antenna and Internet of things data platform
CN110045705B (en) Intelligent home control method, device and system adopting heterogeneous wireless network
CN105873180B (en) Method and apparatus for setting up wireless connection
CN113037820B (en) Thing networking device communication module
CN105336061A (en) Indoor anti-theft processing method, system and wireless access point
CN112422313B (en) Pairing method based on upper computer and related device
CN107819761B (en) Data processing method and device and readable storage medium
CN113992437B (en) Access control management method, device and system for Modbus equipment
CN102802154B (en) Certification method, device and system for data transmission in Internet of Things
CN114585055A (en) Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal
CN110769397B (en) Method and device for connecting robot with network and terminal equipment

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
GR01 Patent grant
GR01 Patent grant