CN110958323B - Internet of things road device communication method - Google Patents

Internet of things road device communication method Download PDF

Info

Publication number
CN110958323B
CN110958323B CN201911267281.6A CN201911267281A CN110958323B CN 110958323 B CN110958323 B CN 110958323B CN 201911267281 A CN201911267281 A CN 201911267281A CN 110958323 B CN110958323 B CN 110958323B
Authority
CN
China
Prior art keywords
gateway
internet
sub
things device
operation type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911267281.6A
Other languages
Chinese (zh)
Other versions
CN110958323A (en
Inventor
沈修志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Ocean Communication Co ltd
Original Assignee
Xiamen Ocean Communication Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Ocean Communication Co ltd filed Critical Xiamen Ocean Communication Co ltd
Priority to CN201911267281.6A priority Critical patent/CN110958323B/en
Publication of CN110958323A publication Critical patent/CN110958323A/en
Application granted granted Critical
Publication of CN110958323B publication Critical patent/CN110958323B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a communication method of an Internet of things device suitable for an Internet of things. The invention relates to a communication method of an Internet of things device, which is implemented through an Internet of things system, wherein the Internet of things system comprises a main gateway, a plurality of sub gateways and at least one Internet of things device connected with each sub gateway.

Description

Internet of things road device communication method
Technical Field
The present invention relates to a configuration of connection between different types of switching systems, and more particularly to a communication method of an internet of things device suitable for an internet of things.
Background
Today's technology development is fast, especially internet technology is continuously growing by software and hardware, and internet technology is also being developed for thousands of days, in the prior art, a gateway may establish an internet of things system by connecting a plurality of internet of things devices that do not have the capability of connecting to a communication network, when a user wants to control a target internet of things device that the gateway is connected to, the user connects to the gateway through its user terminal and transmits a control message to the gateway, when the gateway receives the control message, wherein the control message includes a target device identification code corresponding to the target internet of things device and a control command, and the gateway transmits a control signal to the target internet of things device according to the control message for controlling the target internet of things device.
However, the prior art has a part of defects that since the number of connectable devices under one gateway is limited, when a plurality of devices need to be connected to the same gateway, equipment control delay is easily caused, and thus the devices need to be connected to the devices through the plurality of gateways for decentralized management, however, different gateways are independent and cannot communicate with each other, if the user end is required to manage the devices connected under each gateway, the user end can only establish a connection with each gateway one by one to manage the devices connected under each gateway, and in addition, only individual control is required when managing the devices connected under each gateway, so that control is difficult to integrate.
Disclosure of Invention
The invention aims to provide a network equipment communication method which can control an internet of things device under each gateway without establishing a connection with each gateway one by one and can integrate and control the internet of things devices under different gateways.
The invention aims at realizing the following technical scheme:
the communication method of the Internet of things device is implemented through an Internet of things system, the Internet of things system comprises a main gateway, a plurality of sub-gateways and at least one Internet of things device connected under each sub-gateway, and the communication method of the Internet of things device comprises the following steps:
step (A) for each sub-gateway, the sub-gateway broadcasting a broadcast message including a sub-gateway identification code and a sub-gateway network co-address;
step (B), when the main gateway receives the broadcast message, the main gateway transmits a main gateway network co-address and an Internet of things device request to the sub-gateway corresponding to the broadcast message;
when the sub gateway corresponding to broadcast the broadcast message receives the network co-address of the main gateway, the sub gateway corresponding to broadcast the broadcast message establishes a connection with the main gateway according to the network co-address of the main gateway;
Step (D), when the sub gateway corresponding to the broadcast message receives the request of the Internet of things device, the sub gateway corresponding to the broadcast message transmits a reply message containing the device information of each Internet of things device connected below the sub gateway to the main gateway;
and (E) when the main gateway receives the reply message, the main gateway stores the corresponding relation between the sub-gateway identification code of the sub-gateway corresponding to broadcasting the broadcast message and the device information of each Internet of things device connected under the sub-gateway corresponding to broadcasting the broadcast message.
Preferably, in step (D), each device information includes a device identification code of the corresponding internet of things device and a device function type.
Preferably, the main gateway of the internet of things system is further connected to a user terminal via a communication network, and preferably, after the step (E), the method further comprises the steps of:
(F) When the main gateway receives a control message from the user end, wherein the control message comprises a target object joint device identification code corresponding to one of the object joint devices and a control instruction, and the main gateway obtains a target sub-gateway identification code corresponding to the target object joint device identification code according to the target object joint device identification code;
(G) The main gateway transfers the control message to a target sub-gateway corresponding to the target sub-gateway identification code according to the target sub-gateway identification code; and
(H) When the target sub-gateway receives the control message, the target sub-gateway generates a control signal and transmits the control signal to a target internet of things device corresponding to the target internet of things device identification code so as to control the target internet of things device.
Preferably, after step (H), the method further comprises the steps of:
(I) When the target device receives the control signal, the target device changes its own state according to the control signal and transmits a state data containing a state signal corresponding to its own state and the target device identification code to the target sub-gateway;
(J) When the target sub-gateway receives the status data, the target sub-gateway generates and transmits a status message to the main gateway according to the target device identification code of the target device and the status signal; and
(K) When the main gateway receives the status message, the main gateway transmits the status message to the user terminal through the communication network, so that the user terminal displays the status of the target Internet of things device according to the status message.
Preferably, in step (D), each device information further includes a device status of the corresponding internet of things device;
in step (E), the main gateway also stores device information of each Internet of things device; and
In step (K), when the master gateway receives the status message, the master gateway further updates the device status corresponding to the target internet of things device according to the status message.
Preferably, the device function type of each of the Internet of things devices includes one of a sensing type function related to sensing an environmental state and an operation type function related to starting an operation.
Preferably, the main gateway further stores at least one determination rule, each determination rule is related to a sensing type internet of things device having a device function type belonging to a sensing type function, and an operation type internet of things device corresponding to the sensing type internet of things device and having a device function type belonging to an operation type function, and after the step (E), the method further comprises the following steps:
(L) when the sensing type Internet of things device with the device function type belonging to the sensing type function generates and transmits sensing data to the sub-gateway connected with the sensing type Internet of things device, the sub-gateway connected with the sensing type Internet of things device transfers the sensing data to the main gateway, wherein the sensing data comprises a sensing signal generated by the sensing type Internet of things device and a device identification code of the sensing type Internet of things device;
(M) when the main gateway receives the sensing data, the main gateway judges whether to generate another control message to an operation type Internet of things device which corresponds to the sensing type Internet of things device and has a device function type belonging to an operation type function according to the sensing data and a judging rule corresponding to the sensing type Internet of things device;
(N) when the master gateway determines that another control message needs to be generated to the operation type internet of things device, the master gateway generates the another control message corresponding to the operation type internet of things device;
(O) when the master gateway generates the other control message corresponding to the operation type Internet of things device, the master gateway obtains a target sub-gateway identification code corresponding to the device identification code of the operation type Internet of things device according to the device identification code of the operation type Internet of things device;
(P) the main gateway transferring the other control message to a target sub-gateway corresponding to the target sub-gateway identification code according to the target sub-gateway identification code; and
And (Q) when the target sub-gateway receives the other control message, wherein the other control message comprises a device identification code corresponding to the operation type Internet of things device and a control instruction, the target sub-gateway generates a control signal according to the control message and transmits the control signal to the operation type Internet of things device corresponding to the operation type Internet of things device identification code so as to control the operation type Internet of things device.
Preferably, after step (Q), the following steps are further included:
(R) when the operation type Internet of things device receives the control signal, the operation type Internet of things device changes its own state according to the control signal and transmits a state data containing a state signal corresponding to its own state and a device identification code corresponding to the operation type Internet of things device to the target sub-gateway;
(S) when the target sub-gateway receives the status data, the target sub-gateway generates and transmits a status message to the main gateway according to the device identification code of the operation type Internet of things device and the status signal; and
And (T) when the main gateway receives the status message, the main gateway updates the device status corresponding to the operation type Internet of things device according to the status message.
Preferably, the main gateway further stores at least one determination rule, each determination rule is related to a first operation type internet of things device having a device function type belonging to an operation type function, and a second operation type internet of things device corresponding to the first operation type internet of things device and having a device function type belonging to an operation type function, and the method further comprises the following steps after the step (E):
(i) When the first operation type Internet of things device generates and transmits first state data to the sub-gateway connected with the first operation type Internet of things device, the sub-gateway connected with the first operation type Internet of things device transfers the first state data to the main gateway, wherein the first state data comprises a first state signal corresponding to the self state of the first operation type Internet of things device and a device identification code of the first operation type Internet of things device;
(ii) When the main gateway receives the first state data, the main gateway judges whether to generate another control message to a second operation type Internet of things device corresponding to the first operation type Internet of things device according to the first state data and a judging rule corresponding to the first operation type Internet of things device;
(iii) When the master gateway judges that another control message needs to be generated to the second operation type Internet of things device, the master gateway generates the another control message corresponding to the second operation type Internet of things device;
(iv) When the main gateway generates the other control message corresponding to the second operation type internet of things device, the main gateway obtains a relay gateway identification code corresponding to the device identification code of the second operation type internet of things device according to the device identification code of the second operation type internet of things device;
(v) The main gateway transfers the other control message to a relay sub-gateway corresponding to the relay sub-gateway identification code according to the relay sub-gateway identification code; and
(vi) When the relay sub-gateway receives the another control message, wherein the another control message comprises a device identification code corresponding to the second operation type Internet of things device and a control command, the relay sub-gateway generates a control signal according to the control message and transmits the control signal to the second operation type Internet of things device corresponding to the device identification code of the second operation type Internet of things device so as to control the second operation type Internet of things device. Preferably, after step (E), the following steps are further included:
(U) broadcasting a joining request by the to-be-connected Internet of things device, wherein the joining request comprises a newly-added device identification code and a newly-added device function type corresponding to the to-be-connected Internet of things device;
(V) when a specific one of the sub-gateways receives the join request, the specific sub-gateway authenticates the to-be-connected device; and
And (W) when the specific sub gateway successfully authenticates the to-be-connected Internet of things device, the specific sub gateway establishes a connection with the to-be-connected Internet of things device and stores device information of the to-be-connected Internet of things device.
The invention has the beneficial effects that: the invention establishes a connection line between each sub gateway and the main gateway, and stores the corresponding relation between the identification code of each sub gateway and the device information of each connected internet-of-things device through the main gateway, thereby controlling and managing each internet-of-things device among different sub gateways through the main gateway and achieving the aim of integrating and controlling.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a flow chart of the setup procedure of the present invention;
FIG. 3 is a flow chart of the new program of the present invention;
FIG. 4 is a flowchart of a client control procedure;
FIG. 5 is a flowchart of a sensing type Internet of things device control procedure according to the present invention.
Detailed Description
For further explanation of the technical scheme of the present invention, the following is described in detail with reference to the accompanying drawings.
Referring to fig. 1 and 2, the communication method of the internet of things device of the present invention is implemented by an internet of things system, which includes a client 2, a main gateway 1 connected to the client 2 via a communication network 100, a plurality of sub-gateways 11, and at least one internet of things device 12 connected to each sub-gateway 11.
The following will describe embodiments of the communication method of the internet of things device implemented by the internet of things system according to the present invention with reference to the accompanying drawings, wherein the embodiments sequentially comprise a setup procedure, a new addition procedure, a user end control procedure, a sensing type internet of things device end control procedure, and an operation type internet of things device end control procedure.
Referring to fig. 2, the establishment procedure describes how to establish the connection between each sub-gateway 11 and the main gateway 1, and how to establish the correspondence between each sub-gateway 11 and the devices 12, and includes a step 301, a step 302, a step 303, a step 304, and a step 305. Since the connection of each sub-gateway 11 is similar to the corresponding relationship, only a single sub-gateway 11 will be described in the following description.
In step 301, the sub-gateway 11 broadcasts a broadcast message including a sub-gateway identifier and a sub-gateway network co-address, wherein the sub-gateway identifier and the sub-gateway network co-address correspond to the sub-gateway 11, and the broadcast message further includes other basic messages, such as manufacturer name corresponding to the sub-gateway 11, software/hardware version number corresponding to the sub-gateway 11, and so on.
In step 302, when the main gateway 1 receives the broadcast message, the main gateway 1 transmits a main gateway network co-address and an ip device request to the sub-gateway 11, and it should be noted that the main gateway 1 also transmits a plurality of basic messages, such as manufacturer name of the main gateway 1, software and hardware version number of the main gateway 1, etc., to the sub-gateway 11.
In step 303, when the sub-gateway 11 receives the master gateway network co-address, the sub-gateway 11 establishes a connection with the master gateway 1 according to the master gateway network co-address.
In step 34, when the sub-gateway 11 receives the request for the yoke device, the sub-gateway 11 generates and transmits a reply message including the device information of each yoke device 12 connected thereunder to the main gateway 1. Each device information includes a device identification code, a device function type, and a device status of the corresponding internet of things device 12.
It should be noted that each device function type includes a sensing function related to sensing an environmental state, and an operation function related to starting an operation, for example, an internet of things device of the sensing function, such as an aerosol detector or a sun detector, which can sense the environmental state; the operation-type function of the internet of things device is, for example, but not limited to, an intelligent bulb or an intelligent gardening watering device. Each device state represents an operational state of the Internet of things device 12, for example, the device state of an intelligent light bulb may be an on state emitting light and an off state not emitting light.
In the step 305, when the main gateway 1 receives the reply message, the main gateway 1 stores the sub-gateway identifier of the sub-gateway 11, the correspondence between the sub-gateway identifier of the sub-gateway 11 and the device information of each of the devices 12 connected under the sub-gateway 11, and the device information of each of the devices 12, in this embodiment, the main gateway stores the sub-gateway identifier, the device identifier of the sub-gateway and the device information of the devices 12 connected under the sub-gateway, for example, the device identifier and the device information of the smart light bulb in a device list, wherein the device list records that the device identifier of the smart light bulb is 55667788, the sub-gateway identifier corresponding to the device identifier 55667788 of the smart light bulb is 11223344, the device function type of the device identifier of the device connected under the sub-gateway is 55667788, and the device state of the device connected under the device is turned off.
Referring to fig. 3, the new procedure illustrates how an object to be connected 12 establishes a connection with one sub-gateway 11 to be connected among the sub-gateways 11, and includes a step 401, a step 402, and a step 403. In step 401, the to-be-connected thing networking device 12 broadcasts a request for adding a device status corresponding to the to-be-connected thing networking device according to a new device identification code and a new device function type corresponding to the to-be-connected thing networking device 12. In step 402, when one of the sub-gateways 11 to be connected sub-gateway 11 receives the join request, the sub-gateway 11 to be connected authenticates the to-be-connected device 12, wherein the join request is encrypted in an encryption manner, and the sub-gateway 11 to be connected stores an encryption protocol for determining whether the encryption manner of the join request is correct, for example, the sub-gateway 11 to be connected confirms whether the join request conforms to the encryption manner with an encryption key. When the to-be-connected sub-gateway 11 determines that the encryption mode of the join request is incorrect, the new process is ended, and when the to-be-connected sub-gateway 11 determines that the encryption mode of the join request is correct, the to-be-connected sub-gateway 11 successfully authenticates the to-be-connected internet of things device 12, and the flow proceeds to step 403.
In step 403, the sub-gateway 11 establishes a connection with the to-be-connected device 12, and stores device information of the to-be-connected device 12 according to the join request.
Referring to fig. 4, the ue control program illustrates that the ue 2 controls a target device 12 through a user input operation, and includes a step 501, a step 502, a step 503, a step 504, a step 505, a step 506, a step 507, a step 508, and a step 509.
In step 501, the ue 2 generates a control message through the user's input operation, and transmits the control message to the primary gateway 1 through the communication network 100, wherein the control message includes a target device identifier and a control command corresponding to the target device 12. For example, when a user wants to control the intelligent light bulb in the internet of things system, the user generates a control message through the user terminal 2 and transmits the control message to the main gateway 1 through the communication network 100, wherein the control message comprises a target internet of things device identification code 55667788 corresponding to the intelligent light bulb and a control command related to the internet of things device with an opening device identification code 55667788.
In step 502, when the main gateway 1 receives the control message, the main gateway 1 obtains a target sub-gateway identifier corresponding to the target sub-gateway identifier according to the target sub-gateway identifier. It should be noted that, in the present embodiment, the main gateway 1 obtains a target sub-gateway identifier corresponding to the target device identifier according to the target device identifier and the device list, taking the target device identifier 55667788 as an example, the main gateway 1 obtains the sub-gateway identifier corresponding to the target device identifier 55667788 according to the target device identifier and the device list, and the sub-gateway identifier is 11223144.
In step 503, the main gateway forwards the control message to a target sub-gateway 11 corresponding to the target sub-gateway identification code according to the target sub-gateway identification code.
In step 504, when the target sub-gateway 11 receives the control message, the target sub-gateway 11 generates a control signal according to the control message and transmits the control signal to the target device 12 corresponding to the target device identifier according to the target device identifier. For example, the target sub-gateway 11 generates an on control signal according to the control message associated with the Internet of things device having an on device identifier 55667788, and transmits the on control signal to the intelligent light bulb according to the target Internet of things device identifier 55667788.
In the step 505, when the target device 12 receives the control signal, the target device 12 changes its own status according to the control signal, and generates and transmits a status data to the target sub-gateway 11 corresponding to the target device 12, wherein the status data includes the target device identifier corresponding to the target device 12 and a status signal corresponding to its own status. For example, when the intelligent light bulb receives the control signal, the intelligent light bulb is switched to the on state according to the control signal and transmits a state data to the target sub-gateway 11, wherein the state data includes the device identifier 55667788 and a state signal indicating that the device state of the internet of things device corresponding to the device identifier 55667788 is the on state.
In step 506, when the target sub-gateway 11 receives the status data, the target sub-gateway 11 generates and transmits a status message including the target sub-gateway identifier and the status signal to the main gateway 1 according to the target sub-gateway identifier and the status signal of the target sub-gateway 12. For example, when the target sub-gateway 11 receives the status signal transmitted by the smart lamp, the target sub-gateway generates and transmits a status message including the target device identification code of the smart lamp and associated with the smart lamp being in the on state to the main gateway 1.
In step 507, when the master gateway 1 receives the status message, the master gateway 1 transmits the status message to the client 2.
On the other hand, in the step 508, when the master gateway 1 receives the status message, the master gateway 1 updates the device status corresponding to the device information of the target object device 12 according to the status message. For example, when the main gateway 1 receives the status message related to the smart lamp, the main gateway 1 updates the device status of the smart lamp to be on according to the status message.
In step 509, when the status message is sent to the ue 2, the status message indicates the device status of the target device 12 at the ue 2. For example, when the status message related to the smart lamp is sent to the user terminal 2, the status message indicates to the user terminal 2 that the smart lamp is turned on.
For example, the main gateway 1 is connected to a first target sub-gateway 11, a second target sub-gateway 11, and a third target sub-gateway 11, the first target sub-gateway 11 is connected to a first target gateway 12, wherein the first target gateway 12 is an intelligent curtain, similarly, the second target sub-gateway 12 and the third target sub-gateway 12 are respectively connected to an intelligent curtain, when a user wants to simultaneously open the intelligent curtains, the user generates a control message associated with opening the intelligent curtains through its use terminal 2, at which time the user transmits the control message to the main gateway 1 through the communication network 100, wherein the control message includes the target gateway identifier of the intelligent curtains, and a control command associated with opening the target gateway 12 corresponding to the target gateway identifier, when the main gateway 1 receives the control signal, the main gateway 1 obtains the control message corresponding to the target gateway identifier according to the target gateway identifier, the first gateway 11, the control message corresponding to the target gateway 11, and the control message corresponding to the target gateway 11 when the control signal corresponding to the target gateway 11 is received, the control message corresponding to the target gateway 11, the control message corresponding to the target gateway identifier is obtained according to the target gateway identifier, and the control message corresponding to the target gateway identifier of the target gateway 11 when the control signal corresponding to the target gateway 11 is received, the second target sub-gateway 11 and the third target sub-gateway 11 respectively transmit the control signals to the intelligent curtains connected to the second target sub-gateway 11 and the third target sub-gateway 11, and when the intelligent curtains receive the control signals, the intelligent curtains switch to an on state according to the control signals received by the intelligent curtains and respectively transmit a state data including a corresponding target device identifier and a state signal to the first target sub-gateway 11, the second target sub-gateway 11 and the third target sub-gateway 11, wherein the state signal indicates that the intelligent curtains are on state, and when the first target sub-gateway 11 receives the state data, the first target sub-gateway 11 generates and transmits a state message including the target device identifier of the intelligent curtains and associated with the intelligent curtains to the main gateway 1 according to the state data, and similarly, when the second target sub-gateway 11 and the third target sub-gateway 11 respectively transmit the state messages to the main gateway 1 and the main gateway 1, the state message is transmitted to the main gateway 1 by the main gateway, and on the other side when the state message is transmitted by the first target gateway 11 to the main gateway 1.
Referring to fig. 5, the sensing type thing device control program illustrates how a sensing type thing device 12 having a device function type belonging to a sensing type function changes a device state of the sensing type thing device 12 having a device function type belonging to an operation type function and corresponding to the sensing type thing device, and includes a step 601, a step 602, a step 603, a step 604, a step 605, a step 606, a step 607, a step 608, a step 609, and a step 610.
It should be noted that the user terminal generates and transmits at least one determination rule to the main gateway 1 through the user's input operation, so that the main gateway 1 stores the at least one determination rule in advance, wherein each determination rule has a condition part including a device identification code of a sensing type thing networking device 12 having a device function type belonging to a sensing type function and a control part including a device identification code of an operation type thing networking device 12 corresponding to the sensing type thing networking device and having a device function type belonging to an operation type function, and a trigger condition for judging whether a sensing signal of the sensing type thing networking device 12 meets a condition state, and a control action for indicating control of the operation type of the Internet of things 12, for example, a sun detector belonging to the sensing type of Internet of things 12 having a device identification code of 11335577, an intelligent window curtain belonging to the operation type of Internet of things 12 having a device identification code of 22446688, the condition part of the determination rule related to the sun detector and the intelligent window curtain including the device identification code 11335577, the triggering condition being that a detection value transmitted by the Internet of things having a device identification code of 11335577 is higher than a predetermined threshold, the control part including the device identification code 22446688, the control action being to place the Internet of things having a device identification code of 22446688 in a sunshade state.
In the step 601, the sensing type of the device 12 generates and transmits a sensing data to a sub-gateway 11 (hereinafter referred to as a first sub-gateway 11) corresponding to the sensing type of the device 12, wherein the sensing data includes a sensing signal related to a detection value detected by the sensing type of the device 12 and a sensing type of the device identification code corresponding to the sensing type of the device 12. For example, the sunlight detector generates a sensing signal corresponding to the detected illuminance value and transmits a sensing data including the sensing signal and the device identification code 11335577 corresponding to the sunlight detector to the first sub-gateway 11 corresponding to the sunlight detector.
In step 602, when the first sub-gateway 11 receives the sensing data, the first sub-gateway 11 transfers the sensing data to the main gateway 1.
In step 603, when the main gateway 1 receives the sensing data, the main gateway 1 determines whether to generate another control message to the operation type thing networking device 12 having the device function type belonging to the operation type function and corresponding to the sensing type thing networking device according to the determination rule corresponding to the sensing type thing networking device 12 (i.e. the determination rule having the sensing type thing networking device identification code corresponding to the sensing type thing networking device 12), and ends the thing networking device end control procedure when it is determined that another control message is not required to be generated, and proceeds to step 604 when it is determined that another control message is required to be generated to the operation type thing networking device 12. For example, when the master gateway 1 receives the sensing data, the master gateway 1 determines whether to generate another control message according to the determination rule corresponding to the device identifier 11335577, and when the master gateway 1 determines that the detection value of the internet of things device with the device identifier 11335577 is greater than the predetermined threshold, the master gateway generates another control message.
In step 604, when the master gateway 1 determines that the other control message needs to be generated to the operation type internet of things device 12, the master gateway 1 generates the other control message corresponding to the operation type internet of things device, for example, the master gateway 1 generates the other control message according to the determination rule corresponding to the device identifier 11335577, wherein the other control message includes the device identifier 22446688 and the control instruction to operate the device identifier 22446688 of the internet of things device in the sunshade state.
In step 605, when the master gateway 1 generates the other control message, the master gateway 1 obtains a destination sub-gateway identifier corresponding to the operation type thing networking device 12 according to the operation type thing networking device identifier corresponding to the operation type thing networking device.
In step 606, the master gateway 1 transmits the other control message to a destination sub-gateway 11 corresponding to the destination sub-gateway identifier according to the destination sub-gateway identifier.
In the step 607, when the destination sub-gateway 11 receives the other control message, the destination sub-gateway 11 generates a control signal according to the other control message and transmits the control signal to the operation type internet of things device 12 corresponding to the operation type internet of things device identification code according to the operation type internet of things device identification code in the other control message, for example, the destination sub-gateway 11 generates a control signal indicating to switch the state to the sunshade state according to the other control message and transmits the control signal to the intelligent curtain corresponding to the device identification code 22446688 according to the device identification code 22446688.
In step 608, when the operation type internet of things device 12 receives the control signal, the operation type internet of things device 12 changes its own state according to the control signal and transmits a state signal corresponding to its own state and the operation type internet of things device identification code to the destination sub-gateway 11, for example, when the intelligent curtain receives the control signal, the intelligent curtain switches the state to the sun-shading state and transmits a state signal related to the state switch to the sun-shading state and the device identification code 22446688 corresponding to the intelligent curtain to the destination sub-gateway 11 corresponding to the intelligent curtain.
In step 609, when the destination sub-gateway 11 receives the status signal and the operation type device identifier, the destination sub-gateway 11 generates a status message including the operation type device identifier and the status signal and transmits the status message to the main gateway 1.
In the step 610, when the main gateway 1 receives the status message, the main gateway 1 updates the device status and device information corresponding to the operation type of the internet of things device according to the status message, for example, the main gateway 1 receives the status message corresponding to the device id 22446688, wherein the status message is that the status of the internet of things device corresponding to the device id 22446688 is a sunshade status, and the main gateway 1 updates the device status of the internet of things device corresponding to the device id 22446688 stored in the main gateway 1 according to the status message.
The operation type internet of things device end control program is similar to the sensing type internet of things device end control program, and the same points are not repeated, except that: for each determination rule, the condition part of the determination rule may also include a device identification code of a first operation type thing device 12 having a device function type belonging to an operation type function, and a trigger condition for judging whether the device state of the first operation type thing device 12 meets a condition state, the control part includes a device identification code of a second operation type thing device 12 corresponding to the first operation type thing device and having a device function type belonging to an operation type function, and a control action for indicating control about the second operation type thing device 12, in which step 601, a first state data is generated by the first operation type thing device 12 and transmitted to a sub-gateway to which the first operation type thing device is connected, wherein the first state data includes a first state signal corresponding to the own state of the first operation type thing device, and the device identification code of the first operation type thing device, and in which step 603, the main gateway 1 receives the first state data corresponding to the first operation type thing device; and determines whether to generate another control message to the second operation type of the first operation type of the Internet of things device according to the determination rule corresponding to the first operation type of the Internet of things device 12, the operation type thing connection device end control procedure is ended when it is judged that another control message is not required to be generated, and the steps 604 to 610 are performed when it is judged that another control message is required to be generated to the second operation type thing connection device 12.
For example, a fourth target sub-gateway 11 connected to the main gateway 1 is connected to a reed switch and an audible and visual alarm belonging to the function of operation, a fifth target sub-gateway 11 and a sixth target sub-gateway 11 connected to the main gateway 1 are respectively connected to an audible and visual alarm belonging to the function of operation, and the main gateway 1 stores a determination rule related to the reed switch and the audible and visual alarm, wherein the condition part of the determination rule includes the device identification code of the reed switch, the triggering condition is that the on-state of the sub-coupling device 12 corresponding to the device identification code of the reed switch is switched, the control part includes the device identification codes of the audible and visual alarms, the control action is that the sub-coupling device corresponding to the device identification code of the audible and visual alarm is switched to the on-state, when the reed switch generates and transmits a status data including a device identification code of the reed switch and a status signal of the reed switch in an on state to the fourth target sub-gateway 11, the fourth target sub-gateway 11 transfers the status data to the main gateway 1, and the main gateway updates the status of the reed switch in an on state according to the status data and generates a control message corresponding to the audible and visual alarms according to the determination rule, and respectively transmits the control message to the fourth target sub-gateway 11, the fifth target sub-gateway 11, and the sixth target sub-gateway 11 according to the device identification code of the audible and visual alarms, the fourth target sub-gateway 11 generates a control signal switched to an on state according to the control message, and transmits the control signal to the audible and visual alarm connected to the fourth target sub-gateway 11 according to the control message, similarly, the fifth target sub-gateway 11 and the sixth target sub-gateway 11 respectively generate a control signal and respectively transmit the control signal to the acousto-optic alarm connected to the fourth target sub-gateway 11, when the acousto-optic alarm respectively receives the control signal corresponding to the acousto-optic alarm, the acousto-optic alarm is switched to be in an on state to send out an alarm sound and an alarm light, and respectively transmit a state signal and a device identification code corresponding to the acousto-optic alarm to the fourth target sub-gateway 11, the fifth target sub-gateway 11, and the sixth target sub-gateway 11, when the fourth target sub-gateway 11 receives a state signal and a device identification code corresponding to the acousto-optic alarm connected to the fourth target sub-gateway 11, the fourth target sub-gateway 11 generates and transmits a state message including a device identification code of the acousto-optic alarm and a state signal of the acousto-optic alarm to the main gateway 1, and similarly, when the fifth target sub-gateway 11 and the sixth target sub-gateway 11 respectively generate and transmit a state message including a state signal of the device identification code and the acousto-optic alarm connected to the acoustic alarm 1 to the main gateway 1, and when the state message of the acoustic alarm is updated according to the state message of the state of the acoustic alarm and the device.
In summary, in the method for communication between the internet of things devices according to the present invention, a connection is established between each sub-gateway 11 and the main gateway 1, wherein the main gateway 1 further stores the correspondence between each sub-gateway identification code, the device information of each sub-gateway 12 connected to each sub-gateway 11, and the decision rules, so that the user terminal 2 can fully manage all the devices by only connecting to the main gateway 1, for example, transmitting a control message to the main gateway 1 to control the devices 12, without establishing a connection with each sub-gateway 11 to perform individual control, and on the other hand, by storing the decision rules in the main gateway 1, when the sensing devices 12 generate and transmit the sensing data to the main gateway 1, the main gateway 1 can control the operation type devices 12 corresponding to the sensing devices 12 according to the decision rules, that is, in the system, the management of the devices can be integrated by the main gateway 1 and the management of the devices 12, so that the management of each device can be integrated by the main gateway 1.
The form of the present invention is not limited to the illustrations and examples, and any person who performs a similar idea of the present invention should be regarded as not departing from the scope of the patent of the invention.

Claims (9)

1. The communication method of the Internet of things device is implemented through an Internet of things system, and the Internet of things system comprises a main gateway, a plurality of sub-gateways and at least one Internet of things device connected under each sub-gateway, and is characterized in that: the communication method of the Internet of things device comprises the following steps:
(A) For each sub-gateway, the sub-gateway broadcasts a broadcast message including a sub-gateway identification code and a sub-gateway network co-address;
(B) When the main gateway receives the broadcast message, the main gateway transmits a main gateway network co-address and an Internet of things device request to the sub-gateway corresponding to the broadcast message;
(C) When the sub gateway corresponding to broadcast the broadcast message receives the main gateway network cooperative address, the sub gateway corresponding to broadcast the broadcast message establishes a connection with the main gateway according to the main gateway network cooperative address;
(D) When the sub-gateway corresponding to broadcasting the broadcasting message receives the request of the Internet of things device, the sub-gateway corresponding to broadcasting the broadcasting message transmits a reply message containing device information of each Internet of things device connected therebelow to the main gateway; and
(E) When the main gateway receives the reply message, the main gateway stores the corresponding relation between the sub gateway identification code of the sub gateway corresponding to broadcasting the broadcast message and the device information of each Internet of things device connected under the sub gateway corresponding to broadcasting the broadcast message;
the device function type of each Internet of things device comprises one of a sensing function related to sensing environment states and an operation function related to starting operation, and the main gateway also stores at least one judging rule;
each judgment rule is related to a sensing type Internet of things device with a device function type belonging to a sensing type function and an operation type Internet of things device which corresponds to the sensing type Internet of things device and has a device function type belonging to an operation type function;
or, each determination rule is related to a first operation type internet of things device with device function type belonging to operation type function and a second operation type internet of things device corresponding to the first operation type internet of things device and with device function type belonging to operation type function;
if the sensing type internet of things device with the sensing type function generates and transmits sensing data to the sub gateway connected with the sensing type internet of things device, the sub gateway transfers the sensing data to the main gateway, and the main gateway judges whether to control the operation type internet of things device connected with the other sub gateway according to the sensing data and the judging rule;
If the first operation type Internet of things device generates and transmits a state data to the sub gateway connected with the first operation type Internet of things device, the sub gateway transfers the state data to the main gateway, and the main gateway judges whether to control the second operation type Internet of things device connected with the other sub gateway according to the state data and the judging rule.
2. The internet of things device communication method of claim 1, wherein: in step (D), each device information includes a device identification code and a device function type of the corresponding internet of things device.
3. The internet of things device communication method of claim 2, wherein: the gateway of the Internet of things system is also connected with a user end through a communication network, and after the step (E), the gateway further comprises the following steps:
(F) When the main gateway receives a control message from the user end, wherein the control message comprises a target object joint device identification code corresponding to one of the object joint devices and a control instruction, and the main gateway obtains a target sub-gateway identification code corresponding to the target object joint device identification code according to the target object joint device identification code;
(G) The main gateway transfers the control message to a target sub-gateway corresponding to the target sub-gateway identification code according to the target sub-gateway identification code; and
(H) When the target sub-gateway receives the control message, the target sub-gateway generates a control signal and transmits the control signal to a target internet of things device corresponding to the target internet of things device identification code so as to control the target internet of things device.
4. The internet of things device communication method of claim 3, wherein: after step (H), further comprising the steps of:
(I) When the target device receives the control signal, the target device changes its own state according to the control signal and transmits a state data containing a state signal corresponding to its own state and the target device identification code to the target sub-gateway;
(J) When the target sub-gateway receives the status data, the target sub-gateway generates and transmits a status message to the main gateway according to the target device identification code of the target device and the status signal; and
(K) When the main gateway receives the status message, the main gateway transmits the status message to the user terminal through the communication network, so that the user terminal displays the status of the target Internet of things device according to the status message.
5. The internet of things device communication method of claim 4, wherein: in step (D), each device information further includes a device status of the corresponding device; in step (E), the main gateway also stores device information of each Internet of things device; and in step (K), when the main gateway receives the status message, the main gateway also updates the device status corresponding to the target Internet of things device according to the status message.
6. The internet of things device communication method of claim 5, wherein: after step (E), further comprising the steps of:
(L) when the sensing type Internet of things device with the device function type belonging to the sensing type function generates and transmits sensing data to the sub-gateway connected with the sensing type Internet of things device, the sub-gateway connected with the sensing type Internet of things device transfers the sensing data to the main gateway, wherein the sensing data comprises a sensing signal generated by the sensing type Internet of things device and a device identification code of the sensing type Internet of things device;
(M) when the main gateway receives the sensing data, the main gateway judges whether to generate another control message to an operation type Internet of things device which corresponds to the sensing type Internet of things device and has a device function type belonging to an operation type function according to the sensing data and a judging rule corresponding to the sensing type Internet of things device;
(N) when the master gateway determines that another control message needs to be generated to the operation type internet of things device, the master gateway generates the another control message corresponding to the operation type internet of things device;
(O) when the master gateway generates the other control message corresponding to the operation type Internet of things device, the master gateway obtains a target sub-gateway identification code corresponding to the device identification code of the operation type Internet of things device according to the device identification code of the operation type Internet of things device;
(P) the main gateway transferring the other control message to a target sub-gateway corresponding to the target sub-gateway identification code according to the target sub-gateway identification code; and
And (Q) when the target sub-gateway receives the other control message, wherein the other control message comprises a device identification code corresponding to the operation type Internet of things device and a control instruction, the target sub-gateway generates a control signal according to the control message and transmits the control signal to the operation type Internet of things device corresponding to the operation type Internet of things device identification code so as to control the operation type Internet of things device.
7. The internet of things device communication method of claim 6, wherein: after step (Q), further comprising the steps of:
(R) when the operation type Internet of things device receives the control signal, the operation type Internet of things device changes its own state according to the control signal and transmits a state data containing a state signal corresponding to its own state and a device identification code corresponding to the operation type Internet of things device to the target sub-gateway;
(S) when the target sub-gateway receives the status data, the target sub-gateway generates and transmits a status message to the main gateway according to the device identification code of the operation type Internet of things device and the status signal; and
And (T) when the main gateway receives the status message, the main gateway updates the device status corresponding to the operation type Internet of things device according to the status message.
8. The internet of things device communication method of claim 5, wherein: after step (E), further comprising the steps of:
(i) When the first operation type Internet of things device generates and transmits first state data to the sub-gateway connected with the first operation type Internet of things device, the sub-gateway connected with the first operation type Internet of things device transfers the first state data to the main gateway, wherein the first state data comprises a first state signal corresponding to the self state of the first operation type Internet of things device and a device identification code of the first operation type Internet of things device;
(ii) When the main gateway receives the first state data, the main gateway judges whether to generate another control message to a second operation type Internet of things device corresponding to the first operation type Internet of things device according to the first state data and a judging rule corresponding to the first operation type Internet of things device;
(iii) When the master gateway judges that another control message needs to be generated to the second operation type Internet of things device, the master gateway generates the another control message corresponding to the second operation type Internet of things device;
(iv) When the main gateway generates the other control message corresponding to the second operation type internet of things device, the main gateway obtains a relay gateway identification code corresponding to the device identification code of the second operation type internet of things device according to the device identification code of the second operation type internet of things device;
(v) The main gateway transfers the other control message to a relay sub-gateway corresponding to the relay sub-gateway identification code according to the relay sub-gateway identification code; and
(vi) When the relay sub-gateway receives the another control message, wherein the another control message comprises a device identification code corresponding to the second operation type Internet of things device and a control command, the relay sub-gateway generates a control signal according to the control message and transmits the control signal to the second operation type Internet of things device corresponding to the device identification code of the second operation type Internet of things device so as to control the second operation type Internet of things device.
9. The internet of things device communication method of claim 1, wherein: after step (E), further comprising the steps of:
(U) broadcasting a joining request by the to-be-connected Internet of things device, wherein the joining request comprises a newly-added device identification code and a newly-added device function type corresponding to the to-be-connected Internet of things device;
(V) when a specific one of the sub-gateways receives the join request, the specific sub-gateway authenticates the to-be-connected device; and
And (W) when the specific sub gateway successfully authenticates the to-be-connected Internet of things device, the specific sub gateway establishes a connection with the to-be-connected Internet of things device and stores device information of the to-be-connected Internet of things device.
CN201911267281.6A 2019-12-11 2019-12-11 Internet of things road device communication method Active CN110958323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911267281.6A CN110958323B (en) 2019-12-11 2019-12-11 Internet of things road device communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911267281.6A CN110958323B (en) 2019-12-11 2019-12-11 Internet of things road device communication method

Publications (2)

Publication Number Publication Date
CN110958323A CN110958323A (en) 2020-04-03
CN110958323B true CN110958323B (en) 2023-08-29

Family

ID=69981052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911267281.6A Active CN110958323B (en) 2019-12-11 2019-12-11 Internet of things road device communication method

Country Status (1)

Country Link
CN (1) CN110958323B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003244182A (en) * 2002-02-15 2003-08-29 Nippon Telegr & Teleph Corp <Ntt> Communication method of gateway apparatus, gateway apparatus, communication method of information terminal, recording medium with recorded communication program of gateway apparatus and the program
WO2003079709A1 (en) * 2002-03-15 2003-09-25 Meshnetworks, Inc. System and method for auto-configuration and discovery of ip to mac address mapping and gateway presence
JP2006227802A (en) * 2005-02-16 2006-08-31 Nippon Telegr & Teleph Corp <Ntt> Application service providing system, service management device, home gateway, and access control method
CN102624621A (en) * 2012-03-11 2012-08-01 上海宜云物联科技有限公司 Heterogeneous network adaptive data communication method and sensor network multi-protocol gateway
CN102711209A (en) * 2012-06-01 2012-10-03 广州市香港科大霍英东研究院 Dynamic self-organizing hierarchical routing method applied to wireless sensor network
CN103701694A (en) * 2012-09-27 2014-04-02 株式会社日立制作所 Gateway device and data processing method
GB201520004D0 (en) * 2015-11-12 2015-12-30 Vodafone Ip Licensing Ltd Router and message handler for transmitting control messages over alternative communications channel
CN105517103A (en) * 2015-12-03 2016-04-20 小米科技有限责任公司 Network access method and device based on intelligent terminal device
KR101723984B1 (en) * 2017-01-31 2017-04-06 (주)그립 Device and Method for Controlling Internet of Things Device
CN106686598A (en) * 2017-01-20 2017-05-17 浙江小尤鱼智能技术有限公司 Node accessing method of Zigbee network
WO2018208295A1 (en) * 2017-05-09 2018-11-15 Nokia Of America Corporation Iot device connectivity, discovery, and networking
CN109617731A (en) * 2018-12-21 2019-04-12 青岛海信智慧家居系统股份有限公司 Adaptive gateway role configuration method and device under a kind of multi-gateway environment
CN110380944A (en) * 2019-08-14 2019-10-25 Oppo广东移动通信有限公司 A kind of electronic equipment and its control method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8583955B2 (en) * 2011-10-04 2013-11-12 Advanergy, Inc. Battery management system and method
US10560975B2 (en) * 2014-04-16 2020-02-11 Belkin International, Inc. Discovery of connected devices to determine control capabilities and meta-information

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003244182A (en) * 2002-02-15 2003-08-29 Nippon Telegr & Teleph Corp <Ntt> Communication method of gateway apparatus, gateway apparatus, communication method of information terminal, recording medium with recorded communication program of gateway apparatus and the program
WO2003079709A1 (en) * 2002-03-15 2003-09-25 Meshnetworks, Inc. System and method for auto-configuration and discovery of ip to mac address mapping and gateway presence
JP2006227802A (en) * 2005-02-16 2006-08-31 Nippon Telegr & Teleph Corp <Ntt> Application service providing system, service management device, home gateway, and access control method
CN102624621A (en) * 2012-03-11 2012-08-01 上海宜云物联科技有限公司 Heterogeneous network adaptive data communication method and sensor network multi-protocol gateway
CN102711209A (en) * 2012-06-01 2012-10-03 广州市香港科大霍英东研究院 Dynamic self-organizing hierarchical routing method applied to wireless sensor network
CN103701694A (en) * 2012-09-27 2014-04-02 株式会社日立制作所 Gateway device and data processing method
GB201520004D0 (en) * 2015-11-12 2015-12-30 Vodafone Ip Licensing Ltd Router and message handler for transmitting control messages over alternative communications channel
CN105517103A (en) * 2015-12-03 2016-04-20 小米科技有限责任公司 Network access method and device based on intelligent terminal device
CN106686598A (en) * 2017-01-20 2017-05-17 浙江小尤鱼智能技术有限公司 Node accessing method of Zigbee network
KR101723984B1 (en) * 2017-01-31 2017-04-06 (주)그립 Device and Method for Controlling Internet of Things Device
WO2018208295A1 (en) * 2017-05-09 2018-11-15 Nokia Of America Corporation Iot device connectivity, discovery, and networking
CN109617731A (en) * 2018-12-21 2019-04-12 青岛海信智慧家居系统股份有限公司 Adaptive gateway role configuration method and device under a kind of multi-gateway environment
CN110380944A (en) * 2019-08-14 2019-10-25 Oppo广东移动通信有限公司 A kind of electronic equipment and its control method

Also Published As

Publication number Publication date
CN110958323A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
US6240080B1 (en) Mobile terminal and method of controlling the same
US10447502B2 (en) Method and a device for controlling a home wireless system
RU2005128291A (en) METHODS AND DEVICES FOR UPDATING INFORMATION OF LOCATION OF A MOBILE UNIT
US20080104221A1 (en) Method and system for simple network management protocol based data management
GB2512781A (en) Network configuration
US20210243673A1 (en) Network message transmissions reduction systems and methods
CN104601682A (en) Method for switching gateway of internet of things as well as associated device and system
CN110557448A (en) Control method and system for smart home
US20170118582A1 (en) Method of establishing stable piconet and system of establishment of stable piconet based on bluetooth
DE69928451D1 (en) MAP INTERFACE FOR REPLACING MESSAGES WITH A SERVICE CONTROL POINT
CN110267358A (en) Establish the system, method and blue-tooth device of bluetooth connection
RU2719394C2 (en) Connection of light devices
CN108810129A (en) Internet of Things network control system and method, terminal device and local network services equipment
CN108900982B (en) Data forwarding method and device
CN105072149A (en) Method and device for building remote communication through proxy gateway
US11012308B2 (en) Method for configuring a wireless fire detection system
US20020172175A1 (en) Communication device
CN101529398B (en) Network system
JPH11215174A (en) Network connection device
CN110958323B (en) Internet of things road device communication method
CN104079425A (en) Method, device and system for device matching
CN111742610A (en) Debugging method and device using controlled joining mode
SE1650561A1 (en) Smart home system
KR20040010653A (en) Wireless network system software protocol
TWI717929B (en) Internet of things communication method

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