CN112422313B - Pairing method based on upper computer and related device - Google Patents
Pairing method based on upper computer and related device Download PDFInfo
- Publication number
- CN112422313B CN112422313B CN202011052573.0A CN202011052573A CN112422313B CN 112422313 B CN112422313 B CN 112422313B CN 202011052573 A CN202011052573 A CN 202011052573A CN 112422313 B CN112422313 B CN 112422313B
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols 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 the Internet of things, wherein the pairing method comprises the following steps: acquiring gateway configuration information of an Internet of things gateway based on an upper computer; gateway configuration information is sent to all the Internet of things devices connected with the upper computer respectively so as to trigger all the Internet of things devices to be paired with the Internet of things gateway; acquiring equipment information of all the Internet of things equipment; and sending the device information to the Internet of things gateway so that the Internet of things gateway can acquire the related information of the currently paired devices of the Internet of things. Based on the technical scheme of the application, the technical effect of uniformly pairing the Internet of things gateway and each Internet of things device based on the upper computer is realized, and the convenience and reliability of pairing the Internet of things gateway and each Internet of things device are effectively improved.
Description
Technical Field
The application relates to the technical field of the 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 is used for collecting various needed information such as sound, light, heat, electricity, mechanics, chemistry, biology, position and the like by adopting various internet of things equipment such as various information sensors, radio frequency identification technology, a global positioning system, an infrared sensor, a laser scanner and the like, and realizing ubiquitous connection of things and things, people and things and people based on various communication modes so as to realize intelligent and remote management of the internet of things equipment. It is easy to know that the pairing technology of the internet of things gateway and the internet of things equipment is the basis of the internet of things technology, and only the pairing of the internet of things gateway and each internet of things equipment is performed, each internet of things equipment can be further managed, so how to improve the existing pairing technology of the internet of things gateway and each internet of things equipment has become the key point of research of the 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, a user needs to pair each piece of internet of things equipment with the internet of things gateway according to the specification or equipment prompt tone and the like of each piece of internet of things equipment, the process is complex and error-prone, and convenience and reliability of pairing the internet of things gateway with the internet of things equipment are reduced.
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 with various Internet of things devices.
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 and an internet of things gateway are connected in a communication manner, and the upper computer and more than one internet of things device are respectively connected in a communication manner, the pairing method includes:
acquiring gateway configuration information of the gateway of the Internet of things based on the upper computer;
the gateway configuration information is respectively sent to all the Internet of things devices connected with the upper computer so as to trigger all the Internet of things devices to be paired with the Internet of things gateway;
acquiring the equipment information of each piece of equipment of the Internet of things;
and sending the equipment information to the Internet of things gateway so that the Internet of things gateway can acquire the related information of the currently paired equipment of the Internet of things.
According to the first aspect of the present application, in a first possible implementation manner, after the sending, to the gateway of the internet of things, each piece of equipment information, the pairing method further includes:
detecting whether all the Internet of things devices are successfully paired with the Internet of things gateway;
if the internet of things devices are not successfully paired with the internet of things gateway, the internet of things devices are: the gateway configuration information is respectively sent to each piece of abnormal Internet of things equipment so as to trigger each piece of abnormal Internet of things equipment to be paired with the Internet of things gateway, wherein the abnormal Internet of things equipment is the Internet of things equipment which is not successfully paired with the Internet of things gateway in each piece of Internet of things equipment;
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 related information of each abnormal Internet of things equipment paired currently.
In a second possible implementation manner, according to the first possible implementation manner of the first aspect of the present application, the sending the gateway configuration information to each of the heterogeneous internet of things devices includes:
if the Internet of things devices are the abnormal Internet of things devices, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to the abnormal Internet of things devices;
and if the different Internet of things devices are the abnormal Internet of things devices, respectively sending the latest acquired gateway configuration information to the different abnormal Internet of things devices.
In a third possible implementation manner, after the detecting whether each of the devices of the internet of things is successfully paired with the gateway of the internet of things, the pairing method further includes:
and if all 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 all the Internet of things equipment are in a normal pairing state.
In a fourth possible implementation manner, according to the first, second, or third possible implementation manner of the first aspect of the present application, the detecting whether each of the devices of the internet of things is successfully paired with the gateway of the internet of things includes:
acquiring the bagging information of the gateway of the Internet of things;
detecting whether all the Internet of things equipment is successfully paired with the Internet of things gateway or not based on the bagging information;
the package information comprises information of the internet of things equipment for indicating that the state information is reported to the internet of things gateway in the internet of things equipment, and the package information is generated by the internet of things gateway based on the equipment information of the internet of things equipment and the equipment information of the internet of things equipment for which the state information is reported.
The second aspect of the present application provides a pairing device based on an upper computer, wherein the upper computer establishes communication connection with an internet of things gateway, and the upper computer establishes communication connection with more than one internet of things device respectively, the pairing device includes:
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 respectively sending the gateway configuration information to all the Internet of things devices connected with the upper computer so as to trigger the pairing of the Internet of things devices and the Internet of things gateway;
the second acquisition unit is used for acquiring the equipment information of the equipment of the Internet of things;
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 acquire the related information of the currently paired equipment of the Internet of things.
According to a second aspect of the present application, in a first possible implementation manner, the pairing device further includes:
the detection unit is used for detecting whether all the Internet of things devices are successfully paired with the Internet of things gateway;
a processing unit for: when the internet of things devices are not successfully paired with the internet of things gateway, the internet of things gateway: the gateway configuration information is respectively sent to each piece of abnormal Internet of things equipment so as to trigger each piece of abnormal Internet of things equipment to be paired with the Internet of things gateway, wherein the abnormal Internet of things equipment is the Internet of things equipment which is not successfully paired with the Internet of things gateway in each piece of Internet of things equipment; 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 related information of each abnormal Internet of things equipment paired currently.
In a second possible implementation manner, according to a first possible implementation manner of the second aspect of the present application, the processing unit is specifically configured to:
when the Internet of things devices are the abnormal Internet of things devices, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to the abnormal Internet of things devices;
and when the different Internet of things devices are the abnormal Internet of things devices, respectively sending the latest acquired gateway configuration information to the different abnormal Internet of things devices.
The third aspect of the present application provides a pairing device based on a host computer, where the host computer establishes a communication connection with an internet of things gateway, and where the host computer establishes a communication connection with one or more internet of things devices respectively, and the pairing device includes a memory and a processor, where the memory stores a computer program, and where 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 storing a computer program which when executed by a processor implements the steps of the pairing method as mentioned in the first aspect or any one of the possible implementations of the first aspect.
From the above, the technical scheme of the application configures the internet of things gateway and the internet of things equipment in a unified way through the upper computer which is respectively in communication connection with the internet of things gateway and the internet of things equipment, so that a user does not need to pair each internet of things equipment with the internet of things gateway according to the instruction of each internet of things equipment or equipment prompt tone and the like, the technical effect of uniformly pairing the internet of things gateway with each internet of things equipment is realized, and the convenience and reliability of pairing the internet of things gateway with each internet of things equipment are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the embodiments or the description of the prior art 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 other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
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 application;
FIG. 2 is a flowchart of an embodiment of a pairing method based on a host 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 according to the present application;
fig. 5 is a schematic structural diagram of another embodiment of a pairing device based on an upper computer provided by the application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, 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 should 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 application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification 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 following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the 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 other than those described herein, and persons skilled in the art will readily appreciate that the present application is not limited to the specific embodiments disclosed below.
Example 1
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 connection established between the upper computer 101 and one or more internet of things devices 103 respectively may be a wired communication connection (e.g., a serial connection).
As shown in fig. 2, the pairing method includes:
step 201, acquiring gateway configuration information of the gateway of the internet of things 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 obtains the configuration information required by each Internet of things device when being matched 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 pairing required information.
Step 202, sending the gateway configuration information to each internet of things device connected with the upper computer respectively to trigger each internet of things device to pair with the internet of things gateway;
in the embodiment of the application, the upper computer sends gateway configuration information acquired from the gateway of the Internet of things to each piece of equipment connected with the upper computer, and each piece of equipment of the Internet of things performs parameter setting based on the gateway configuration information so as to pair each piece of equipment of the Internet of things with the gateway of the Internet of things.
Step 203, obtaining the device information of each piece of internet of things device;
in the embodiment of the application, each piece of equipment of the Internet of things sends respective piece of equipment information to the upper computer.
Alternatively, the device information may include one or more of model number, system version, hardware address, cluster configuration information, and other device information.
And 204, sending the device information to the Internet of things gateway so that the Internet of things gateway can acquire the related information of the currently paired devices of the Internet of things.
In the embodiment of the application, the upper computer sends the equipment information acquired from the equipment of the Internet of things to the gateway of the Internet of things so that the gateway of the Internet of things can acquire the related information of the equipment of the Internet of things which is paired currently.
In practical application, before leaving the factory, the internet of things equipment and the internet of things gateway sold in the set can be paired with each internet of things equipment sold in the set in advance based on the pairing method shown in fig. 2, so that after a user purchases a product sold in the set, the user does not need to pair the internet of things equipment, and convenience is provided for the user.
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 sending the device information to the gateway of the internet of things, the pairing method further includes:
detecting whether all the Internet of things devices are successfully paired with the Internet of things gateway;
if the internet of things devices are not successfully paired with the internet of things gateway, acquiring gateway configuration information of the internet of things gateway, and then respectively sending the latest acquired gateway configuration information to the internet of things devices to trigger the pairing of the internet of things devices and the internet of things gateway based on the latest acquired gateway configuration information;
and sending the equipment information of each piece of equipment of the Internet of things to the gateway of the Internet of things so that the gateway of the Internet of things can acquire the related information of each piece of equipment of the Internet of things which is paired currently.
Specifically, before the sending, to the gateway of the internet of things, the device information of each internet of things device, the pairing method may further include:
acquiring the equipment information of the equipment of the Internet of things again;
the sending, to the gateway of the internet of things, the device information of each device of the internet of things specifically includes:
and sending the latest acquired equipment information of each piece of Internet of things equipment to the Internet of things gateway.
In another application scenario, after the sending the device information to the gateway of the internet of things, the pairing method further includes:
detecting whether all the Internet of things devices are successfully paired with the Internet of things gateway;
if the internet of things devices are not successfully paired with the internet of things gateway, the internet of things devices are: respectively sending the gateway configuration information to each piece of abnormal Internet of things equipment to trigger each piece of abnormal Internet of things equipment to be paired with the Internet of things gateway based on the latest acquired gateway configuration information, wherein the abnormal Internet of things equipment is the Internet of things equipment which is not successfully paired with the Internet of things gateway in each piece of Internet of things equipment;
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 related information of each abnormal Internet of things equipment paired currently.
Specifically, before the device information of each abnormal internet of things device is sent to the internet of things gateway, the pairing method may further include:
re-acquiring the equipment information of the different Internet of things equipment;
the sending, to the gateway of the internet of things, the device information of each abnormal device of the internet of things specifically includes:
and sending the latest acquired equipment information of each piece of abnormal Internet of things equipment to the Internet of things gateway.
Further, the sending the gateway configuration information to each of the heterogeneous internet of things devices includes:
if the Internet of things devices are the abnormal Internet of things devices, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to the abnormal Internet of things devices;
and if the different Internet of things devices are the abnormal Internet of things devices, respectively sending the latest acquired gateway configuration information to the different abnormal Internet of things devices.
Further, 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:
and if all 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 all the Internet of things equipment are in a normal pairing state.
Further, the detecting whether each of the devices of the internet of things is successfully paired with the gateway of the internet of things includes:
acquiring the bagging information of the gateway of the Internet of things;
detecting whether all the Internet of things equipment is successfully paired with the Internet of things gateway or not based on the bagging information;
the package information comprises information of the internet of things equipment for indicating that the state information is reported to the internet of things gateway in the internet of things equipment, and the package information is generated by the internet of things gateway based on the equipment information of the internet of things equipment and the equipment information of the internet of things equipment for which the state information is reported.
Specifically, the status information may include: ID information and running state information of each Internet of things device.
It should be noted that, the running state information of the different types of internet of things devices is different, for example, as follows: the operation state information of the door magnetic sensor is the opening and closing state information of the door magnetic sensor; the operation 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 piece of ID information is wrong or not based on each piece of running state information and corresponding ID information; if the ID information is correct, determining whether the ID information can be matched with the device information of the internet of things device one by one based on the ID information and the device information of the internet of things device, and generating the package information based on the determination result, so that the upper computer detects whether the internet of things device is successfully paired 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 wrong ID information is not successfully paired with the Internet of things gateway when the condition that the continuous preset times of the ID information is wrong after the continuous re-report of the preset times of the state information occurs;
or, the gateway of the internet of things can directly judge whether each ID information can be matched with the device information of each device of the internet of things one by one based on each ID information and the device information of each device of the internet of things, and generate the package information based on the judgment result, so that the upper computer detects whether each device of the internet of things is successfully paired with the gateway of the internet of things 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 schematic diagram shown in fig. 3. As shown in fig. 3, the specific interaction flow of the pairing method based on the upper computer may be as follows:
step 301, an upper computer requests to acquire gateway configuration information from an internet of things gateway;
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 internet of things device;
step 304, each Internet of things device sends device information to an upper computer;
step 305, the upper computer sends equipment information to the gateway of the internet of things;
step 306, the gateway of the internet of things confirms that the equipment information is received to the upper computer;
step 307, each internet of things device reports status information to the internet of things gateway;
step 308, the gateway of the internet of things confirms that the reported state information is received to each piece of the internet of things equipment which has reported the state information;
step 309, the upper computer requests to the gateway of the internet of things to obtain the package information, wherein the package information is generated by the gateway of the internet of things based on the device information of each internet of things device and the device information of the internet of things device with the reported state information;
in step 310, the internet of things gateway returns the package information to the upper computer, so that the upper computer can detect whether each internet of things device is successfully paired with the internet of things gateway based on the package information, and then the upper computer can further process the internet of things gateway and each internet of things device based on the detection result.
From the above, the technical scheme of the application configures the internet of things gateway and the internet of things equipment in a unified way through the upper computer which is respectively in communication connection with the internet of things gateway and the internet of things equipment, so that a user does not need to pair each internet of things equipment with the internet of things gateway according to the instruction of each internet of things equipment or equipment prompt tone and the like, the technical effect of uniformly pairing the internet of things gateway with each internet of things equipment is realized, and the convenience and reliability of pairing the internet of things gateway with each 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 gateway of the Internet of things, and the upper computer is in communication connection with more than one device of the Internet of things respectively;
as shown in fig. 4, the pairing device 40 includes:
a first obtaining unit 401, configured to obtain gateway configuration information of the gateway of the internet of things based on the upper computer;
a first sending unit 402, configured to send the gateway configuration information to each internet of things device connected to the upper computer, so as to trigger pairing between each internet of things device and the internet of things gateway;
a second obtaining unit 403, configured to obtain device information of each piece of internet of things device;
and a second sending unit 404, configured to send each piece of equipment information to the internet of things gateway, so that the internet of things gateway obtains relevant information of each piece of currently paired internet of things equipment.
Optionally, as shown in fig. 3, the pairing device 40 further includes:
a detection unit 405, configured to detect whether each of the devices of the internet of things is successfully paired with the gateway of the internet of things;
a processing unit 406 for: when the internet of things devices are not successfully paired with the internet of things gateway, the internet of things gateway: the gateway configuration information is respectively sent to each piece of abnormal Internet of things equipment so as to trigger each piece of abnormal Internet of things equipment to be paired with the Internet of things gateway, wherein the abnormal Internet of things equipment is the Internet of things equipment which is not successfully paired with the Internet of things gateway in each piece of Internet of things equipment; 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 related information of each abnormal Internet of things equipment paired currently.
Further, the processing unit 406 is specifically configured to:
when the Internet of things devices are the abnormal Internet of things devices, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to the abnormal Internet of things devices;
and when the different Internet of things devices are the abnormal Internet of things devices, respectively sending the latest acquired gateway configuration information to the different abnormal Internet of things devices.
Further, the processing unit 406 is further configured to:
and when the internet of things devices are 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 devices are in a normal pairing state.
Further, the detecting unit 405 is specifically configured to:
acquiring the bagging information of the gateway of the Internet of things;
detecting whether all the Internet of things equipment is successfully paired with the Internet of things gateway or not based on the bagging information;
the package information comprises information of the internet of things equipment for indicating that the state information is reported to the internet of things gateway in the internet of things equipment, and the package information is generated by the internet of things gateway based on the equipment information of the internet of things equipment and the equipment information of the internet of things equipment for which the state information is reported.
From the above, the technical scheme of the application configures the internet of things gateway and the internet of things equipment in a unified way through the upper computer which is respectively in communication connection with the internet of things gateway and the internet of things equipment, so that a user does not need to pair each internet of things equipment with the internet of things gateway according to the instruction of each internet of things equipment or equipment prompt tone and the like, the technical effect of uniformly pairing the internet of things gateway with each internet of things equipment is realized, and the convenience and reliability of pairing the internet of things gateway with each internet of things equipment are improved.
Example III
The application also provides another 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 respectively in communication connection with more than one internet of things device, as shown in fig. 5, the pairing device in the embodiment of the application comprises: memory 501, processor 502, and a computer program stored in memory 501 and executable on processor 502, wherein: the memory 501 is used for storing software programs and modules, and the processor 502 executes various functional applications and data processing by executing the software programs and modules stored in the memory 501, and the memory 501 and the processor 502 are connected via the 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 gateway of the Internet of things based on the upper computer;
the gateway configuration information is respectively sent to all the Internet of things devices connected with the upper computer so as to trigger all the Internet of things devices to be paired with the Internet of things gateway;
acquiring the equipment information of each piece of equipment of the Internet of things;
and sending the equipment information to the Internet of things gateway so that the Internet of things gateway can acquire the related information of the currently paired equipment of the Internet of things.
Assuming that the foregoing is a first possible implementation manner, in a second possible implementation manner according to the foregoing first possible implementation manner, after the sending, to the internet of things gateway, each piece of equipment information, the pairing method further includes:
detecting whether all the Internet of things devices are successfully paired with the Internet of things gateway;
if the internet of things devices are not successfully paired with the internet of things gateway, the internet of things devices are: the gateway configuration information is respectively sent to each piece of abnormal Internet of things equipment so as to trigger each piece of abnormal Internet of things equipment to be paired with the Internet of things gateway, wherein the abnormal Internet of things equipment is the Internet of things equipment which is not successfully paired with the Internet of things gateway in each piece of Internet of things equipment;
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 related information of each abnormal Internet of things equipment paired currently.
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 the Internet of things devices are the abnormal Internet of things devices, acquiring gateway configuration information of the Internet of things gateway, and then respectively sending the latest acquired gateway configuration information to the abnormal Internet of things devices;
and if the different Internet of things devices are the abnormal Internet of things devices, respectively sending the latest acquired gateway configuration information to the different abnormal Internet of things devices.
In a fourth possible implementation manner according to the second possible implementation manner, after the detecting whether each of the devices of the internet of things is successfully paired with the gateway of the internet of things, the pairing method further includes:
and if all 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 all 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 of the devices of the internet of things is successfully paired with the gateway of the internet of things includes:
acquiring the bagging information of the gateway of the Internet of things;
detecting whether all the Internet of things equipment is successfully paired with the Internet of things gateway or not based on the bagging information;
the package information comprises information of the internet of things equipment for indicating that the state information is reported to the internet of things gateway in the internet of things equipment, and the package information is generated by the internet of things gateway based on the equipment information of the internet of things equipment and the equipment information of the internet of things equipment for which the state information is reported.
From the above, the technical scheme of the application configures the internet of things gateway and the internet of things equipment in a unified way through the upper computer which is respectively in communication connection with the internet of things gateway and the internet of things equipment, so that a user does not need to pair each internet of things equipment with the internet of things gateway according to the instruction of each internet of things equipment or equipment prompt tone and the like, the technical effect of uniformly pairing the internet of things gateway with each internet of things equipment is realized, and the convenience and reliability of pairing the internet of things gateway with each internet of things equipment are improved.
Example IV
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed, performs the steps provided by the above-described embodiments. In particular, the computer program comprises computer program code, which may be in one of a source code form, an object code form, an executable file or some intermediate form, without limitation; the computer readable storage medium may be any entity or device capable of carrying the computer program code described above, a recording medium, a usb disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-only memory (ROM), a random access memory (RAM, randomAccessMemory), an electrical carrier signal, a telecommunications signal, and a software distribution medium, without limitation. The content of the computer readable storage medium can be appropriately increased or decreased according to the requirements of the legislation and the patent practice in the jurisdiction.
From the above, the technical scheme of the application configures the internet of things gateway and the internet of things equipment in a unified way through the upper computer which is respectively in communication connection with the internet of things gateway and the internet of things equipment, so that a user does not need to pair each internet of things equipment with the internet of things gateway according to the instruction of each internet of things equipment or equipment prompt tone and the like, the technical effect of uniformly pairing the internet of things gateway with each internet of things equipment is realized, and the convenience and reliability of pairing the internet of things gateway with each 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 application. 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 application. Thus, the present application 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-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
It should be noted that, the method and the details thereof provided in the foregoing embodiments may be combined into the apparatus and the device provided in the embodiments, and are referred to each other and are not described in detail.
Those of ordinary skill in the art will 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 solution. 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 manners. For example, the apparatus/device embodiments described above are merely illustrative, e.g., the division of modules or elements described above is merely a logical functional division, and may be implemented in other ways, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.
Claims (5)
1. The pairing method based on the 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;
the gateway configuration information is respectively sent to all the Internet of things devices connected with the upper computer so as to trigger the pairing of the Internet of things devices and the Internet of things gateway;
acquiring equipment information of each piece of equipment of the Internet of things;
sending each piece of equipment information to the Internet of things gateway so that the Internet of things gateway can acquire the related information of each piece of currently paired Internet of things equipment;
detecting whether all the Internet of things devices are successfully paired with the Internet of things gateway;
if the internet of things devices are not successfully paired with the internet of things gateway, the internet of things devices are: the gateway configuration information is sent to each piece of abnormal Internet of things equipment respectively to trigger each piece of abnormal Internet of things equipment to be paired with the Internet of things gateway, wherein the abnormal Internet of things equipment is the Internet of things equipment which is not successfully paired with the Internet of things gateway in each piece of Internet of things equipment;
the equipment information of each abnormal Internet of things equipment is sent to the Internet of things gateway, so that the Internet of things gateway can learn the related information of each abnormal Internet of things equipment paired currently;
the sending the gateway configuration information to each heterogeneous internet of things device includes:
if the Internet of things devices are the abnormal Internet of things devices, acquiring gateway configuration information of the Internet of things gateway again, and then respectively sending the latest acquired gateway configuration information to the abnormal Internet of things devices;
if the different Internet of things devices are the abnormal Internet of things devices, respectively sending gateway configuration information sent last time to the different Internet of things devices;
the detecting whether each piece of internet of things equipment is successfully paired with the internet of things gateway comprises:
acquiring the package information of the gateway of the Internet of things;
detecting whether all the Internet of things devices are successfully paired with the Internet of things gateway or not based on the bagging information;
the package information comprises information of the internet of things equipment used for indicating that the state information is reported to the internet of things gateway in the internet of things equipment, and the package information is generated by the internet of things gateway based on the equipment information of the internet of things equipment and the equipment information of the internet of things equipment with the reported state information.
2. The pairing method according to claim 1, 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:
and if all the Internet of things devices are successfully paired with the Internet of things gateway, outputting normal state information to indicate that the Internet of things gateway and all the Internet of things devices are in a normal pairing state.
3. Pairing 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 equipment respectively, pairing device includes:
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 respectively sending the gateway configuration information to all the Internet of things devices connected with the upper computer so as to trigger the pairing of the Internet of things devices and the Internet of things gateway;
the second acquisition unit is used for acquiring the equipment information of each piece of equipment of the Internet of things;
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 acquire the related information of the currently paired equipment of each Internet of things;
the detection unit is used for detecting whether all the Internet of things devices are successfully paired with the Internet of things gateway;
a processing unit for: when the internet of things devices are not successfully paired with the internet of things gateway: the gateway configuration information is sent to each piece of abnormal Internet of things equipment respectively to trigger each piece of abnormal Internet of things equipment to be paired with the Internet of things gateway, wherein the abnormal Internet of things equipment is the Internet of things equipment which is not successfully paired with the Internet of things gateway in each piece of Internet of things equipment;
the equipment information of each abnormal Internet of things equipment is sent to the Internet of things gateway, so that the Internet of things gateway can learn the related information of each abnormal Internet of things equipment paired currently;
the processing unit is specifically configured to:
when the Internet of things devices are the abnormal Internet of things devices, acquiring the gateway configuration information of the Internet of things gateway again, and then respectively sending the latest acquired gateway configuration information to the abnormal Internet of things devices;
when the equipment of the Internet of things is not the abnormal equipment of the Internet of things, the gateway configuration information sent last time is respectively sent to the equipment of the Internet of things;
the detection unit is specifically used for:
acquiring the package information of the gateway of the Internet of things;
detecting whether all the Internet of things devices are successfully paired with the Internet of things gateway or not based on the bagging information;
the package information comprises information of the internet of things equipment used for indicating that the state information is reported to the internet of things gateway in the internet of things equipment, and the package information is generated by the internet of things gateway based on the equipment information of the internet of things equipment and the equipment information of the internet of things equipment with the reported state information.
4. The pairing device based on the upper computer establishes communication connection with the gateway of the Internet of things, and the upper computer establishes communication connection with more than one device of the Internet of things 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 according to claim 1 or 2 when executing the computer program.
5. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of claim 1 or 2.
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 CN112422313A (en) | 2021-02-26 |
CN112422313B true 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 (9)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
-
2020
- 2020-09-29 CN CN202011052573.0A patent/CN112422313B/en active Active
Patent Citations (9)
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 |
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 |
---|---|
CN112422313A (en) | 2021-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109922160B (en) | Terminal secure access method, device and system based on power Internet of things | |
US9986428B2 (en) | Security management in M2M area network | |
US9717012B2 (en) | Internet of things (IOT) automotive device, system, and method | |
CN107770226B (en) | Control method and device for smart home, home gateway and mobile terminal | |
CN102571732B (en) | A kind of methods, devices and systems of processes sensor protocol information | |
CN107249170B (en) | Method and system for safe communication of Bluetooth equipment | |
EP3490304B1 (en) | Method for identifying access point and hotspot, and related products | |
CN107229854B (en) | Application program registration method and device, electronic equipment and storage medium | |
CN108282453B (en) | Internet of things reading device, safe access method and control center equipment | |
WO2015116710A1 (en) | Anti-takeover systems and methods for network attached peripherals | |
US10268495B2 (en) | Virtual device model system | |
KR101737259B1 (en) | Method deviceprogram and recording medium for sending message | |
CN110752977A (en) | Abnormal intrusion detection method and device for CAN bus of Internet of vehicles | |
US20150256962A1 (en) | M2m gateway device and applying method thereof | |
CN112422313B (en) | Pairing method based on upper computer and related device | |
EP3475505A1 (en) | Systems and methods for implementing a proximity lock using bluetooth low energy | |
KR101938734B1 (en) | Method and Apparatus for Sharing Functions of M2M Devices based on Gateway | |
CN112769762A (en) | Distributed efficient Internet of things equipment access method | |
CN113037820B (en) | Thing networking device communication module | |
EP4158921A1 (en) | Executing control command in dependence on presence being detected | |
CN113992437A (en) | Access control management method, device and system for Modbus equipment | |
CN110769397B (en) | Method and device for connecting robot with network and terminal equipment | |
CN110687860A (en) | Machine room monitoring system, method and device and readable storage medium | |
CN210075282U (en) | Water affair device adapter based on thing networking | |
CN108540523B (en) | Management device, communication system and communication method for internet of things device |
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 |