CN109151066A - The communication means and device of internet of things equipment - Google Patents
The communication means and device of internet of things equipment Download PDFInfo
- Publication number
- CN109151066A CN109151066A CN201811211124.9A CN201811211124A CN109151066A CN 109151066 A CN109151066 A CN 109151066A CN 201811211124 A CN201811211124 A CN 201811211124A CN 109151066 A CN109151066 A CN 109151066A
- Authority
- CN
- China
- Prior art keywords
- communication
- internet
- port
- communication port
- things equipment
- 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
Links
Classifications
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
Abstract
The embodiment of the present invention discloses the communication means and device of internet of things equipment.Wherein, which comprises corresponding first communication information is sent by each first communication port respectively;Wherein, first communication information includes the first device address corresponding with the first communication port and the first call duration time section;Second communication information that each next stage internet of things equipment returns is received, second communication information includes the port-mark of corresponding with the first communication port the first device address and the second communication port;Corresponding first paired communication information is sent by the first communication port and gives next stage internet of things equipment, so that next stage internet of things equipment completes pairing;Wherein, the first paired communication information includes port-mark and corresponding first device address of the first communication port of the second communication port corresponding with second communication information.Described device is for executing the above method.The communication means of internet of things equipment provided in an embodiment of the present invention improves the networking efficiency of internet of things equipment.
Description
Technical field
The present embodiments relate to internet of things field, and in particular to the communication means and device of internet of things equipment.
Background technique
The application of technology of Internet of things constantly by exploitation and is promoted, and the core technology for practicing wired home is increasingly becoming.
In the prior art, each internet of things equipment usually has multiple communication port, and each communication port corresponding one connects
Circuit and a transmitting line are received, communication port is used to receive the communication letter that upper level or next stage internet of things equipment are sent
Breath either sends the communication information to upper level or next stage internet of things equipment.In the group network process using master-slave communication mode
In, it needs the communication port of internet of things equipment company corresponding with the communication port of its upper level or next stage internet of things equipment
It connects, otherwise will lead to internet of things equipment cannot normally communicate, and in order to guarantee the correct connection of communication port, will lead to networking
Journey is complicated, time-consuming and laborious.
Therefore, a kind of communication means of internet of things equipment how is proposed, the networking that can simplify internet of things equipment was installed
Journey becomes industry important topic urgently to be resolved to improve the networking efficiency of internet of things equipment.
Summary of the invention
For the defects in the prior art, the embodiment of the present invention provides the communication means and device of internet of things equipment.
In a first aspect, the embodiment of the present invention proposes a kind of communication means of internet of things equipment, comprising:
Corresponding first communication information is sent respectively by each first communication port;Wherein, first communication
Information includes the first device address corresponding with first communication port and the first call duration time section, first communication port
It is corresponded with first device address;
Receive second communication information that each next stage internet of things equipment returns, second communication information include with it is described
Corresponding first device address of first communication port and the port of the second communication port corresponding with second communication information mark
Know;Second communication information be each next stage internet of things equipment receive respective first communication information it
It returns afterwards;
Corresponding first paired communication information is sent by first communication port to set to corresponding next stage Internet of Things
It is standby, so that corresponding next stage internet of things equipment completes pairing;Wherein, the first paired communication information includes and described
The port-mark of corresponding second communication port of two communication informations and the first device address corresponding with first communication port,
First communication port is the first equipment corresponding with first communication port for including in second communication information
Corresponding first communication port in location.
Second aspect, the embodiment of the present invention also provide a kind of communication means of internet of things equipment, comprising:
It receives upper level internet of things equipment and passes through first communication information that the first communication port is sent, the first communication letter
Breath includes the first device address corresponding with first communication port and the first call duration time section;
It is sent in the first call duration time section by each second communication port and each second communication port
Corresponding second communication information, second communication information include the second communication port corresponding with second communication information
Port-mark and first device address;Wherein, only one described second communication ends in each second communication port
Mouth connects the upper level internet of things equipment;
Receive the first paired communication information that the upper level internet of things equipment is returned by first communication port, institute
State port-mark that the first paired communication information includes the second communication port corresponding with second communication information and with it is described
Corresponding first device address of first communication port;
If the first device address for including in first communication information and the first paired communication information are known in judgement
In include the first device address it is identical, then complete and the pairing of the upper level internet of things equipment.
The third aspect, the embodiment of the present invention provide a kind of communication device of internet of things equipment, comprising:
First transmission unit, for sending corresponding first communication information respectively by each first communication port;
Wherein, first communication information includes the first device address corresponding with first communication port and the first call duration time
Section, first communication port and first device address correspond;
First receiving unit, second communication information returned for receiving each next stage internet of things equipment, described second
The communication information includes and corresponding first device address of first communication port and corresponding with second communication information
The port-mark of two communication port;Second communication information be each next stage internet of things equipment receive it is respective
It is returned after first communication information;
Second transmission unit, for sending corresponding first paired communication information to correspondence by first communication port
Next stage internet of things equipment so that corresponding next stage internet of things equipment complete pairing;Wherein, first paired communication
Information include the second communication port corresponding with second communication information port-mark and with first communication port pair
The first device address answered, first communication port are including in second communication information with first communication port
Corresponding first communication port in corresponding first device address.
Fourth aspect, the embodiment of the present invention also provide a kind of communication device of internet of things equipment, comprising:
Second receiving unit, the first communication letter sent for receiving upper level internet of things equipment by the first communication port
Breath, first communication information includes the first device address corresponding with first communication port and the first call duration time section;
Third transmission unit, for sent in the first call duration time section by each second communication port with it is each
Corresponding second communication information of second communication port, second communication information includes corresponding with second communication information
The second communication port port-mark and first device address;Wherein, there was only one in each second communication port
A second communication port connects the upper level internet of things equipment;
Third receiving unit, returned for receiving the upper level internet of things equipment by first communication port
One paired communication information, the first paired communication information include the second communication port corresponding with second communication information
Port-mark and the first device address corresponding with first communication port;
Judging unit, for knowing the first device address for including in first communication information and described first in judgement
After the first device address for including in paired communication information is identical, the pairing with the upper level internet of things equipment is completed.
5th aspect, the embodiment of the present invention provide a kind of electronic equipment, including first memory, first processor and storage
On the first memory and the computer program that can run on the first processor, the first processor execute institute
The communication means of following internet of things equipment is realized when stating program:
Corresponding first communication information is sent respectively by each first communication port;Wherein, first communication
Information includes the first device address corresponding with first communication port and the first call duration time section, first communication port
It is corresponded with first device address;
Receive second communication information that each next stage internet of things equipment returns, second communication information include with it is described
Corresponding first device address of first communication port and the port of the second communication port corresponding with second communication information mark
Know;Second communication information be each next stage internet of things equipment receive respective first communication information it
It returns afterwards;
Corresponding first paired communication information is sent by first communication port to set to corresponding next stage Internet of Things
It is standby, so that corresponding next stage internet of things equipment completes pairing;Wherein, the first paired communication information includes and described
The port-mark of corresponding second communication port of two communication informations and the first device address corresponding with first communication port,
First communication port is the first equipment corresponding with first communication port for including in second communication information
Corresponding first communication port in location.
6th aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, are stored thereon with first
Computer program, the computer program realize the communication means of following internet of things equipment when being executed by processor:
Corresponding first communication information is sent respectively by each first communication port;Wherein, first communication
Information includes the first device address corresponding with first communication port and the first call duration time section, first communication port
It is corresponded with first device address;
Receive second communication information that each next stage internet of things equipment returns, second communication information include with it is described
Corresponding first device address of first communication port and the port of the second communication port corresponding with second communication information mark
Know;Second communication information be each next stage internet of things equipment receive respective first communication information it
It returns afterwards;
Corresponding first paired communication information is sent by first communication port to set to corresponding next stage Internet of Things
It is standby, so that corresponding next stage internet of things equipment completes pairing;Wherein, the first paired communication information includes and described
The port-mark of corresponding second communication port of two communication informations and the first device address corresponding with first communication port,
First communication port is the first equipment corresponding with first communication port for including in second communication information
Corresponding first communication port in location.
7th aspect, the embodiment of the present invention also provide a kind of electronic equipment, including second memory, second processor and deposit
The computer program that can be run on the second memory and in the second processor is stored up, the second processor executes
The communication means of following internet of things equipment is realized when described program:
It receives upper level internet of things equipment and passes through first communication information that the first communication port is sent, the first communication letter
Breath includes the first device address corresponding with first communication port and the first call duration time section;
It is sent in the first call duration time section by each second communication port and each second communication port
Corresponding second communication information, second communication information include the second communication port corresponding with second communication information
Port-mark and first device address;Wherein, only one described second communication ends in each second communication port
Mouth connects the upper level internet of things equipment;
Receive the first paired communication information that the upper level internet of things equipment is returned by first communication port, institute
State port-mark that the first paired communication information includes the second communication port corresponding with second communication information and with it is described
Corresponding first device address of first communication port;
If the first device address for including in first communication information and the first paired communication information are known in judgement
In include the first device address it is identical, then complete and the pairing of the upper level internet of things equipment.
Eighth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, are stored thereon with second
Computer program, the computer program realize the communication means of following internet of things equipment when being executed by processor:
It receives upper level internet of things equipment and passes through first communication information that the first communication port is sent, the first communication letter
Breath includes the first device address corresponding with first communication port and the first call duration time section;
It is sent in the first call duration time section by each second communication port and each second communication port
Corresponding second communication information, second communication information include the second communication port corresponding with second communication information
Port-mark and first device address;Wherein, only one described second communication ends in each second communication port
Mouth connects the upper level internet of things equipment;
Receive the first paired communication information that the upper level internet of things equipment is returned by first communication port, institute
State port-mark that the first paired communication information includes the second communication port corresponding with second communication information and with it is described
Corresponding first device address of first communication port;
If the first device address for including in first communication information and the first paired communication information are known in judgement
In include the first device address it is identical, then complete and the pairing of the upper level internet of things equipment.
The communication means and device of internet of things equipment provided in an embodiment of the present invention, due to that can be communicated by each first
Port sends corresponding first communication information respectively, and first communication information includes corresponding with the first communication port first setting
Then standby address and the first call duration time section receive second communication information that each next stage internet of things equipment returns, second is logical
Letter information includes and corresponding first device address of the first communication port and the second communication port corresponding with second communication information
Port-mark, then by the first communication port send the first paired communication information, the first paired communication information include with it is described
The port-mark of corresponding second communication port of second communication information and corresponding first device address of first communication port;
Wherein, first communication port is the equipment corresponding with first communication port that includes in second communication information
Corresponding first communication port in location, allows the next stage internet of things equipment of current internet of things equipment and current internet of things equipment
Any one first communication port is connected, and can simplify the networking installation process of internet of things equipment, to improve internet of things equipment
Networking efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the communication system schematic diagram for the internet of things equipment that one embodiment of the invention provides;
Fig. 2 is the partial structure diagram for the internet of things equipment that one embodiment of the invention provides;
Fig. 3 is the flow diagram of the communication means for the internet of things equipment that one embodiment of the invention provides;
Fig. 4 be another embodiment of the present invention provides internet of things equipment communication means flow diagram;
Fig. 5 is the flow diagram of the communication means for the internet of things equipment that further embodiment of this invention provides;
Fig. 6 is the structural schematic diagram of the communication device for the internet of things equipment that one embodiment of the invention provides;
Fig. 7 be another embodiment of the present invention provides internet of things equipment communication device structural schematic diagram;
Fig. 8 is the entity structure schematic diagram for the electronic equipment that one embodiment of the invention provides;
Fig. 9 be another embodiment of the present invention provides electronic equipment entity structure schematic diagram.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention
Figure, technical solution in the embodiment of the present invention are explicitly described, it is clear that described embodiment is a part of the invention
Embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making wound
Every other embodiment obtained under the premise of the property made labour, shall fall within the protection scope of the present invention.
Fig. 1 is the communication system schematic diagram for the internet of things equipment that one embodiment of the invention provides, and Fig. 2 is that the present invention one is implemented
The partial structure diagram for the internet of things equipment that example provides, as depicted in figs. 1 and 2, Internet of Things provided in an embodiment of the present invention is set
Standby communication system includes multistage internet of things equipment, and every grade of internet of things equipment includes at least one internet of things equipment 1, Internet of Things at different levels
The connection of net communication between devices, the communication connection can be visible light communication connection, can use optical fiber or plastic optical fiber cable
It realizes.The internet of things equipment includes processor 11 and multiple communication port 12, and each communication port 12 is driven by a transmission
Dynamic circuit 13 is connected with processor, and multiple communication port share a reception amplifying circuit 14.Wherein, communication port 12
Quantity is configured according to actual needs, and the embodiment of the present invention is without limitation.
As shown in Figure 1, first order internet of things equipment includes an internet of things equipment 1, first order internet of things equipment includes
Three internet of things equipment 1 that internet of things equipment 1 and second level internet of things equipment include communicate to connect, and the second level Internet of Things is set
Standby three internet of things equipment 1 for including are the next stage Internet of Things for the internet of things equipment 1 that the first order internet of things equipment includes
Equipment, the internet of things equipment 1 that the first order internet of things equipment includes are each object that the second level internet of things equipment includes
The upper level internet of things equipment of networked devices 1;First internet of things equipment 1 and third that the second level internet of things equipment includes
An internet of things equipment 1 communication connection that grade internet of things equipment includes, second object that the second level internet of things equipment includes
Three internet of things equipment 1 that networked devices 1 and the third level internet of things equipment include communicate to connect, the second level Internet of Things
Two 1 communication links of internet of things equipment that the third internet of things equipment 1 and the third level internet of things equipment that equipment includes include
It connects.Each internet of things equipment 1 has unique device address.The communication means of internet of things equipment provided in an embodiment of the present invention can
With the communication system for internet of things equipment as shown in Figure 1.
Fig. 3 is the flow diagram of the communication means for the internet of things equipment that one embodiment of the invention provides, as shown in figure 3,
The communication means of internet of things equipment provided in an embodiment of the present invention, comprising:
S301, corresponding first communication information is sent by each first communication port respectively;Wherein, described first
The communication information includes the first device address corresponding with first communication port and the first call duration time section, first communication
Port and first device address correspond;
Specifically, for the communication established between the first internet of things equipment and its next stage internet of things equipment, described first
Internet of things equipment can be sent and each described first respectively by each first communication port of first internet of things equipment
Corresponding first communication information of communication port, first communication information include corresponding with first communication port first setting
Standby address and the first call duration time section corresponding with first communication port, first communication port and first equipment
Address corresponds.Wherein, first internet of things equipment can be any one in the communication system of the internet of things equipment
An internet of things equipment in grade internet of things equipment.
S302, second communication information that each next stage internet of things equipment returns is received, second communication information includes
And corresponding first device address of the first communication port and the second communication port corresponding with second communication information
Port-mark;Second communication information is that each next stage internet of things equipment is receiving respective first communication
It is returned after information;
Specifically, the second internet of things equipment being connected with each first communication port can receive and described respectively
Corresponding first communication information of one communication port, each second internet of things equipment connect first communication port.
Second internet of things equipment after receiving first communication information, can be obtained from first communication information with
Corresponding first device address of first communication port and the first call duration time section, each second internet of things equipment receive
The the first call duration time section arrived is different.Since all second communication port of second internet of things equipment share one
A reception amplifying circuit, second internet of things equipment be not aware that when receiving first communication information which described second
Communication port is connected with first internet of things equipment, and second internet of things equipment can pass through each second communication port
Corresponding second communication information of each second communication port, first Internet of Things are sent in the first call duration time section
Net equipment can receive corresponding second communication information by the second communication port being connected with first internet of things equipment,
Second communication information includes the port-mark of the second communication port corresponding with second communication information and with described
Corresponding first device address of one communication port.When second internet of things equipment being connected with first internet of things equipment has
When multiple, first internet of things equipment can receive second communication information that multiple second internet of things equipment return.
Wherein, the port-mark of second communication port and second communication port corresponds, second internet of things equipment
Only one second communication port is connected with first internet of things equipment;Second internet of things equipment is first Internet of Things
The next stage internet of things equipment of net equipment, first internet of things equipment are the upper level Internet of Things of second internet of things equipment
Equipment.
S303, corresponding first paired communication information is sent to corresponding next stage Internet of Things by first communication port
Net equipment, so that corresponding next stage internet of things equipment completes pairing;Wherein, the first paired communication information includes and institute
State corresponding second communication port of second communication information port-mark and the first equipment corresponding with first communication port
Address, first communication port are that include corresponding with first communication port first sets in second communication information
Standby corresponding first communication port in address.
It specifically, can be from described after first internet of things equipment receives each second communication information
Corresponding with first communication port the first device address and corresponding with second communication information is obtained in two communication informations
The second communication port port-mark, then according to the first device address corresponding with first communication port obtain and institute
Corresponding first communication port in corresponding first device address of the first communication port is stated, is sent and is somebody's turn to do by first communication port
The corresponding first paired communication information of first communication port gives the second connected internet of things equipment of first communication port, with this
The second connected internet of things equipment of first communication port is next stage internet of things equipment corresponding with first communication port.Institute
State the first paired communication information can carry corresponding second communication port of second communication information port-mark and with this
Corresponding first device address of one communication port.The second internet of things equipment being connected with first communication port receive with this
After the corresponding first paired communication information of one communication port, institute is obtained from the corresponding first paired communication information
State corresponding second communication port of second communication information port-mark and corresponding with first communication port the first equipment
Location, then will include in the first device address for including in the first paired communication information and first communication information
One device address is compared, if the first device address for including in the first paired communication information and first communication
The first device address for including in information is identical, then confirms that the port-mark for including in the first paired communication information is corresponding
Second communication port is the second communication port being connected with first internet of things equipment, and second internet of things equipment can be by institute
The first device address for including in first communication information is stated as local communication address, and by with first internet of things equipment
The second connected communication port is communicated with first internet of things equipment, so as to complete with first internet of things equipment
Pairing.
For example, the first internet of things equipment A and the second internet of things equipment B, the second internet of things equipment C and the second internet of things equipment
D communication is connected, the first communication port a that the first internet of things equipment A and the second internet of things equipment B pass through the first internet of things equipment A1
It is connected, the first communication port a that the first internet of things equipment A and the second internet of things equipment C pass through the first internet of things equipment A2It is connected,
First internet of things equipment A and the second internet of things equipment D passes through the first communication port a of the first internet of things equipment A3It is connected.First
Internet of things equipment A can pass through the first communication port a1, the first communication port a2With the first communication port a3It is logical that first is sent respectively
Believe port a1Corresponding first communication information, the first communication port a2Corresponding first communication information and the first communication port a3It is right
First communication information answered, the first communication port a1Corresponding first communication information includes and the first communication port a1Corresponding
One device address 001 and the first call duration time section t1~t2, the first communication port a2Corresponding first communication information includes and first
Communication port a2Corresponding first device address 002 and the first call duration time section t3~t4, the first communication port a3Corresponding first
The communication information includes and the first communication port a3Corresponding first device address 003 and the first call duration time section t5~t6。
Second internet of things equipment B can pass through the first coupled communication port a1It receives and the first communication port a1
Corresponding first communication information, from the first communication port a1The first device address 001 is obtained in corresponding first communication information
With the first call duration time section t1~t2, then in the first call duration time section t1~t2Inside pass through each the of the second internet of things equipment B
Two communication port b1、b2And b3It sends and the second communication port b respectively1Corresponding second communication information, the second communication port b2It is right
Second communication information answered and the second communication port b3Corresponding second communication information, the second communication port b1Corresponding second is logical
Letter information includes the first device address 001 and the second communication port b1Port-mark B01, the second communication port b2Corresponding
Two communication informations include the first device address 001 and the second communication port b2Port-mark B02, the second communication port b3It is corresponding
Second communication information include the first device address 001 and the second communication port b3Port-mark B03.First internet of things equipment
The first communication port a of A1With three the second communication port b of the second internet of things equipment B1、b2And b3In one be connected, first
Internet of things equipment A would only receive one in three above-mentioned second communication informations of the second internet of things equipment B transmission, it is assumed that the
One internet of things equipment A receives the second communication port b1Corresponding second communication information.
First internet of things equipment A receives the second communication port b1It, can be from second after corresponding second communication information
Communication port b1The first device address 001 and the second communication port b are obtained in corresponding second communication information1Port-mark
B01.First internet of things equipment A obtains first communication port corresponding with the first device address 001 according to the first device address 001
a1, then pass through the first communication port a1It sends and the first communication port a1Corresponding first paired communication information gives the second Internet of Things
Net equipment B, with the first communication port a1Corresponding first paired communication information includes the second communication port b1Port-mark B01
With the first communication port a1Corresponding first device address 001.Second internet of things equipment B can receive and the first communication port
a1Corresponding first paired communication information, and from the first communication port a1Second is obtained in corresponding first paired communication information
Communication port b1Port-mark B01 and the first communication port a1Corresponding first device address 001.Second internet of things equipment B will
With the first communication port a1The first device address 001 for including in corresponding first communication information and with the first communication port a1It is right
The the first paired communication information answered include the first device address 001 be compared, due to the first communication port a1Corresponding
The first device address 001 for including in one communication information and with the first communication port a1Corresponding first paired communication information includes
First device address 001 is identical, mailing address of the second internet of things equipment B by the first device address 001 as local, and confirms
With the first communication port a1The corresponding second communication port b of the port-mark B01 that corresponding first paired communication information includes1For
The second communication port being connected with the first internet of things equipment A, to complete the second internet of things equipment B and the first internet of things equipment A
Pairing.The specific pairing process of second internet of things equipment C and the first internet of things equipment A and the second internet of things equipment D and
The specific pairing process of one internet of things equipment A, it is similar with the pairing process of the first internet of things equipment A with the second internet of things equipment B,
Herein without repeating.
The communication means of internet of things equipment provided in an embodiment of the present invention, since the first internet of things equipment can be by each
First communication port sends corresponding first communication information respectively, and first communication information includes corresponding with the first communication port
The first device address and the first call duration time section, then receive the second communication letter that each next stage internet of things equipment returns
Breath, second communication information include and corresponding first device address of the first communication port and corresponding with second communication information second
The port-mark of communication port, then the first paired communication information, the first paired communication packet are sent by the first communication port
Include the port-mark and first communication port corresponding first of the second communication port corresponding with second communication information
Device address;Wherein, first communication port is including in second communication information with first communication port pair
Corresponding first communication port in the device address answered, allows any one of the second internet of things equipment and the first internet of things equipment
First communication port is connected, and can simplify the networking installation process of internet of things equipment, to improve the networking efficiency of internet of things equipment.
It is further, described to be sent respectively respectively by each first communication port on the basis of the various embodiments described above
Corresponding first communication information includes:
Corresponding first communication information is periodically sent by each first communication port respectively.
Specifically, first internet of things equipment can periodically be sent by each first communication port and institute respectively
State corresponding first communication information of the first communication port.Wherein, described to be periodically configured based on practical experience, the present invention is implemented
Example is without limitation.
Fig. 4 be another embodiment of the present invention provides internet of things equipment communication means flow diagram, such as Fig. 4 institute
Show, the communication means of internet of things equipment provided in an embodiment of the present invention, comprising:
First communication information that S401, reception upper level internet of things equipment are sent by the first communication port, described first
The communication information includes the first device address corresponding with first communication port and the first call duration time section;
Specifically, for the communication established between the first internet of things equipment and the second internet of things equipment, the first Internet of Things is set
It is standby to be sent respectively by each first communication port of first internet of things equipment and each first communication port
Corresponding first communication information, the second internet of things equipment being connected with first communication port can receive to be led to described first
Believe corresponding first communication information in port.Wherein, first communication information includes corresponding with first communication port
One device address and the first call duration time section corresponding with first communication port, first communication port and described first
Device address corresponds;First internet of things equipment can be any level-one in the communication system of the internet of things equipment
An internet of things equipment in internet of things equipment, second internet of things equipment are the next stage objects of first internet of things equipment
Networked devices.
S402, it is sent in the first call duration time section by each second communication port and is communicated with each described second
Corresponding second communication information in port, second communication information include the second communication ends corresponding with second communication information
The port-mark of mouth and first device address;Wherein, only one in each second communication port is described second logical
Believe that port connects the upper level internet of things equipment;
Specifically, second internet of things equipment, can be from described first after receiving first communication information
The first device address corresponding with first communication port and the first call duration time section are obtained in the communication information.Due to described
All second communication port of two internet of things equipment share a reception amplifying circuit, and second internet of things equipment receives institute
It is not aware which second communication port is connected with first internet of things equipment when stating first communication information, described second
It is logical that internet of things equipment can send each described second by each second communication port in the first call duration time section
Believe that corresponding second communication information in port, second communication information include the second communication corresponding with second communication information
The port-mark of port and first device address.Wherein, in each second communication port only one described second
Communication port connects first internet of things equipment.
S403, the first paired communication letter that the upper level internet of things equipment is returned by first communication port is received
Breath, the first paired communication information include the second communication port corresponding with second communication information port-mark and with
Corresponding first device address of first communication port;
Specifically, first internet of things equipment can receive second Internet of Things by the second connected communication port
Second communication information corresponding with second communication port that equipment is sent, and obtain from second communication information and institute
State the port of corresponding first device address of the first communication port and the second communication port corresponding with second communication information
Mark, then according to and corresponding first device address of first communication port obtain it is corresponding with first communication port
Corresponding first communication port in first device address sends corresponding with first communication port the by first communication port
One paired communication information gives second internet of things equipment, and second internet of things equipment can be connect by first communication port
Receive the first paired communication information corresponding with first communication port.Wherein, the first paired communication information include with it is described
The port-mark of corresponding second communication port of second communication information and the first equipment corresponding with first communication port
Location.
If the first device address for including in first communication information and first paired communication are known in S404, judgement
The first device address for including in information is identical, then completes the pairing with the upper level internet of things equipment.
Specifically, it is logical to receive corresponding first pairing of the first coupled communication port for second internet of things equipment
After letter information, the port-mark and described first of corresponding second communication port of second communication information can be therefrom obtained
Corresponding first device address of communication port, then by the first device address for including in the first paired communication information and institute
The first device address for including in first communication information is stated to be compared, if include in the first paired communication information
The first device address for including in one device address and first communication information is identical, then confirms the first paired communication letter
Corresponding second communication port of the port-mark for including in breath is the second communication port being connected with first internet of things equipment,
Second internet of things equipment can using the first device address for including in first communication information as local mailing address,
And the second communication port by being connected with first internet of things equipment is communicated with first internet of things equipment, thus
Complete the pairing with first internet of things equipment.
The communication means of internet of things equipment provided in an embodiment of the present invention, since the second internet of things equipment can receive upper one
Grade internet of things equipment passes through first communication information that the first communication port is sent, and first communication information includes communicating with described first
Corresponding first device address in port and the first call duration time section, and by each second communication port in the first call duration time section
Interior to send second communication information corresponding with each second communication port, second communication information includes corresponding with second communication information
The second communication port port-mark and the first device address, only one second communication port in each second communication port
Upper level internet of things equipment is connected, it is logical then to receive the first pairing that upper level internet of things equipment is returned by the first communication port
Letter information, the first paired communication information include that the port-mark of the second communication port corresponding with second communication information and first are led to
Believe corresponding first device address in port, then knows the first device address and first for including in first communication information in judgement
After the first device address for including in paired communication information is identical, the pairing with upper level internet of things equipment is completed, makes second
Internet of things equipment can be connected with any one first communication port of the first internet of things equipment, can simplify internet of things equipment
Networking installation process, to improve the networking efficiency of internet of things equipment.
Fig. 5 is the flow diagram of the communication means for the internet of things equipment that further embodiment of this invention provides, such as Fig. 5 institute
Show, on the basis of the various embodiments described above, further, the communication means of internet of things equipment provided by the invention further include:
It is S405, logical by each described second other than the second communication port for being connected with the upper level internet of things equipment
Letter port sends corresponding third communication information respectively;Wherein, the third communication information includes communicating with described second
Corresponding second device address in port and the second call duration time section, second communication port and second device address are one by one
It is corresponding;
Specifically, second internet of things equipment may be implemented after completing with first internet of things equipment pairing
With the communication of first internet of things equipment, can also by the second communication port for being connected with first internet of things equipment with
Outer second communication port is realized and the communication of the next stage internet of things equipment of second internet of things equipment, and described second
The next stage internet of things equipment of internet of things equipment hereinafter referred to as third internet of things equipment.Second internet of things equipment can lead to
Cross each described second other than the second communication port being connected with the upper level internet of things equipment of second internet of things equipment
Communication port is sent respectively other than the second communication port being connected with the upper level internet of things equipment of second internet of things equipment
The corresponding third communication information of each second communication port, the third communication information includes and second communication ends
Corresponding second device address of mouth and the second call duration time section, second communication port and second device address one are a pair of
It answers.Wherein, second internet of things equipment can be other than the internet of things equipment in the first order internet of things equipment
An internet of things equipment in any level-one internet of things equipment.
S406, the fourth communication information that each next stage internet of things equipment returns is received, the fourth communication information includes
And corresponding second device address of the second communication port and third communication port corresponding with the fourth communication information
Port-mark;The fourth communication information is that each next stage internet of things equipment is receiving the respective third communication
It is returned after information;
Specifically, each third internet of things equipment can be logical by be connected with second internet of things equipment second
Believe that port receives third communication information corresponding with second communication port.The third internet of things equipment receive it is described
After first communication information, the second equipment corresponding with second communication port can be obtained from the third communication information
Address and the second call duration time section, the mutual not phase of the second call duration time section that each third internet of things equipment receives
Together.Since all third communication ports of the third internet of things equipment share a reception amplifying circuit, the third Internet of Things
Net equipment is not aware which third communication port is set with second Internet of Things when receiving the third communication information
Standby to be connected, the third internet of things equipment can be sent in the second call duration time section by each third communication port
The corresponding fourth communication information in each third communication port, second internet of things equipment can by with the third object
The connected third communication port of networked devices receives fourth communication information corresponding with the third communication port, and the described 4th
The communication information include third communication port corresponding with the fourth communication information port-mark and second device address.
When the third internet of things equipment being connected with second internet of things equipment has multiple, second internet of things equipment can be with
Receive the fourth communication information that multiple third internet of things equipment return.Wherein, the third communication port and described the
The port-mark of three communication port corresponds, only one third communication port of the third internet of things equipment and described second
Internet of things equipment is connected;The third internet of things equipment is the next stage internet of things equipment of second internet of things equipment, described
Second internet of things equipment is the upper level internet of things equipment of the third internet of things equipment.
S407, corresponding second paired communication information is sent to corresponding next stage Internet of Things by second communication port
Net equipment, so that corresponding next stage internet of things equipment completes pairing;Wherein, the second paired communication information includes and institute
With stating port-mark and corresponding second equipment of second communication port of the corresponding third communication port of fourth communication information
Location, second communication port are the second equipment corresponding with second communication port for including in the third communication information
Corresponding second communication port in address.
It specifically, can be from described after second internet of things equipment receives each fourth communication information
Corresponding with second communication port the second device address and corresponding with the fourth communication information is obtained in four communication informations
Third communication port port-mark, then according to the second device address corresponding with second communication port obtain and institute
Corresponding second communication port in corresponding second device address of the second communication port is stated, is sent and is somebody's turn to do by second communication port
The corresponding second paired communication information of second communication port gives the connected third internet of things equipment of second communication port, with this
The connected third internet of things equipment of second communication port is next stage internet of things equipment corresponding with second communication port.It is described
Second paired communication information can carry the port-mark of the corresponding third communication port of the fourth communication information and with described
Corresponding second device address of two communication port.It is received with the third internet of things equipment that second communication port is connected corresponding
After the second paired communication information, the fourth communication information pair is obtained from the corresponding second paired communication information
The port-mark for the third communication port answered and the second device address corresponding with second communication port, then by described second
The second device address for including in paired communication information and the second device address for including in the third communication information are compared
Compared with if the second device address for including in the second paired communication information and include in the third communication information second
Device address is identical, then confirm the corresponding third communication port of the port-mark for including in the second paired communication information be with
The connected third communication port of second internet of things equipment, the third internet of things equipment can will include in third communication information
The second device address as local mailing address, and the third communication port by being connected with second internet of things equipment
It is communicated with second internet of things equipment, so as to complete the pairing with second internet of things equipment.
For example, the second internet of things equipment B with the first internet of things equipment A complete pairing after, the second internet of things equipment B's
Second communication port b1For the communication port being connected with the first internet of things equipment A.Second internet of things equipment B is set with third Internet of Things
Standby E passes through the second communication port b2It is connected, the second internet of things equipment B and third internet of things equipment F pass through the second communication port b3Phase
Even.Second internet of things equipment B can pass through the second communication port b2With the second communication port b3The second communication port b is sent respectively2
Corresponding third communication information and the second communication port b3Corresponding third communication information, the second communication port b2Corresponding third
The communication information includes and the second communication port b2Corresponding second device address 011 and the second call duration time section t7~t8, second is logical
Believe port b3Corresponding third communication information includes and the second communication port b3Corresponding second device address 012 and the second communication
Time period t9~t10。
Third internet of things equipment E can pass through the second coupled communication port b2It receives and the second communication port b2
Corresponding third communication information, from the second communication port b2The second device address 011 is obtained in corresponding third communication information
With the second call duration time section t7~t8, then in the second call duration time section t7~t8It is interior to pass through each the of third internet of things equipment E
Three communication port e1、e2And e3It sends and third communication port e respectively1Corresponding fourth communication information, third communication port e2It is right
The fourth communication information and third communication port e answered3Corresponding fourth communication information, third communication port e1Corresponding four-way
Letter information includes the second device address 011 and third communication port e1Port-mark E01, third communication port e2Corresponding
Four communication informations include the second device address 011 and third communication port e2Port-mark E02, third communication port e3It is corresponding
Fourth communication information include the second device address 011 and third communication port e3Port-mark E03, the second internet of things equipment
The second communication port b of B2With three third communication port e of third internet of things equipment E1、e2And e3In one be connected, second
Internet of things equipment B would only receive one in three above-mentioned fourth communication information of third internet of things equipment E transmission, it is assumed that the
Two internet of things equipment B receive third communication port e1Corresponding fourth communication information.
Second internet of things equipment B receives third communication port e1It, can be from third after corresponding fourth communication information
Communication port e1The second device address 011 and third communication port e are obtained in corresponding fourth communication information1Port-mark
E01.Second internet of things equipment B obtains second communication port corresponding with the second device address 011 according to the second device address 011
b2, then pass through the second communication port b2It sends and the second communication port b2Corresponding second paired communication information gives third Internet of Things
Net equipment E, with the second communication port b2Corresponding second paired communication information includes third communication port e1Port-mark E01
With the second communication port b2Corresponding second device address 011.Third internet of things equipment E can receive and the second communication port
b2Corresponding second paired communication information, and from the second communication port b2Third is obtained in corresponding second paired communication information
Communication port e1Port-mark E01 and the second communication port b2Corresponding second device address 011.Third internet of things equipment E will
With the second communication port b2The second device address 011 for including in corresponding third communication information and with the second communication port b2It is right
The the second paired communication information answered include the second device address 011 be compared, due to the second communication port b2Corresponding
The second device address 011 for including in three communication informations and with the second communication port b2Corresponding second paired communication information includes
Second device address 011 is identical, mailing address of the third internet of things equipment E by the second device address 011 as local, and confirms
With the second communication port b2The corresponding third communication port e of the port-mark E01 that corresponding second paired communication information includes1For
The third communication port being connected with the second internet of things equipment B, to complete third internet of things equipment E and the second internet of things equipment B
Pairing.The specific pairing process of third internet of things equipment F and the second internet of things equipment B, with third internet of things equipment E and second
The pairing process of internet of things equipment B is similar, herein without repeating.
The communication means of internet of things equipment provided in an embodiment of the present invention, the second internet of things equipment are completed and the first Internet of Things
After the pairing of net equipment, during the pairing with third internet of things equipment, eliminates and be connected with the first internet of things equipment
Port saves system resource, improves matching efficiency.
It is further, described by being connected with the upper level internet of things equipment on the basis of the various embodiments described above
Each second communication port other than communication port sends corresponding third communication information respectively and includes:
It is periodically logical by each described second other than the second communication port for being connected with the upper level internet of things equipment
Letter port sends corresponding third communication information respectively.
Specifically, second internet of things equipment can be periodically logical by be connected with first internet of things equipment second
Each second communication port other than letter port sends third communication information corresponding with second communication port respectively.
Wherein, described to be periodically configured based on practical experience, the embodiment of the present invention is without limitation.
Fig. 6 is the structural schematic diagram of the communication device for the internet of things equipment that one embodiment of the invention provides, as shown in fig. 6,
The communication device of internet of things equipment provided in an embodiment of the present invention, including the first transmission unit 601,602 and of the first receiving unit
Second transmission unit 603, in which:
First transmission unit 601, which is used to send corresponding first communication respectively by each first communication port, to be believed
Breath;Wherein, when first communication information includes the first device address corresponding with first communication port and the first communication
Between section, first communication port and first device address correspond;First receiving unit 602 for receive it is each under
Second communication information that level-one internet of things equipment returns, second communication information includes corresponding with first communication port
The port-mark of first device address and the second communication port corresponding with second communication information;Second communication information
Each next stage internet of things equipment returns after receiving respective first communication information;Second sends list
Member 603 is set for sending corresponding first paired communication information by first communication port to corresponding next stage Internet of Things
It is standby, so that corresponding next stage internet of things equipment completes pairing;Wherein, the first paired communication information includes and described
The port-mark of corresponding second communication port of two communication informations and the first device address corresponding with first communication port,
First communication port is the first equipment corresponding with first communication port for including in second communication information
Corresponding first communication port in location.
Specifically, in order to which the communication established between the first internet of things equipment and its next stage internet of things equipment, first is sent
Unit 601 can be sent respectively by each first communication port of first internet of things equipment and be communicated with each described first
Corresponding first communication information in port, first communication information include corresponding with first communication port the first equipment
Location and the first call duration time section corresponding with first communication port, first communication port and first device address
It corresponds.Wherein, first internet of things equipment can be any level-one object in the communication system of the internet of things equipment
An internet of things equipment in networked devices.
The second internet of things equipment being connected with each first communication port can receive respectively to be communicated with described first
Corresponding first communication information in port, each second internet of things equipment connect first communication port.Described
Two internet of things equipment can obtain and described after receiving first communication information from first communication information
Corresponding first device address of one communication port and the first call duration time section, the institute that each second internet of things equipment receives
It is different to state the first call duration time section.Since all second communication port of second internet of things equipment share a reception
Which second communication ends amplifying circuit, second internet of things equipment are not aware that when receiving first communication information
Mouth is connected with first internet of things equipment, and second internet of things equipment can be by each second communication port described
Corresponding second communication information of each second communication port is sent in first call duration time section, the first receiving unit 602 can
To receive corresponding second communication information by the second communication port being connected with first internet of things equipment, described second
The communication information include the second communication port corresponding with second communication information port-mark and with first communication ends
Corresponding first device address of mouth.When second internet of things equipment being connected with first internet of things equipment has multiple,
First receiving unit 602 can receive second communication information that multiple second internet of things equipment return.Wherein, described
The port-mark of two communication port and second communication port corresponds, second internet of things equipment only one second
Communication port is connected with first internet of things equipment;Second internet of things equipment is the next of first internet of things equipment
Grade internet of things equipment, first internet of things equipment is the upper level internet of things equipment of second internet of things equipment.
After receiving each second communication information, the second transmission unit 603 can be from second communication information
Middle acquisition and corresponding first device address of first communication port and the second communication corresponding with second communication information
Then the port-mark of port is obtained according to the first device address corresponding with first communication port and is communicated with described first
Corresponding first communication port in corresponding first device address in port is sent and first communication ends by first communication port
The corresponding first paired communication information of mouth gives the second connected internet of things equipment of first communication port, with first communication ends
The second connected internet of things equipment of mouth is next stage internet of things equipment corresponding with first communication port.First pairing
The communication information can carry corresponding second communication port of second communication information port-mark and with first communication port
Corresponding first device address.The second internet of things equipment being connected with first communication port receives and first communication port
After the corresponding first paired communication information, second communication is obtained from the corresponding first paired communication information
The port-mark of corresponding second communication port of information and the first device address corresponding with first communication port, then by institute
The first device address stated the first device address for including in the first paired communication information and include in first communication information
It is compared, if the first device address for including in the first paired communication information and in first communication information including
The first device address it is identical, then confirm corresponding second communication ends of the port-mark for including in the first paired communication information
Mouth is the second communication port being connected with first internet of things equipment, and second internet of things equipment can be communicated described first
The first device address for including in information is as local communication address, and second by being connected with first internet of things equipment
Communication port is communicated with first internet of things equipment, so as to complete the pairing with first internet of things equipment.
The communication device of internet of things equipment provided in an embodiment of the present invention, since the first internet of things equipment can be by each
First communication port sends corresponding first communication information respectively, and first communication information includes corresponding with the first communication port
The first device address and the first call duration time section, then receive the second communication letter that each next stage internet of things equipment returns
Breath, second communication information include and corresponding first device address of the first communication port and corresponding with second communication information second
The port-mark of communication port, then the first paired communication information, the first paired communication packet are sent by the first communication port
Include the port-mark and first communication port corresponding first of the second communication port corresponding with second communication information
Device address;Wherein, first communication port is including in second communication information with first communication port pair
Corresponding first communication port in the device address answered, allows any one of the second internet of things equipment and the first internet of things equipment
First communication port is connected, and can simplify the networking installation process of internet of things equipment, to improve the networking efficiency of internet of things equipment.
The embodiment of the communication device of internet of things equipment provided in an embodiment of the present invention specifically can be used for executing above-mentioned phase
The process flow of induction method embodiment, details are not described herein for function, is referred to retouching in detail for above-mentioned correlation method embodiment
It states.
Fig. 7 be another embodiment of the present invention provides internet of things equipment communication device structural schematic diagram, such as Fig. 7 institute
Show, the communication device of internet of things equipment provided in an embodiment of the present invention include the second receiving unit 701, third transmission unit 702,
Third receiving unit 703 and judging unit 704, in which:
Second receiving unit 701 is used to receive the first communication that upper level internet of things equipment is sent by the first communication port
Information, first communication information include the first device address corresponding with first communication port and the first call duration time
Section;Third transmission unit 702 by each second communication port in the first call duration time section for being sent and each institute
Corresponding second communication information of the second communication port is stated, second communication information includes corresponding with second communication information
The port-mark of second communication port and first device address;Wherein, only one in each second communication port
Second communication port connects the upper level internet of things equipment;Third receiving unit 703 is for receiving the upper level object
The first paired communication information that networked devices are returned by first communication port, the first paired communication information include with
The port-mark and corresponding with first communication port first of corresponding second communication port of second communication information is set
Standby address;Judging unit 704 is used to know the first device address for including in first communication information and described the in judgement
After the first device address for including in one paired communication information is identical, the pairing with the upper level internet of things equipment is completed.
Specifically, for the communication established between the first internet of things equipment and the second internet of things equipment, the first Internet of Things is set
It is standby to be sent respectively by each first communication port of first internet of things equipment and each first communication port
Corresponding first communication information, the second receiving unit 701 being connected with first communication port can receive and described first
Corresponding first communication information of communication port.Wherein, first communication information includes corresponding with first communication port
First device address and the first call duration time section corresponding with first communication port, first communication port and described the
One device address corresponds;First internet of things equipment can be any one in the communication system of the internet of things equipment
An internet of things equipment in grade internet of things equipment, second internet of things equipment is the next stage of first internet of things equipment
Internet of things equipment.
After receiving first communication information, third transmission unit 702 can be from first communication information
Obtain the first device address corresponding with first communication port and the first call duration time section.Since second Internet of Things is set
Standby all second communication port share a reception amplifying circuit, and second internet of things equipment receives first communication
It is not aware which second communication port is connected with first internet of things equipment when information, 702 meeting of third transmission unit
It is corresponding that each second communication port is sent in the first call duration time section by each second communication port
Second communication information, second communication information include the port mark of the second communication port corresponding with second communication information
Know and first device address.Wherein, the second communication port connection of only one in each second communication port
First internet of things equipment.
First internet of things equipment can receive second internet of things equipment by the second connected communication port and send out
Second communication information corresponding with second communication port sent, and obtained and described first from second communication information
The port-mark of corresponding first device address of communication port and the second communication port corresponding with second communication information, so
Afterwards according to and corresponding first device address of first communication port obtain corresponding with first communication port first and set
Standby corresponding first communication port in address sends the first pairing corresponding with first communication port by first communication port
The communication information gives second internet of things equipment, third receiving unit 703 can be received by first communication port with this
The corresponding first paired communication information of one communication port.Wherein, the first paired communication information includes communicating with described second
The port-mark of corresponding second communication port of information and the first device address corresponding with first communication port.
After receiving the corresponding first paired communication information of the first coupled communication port, judging unit 704 can
It is corresponding with the port-mark and first communication port that therefrom obtain corresponding second communication port of second communication information
The first device address, then by the first device address for including in the first paired communication information and it is described first communication believe
The first device address for including in breath is compared, if the first device address for including in the first paired communication information and
The first device address for including in first communication information is identical, then confirms the end for including in the first paired communication information
It is the second communication port being connected with first internet of things equipment, second Internet of Things that mouth, which identifies corresponding second communication port,
Net equipment can using the first device address for including in first communication information as local mailing address, and by with it is described
The second connected communication port of first internet of things equipment is communicated with first internet of things equipment, so as to complete with it is described
The pairing of first internet of things equipment.
The communication device of internet of things equipment provided in an embodiment of the present invention, since the second internet of things equipment can receive upper one
Grade internet of things equipment passes through first communication information that the first communication port is sent, and first communication information includes communicating with described first
Corresponding first device address in port and the first call duration time section, and by each second communication port in the first call duration time section
Interior to send second communication information corresponding with each second communication port, second communication information includes corresponding with second communication information
The second communication port port-mark and the first device address, only one second communication port in each second communication port
Upper level internet of things equipment is connected, it is logical then to receive the first pairing that upper level internet of things equipment is returned by the first communication port
Letter information, the first paired communication information include that the port-mark of the second communication port corresponding with second communication information and first are led to
Believe corresponding first device address in port, then knows the first device address and first for including in first communication information in judgement
After the first device address for including in paired communication information is identical, the pairing with upper level internet of things equipment is completed, makes second
Internet of things equipment can be connected with any one first communication port of the first internet of things equipment, can simplify internet of things equipment
Networking installation process, to improve the networking efficiency of internet of things equipment.
The embodiment of the communication device of internet of things equipment provided in an embodiment of the present invention specifically can be used for executing above-mentioned phase
The process flow of induction method embodiment, details are not described herein for function, is referred to retouching in detail for above-mentioned correlation method embodiment
It states.
Fig. 8 is the entity structure schematic diagram for the electronic equipment that one embodiment of the invention provides, as shown in figure 8, the electronics is set
Standby may include: the 810, first communication interface of first processor (Processor) (Communications Interface)
820, first memory (Memory) 830 and the first communication bus 840, wherein first processor 810, the first communication interface
820, first memory 830 completes mutual communication by the first communication bus 840.First processor 810 can call
Logical order in one memory 830, to execute following method: being sent respectively by each first communication port corresponding
First communication information;Wherein, first communication information include the first device address corresponding with first communication port and
First call duration time section, first communication port and first device address correspond;Receive each next stage Internet of Things
Second communication information that net equipment returns, second communication information includes the first equipment corresponding with first communication port
The port-mark of address and the second communication port corresponding with second communication information;Second communication information is each institute
State what next stage internet of things equipment returned after receiving respective first communication information;Pass through first communication ends
Mouth sends corresponding first paired communication information to corresponding next stage internet of things equipment, so that corresponding next stage Internet of Things
Equipment completes pairing;Wherein, the first paired communication information includes the second communication ends corresponding with second communication information
The port-mark and the first device address corresponding with first communication port, first communication port of mouth are described second
Corresponding first communication port in the first device address corresponding with first communication port for including in the communication information.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, computer is able to carry out following method, for example, is sent respectively by each first communication port respective corresponding
First communication information;Wherein, first communication information includes the first device address corresponding with first communication port
With the first call duration time section, first communication port and first device address are corresponded;Receive each next stage object
Second communication information that networked devices return, second communication information include corresponding with first communication port first setting
The port-mark of standby address and the second communication port corresponding with second communication information;Second communication information is each
What the next stage internet of things equipment returned after receiving respective first communication information;It is communicated by described first
Port sends corresponding first paired communication information to corresponding next stage internet of things equipment, so that corresponding next stage Internet of Things
Net equipment completes pairing;Wherein, the first paired communication information includes the second communication corresponding with second communication information
The port-mark of port and the first device address corresponding with first communication port, first communication port are described
Corresponding first communication port in the first device address corresponding with first communication port for including in two communication informations.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium
The first computer instruction is stored, first computer instruction makes the computer execute following method, for example, by each
A first communication port sends corresponding first communication information respectively;Wherein, first communication information include with it is described
Corresponding first device address of first communication port and the first call duration time section, first communication port and first equipment
Address corresponds;Second communication information that each next stage internet of things equipment returns is received, second communication information includes
And corresponding first device address of the first communication port and the second communication port corresponding with second communication information
Port-mark;Second communication information is that each next stage internet of things equipment is receiving respective first communication
It is returned after information;Corresponding first paired communication information is sent to corresponding next stage object by first communication port
Networked devices, so that corresponding next stage internet of things equipment completes pairing;Wherein, the first paired communication information include with
The port-mark and corresponding with first communication port first of corresponding second communication port of second communication information is set
Standby address, first communication port are including in second communication information with first communication port corresponding first
Corresponding first communication port in device address.
Fig. 9 be another embodiment of the present invention provides electronic equipment entity structure schematic diagram, as shown in figure 9, the electronics
Equipment may include: the 910, second communication interface of second processor (Processor) (Communications Interface)
920, second memory (Memory) 930 and the second communication bus 940, wherein second processor 910, the second communication interface
920, second memory 930 completes mutual communication by the second communication bus 940.Second processor 910 can call
Logical order in two memories 930, to execute following method: receiving upper level internet of things equipment and sent out by the first communication port
First communication information sent, first communication information include the first device address corresponding with first communication port and
One call duration time section;It is sent in the first call duration time section by each second communication port and is communicated with each described second
Corresponding second communication information in port, second communication information include the second communication ends corresponding with second communication information
The port-mark of mouth and first device address;Wherein, only one in each second communication port is described second logical
Believe that port connects the upper level internet of things equipment;The upper level internet of things equipment is received to return by first communication port
The the first paired communication information returned, the first paired communication information include the second communication corresponding with second communication information
The port-mark of port and the first device address corresponding with first communication port;If the first communication letter is known in judgement
The first device address for including in breath and the first device address for including in the first paired communication information are identical, then complete with
The pairing of the upper level internet of things equipment.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, computer is able to carry out following method, for example, receives upper level internet of things equipment and passes through the first communication port
Send first communication information, first communication information include the first device address corresponding with first communication port and
First call duration time section;It is sent in the first call duration time section by each second communication port and is led to each described second
Believe that corresponding second communication information in port, second communication information include the second communication corresponding with second communication information
The port-mark of port and first device address;Wherein, in each second communication port only one described second
Communication port connects the upper level internet of things equipment;It receives the upper level internet of things equipment and passes through first communication port
The the first paired communication information returned, the first paired communication information include corresponding with second communication information second logical
The port-mark of letter port and the first device address corresponding with first communication port;If first communication is known in judgement
The first device address for including in information and the first device address for including in the first paired communication information are identical, then complete
With the pairing of the upper level internet of things equipment.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium
Second computer instruction is stored, the second computer instruction makes the computer execute following method, for example, in reception
Level-one internet of things equipment passes through first communication information that the first communication port is sent, and first communication information includes and described the
Corresponding first device address of one communication port and the first call duration time section;It is logical described first by each second communication port
Believe and send second communication information corresponding with each second communication port in the period, second communication information include with
The port-mark of corresponding second communication port of second communication information and first device address;Wherein, each described
Second communication port of only one in second communication port connects the upper level internet of things equipment;Receive the upper level
The first paired communication information that internet of things equipment is returned by first communication port, the first paired communication information include
And the port-mark of corresponding second communication port of second communication information and with first communication port corresponding first
Device address;If the first device address for including in first communication information and the first paired communication information are known in judgement
In include the first device address it is identical, then complete and the pairing of the upper level internet of things equipment.
In addition, the logical order in above-mentioned first memory 830 and second memory 930 can pass through software function list
Member form realize and when sold or used as an independent product, can store in a computer-readable storage medium
In.Based on this understanding, technical solution of the present invention substantially in other words the part that contributes to existing technology or should
The part of technical solution can be embodied in the form of software products, which is stored in a storage medium
In, including some instructions use is so that a computer equipment (can be personal computer, device or the network equipment etc.) is held
Row all or part of the steps of the method according to each embodiment of the present invention.And storage medium above-mentioned include: USB flash disk, mobile hard disk,
Read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic
The various media that can store program code such as dish or CD.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member
It is physically separated with being or may not be, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (11)
1. a kind of communication means of internet of things equipment characterized by comprising
Corresponding first communication information is sent respectively by each first communication port;Wherein, first communication information
Including the first device address corresponding with first communication port and the first call duration time section, first communication port and institute
State the first device address one-to-one correspondence;
Second communication information that each next stage internet of things equipment returns is received, second communication information includes and described first
The port-mark of corresponding first device address of communication port and the second communication port corresponding with second communication information;Institute
Stating second communication information is that each next stage internet of things equipment returns after receiving respective first communication information
It returns;
Corresponding first paired communication information is sent to corresponding next stage internet of things equipment by first communication port, with
So that corresponding next stage internet of things equipment completes pairing;Wherein, the first paired communication information includes leading to described second
The port-mark of corresponding second communication port of letter information and the first device address corresponding with first communication port, it is described
First communication port is the first device address pair corresponding with first communication port for including in second communication information
The first communication port answered.
2. the method according to claim 1, wherein described sent respectively respectively by each first communication port
Corresponding first communication information includes:
Corresponding first communication information is periodically sent by each first communication port.
3. a kind of communication means of internet of things equipment characterized by comprising
It receives upper level internet of things equipment and passes through first communication information that the first communication port is sent, first communication information packet
Include the first device address corresponding with first communication port and the first call duration time section;
It is sent in the first call duration time section by each second communication port corresponding with each second communication port
Second communication information, second communication information includes the port of the second communication port corresponding with second communication information
Mark and first device address;Wherein, second communication port of only one in each second communication port connects
Connect the upper level internet of things equipment;
Receive the first paired communication information that the upper level internet of things equipment is returned by first communication port, described
One paired communication information includes the port-mark of the second communication port corresponding with second communication information and with described first
Corresponding first device address of communication port;
If judgement is known the first device address for including in first communication information and is wrapped in the first paired communication information
The first device address included is identical, then completes the pairing with the upper level internet of things equipment.
4. according to the method described in claim 3, it is characterized by further comprising:
Pass through each second communication port point other than the second communication port for being connected with the upper level internet of things equipment
Corresponding third communication information is not sent;Wherein, the third communication information includes corresponding with second communication port
The second device address and the second call duration time section, second communication port and second device address correspond;
The fourth communication information that each next stage internet of things equipment returns is received, the fourth communication information includes and described second
The port-mark of corresponding second device address of communication port and third communication port corresponding with the fourth communication information;Institute
Stating fourth communication information is that each next stage internet of things equipment returns after receiving the respective third communication information
It returns;
Corresponding second paired communication information is sent to corresponding next stage internet of things equipment by second communication port, with
So that corresponding next stage internet of things equipment completes pairing;Wherein, the second paired communication information includes and the four-way
The port-mark of the corresponding third communication port of letter information and the second device address corresponding with second communication port, it is described
Second communication port is the second device address pair corresponding with second communication port for including in the third communication information
The second communication port answered.
5. according to the method described in claim 4, it is characterized in that, described by being connected with the upper level internet of things equipment
Each second communication port other than second communication port sends corresponding third communication information respectively and includes:
Periodically pass through each second communication ends other than the second communication port for being connected with the upper level internet of things equipment
Mouth sends corresponding third communication information respectively.
6. a kind of communication device of internet of things equipment characterized by comprising
First transmission unit, for sending corresponding first communication information respectively by each first communication port;Wherein,
First communication information includes the first device address corresponding with first communication port and the first call duration time section, described
First communication port and first device address correspond;
First receiving unit, second communication information returned for receiving each next stage internet of things equipment, second communication
Information includes and corresponding first device address of first communication port and corresponding with second communication information second logical
Believe the port-mark of port;Second communication information be each next stage internet of things equipment receive it is respective described
It is returned after first communication information;
Second transmission unit, for by the first communication port corresponding first paired communication information of transmission under corresponding
Level-one internet of things equipment, so that corresponding next stage internet of things equipment completes pairing;Wherein, the first paired communication information
Including and the port-mark of corresponding second communication port of second communication information and corresponding with first communication port
First device address, first communication port are include corresponding with first communication port in second communication information
Corresponding first communication port in the first device address.
7. a kind of communication device of internet of things equipment characterized by comprising
Second receiving unit passes through first communication information that the first communication port is sent for receiving upper level internet of things equipment,
First communication information includes the first device address corresponding with first communication port and the first call duration time section;
Third transmission unit, for sent in the first call duration time section by each second communication port with it is each described
Corresponding second communication information of second communication port, second communication information include corresponding with second communication information
The port-mark of two communication port and first device address;Wherein, only one institute in each second communication port
It states the second communication port and connects the upper level internet of things equipment;
Third receiving unit first is matched for receiving the upper level internet of things equipment by the way that first communication port returns
To the communication information, the first paired communication information includes the port of the second communication port corresponding with second communication information
Mark and the first device address corresponding with first communication port;
Judging unit, for knowing the first device address for including in first communication information and first pairing in judgement
After the first device address for including in the communication information is identical, the pairing with the upper level internet of things equipment is completed.
8. a kind of electronic equipment, including first memory, first processor and it is stored on the first memory and can be in institute
State the computer program run on first processor, which is characterized in that the first processor is realized such as when executing described program
The step of communication means of internet of things equipment of any of claims 1 or 2.
9. a kind of non-transient computer readable storage medium is stored thereon with the first computer program, which is characterized in that the calculating
Machine program realizes the step of communication means of internet of things equipment as claimed in claim 1 or 2 when being executed by processor.
10. a kind of electronic equipment, including second memory, second processor and it is stored on the second memory and can be in institute
State the computer program run in second processor, which is characterized in that the second processor is realized such as when executing described program
The step of communication means of the described in any item internet of things equipment of claim 3 to 5.
11. a kind of non-transient computer readable storage medium is stored thereon with second computer program, which is characterized in that the meter
The step of the communication means such as the described in any item internet of things equipment of claim 3 to 5 is realized when calculation machine program is executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811211124.9A CN109151066B (en) | 2018-10-17 | 2018-10-17 | Communication method and device of Internet of things equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811211124.9A CN109151066B (en) | 2018-10-17 | 2018-10-17 | Communication method and device of Internet of things equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109151066A true CN109151066A (en) | 2019-01-04 |
CN109151066B CN109151066B (en) | 2021-03-23 |
Family
ID=64808540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811211124.9A Active CN109151066B (en) | 2018-10-17 | 2018-10-17 | Communication method and device of Internet of things equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109151066B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102355377A (en) * | 2011-06-30 | 2012-02-15 | 迈普通信技术股份有限公司 | Entire test system and method for Ethernet switch |
CN103685080A (en) * | 2012-09-26 | 2014-03-26 | 上海斐讯数据通信技术有限公司 | Switch, wide area network connection system, network and wide area network connection control method |
EP2755208A1 (en) * | 2013-01-14 | 2014-07-16 | Freescale Semiconductor, Inc. | Multiport memory with matching address and data line control |
CN104797004A (en) * | 2015-03-19 | 2015-07-22 | 四川长虹电器股份有限公司 | Method for implementation of automatic networking between master and slave devices |
CN106452894A (en) * | 2016-10-24 | 2017-02-22 | 北京东土科技股份有限公司 | Fault connection detection method and apparatus |
CN107611974A (en) * | 2017-09-13 | 2018-01-19 | 清华大学 | Energy router |
-
2018
- 2018-10-17 CN CN201811211124.9A patent/CN109151066B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102355377A (en) * | 2011-06-30 | 2012-02-15 | 迈普通信技术股份有限公司 | Entire test system and method for Ethernet switch |
CN103685080A (en) * | 2012-09-26 | 2014-03-26 | 上海斐讯数据通信技术有限公司 | Switch, wide area network connection system, network and wide area network connection control method |
EP2755208A1 (en) * | 2013-01-14 | 2014-07-16 | Freescale Semiconductor, Inc. | Multiport memory with matching address and data line control |
CN104797004A (en) * | 2015-03-19 | 2015-07-22 | 四川长虹电器股份有限公司 | Method for implementation of automatic networking between master and slave devices |
CN106452894A (en) * | 2016-10-24 | 2017-02-22 | 北京东土科技股份有限公司 | Fault connection detection method and apparatus |
CN107611974A (en) * | 2017-09-13 | 2018-01-19 | 清华大学 | Energy router |
Also Published As
Publication number | Publication date |
---|---|
CN109151066B (en) | 2021-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103297468A (en) | Operation method for group resources and group server | |
EP3142293A1 (en) | Reverse power supply management method, apparatus and system | |
CN105956000A (en) | Data exchange method and client | |
CN108200218A (en) | A kind of method, apparatus and electronic equipment for realizing load balancing | |
CN109495383A (en) | A kind of data processing method, device, communication system and the network equipment | |
CN105072560B (en) | A kind of data transmission method and device | |
CN104468547A (en) | Long connection establishing method, device and system | |
CN112203261A (en) | Charging pile management method and device, electronic equipment and readable storage medium | |
CN106791679B (en) | A kind of determination method and device of video transmission path | |
CN106201852A (en) | A kind of distributed test method and test system | |
CN109151066A (en) | The communication means and device of internet of things equipment | |
CN104270299A (en) | Method and system for virtual network mapping | |
US20160352607A1 (en) | Method and controller for announcing bandwidth of cluster system | |
CN104683130A (en) | Method for configuring stacking port and equipment | |
CN116112572A (en) | Service processing method, device, network equipment and storage medium | |
CN107179740B (en) | The Compilation Method and embedded system of Embedded PLC | |
CN109358983A (en) | Server data processing method, device and storage medium | |
CN109224451A (en) | Development of games method, equipment and storage medium based on block chain subchain | |
CN109299195A (en) | Data processing method, device and storage medium | |
CN101931462A (en) | Testing control method and device for optical transmission network | |
CN109347695A (en) | A kind of upgrade testing system and method | |
CN110192382A (en) | A kind of network communication method, peer-to-peer and system | |
CN109308210A (en) | A method of optimizing NFV on multiple-core server and forwards service chaining performance | |
CN106506504A (en) | A kind of intelligent protocol conversion method and device | |
CN111885588A (en) | Method and device for executing electronic card management service |
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 |