CN115484130B - Internet of things gateway and air compression online storage system for same - Google Patents

Internet of things gateway and air compression online storage system for same Download PDF

Info

Publication number
CN115484130B
CN115484130B CN202211052568.9A CN202211052568A CN115484130B CN 115484130 B CN115484130 B CN 115484130B CN 202211052568 A CN202211052568 A CN 202211052568A CN 115484130 B CN115484130 B CN 115484130B
Authority
CN
China
Prior art keywords
data
register
internet
check
gateway
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
CN202211052568.9A
Other languages
Chinese (zh)
Other versions
CN115484130A (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.)
Jiangsu Aolixin Digital Technology Co ltd
Original Assignee
Jiangsu Aolixin Digital 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 Jiangsu Aolixin Digital Technology Co ltd filed Critical Jiangsu Aolixin Digital Technology Co ltd
Priority to CN202211052568.9A priority Critical patent/CN115484130B/en
Publication of CN115484130A publication Critical patent/CN115484130A/en
Application granted granted Critical
Publication of CN115484130B publication Critical patent/CN115484130B/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
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Abstract

The application provides an Internet of things gateway and an air compression online storage system for the Internet of things gateway. Besides being directly connected with an air compressor or a control platform, each Internet of things gateway can be connected with upper and lower Internet of things gateways through data interfaces of the Internet of things gateways to realize networking. When networking, each Internet of things gateway can respectively buffer information frames through the internal registers, splice or check of different data segments in the information frames is realized through each register which is operated in parallel in the register group, and then the data segments in each register are mapped to a form required by an output data communication protocol in a parallel mode through the conversion module. Therefore, the application can be more efficiently compatible with different data interaction interfaces, and flexibly networking is realized through the transfer of the gateway, so that the operation efficiency and linkage cooperation capability of the whole air compression system are improved, and the safe operation of each air compressor is ensured to improve the production line efficiency of enterprises.

Description

Internet of things gateway and air compression online storage system for same
Technical Field
The application relates to the field of air compressor management systems, in particular to an Internet of things gateway and an air compressor online storage system for the Internet of things gateway.
Background
The running states of the existing air compressors are mutually independent, so that cooperative running cannot be realized, and the group effect is lacked. In the running process of the CNC machine tool system, each air compressor needs to be frequently loaded and unloaded, the pressure fluctuation range is large, the no-load running time is long, deviation occurs in the running state between equipment, and the whole running efficiency of the system is influenced due to the fact that the calibration is needed to be regularly carried out.
The large-scale air compression station suddenly stops or other conditions, equipment can be stopped, production efficiency is affected, and serious production operation safety accidents can be formed due to untimely discovery. The existing air compressor monitoring equipment is often limited by data protocol transmission, channel capacity or storage space, so that linkage control is difficult to realize.
How to improve the transmission efficiency of air compressor machine control data in order to real-time supervision each air compressor machine's running state, the operation data of each air compressor machine of collaborative management is in order to avoid, weakens accident probability is especially critical to guarantee enterprise's production safety, improves enterprise's production efficiency. Therefore, an online real-time monitoring system compatible with various types of air compression equipment is urgently needed.
Disclosure of Invention
Aiming at the defects of the prior art, the application provides the internet of things gateway and the air pressure online storage system for the internet of things gateway, and the storage strategy can be dynamically adjusted according to the communication quality of the monitoring data of the air compressor so as to meet the requirements of different interfaces on the communication efficiency and the communication quality. The application adopts the following technical scheme.
Firstly, in order to achieve the above objective, an air-pressure online storage system for an internet of things gateway is provided, which includes: a data interface for receiving an information frame; the register group is provided with a plurality of parallel running registers according to the protocol type adopted by the data interface, each register stores different data segments in an information frame according to an information frame structure set by the protocol, each register is used for determining the offset of the storage addresses of the data segments in the information frame according to the receiving sequence of the information frame, the data segments in the same information frame are stored at the addresses with the same offset, and the data segments stored at the same offset positions in each register are synchronously stored and synchronously read; and the conversion module is used for simultaneously reading the data segments stored in the same offset position in each register, converting each data segment according to the protocol type requirement corresponding to the output data, rearranging each data segment according to the protocol type of the output data, and outputting the rearranged output data.
Optionally, the air-pressure online storage system for an internet of things gateway according to any one of the above, wherein the conversion module is further provided with an offset pointer for marking an offset of a currently read data segment relative to a register head address; each register reads out the data segment stored in the corresponding position of the offset according to the same offset pointer on the basis of the first address.
Optionally, the air-pressure online storage system for an internet of things gateway according to any one of the preceding claims, wherein at least: a data register for storing data values in the information frame, and a check register for storing check values in the information frame; at least 1bit is fixedly set in the checking register as a mode mark; and each data register uniformly switches the data storage mode according to the mode mark.
Optionally, the air-pressure online storage system for an internet of things gateway according to any one of the preceding claims, wherein each of the registers stores, in the first data storage mode, a data segment of each information frame in the following manner: and in each data period, directly storing corresponding data segments in the first information frame, and then respectively storing exclusive or results of the data segments in the subsequent information frames and the data segments in the first information frame at corresponding positions of corresponding offset according to the receiving sequence of the information frames.
Optionally, the air-pressure online storage system for an internet of things gateway according to any one of the preceding claims, wherein the data register further stores the data segments of each information frame in the second data storage mode in the following manner: according to the preset data period, directly storing the data value in the first information frame in the data period, and then according to the receiving sequence of the information frames, respectively storing the difference value between the data value in each subsequent information frame and the data value in the first information frame at the corresponding position of each offset.
Optionally, the air-pressure online storage system for an internet of things gateway according to any one of the above, wherein the number of positions corresponding to the offset in each register corresponds to the number of information frames in the data period; the highest bit of the check register is fixedly set as a mode mark; the check values in the check registers are stored in order from the lower to the upper bits of the registers.
Optionally, the air-pressure online storage system for an internet of things gateway according to any one of the preceding claims, wherein when the mode flag in the check register is set to the first data storage mode, the conversion module: performing exclusive-or check on the data segments and exclusive-or results stored in each register to obtain data segments to be checked; judging whether the data segments to be checked obtained by other registers are correct according to the data segments to be checked obtained by the check registers, outputting data when the check is correct, and discarding the data in the current data period in the registers when the check is incorrect.
Optionally, the air-pressure online storage system for an internet of things gateway according to any one of the preceding claims, wherein when the mode flag in the check register is set to the second data storage mode, the conversion module: splicing the data values stored in the data register and the difference values of the data values according to the receiving sequence of the data frames to obtain combined data; performing exclusive-or check on the data segments and exclusive-or results stored in other registers to obtain data segments to be checked; judging whether the data values of the data segments to be checked and the merging data headers obtained by other registers are correct according to the data segments to be checked obtained by the check register, outputting data when the check is correct, and discarding the data in the current data period in the register when the check is incorrect.
Meanwhile, in order to achieve the above purpose, the present application further provides an internet of things gateway, which is configured to provide a data frame interactive link between air compressors and a control platform, wherein each internet of things gateway is connected to each other to form a network, and each internet of things gateway is respectively provided with the online storage system as described above, and the online storage system stores information frames of each air compressor or internet of things gateway at a lower level to be forwarded.
Optionally, the gateway of the internet of things according to any one of the above, wherein the gateways of the internet of things interact with each other by networking according to the following manner: each gateway receives and stores information frames of each data interface by utilizing each register independent of the gateway, converts the information frames of each data interface into output data through a conversion module, synchronously establishes a mapping relation between address values in each output data and the data interfaces, and uploads the output data to a gateway or a control platform at the upper stage; after receiving the command frame issued by the gateway or the control platform at the previous stage, searching the data interface with the mapping relation according to the address value in the command frame, and issuing the command frame to the corresponding data interface.
Advantageous effects
The application provides an Internet of things gateway and an air compression online storage system for the Internet of things gateway. Besides being directly connected with an air compressor or a control platform, each Internet of things gateway can be connected with upper and lower Internet of things gateways through data interfaces of the Internet of things gateways to realize networking. When networking, each Internet of things gateway can respectively buffer information frames through the internal registers, splice or check of different data segments in the information frames is realized through each register which is operated in parallel in the register group, and then the data segments in each register are mapped to a form required by an output data communication protocol in a parallel mode through the conversion module. Therefore, the application can be more efficiently compatible with different data interaction interfaces, and flexibly networking is realized through the transfer of the gateway, so that the operation efficiency and linkage cooperation capability of the whole air compression system are improved, and the safe operation of each air compressor is ensured to improve the production line efficiency of enterprises.
The application can set the mode mark by utilizing the vacant high-order space in the storage space of the error checking data segment so as to flexibly mark different compression and splicing modes of the data segment in the register and adapt to different data transmission scenes. For the scene with higher requirement on the data transmission accuracy, the application can only transmit one or a limited number of data values in a data period in a redundancy mode, and by performing exclusive or check on each data segment in the storage process and performing secondary check on the check result of each data segment by the conversion module according to the check code, illegal signal jump in the data period is determined, so that the system can only output data under the condition of ensuring the accuracy of the data, and the accuracy of the data transmission process is improved.
For the application scene with larger data transmission quantity, the application can also enable the gateway to determine the change condition of each data value in one data period corresponding to all data values of the data segment in the data frame through the mode mark, thereby obtaining the change condition of the data value in the complete data period through simple addition and subtraction operation according to the first complete data value in the data segment as a base number and filling each increment or change quantity in the subsequent bytes of the data segment in a thumbnail mode. In view of the fact that the sampling frequency of the device is relatively high in the data period, the magnitude of the increase or decrease between the sampled data is limited, so that in general, in the data segment of the output data, after the storage field of the first complete sampling value, each storage field is divided into two parts of high order and low order, and two continuous sampled data increments are respectively stored in the high order and low order. Therefore, the data segments of each data frame in the data period can be compressed to the original required word length for general transmission, the transmission bandwidth occupied by unified information such as a data source address, a target address, an energy supply code and the like in the data period is saved, and the information quantity carried by each uploaded data frame is improved, so that the method is suitable for data interaction scenes with high real-time and high-precision requirements in industrial systems such as air compressors and the like.
The application creatively puts the steps of compressing and processing the data into the interface register hardware to realize the efficient compression and the high-security verification of the interface data through a simple interface configuration program or a driver. The register set configured by the interface program or the driver program can effectively improve the throughput of the system to the data of the air compressor. In addition, the configuration mode is convenient for upgrading the existing gateway interface by directly utilizing the burning mode. Therefore, the application can be directly applied to the existing gateway, and upgrades the throughput and the data verification process of the existing gateway so as to obtain better transmission effect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate the application and together with the embodiments of the application, and do not limit the application. In the drawings:
fig. 1 is a schematic diagram of a networking manner between gateways of the internet of things according to the present application;
fig. 2 is a schematic diagram of an air-in-internet of things gateway air online storage system of the present application.
Detailed Description
In order to make the purpose and technical solutions of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present application. It will be apparent that the described embodiments are some, but not all, embodiments of the application. All other embodiments, which can be made by a person skilled in the art without creative efforts, based on the described embodiments of the present application fall within the protection scope of the present application.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The meaning of "and/or" in the present application means that each exists alone or both exist.
"connected" as used herein means either a direct connection between components or an indirect connection between components via other components.
The meaning of "up and down" in the present application refers to that when data frames or instruction frames are interacted, the transmission direction from the control platform to the air compressor is the down direction, and the transmission direction from the air compressor to the control platform is the up direction, but not the specific limitation of the device mechanism of the present application.
Fig. 1 is an internet of things gateway control platform system for an air compressor according to the present application. The system comprises:
the control platform is used for receiving and processing real-time operation data of each air compressor in the system and issuing corresponding control instructions to each air compressor in real time according to the operation condition of the system;
and the internet of things gateways are connected with each other and are used for networking, and a data frame interactive link is provided between the air compressor and the control platform so as to upload real-time operation data of the air compressor and send control instructions of the control platform to the corresponding air compressor.
According to the application, communication connection and signal interaction CAN be flexibly realized in various modes such as Bluetooth, wifi, CAN bus, RS-485 interface, modbus serial communication protocol and the like among all the Internet of things gateways, among all the Internet of things gateways and the air compressor, and among all the Internet of things gateways and the control platform. Because the structures of the data frames transmitted in the interaction process are different under different signal media and different communication protocols, in order to adapt to more transmission modes as much as possible and improve the transmission efficiency and accuracy in the data interaction process of the air compressor, the application also provides a line storage system shown in fig. 2 in each gateway of the internet of things respectively so as to realize the effective conversion of data contents between different communication protocols through a register set matched with each equipment interface in the gateway.
Specifically, each internet of things gateway of the present application may respectively set a set of devices for each device interface as follows:
the data interface is used for receiving the information frame input by the equipment interface;
the register group is provided with a plurality of parallel running registers according to the protocol type adopted by the data interface, each register stores different data segments in an information frame according to an information frame structure set by the protocol, each register is used for determining the offset of the storage addresses of the data segments in the information frame according to the receiving sequence of the information frame, the data segments in the same information frame are stored at the addresses with the same offset, and the data segments stored at the same offset positions in each register are synchronously stored and synchronously read;
and the conversion module is used for simultaneously reading the data segments stored in the same offset position in each register, converting each data segment according to the protocol type requirement corresponding to the output data, rearranging each data segment according to the protocol type of the output data, and outputting the rearranged output data.
Therefore, each gateway can realize data interaction among different equipment interfaces in the following way, so that real-time frame information in the running process of the air compressor is uploaded to the control platform through step-by-step forwarding among the gateways, and control instructions of each gateway and the air compressor by the control platform are correspondingly received, forwarded and issued.
The following describes a specific operation process of the air on-line storage system in the application by taking the operation data of the air compressor forwarded by the Modbus protocol data interface in any gateway in the system to the CAN bus of the output interface as an example, and the data forwarding process between other interfaces is similar to the above:
an independent register set is arranged in the gateway, and 4 registers are arranged in the register set according to the information frame structure of the Modbus protocol and are respectively used for independently storing an address field, a function code, a data field and a check value in the information frame of the Modbus protocol.
The data frames uploaded by the air compressor or the lower gateway are received by the equipment interface and then are cached in a storage unit of the data interface, and then address values of the data frames are respectively stored in an address register, function codes of the data frames are stored in a function code register, data values of the data frames are stored in a numerical value register and check values of the data frames are stored in a check register by the data interface according to the receiving sequence of the data frames. The above 4 registers in the register set store the corresponding data segment of the first data frame at the first address of the register when it is received, then store the corresponding data segment of the second data frame at an offset address after the first address of the register, store the corresponding data segment of the third data frame at the register at the next offset address, and so on until the register is full or the system needs to directly convert from an existing one of the data segments.
In the conversion process, the conversion module reads the data segments stored in the same offset position in the 4 registers at the same time, respectively converts the data of each data segment according to the protocol type requirement corresponding to the output data, rearranges each data segment according to the protocol type requirement of the output data, outputs rearranged output data, synchronously establishes the mapping relation between the source address value corresponding to the output data and the data interface or the equipment interface, and uploads the output data to the gateway or the control platform at the upper stage through the output interface.
Because each gateway establishes the mapping relation between the source address of the data frame and the equipment interface in the process of uploading the data frame, after each gateway receives the command frame issued by the gateway or the control platform at the upper stage, the gateway can reversely find the data interface with the mapping relation between the command frame and the address value according to the target address value in the command frame, so that the command frame is issued to the corresponding data interface, and the gateway connected with the interface can continue to issue the command frame to the corresponding gateway at the lower stage or to the equipment interface of the corresponding air compressor according to the mapping relation formed inside. Therefore, the application can realize bidirectional data interaction.
In the data interaction process, considering that different data may be stored in each cheap position of the register, in order to avoid that the conversion module erroneously combines the address value of a certain data frame to the data segment of other data frames, the data frames are mixed, and the application can uniformly configure an offset pointer with global authority for each register in the register group. The offset pointer is modified by the call control of the conversion module, and can mark the offset of the current read data segment of the conversion module relative to the first address of the register. Each register respectively determines the register address which needs to be read and written currently according to the offset marked by the offset pointer on the basis of the head address in the read and write process, so that the data segments stored in the corresponding positions of the offset are correspondingly read out, and the data of the corresponding data frames stored in the registers are respectively converted.
Considering that in the industrial bus, a redundant mode is often adopted between the data frames, and by continuously transmitting a plurality of repeated data frames, error reading caused by bit skip of the data frames due to accidental interference signals in a transmission channel is avoided. The application can obtain accurate output data by setting the following register and only converting once by using the conversion module:
and in the data period corresponding to the repeated data frames which are continuously transmitted, directly storing corresponding data segments in the first information frame in the data period in each register respectively, and then sequentially storing the consistency check result of the corresponding data segments in the information frame corresponding to the offset in the data period at the corresponding position of the corresponding offset after the first address of each register according to the receiving sequence of each information frame in the data period. The consistency check result can be simply obtained by performing exclusive or calculation on the data segment in the corresponding information frame and the same data segment in the first information frame: and when the two values are the same, the exclusive OR obtains a '0' result, and when the two values are different, the exclusive OR obtains a '1' result. Therefore, whether the same data segments in the information frames in the same data period are consistent or not can be determined through simple exclusive OR calculation, and the consistency comparison result is directly marked on the offset address of the register. And if the data segment in each subsequent information frame is consistent with the data segment in the first information frame in the data period, the interference signal influence is not considered. At this time, the output data may be obtained by the following steps of the conversion module:
respectively performing exclusive-or check on the data segments and exclusive-or results stored in each register, wherein the data layer segment of the first address of the register can be directly used as the data segment to be checked because the exclusive-or data is 0; and then judging whether the data segments to be checked obtained by other registers are correct or not according to whether the check values in the data segments to be checked obtained by the digital exclusive OR check in the check register accord with the rules agreed by the equipment interface communication protocol. Therefore, when the verification is judged to be correct, a plurality of repeated redundant data can be combined into one output data, and when the verification is judged to be incorrect, the data in the current data period in the register can be directly discarded to be used for the next data period.
And if partial data in the data segment in each subsequent information frame is inconsistent with the data segment in the first information frame in the data period, the data segment is considered to be influenced by the interference signal. At this time, the data error avoidance error data can be detected through the following steps of the conversion module to be continuously uploaded and forwarded:
performing exclusive-or check on the data segments stored in each register and the exclusive-or result respectively, wherein the exclusive-or data at partial offset positions has '1', and a check data segment different from the original data layer can be obtained through exclusive-or operation between the '1' and the data segment of the register head address; and then judging whether the data segments to be checked obtained by other registers are correct according to whether the check values in the data segments to be checked obtained by the numerical exclusive OR check in the check register accord with the rule agreed by the equipment interface communication protocol, so that the data in the current data period in the register are directly discarded when the check errors are judged, and the next data period is to be obtained.
Similarly, considering that in an industrial bus, each air compressor needs to continuously monitor its operation data, information frames in a link are continuously transmitted, adjacent information frames usually directly have the same address and correspond to the same function, only a difference exists in data values, and a large number of redundant address values and function values exist in each information frame. Therefore, the application can also carry out difference value marking on a plurality of same data frames continuously transmitted in the same batch in advance by the register through another mode, and combine and abbreviate a plurality of continuous data frames into the same output data so as to save the operation amount of the conversion module and reduce the redundant address value and the functional value of the repeated duty communication loan in the data link. The other mode can be used for splicing a plurality of data values to obtain output data by setting the following register and only performing one conversion by using the conversion module:
and in a preset data period, directly storing corresponding data segments in the first information frame in the data period in each register respectively, and then sequentially storing the difference value between the data value in the information frame corresponding to the offset in the data period and the data value in the first information frame or the previous information frame at the corresponding position of the corresponding offset after the first address of each register according to the receiving sequence of each information frame in the data period. Thereby, a change of the data value relative to the first data value or an incremental decrease between adjacent data values in successive data frames is obtained. Because the interval time is limited between the continuous data frames, the variation of the data value and the increment and decrement of the data value are limited, the variation of the data value or the increment and decrement of the data value can be spliced after the first data frame of the data period in a shortened form in the conversion module, and all frames in the same data period are combined into the same output data, so that the waste of bandwidth resources caused by the same address value and the same function code between the output data when all the subsequent frames are independently forwarded is avoided.
In this mode, the conversion module may be configured to implement splice compression of the output data layer as follows: splicing the data values stored in the data register and the difference values of the data values according to the receiving sequence of the data frames to obtain combined data; performing exclusive-or check on the data segments and exclusive-or results stored in other registers to obtain data segments to be checked; judging whether the data values of the data segments to be checked and the merging data headers obtained by other registers are correct according to the data segments to be checked obtained by the check register, outputting data when the check is correct, and discarding the data in the current data period in the register when the check is incorrect.
The system of the application can further set up and flexibly select the two modes to store data values according to the stability of data transmission of the communication link so as to realize two effects of high-precision check and high-capacity data transmission.
In order to distinguish between the two different data register storage modes, the application can also further fixedly set at least 1bit in a check register for storing check values in information frames as a mode mark. To avoid disturbing other data, the present application may set the bit as the mode flag to be the most significant bit in the check register. The check values originally needed to be stored in the check register can be gradually filled into the high positions according to the sequence from the low positions to the high positions of the register so as to avoid influencing the storage and the identification of the mode marks.
The mode mark can automatically trigger the second mode to be adjusted to the first mode after the conversion module gives up a plurality of output data due to verification errors, so that the data is prevented from being interfered to generate bit skip through redundant data value exclusive or verification; the mode flag may also automatically trigger the adjustment from the first mode to the second mode capable of compressing more data values to improve transmission efficiency after the conversion module gives up the output data several times in succession because of the check error.
In general, to avoid excessive occupation of system resources by each interface register, the total number of storage locations corresponding to the maximum offset in each register may be set to be corresponding to the number of information frames continuously transmitted in one data cycle of the system. Alternatively, the total number of storage locations corresponding to the maximum offset in each register may be set to be twice the number of information frames continuously transmitted in one data cycle of the system. Under the condition that the total number of storage positions is integral multiple, a plurality of conversion modules can be arranged to synchronously perform protocol conversion on continuous data frames in different data periods, so that the output data efficiency is effectively improved.
Each register in the register set may be configured as a FIFO memory to facilitate storage in the order in which data frames are transmitted and to facilitate reading of data in the same order.
The foregoing is a description of embodiments of the application, which are specific and detailed, but are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application.

Claims (10)

1. An air pressure online storage system for an internet of things gateway, comprising:
a data interface for receiving an information frame;
the register group is provided with a plurality of parallel running registers according to the protocol type adopted by the data interface, each register stores different data segments in an information frame according to an information frame structure set by the protocol, each register is used for determining the offset of the storage addresses of the data segments in the information frame according to the receiving sequence of the information frame, the data segments in the same information frame are stored at the addresses with the same offset, and the data segments stored at the same offset positions in each register are synchronously stored and synchronously read;
and the conversion module is used for simultaneously reading the data segments stored in the same offset position in each register, converting each data segment according to the protocol type requirement corresponding to the output data, rearranging each data segment according to the protocol type of the output data, and outputting the rearranged output data.
2. The air-pressure online storage system for the gateway of the internet of things according to claim 1, wherein the conversion module is further provided with an offset pointer for marking the offset of the currently read data segment relative to the register head address;
each register reads out the data segment stored in the corresponding position of the offset according to the same offset pointer on the basis of the first address.
3. The air-pressure online storage system for an internet of things gateway according to claim 2, wherein at least: a data register for storing data values in the information frame, and a check register for storing check values in the information frame;
at least 1bit is fixedly set in the checking register as a mode mark;
and each data register uniformly switches the data storage mode according to the mode mark.
4. A pneumatic on-line storage system for an internet of things gateway as claimed in claim 3, wherein each of said registers stores data segments of each information frame in a first data storage mode, respectively, in the following manner:
and in each data period, directly storing corresponding data segments in the first information frame, and then respectively storing exclusive or results of the data segments in the subsequent information frames and the data segments in the first information frame at corresponding positions of corresponding offset according to the receiving sequence of the information frames.
5. A pneumatic on-line storage system for an internet of things gateway as claimed in claim 3, wherein the data register further stores the data values for the data segments of the information frames in a second data storage mode as follows:
according to the preset data period, directly storing the data value in the first information frame in the data period, and then according to the receiving sequence of the information frames, respectively storing the difference value between the data value in each subsequent information frame and the data value in the first information frame at the corresponding position of each offset.
6. The air pressure online storage system for the gateway of the internet of things according to claim 5, wherein the number of positions corresponding to the offset in each register corresponds to the number of information frames in the data period;
the highest bit of the check register is fixedly set as a mode mark; the check values in the check registers are stored in order from the lower to the upper bits of the registers.
7. The air-pressure online storage system for an internet of things gateway of claim 6, wherein when the mode flag in the check register is set to the first data storage mode, the conversion module:
performing exclusive-or check on the data segments and exclusive-or results stored in each register to obtain data segments to be checked;
judging whether the data segments to be checked obtained by other registers are correct according to the data segments to be checked obtained by the check registers, outputting data when the check is correct, and discarding the data in the current data period in the registers when the check is incorrect.
8. The air-pressure online storage system for an internet of things gateway of claim 5, wherein when the mode flag in the check register is set to the second data storage mode, the conversion module:
splicing the data values stored in the data register and the difference values of the data values according to the receiving sequence of the data frames to obtain combined data;
performing exclusive-or check on the data segments and exclusive-or results stored in other registers to obtain data segments to be checked;
judging whether the data values of the data segments to be checked and the merging data headers obtained by other registers are correct according to the data segments to be checked obtained by the check register, outputting data when the check is correct, and discarding the data in the current data period in the register when the check is incorrect.
9. An internet of things gateway for providing a data frame interactive link between air compressors and a control platform, which is characterized in that the internet of things gateways are connected and networked, each internet of things gateway is respectively provided with an online storage system as claimed in any one of claims 1-8, and the online storage system stores information frames of each air compressor or internet of things gateway at the lower stage.
10. The internet of things gateway of claim 9, wherein each of the internet of things gateways is configured to interact by:
each gateway receives and stores information frames of each data interface by utilizing each register independent of the gateway, converts the information frames of each data interface into output data through a conversion module, synchronously establishes a mapping relation between address values in each output data and the data interfaces, and uploads the output data to a gateway or a control platform at the upper stage;
after receiving the command frame issued by the gateway or the control platform at the previous stage, searching the data interface with the mapping relation according to the address value in the command frame, and issuing the command frame to the corresponding data interface.
CN202211052568.9A 2022-08-31 2022-08-31 Internet of things gateway and air compression online storage system for same Active CN115484130B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211052568.9A CN115484130B (en) 2022-08-31 2022-08-31 Internet of things gateway and air compression online storage system for same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211052568.9A CN115484130B (en) 2022-08-31 2022-08-31 Internet of things gateway and air compression online storage system for same

Publications (2)

Publication Number Publication Date
CN115484130A CN115484130A (en) 2022-12-16
CN115484130B true CN115484130B (en) 2023-11-03

Family

ID=84423188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211052568.9A Active CN115484130B (en) 2022-08-31 2022-08-31 Internet of things gateway and air compression online storage system for same

Country Status (1)

Country Link
CN (1) CN115484130B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5802065A (en) * 1995-10-23 1998-09-01 Kawasaki Steel Corporation Data receiving device
US7031325B1 (en) * 2001-04-04 2006-04-18 Advanced Micro Devices, Inc. Method and apparatus for enabling a network device to operate in accordance with multiple protocols
CN107124421A (en) * 2017-05-11 2017-09-01 珠海格力电器股份有限公司 Communication means based on multi-protocols, multi-protocol gateway equipment and can storage medium
CN108306835A (en) * 2018-01-23 2018-07-20 中国航空工业集团公司洛阳电光设备研究所 A kind of the input-buffer structure and data forwarding method of Ethernet switch
CN109818790A (en) * 2019-01-25 2019-05-28 上海创景信息科技有限公司 Hardware simulates multi-path multiple types communication protocol chip system, method and medium in real time
CN110474949A (en) * 2019-06-26 2019-11-19 北京广利核系统工程有限公司 The method and apparatus for protecting system communication with nuclear power station security level under Windows environment
CN111818040A (en) * 2020-07-06 2020-10-23 统一通信(苏州)有限公司 Method for realizing communication by Internet of things transmission standard protocol
CN114222009A (en) * 2021-12-15 2022-03-22 北京工业大学 Industrial communication multi-protocol conversion system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6950876B2 (en) * 2001-03-19 2005-09-27 Lucent Technologies Inc. Multiple-protocol home location register and method of use
CN104579548B (en) * 2013-10-29 2019-09-10 南京中兴新软件有限责任公司 Transmission method and device based on management data input and output multi-source agreement
US10747538B2 (en) * 2018-12-21 2020-08-18 Intel Corporation Method and apparatus to re-configure MDIO registers on an ethernet device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5802065A (en) * 1995-10-23 1998-09-01 Kawasaki Steel Corporation Data receiving device
US7031325B1 (en) * 2001-04-04 2006-04-18 Advanced Micro Devices, Inc. Method and apparatus for enabling a network device to operate in accordance with multiple protocols
CN107124421A (en) * 2017-05-11 2017-09-01 珠海格力电器股份有限公司 Communication means based on multi-protocols, multi-protocol gateway equipment and can storage medium
CN108306835A (en) * 2018-01-23 2018-07-20 中国航空工业集团公司洛阳电光设备研究所 A kind of the input-buffer structure and data forwarding method of Ethernet switch
CN109818790A (en) * 2019-01-25 2019-05-28 上海创景信息科技有限公司 Hardware simulates multi-path multiple types communication protocol chip system, method and medium in real time
CN110474949A (en) * 2019-06-26 2019-11-19 北京广利核系统工程有限公司 The method and apparatus for protecting system communication with nuclear power station security level under Windows environment
CN111818040A (en) * 2020-07-06 2020-10-23 统一通信(苏州)有限公司 Method for realizing communication by Internet of things transmission standard protocol
CN114222009A (en) * 2021-12-15 2022-03-22 北京工业大学 Industrial communication multi-protocol conversion system

Also Published As

Publication number Publication date
CN115484130A (en) 2022-12-16

Similar Documents

Publication Publication Date Title
CN110502467B (en) Universal acquisition interface software system based on serial port modbus communication protocol
US9575920B2 (en) Method for transmitting a process map via a gateway device
CN115484131B (en) Internet of things gateway and equipment data storage system for same
EP3835898A1 (en) Artificial intelligence computing device, control method and apparatus, engineer station, and industrial automation system
KR101813066B1 (en) Scada gateway and method of conversion protocol for dnp 3.0 and iec 61850
CN109471737B (en) Software adaptation method and device for high-speed magnetic levitation operation control system semi-physical simulation
US10574727B2 (en) MIB data broadcast using inexpensive method incorporating microcontroller and FPGA
KR20040028917A (en) Communication controller and method of transforming information
CN115484130B (en) Internet of things gateway and air compression online storage system for same
CN107018151B (en) CAN-LonWorks protocol conversion method of programmable conversion logic
CN109164793A (en) A kind of method that real-time reading becomes decoding chip data with monitoring rotation
CN113722340A (en) Processing method and system for remote automatic point table updating based on power distribution device
CN113259273A (en) Switch control method, switch, computer device, and storage medium
US20210067613A1 (en) Data transmission method for creating data structure facilitating data transmission and reception
KR101425699B1 (en) Remote Communication Method for Digital Protective Relay
EP2091211A1 (en) Method for generic conversion between server data and client data
CN116074397A (en) Data sharing system
US20110252169A1 (en) Method for Data Exchange
CN114500158A (en) Computer resolvable Modbus-RTU universal standardized configuration method
CN112822290A (en) Train network communication device, system and method
CN112383640A (en) Nuclear power operation monitoring data real-time reporting communication system
CN110505222B (en) Protocol conversion method for special calibration device for power equipment
CN107247678B (en) Programming method of CAN-LonWorks protocol conversion logic
CN115801881A (en) Reusable man-machine data interface representation method
KR900001694B1 (en) Data transfer system

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