CN111182068A - Internet of things gateway control method and system - Google Patents

Internet of things gateway control method and system Download PDF

Info

Publication number
CN111182068A
CN111182068A CN201911413927.7A CN201911413927A CN111182068A CN 111182068 A CN111182068 A CN 111182068A CN 201911413927 A CN201911413927 A CN 201911413927A CN 111182068 A CN111182068 A CN 111182068A
Authority
CN
China
Prior art keywords
data
label
tag
communication
judging whether
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.)
Pending
Application number
CN201911413927.7A
Other languages
Chinese (zh)
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.)
Guangzhou Vanvov Information Technology Co ltd
Original Assignee
Guangzhou Vanvov Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Vanvov Information Technology Co ltd filed Critical Guangzhou Vanvov Information Technology Co ltd
Priority to CN201911413927.7A priority Critical patent/CN111182068A/en
Publication of CN111182068A publication Critical patent/CN111182068A/en
Pending legal-status Critical Current

Links

Images

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
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0083Formatting with frames or packets; Protocol or part of protocol for error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • H04L45/502Frame based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos

Landscapes

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

Abstract

The invention discloses a gateway control method of the Internet of things, which comprises the following steps: acquiring communication data sent by a communication tag; judging whether the communication data passes the key verification or not, and if so, decrypting the communication data; judging whether the label identity information is a preset access system authority or not, if so, extracting electric quantity data in the label data, judging whether the electric quantity data is equal to a preset low electric quantity or not, if so, adding the label identity information into a preset low electric label list, judging whether label identity information exists in a preset time filtering table or not, if so, adding the label identity information into the preset time filtering table, and extracting a request type in the label data; and judging whether the request type is an uploading server type, and adding the label data into a special protocol stack to be sent if the request type is the uploading server type. Correspondingly, the invention discloses an Internet of things gateway control system. The invention can access node equipment of various communication protocols, reduce data redundancy fields and save cost.

Description

Internet of things gateway control method and system
Technical Field
The invention relates to the internet control technology, in particular to a method and a system for controlling an internet of things gateway
Background
The internet of things gateway is a signal transfer device of the internet of things label and the server, receives the signal sent by the internet of things label, and transfers the signal to the server, so that data transmission of the internet of things label and the internet of things server is realized.
The comparison document CN 105898900A discloses a gateway system applied to a large-scale zigbee sensor network and a mobile communication network, which takes S3C6410 SoC as a core, is externally connected with a plurality of zigbee wireless sensor network units through UART interfaces, and is externally connected with a mobile communication network unit through a USB interface to establish a system hardware platform. The software part is divided into an application layer and a network layer, the functions of external interface dynamic management, routing table maintenance and the like are realized on the application layer, a TCP/IP protocol stack and a zigbee protocol stack are operated on the network layer, and a protocol conversion program is operated. The extensible design of the hardware part and the layered design of the software part and the dynamic routing table mechanism enable the system to have great advantages in application scenarios requiring large-scale arrangement of the zigbee sensor network.
However, the existing internet of things gateway control method has the following disadvantages:
designed only for certain wireless communication technologies, have limited access capabilities. For example, the LoRaWan gateway can only access nodes (tags) of the internet of things based on the LoRa communication technology.
The existing gateway communication protocol of the internet of things mostly adopts character strings for coding, redundant fields are more, bandwidth is wasted, and cost of operators is increased.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a gateway control method and system of the internet of things, which can access node devices of various communication protocols, reduce data redundancy fields and save cost.
In order to solve the technical problem, the invention provides an internet of things gateway control method, which comprises the following steps: acquiring communication data sent by a communication tag; performing key verification on the communication data, judging whether the communication data passes the key verification or not, if so, decrypting the communication data to generate label data, and extracting label identity information in the label data; judging whether the label identity information is a preset access system authority or not, if so, extracting electric quantity data in the label data, judging whether the electric quantity data is equal to a preset low electric quantity or not, if so, adding the label identity information into a preset low electric label list, judging whether label identity information exists in a preset time filtering table or not, if so, adding the label identity information into the preset time filtering table, and extracting a request type in the label data; and judging whether the request type is an uploading server type, and adding the label data into a special protocol stack to be sent if the request type is the uploading server type.
As an improvement of the above scheme, the dedicated protocol is an M2S protocol, and the step of adding the tag data to the dedicated protocol stack for transmission includes: extracting network type information in the tag data; judging whether the network type information is an Ethernet type or not, if so, carrying out binary coding on the tag data to generate a data frame, and sending the data frame through an Ethernet interface; and judging whether the network type information is the wireless network type, if so, carrying out binary coding on the tag data to generate a data frame, and sending the data frame through a wireless network interface.
As an improvement of the above scheme, adding the tag data to the dedicated protocol stack for transmission further includes: before the step of extracting the network type information in the tag data, the following steps are performed: acquiring the network disconnection rate of a sending label of the label data; and judging whether the network disconnection rate is greater than a preset disconnection alarm threshold value or not, and adding the network disconnection rate into the label data if the network disconnection rate is greater than the preset disconnection alarm threshold value.
As an improvement of the above scheme, the step of obtaining the network drop rate of the transmission label of the label data includes: acquiring the receiving quantity of data sent by a sender of the label data in the time filtering table, and extracting the sending serial number of the label data; and calculating the network disconnection rate according to the receiving number and the sending sequence number.
As an improvement of the above scheme, when the communication tag is a LoRaWan tag, the step of acquiring the communication data transmitted by the communication tag includes: acquiring a signal sent by a LoRaWan label; and analyzing the signals through a LoRaWan protocol stack to generate communication data.
Correspondingly, the invention discloses an internet of things gateway control system, which comprises: the communication data acquisition module is used for acquiring communication data sent by the communication label; the key verification module is used for performing key verification on the communication data, judging whether the communication data passes the key verification or not, if so, decrypting the communication data to generate label data, and extracting label identity information in the label data; the tag data management module is used for judging whether the tag identity information is a preset access system authority or not, if so, extracting electric quantity data in the tag data, and if not, adding the tag identity information into a preset low-power tag list, if so, judging whether the tag identity information exists in a preset time filtering list, if so, adding the tag identity information into the preset time filtering list, and extracting a request type in the tag data; and the label data sending module is used for judging whether the request type is the uploading server type or not, and adding the label data into the special protocol stack for sending if the request type is the uploading server type.
As an improvement of the above scheme, the dedicated protocol is an M2S protocol, and the tag data sending module includes: a network type extraction unit for extracting network type information in the tag data; the Ethernet sending unit is used for judging whether the network type information is the Ethernet type, if so, carrying out binary coding on the tag data to generate a data frame, and sending the data frame through an Ethernet interface; and the wireless sending unit is used for judging whether the network type information is the wireless network type, carrying out binary coding on the tag data to generate a data frame if the network type information is the wireless network type, and sending the data frame through a wireless network interface.
As an improvement of the above scheme, the tag data sending module further includes: the system comprises a disconnection rate acquisition unit, a data transmission unit and a data transmission unit, wherein the disconnection rate acquisition unit is used for acquiring the network disconnection rate of a sending label of label data; the system comprises a disconnection alarm judging unit, a disconnection rate loading unit and a label data processing unit, wherein the disconnection alarm judging unit is used for judging whether the network disconnection rate is greater than a preset disconnection alarm threshold value or not, and the disconnection rate loading unit is used for adding the network disconnection rate into the label data if the network disconnection rate is judged to be greater than the preset disconnection alarm threshold value; the label data sending module calls a disconnection rate obtaining unit, a disconnection alarm judging unit and a disconnection rate loading unit before calling the network type extracting unit.
As an improvement of the above scheme, the offline rate obtaining unit includes: the offline rate parameter acquiring subunit is used for acquiring the receiving quantity of the data sent by the sender of the label data in the time filter table and extracting the sending sequence number of the label data; and the offline rate calculating subunit is used for calculating the network offline rate according to the receiving number and the sending sequence number.
As an improvement of the above-described aspect, the communication data acquisition module includes: the LoRaWan signal acquisition unit is used for acquiring a signal sent by a LoRaWan label; the LoRaWan signal analysis unit is used for analyzing the signals through a LoRaWan protocol stack to generate communication data; and when the communication tag is a LoRaWan tag, the communication data acquisition module calls a LoRaWan signal acquisition unit and a LoRaWan signal analysis unit.
The implementation of the invention has the following beneficial effects:
the gateway control method and system of the Internet of things can access node equipment of various communication protocols, reduce data redundancy fields and save cost.
Specifically, after the communication data sent by the communication tag is acquired, the communication data is subjected to key verification, and the passing of the key verification means that the communication data obtains the network access permission, namely the communication data can be transmitted to the server through the gateway. And then managing the communication data, firstly decrypting the communication data to generate label data, and extracting the label identity information in the label data. And if the label identity information has the preset access system authority, performing electric quantity management and time filtering operation, and finally adding the label data into a special protocol stack according to the request type to be sent, thereby completing network access permission, data management and forwarding operation of different protocol data and realizing forwarding of various protocol data.
Furthermore, the special protocol for sending data adopts an M2S protocol, when the data is sent, the label data is subjected to binary coding to generate a data frame, the data frame is sent through an Ethernet interface or a wireless network interface, and the reduction of character string coding has no redundant field caused by character string coding.
Drawings
Fig. 1 is a general flow chart of the gateway control method of the internet of things of the invention;
fig. 2 is a flowchart of adding tag data to a dedicated protocol stack for transmission in the internet of things gateway control method of the present invention;
fig. 3 is a flowchart of processing steps before adding tag data to a dedicated protocol stack for transmission in the internet of things gateway control method of the present invention;
fig. 4 is a flowchart of a network drop rate of a transmission tag for obtaining tag data according to the internet of things gateway control method of the present invention;
fig. 5 is a flowchart of acquiring communication data sent by a communication tag when the communication tag is a LoRaWan tag according to the internet of things gateway control method of the present invention;
fig. 6 is a schematic structural diagram of the gateway control system of the internet of things of the invention;
fig. 7 is a hardware architecture diagram of the gateway control system of the internet of things of the present invention;
fig. 8 is a schematic structural diagram of a tag data sending module of the internet of things gateway control system according to the first embodiment of the present invention;
fig. 9 is a schematic structural diagram of a tag data sending module of the internet of things gateway control system according to the second embodiment of the present invention;
fig. 10 is a schematic structural diagram of a drop rate obtaining unit of the internet of things gateway control system according to the present invention;
fig. 11 is a schematic structural diagram of a communication data acquisition module of the internet of things gateway control system according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings. It is only noted that the invention is intended to be limited to the specific forms set forth herein, including any reference to the drawings, as well as any other specific forms of embodiments of the invention.
Fig. 1 is a general flowchart of the internet of things gateway control method of the present invention, including:
s101, communication data sent by the communication label are obtained.
The communication tag includes using different communication protocols such as 856M protocol, LoRa protocol, WiFi protocol, bluetooth 5.0 protocol, 2.4G communication protocol, etc.
And S102, carrying out key verification on the communication data, judging whether the communication data passes the key verification, if so, decrypting the communication data to generate label data, and extracting label identity information in the label data.
The key step of the network access permission is key verification, each communication data contains specific key data, whether the source of the signal is legal or not is identified, and after the key data passes the verification, the communication data is sent by a certain label in the Internet of things, so that the data can be allowed to enter the Internet of things for transmission, including uploading to a server or sending to other Internet of things terminals.
After the source of the communication data is confirmed, the communication data is decrypted to generate tag data, and tag identity information (also called tag ID (Identification, abbreviated as ID) in the tag data is extracted.
S103, judging whether the label identity information is in the preset access system authority, if so, extracting the electric quantity data in the label data, judging whether the electric quantity data is equal to the preset low electric quantity, if so, adding the label identity information into a preset low electric quantity label list, judging whether label identity information exists in a preset time filtering list, if so, adding the label identity information into the preset time filtering list, and extracting the request type in the label data.
This step is the main content of the management of the tag data, including power management and time filtering. Through the electric quantity management, the specific position of the low-electric-quantity label can be sent out by the manager in time, and the manager is reminded of maintaining the label in time. Through time filtering, the receiving and sending time of communication data can be recorded, and data such as network disconnection rate and the like can be calculated according to the receiving and sending time.
And after the label data management is carried out, extracting the request type information in the label data so as to carry out subsequent forwarding work.
And S104, judging whether the request type is the uploading server type, and adding the label data into a special protocol stack to be sent if the request type is the uploading server type.
When the request type is an uploading server type, the label data is added into a special protocol stack to be coded and relevant communication interfaces are called to carry out forwarding operation, so that the label data is forwarded.
Further, the dedicated protocol is an M2S protocol, and the step of adding the tag data to the dedicated protocol stack for transmission includes:
s201, extracting network type information in the label data.
The network type information is used to identify a target network type of the tag data, including an ethernet type and a wireless network type.
S202, judging whether the network type information is the Ethernet type or not, if so, carrying out binary coding on the label data to generate a data frame, and sending the data frame through an Ethernet interface.
S203, judging whether the network type information is the wireless network type, if so, carrying out binary coding on the label data to generate a data frame, and sending the data frame through a wireless network interface.
It should be noted that, for servers of different target networks, it is necessary to send tag data through different network interfaces, for example, sending the tag data to an ethernet server through an ethernet interface, and for example, sending the tag data through a wireless network interface, such as a 4G network interface.
The M2S protocol is a pure binary protocol, uses binary coding to replace the path string that occupies more traffic, and reduces unnecessary fields in the protocol header information, thereby reducing traffic waste. The format of the M2S protocol stack frame is shown in Table 1:
name (R) Length/byte Examples of the invention
Frame header
1 0xAA/55
Pipeline coding 1 0xYY
Frame type code 1 0x80
Device ID format 1 0x04
Device ID Self-defining 0x04
Frame number
1 0x01
Frame length
2 0x04
Frame data Self-defining 0x11223344
Frame check
1 0x37
TABLE 1
The M2S protocol comprises an M2S protocol stack frame format, is a specially designed communication protocol, and has strong privacy and high safety.
Further, as shown in fig. 3, adding the tag data to the dedicated protocol stack for transmission further includes:
before the step of extracting the network type information in the tag data, the following steps are performed:
s301, acquiring the network disconnection rate of a sending label of the label data;
s302, judging whether the network disconnection rate is greater than a preset disconnection alarm threshold value or not, and if so, adding the network disconnection rate into the label data.
The network disconnection rate is an important parameter reflecting the connection strength between the internet of things label and the gateway, even the connection strength with the whole internet of things network, when the network disconnection rate is greater than a preset disconnection alarm threshold value, the signal strength of the internet of things is weak, the signal environment influences the signal transmission of the internet of things, the use effect of a user is influenced, the network disconnection rate needs to be added to the label data and then transmitted to the server, and a network administrator is reminded to maintain.
Further, as shown in fig. 4, the step of obtaining the network drop rate of the sending tag of the tag data includes:
s401, acquiring the receiving quantity of the data sent by the sender of the tag data in the time filtering table, and extracting the sending sequence number of the tag data.
S402, calculating the network disconnection rate according to the receiving number and the sending sequence number.
The time filter table records the time of receiving data by the gateway and the signal source, so as to count the receiving quantity of a specific source. The sending sequence number reflects the number of the signals sent by the tags of the internet of things. Then, calculating the network disconnection rate according to the receiving number and the sending sequence number:
Figure BDA0002350677670000071
wherein, R is the network drop rate, Se is the number of transmissions determined according to the transmission sequence number, and Re is the number of receptions.
For example, if the receiving number is 30 and the sending sequence number is S0040, the sending number is 40, and the network drop rate calculated according to the above formula is 25%.
Further, as shown in fig. 5, when the communication tag is a LoRaWan tag, the step of acquiring the communication data transmitted by the communication tag includes:
s501, acquiring a signal sent by the LoRaWan label.
And S502, analyzing the signal through a LoRaWan protocol stack to generate communication data.
Due to the coding characteristics of the LoRaWan protocol, the signals need to be analyzed after being acquired, and then the signals can be converted into communication data.
Accordingly, the present invention discloses an internet of things gateway control system 100, as shown in fig. 6, including:
and the communication data acquisition module 1 is used for acquiring the communication data sent by the communication tag.
The communication tag includes using different communication protocols such as 856M protocol, LoRa protocol, WiFi protocol, bluetooth 5.0 protocol, 2.4G communication protocol, etc.
Fig. 7 is a diagram showing a hardware architecture of the gateway control system of the internet of things. Wherein, the communication data acquisition module 1 includes:
a 856M communication module, preferably of the type sub1G RF IC;
the LoRa communication module is preferably of the type SX1301 or SX 1255;
a WiFi communication module, preferably the model is ZW 6201;
a Bluetooth 5.0 communication module, preferably model NRF 52832;
and 2.4G communication module, preferably model NRF 2401.
And the key verification module 2 is used for performing key verification on the communication data, judging whether the communication data passes the key verification or not, decrypting the communication data if the communication data passes the key verification, generating label data, and extracting label identity information in the label data.
The key step of the network access permission is key verification of the key, each communication data contains specific key data which identifies whether the source of the signal is legal or not, after the key data passes the verification, the communication data is sent by a certain label in the Internet of things, and the key verification module 2 can allow the data to enter the Internet of things for transmission, including uploading to a server or sending to other Internet of things terminals.
After the source of the communication data is confirmed, the key verification module 2 decrypts the communication data to generate tag data, and extracts tag identity information, also called tag ID (Identification, abbreviated as ID), in the tag data.
And the tag data management module 3 is used for judging whether the tag identity information is in a preset access system authority or not, if so, extracting electric quantity data in the tag data, judging whether the electric quantity data is equal to a preset low electric quantity or not, if so, adding the tag identity information into a preset low electric quantity tag list, judging whether the tag identity information exists in a preset time filtering list or not, if so, adding the tag identity information into the preset time filtering list, and extracting a request type in the tag data.
This step is the main content of the management of the tag data, including power management and time filtering. Through the electric quantity management, the label data management module 3 sends out the specific position of low electric quantity label in time to managers, reminds them to maintain in time. Through time filtering, the tag data management module 3 records the transceiving time of communication data, and other functional modules calculate data such as network disconnection rate according to the transceiving time.
After the tag data management is performed, the tag data management module 3 extracts the request type information in the tag data, so that other functional modules perform subsequent forwarding work.
And the tag data sending module 4 is used for judging whether the request type is the uploading server type, and adding the tag data into the special protocol stack for sending if the request type is the uploading server type.
When the request type is the uploading server type, the label data sending module 4 adds the label data into the special protocol stack to encode and calls the relevant communication interface to carry out forwarding operation, so as to realize the forwarding of the label data.
Further, the dedicated protocol is an M2S protocol, and as shown in fig. 8, the tag data sending module 4 includes:
a network type extracting unit 41, configured to extract the network type information in the tag data.
The network type information is used to identify a target network type of the tag data, including an ethernet type and a wireless network type.
An ethernet sending unit 42, configured to determine whether the network type information is an ethernet type, and if so, perform binary coding on the tag data to generate a data frame, and send the data frame through an ethernet interface;
and a wireless transmitting unit 43 for determining whether the network type information is a wireless network type, performing binary coding on the tag data to generate a data frame if the network type information is determined to be the wireless network type, and transmitting the data frame through a wireless network interface.
It should be noted that, for servers of different target networks, it is necessary to send the tag data through different network interfaces, for example, the ethernet sending unit 42 sends the tag data to the ethernet server through the ethernet interface, and for example, the wireless sending unit 43 sends the tag data through a wireless network interface, such as a 4G network interface.
The M2S protocol is a pure binary protocol, uses binary coding to replace the path string that occupies more traffic, and reduces unnecessary fields in the protocol header information, thereby reducing traffic waste. The format of the M2S protocol stack frame is shown in Table 1:
Figure BDA0002350677670000091
Figure BDA0002350677670000101
TABLE 1
The M2S protocol comprises an M2S protocol stack frame format, is a specially designed communication protocol, and has strong privacy and high safety.
Further, as shown in fig. 9, the tag data transmitting module 4 further includes:
a drop rate obtaining unit 44, configured to obtain a network drop rate of a transmission label of the label data;
a drop alarm determining unit 45, configured to determine whether a network drop rate is greater than a preset drop alarm threshold, and a drop rate loading unit 46, configured to add the network drop rate to the tag data if the network drop rate is determined to be yes;
the tag data sending module calls a drop rate obtaining unit 44, a drop alarm judging unit 45 and a drop rate loading unit 46 before calling the network type extracting unit.
The network disconnection rate is an important parameter reflecting the connection strength between the internet of things label and the gateway, even the connection strength with the whole internet of things network, the disconnection alarm judging unit 45 judges that the network disconnection rate is greater than a preset disconnection alarm threshold value, which shows that the signal strength of the internet of things is weak, the signal environment influences the signal transmission of the internet of things, and then influences the use effect of a user, and at the moment, the disconnection rate loading unit 46 adds the network disconnection rate to the label data and transmits the label data to the server to remind a network manager of maintaining the label data.
Further, as shown in fig. 10, the drop rate obtaining unit 44 includes:
a drop-off rate parameter obtaining subunit 441, configured to obtain, by the drop-off rate parameter, the number of received data sent by the sender of the tag data in the time filter table, and extract the sending sequence number of the tag data;
and a drop rate calculating subunit 442, configured to calculate a network drop rate according to the receiving number and the sending sequence number.
The time filtering table records the time of receiving data by the gateway and the signal source, so that the offline rate parameter obtaining subunit 441 performs statistics on the receiving number of a specific source. The sending sequence number reflects the number of the signals sent by the tags of the internet of things. Then, the offline rate calculating subunit 442 calculates the network offline rate according to the receiving number and the sending sequence number:
Figure BDA0002350677670000102
wherein, R is the network drop rate, Se is the number of transmissions determined according to the transmission sequence number, and Re is the number of receptions.
For example, if the receiving number is 30 and the sending sequence number is S0040, the sending number is 40, and the network drop rate calculated according to the above formula is 25%.
Further, as shown in fig. 11, the communication data acquisition module 1 includes:
a LoRaWan signal acquiring unit 11 configured to acquire a signal transmitted by a LoRaWan tag;
a LoRaWan signal analysis unit 12, configured to analyze the signal through a LoRaWan protocol stack to generate communication data;
when the communication tag is a LoRaWan tag, the communication data acquisition module 1 calls the LoRaWan signal acquisition unit 11 and the LoRaWan signal analysis unit 12.
Due to the encoding characteristics of the LoRaWan protocol, after the LoRaWan signal acquiring unit 11 acquires the signal, the LoRaWan signal analyzing unit 12 needs to analyze the signal, and then converts the signal into communication data.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A gateway control method of the Internet of things is characterized by comprising the following steps:
acquiring communication data sent by a communication tag;
performing key verification on the communication data, judging whether the communication data passes the key verification or not, if so, decrypting the communication data to generate label data, and extracting label identity information in the label data;
judging whether the label identity information is a preset access system authority or not, if so, extracting electric quantity data in the label data, judging whether the electric quantity data is equal to a preset low electric quantity or not, if so, adding the label identity information into a preset low electric quantity label list, judging whether label identity information exists in a preset time filtering table or not, if so, adding the label identity information into the preset time filtering table, and extracting a request type in the label data;
and judging whether the request type is an uploading server type, if so, adding the label data into a special protocol stack for sending.
2. The gateway control method of the internet of things of claim 1, wherein the dedicated protocol is an M2S protocol, and the step of adding the tag data to the dedicated protocol stack for transmission comprises:
extracting network type information in the tag data;
judging whether the network type information is an Ethernet type or not, if so, carrying out binary coding on the tag data to generate a data frame, and sending the data frame through an Ethernet interface;
and judging whether the network type information is the wireless network type or not, if so, carrying out binary coding on the tag data to generate a data frame, and sending the data frame through a wireless network interface.
3. The internet of things gateway control method of claim 1, wherein the adding the tag data to the dedicated protocol stack for transmission further comprises:
before the step of extracting the network type information in the tag data, the following steps are performed:
acquiring the network disconnection rate of the sending label of the label data;
judging whether the network disconnection rate is greater than a preset disconnection alarm threshold value,
and if so, adding the network disconnection rate into the label data.
4. The gateway control method for the internet of things according to claim 3, wherein the step of obtaining the network drop rate of the transmission label of the label data comprises:
acquiring the receiving quantity of the data sent by the sender of the label data in the time filtering table, and extracting the sending sequence number of the label data;
and calculating the network disconnection rate according to the receiving number and the sending sequence number.
5. The gateway control method of the internet of things of claim 1, wherein when the communication tag is a LoRaWan tag, the step of acquiring the communication data sent by the communication tag includes:
acquiring a signal sent by the LoRaWan label;
and analyzing the signals through a LoRaWan protocol stack to generate communication data.
6. An internet of things gateway control system, comprising:
the communication data acquisition module is used for acquiring communication data sent by the communication label;
the key verification module is used for performing key verification on the communication data, judging whether the communication data passes the key verification or not, if so, decrypting the communication data to generate label data, and extracting label identity information in the label data;
the tag data management module is used for judging whether the tag identity information is a preset access system authority or not, if so, extracting electric quantity data in the tag data, and judging whether the electric quantity data is equal to a preset low electric quantity or not, if so, adding the tag identity information into a preset low electric quantity tag list, judging whether the tag identity information exists in a preset time filtering table or not, if so, adding the tag identity information into the preset time filtering table, and extracting a request type in the tag data;
and the label data sending module is used for judging whether the request type is the uploading server type or not, and adding the label data into a special protocol stack for sending if the request type is the uploading server type.
7. The gateway control system of the internet of things of claim 6, wherein the dedicated protocol is an M2S protocol, and the tag data sending module comprises:
a network type extracting unit, configured to extract network type information in the tag data;
an Ethernet sending unit, configured to determine whether the network type information is an Ethernet type, and if so, perform binary coding on the tag data to generate a data frame, and send the data frame through an Ethernet interface;
and the wireless sending unit is used for judging whether the network type information is a wireless network type, carrying out binary coding on the tag data to generate a data frame if the network type information is the wireless network type, and sending the data frame through a wireless network interface.
8. The gateway control system of the internet of things of claim 6, wherein the tag data sending module further comprises:
a drop rate obtaining unit, configured to obtain a network drop rate of a transmission label of the label data;
a drop alarm judging unit for judging whether the network drop rate is greater than a preset drop alarm threshold value,
a drop rate loading unit, configured to add the network drop rate to the tag data if the determination is yes;
and the label data sending module calls the offline rate obtaining unit, the offline alarm judging unit and the offline rate loading unit before calling the network type extracting unit.
9. The internet-of-things gateway control system according to claim 8, wherein the drop rate obtaining unit includes:
a drop-off rate parameter obtaining subunit, configured to obtain, by the drop-off rate parameter, a receiving number of data sent by a sender of the tag data in the time filter table, and extract a sending sequence number of the tag data;
and the offline rate calculating subunit is used for calculating the network offline rate according to the receiving quantity and the sending sequence number.
10. The gateway control system of the internet of things of claim 6, wherein the communication data acquisition module comprises:
the LoRaWan signal acquisition unit is used for acquiring the signal sent by the LoRaWan label;
the LoRaWan signal analysis unit is used for analyzing the signals through a LoRaWan protocol stack to generate communication data;
and when the communication tag is a LoRaWan tag, the communication data acquisition module calls the LoRaWan signal acquisition unit and the LoRaWan signal analysis unit.
CN201911413927.7A 2019-12-31 2019-12-31 Internet of things gateway control method and system Pending CN111182068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911413927.7A CN111182068A (en) 2019-12-31 2019-12-31 Internet of things gateway control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911413927.7A CN111182068A (en) 2019-12-31 2019-12-31 Internet of things gateway control method and system

Publications (1)

Publication Number Publication Date
CN111182068A true CN111182068A (en) 2020-05-19

Family

ID=70657757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911413927.7A Pending CN111182068A (en) 2019-12-31 2019-12-31 Internet of things gateway control method and system

Country Status (1)

Country Link
CN (1) CN111182068A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765224A (en) * 2010-01-18 2010-06-30 彭保 Mutually unique mark implementation method for terminal of Internet of Things
CN102255908A (en) * 2011-07-08 2011-11-23 北京邮电大学 Internet of things gateway protocol consistency realization method
CN103516520A (en) * 2013-09-30 2014-01-15 张家港市速达电子商务有限公司 Data safe transmission system and method based on electronic tag
CN103699920A (en) * 2014-01-14 2014-04-02 西安电子科技大学昆山创新研究院 Radio frequency identification two-way authentication method based on ellipse curve
CN107465764A (en) * 2017-09-20 2017-12-12 诚迈科技(南京)股份有限公司 Internet of Things network communication system, gateway device and method based on stelliform connection topology configuration
CN108769109A (en) * 2018-04-13 2018-11-06 西安电子科技大学 Method and system are uniformly processed in a kind of Internet of Things heterogeneous device data
CN110086755A (en) * 2018-01-26 2019-08-02 巍乾全球技术有限责任公司 Realize method, application server, internet of things equipment and the medium of Internet of Things service

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765224A (en) * 2010-01-18 2010-06-30 彭保 Mutually unique mark implementation method for terminal of Internet of Things
CN102255908A (en) * 2011-07-08 2011-11-23 北京邮电大学 Internet of things gateway protocol consistency realization method
CN103516520A (en) * 2013-09-30 2014-01-15 张家港市速达电子商务有限公司 Data safe transmission system and method based on electronic tag
CN103699920A (en) * 2014-01-14 2014-04-02 西安电子科技大学昆山创新研究院 Radio frequency identification two-way authentication method based on ellipse curve
CN107465764A (en) * 2017-09-20 2017-12-12 诚迈科技(南京)股份有限公司 Internet of Things network communication system, gateway device and method based on stelliform connection topology configuration
CN110086755A (en) * 2018-01-26 2019-08-02 巍乾全球技术有限责任公司 Realize method, application server, internet of things equipment and the medium of Internet of Things service
CN108769109A (en) * 2018-04-13 2018-11-06 西安电子科技大学 Method and system are uniformly processed in a kind of Internet of Things heterogeneous device data

Similar Documents

Publication Publication Date Title
JP6194024B2 (en) M2M service setting changing method and apparatus therefor
CN103428627B (en) The transfer approach of data, Internet of things system and related device in Internet of things system
WO2017084600A1 (en) Internet of things system used for intelligent gas meter and information transmission method for internet of things system
CN102904868B (en) A kind of track traffic centralized alarm system and method
CN104243182A (en) Directional traffic charging method and directional traffic charging system
US20100202451A1 (en) Modified internet protocol (ip) data packet for asynchronous ip communications
CN106537959B (en) Method for encoding and decoding frames in a telecommunication network
CN103647706A (en) Self-adaptation protocol communication gateway and communication platform
CN106507024A (en) A kind of self-adaption code rate method of adjustment and device
Azzara et al. The icsi m2m middleware for iot-based intelligent transportation systems
CN100484101C (en) A method, system and device to transport the IPv6 message of Ethernet
CN107241216A (en) Maintain the method and device of the stable transmission of critical data
US11516561B2 (en) Method for reading fluid meters
CN111182068A (en) Internet of things gateway control method and system
Huang Architecture of audio broadcasting coverage monitoring system based on internet of things
CN104994074A (en) Implementation method of communication server of physical examination machine
CN103428280A (en) Mobile terminal based mobile service data acquisition method and system
US20160282139A1 (en) Data Collection Device and Method to Support Multiple Profiles in a Utility Meter System
WO2016033986A1 (en) Method and apparatus for implementing deep packet inspection
WO2016184025A1 (en) Device management method and apparatus
CN111193611A (en) Client side fault monitoring method using MAS machine
CN101888315A (en) Network type alarming host under intelligent platform and networking fortifying method thereof
CN105162871A (en) Energy Internet communication system based on ontology mapping and method thereof
CN110891073B (en) Multi-protocol stack communication method for mobile communication core network
CN109257772A (en) A kind of sending, receiving method and user equipment of RTP data

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