CN115484130A - 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
CN115484130A
CN115484130A CN202211052568.9A CN202211052568A CN115484130A CN 115484130 A CN115484130 A CN 115484130A CN 202211052568 A CN202211052568 A CN 202211052568A CN 115484130 A CN115484130 A CN 115484130A
Authority
CN
China
Prior art keywords
data
register
internet
gateway
information frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211052568.9A
Other languages
Chinese (zh)
Other versions
CN115484130B (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

Images

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]

Landscapes

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

Abstract

The application provides an internet of things gateway and an air compression online storage system for the internet of things gateway. Each internet of things gateway can be connected with upper and lower internet of things gateways through a data interface of the internet of things gateway to realize networking besides being directly connected with an air compressor or a control platform. When networking, each internet of things gateway can respectively cache information frames through a register group in the internet of things gateway, splicing or checking different data sections in the information frames is realized through registers running in parallel in the register group, and then the data sections in the registers are simultaneously mapped to a form required by an output data communication protocol in a parallel mode through a conversion module. Therefore, the system 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 the linkage cooperation capacity of the whole air compressor 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 compression online storage system for the same.
Background
The running states of the existing air compressors are mutually independent, so that the cooperative running cannot be realized, and the colony effect is lacked. Each air compressor needs frequent loading and unloading in the operation process of the CNC machine tool system, the pressure fluctuation range is large, the no-load operation time is long, the operation state between the devices is deviated, the checking and the adjustment are required to be carried out regularly, and the overall operation efficiency of the system is influenced.
The sudden shutdown or other conditions of the large-scale air compression station not only can cause the shutdown of equipment and influence the production efficiency, but also can form a great production operation safety accident because of not finding in time. The existing air compressor monitoring equipment is often limited by data protocol transmission, channel capacity or storage space, and linkage control is difficult to realize.
How to promote the transmission efficiency of air compressor machine control data with the running state of each air compressor machine of real-time supervision, the running data of each air compressor machine is managed in coordination in order to evade, weaken the accident probability and to the production safety of guarantee enterprise, and it is especially crucial to improve enterprise production efficiency. Therefore, an online real-time monitoring system compatible with various types of air compression equipment is urgently needed.
Disclosure of Invention
The internet of things gateway and the air compression online storage system used for the internet of things gateway are provided for overcoming the defects in the prior art, and the requirements for communication efficiency and communication quality between different interfaces can be taken into consideration by dynamically adjusting the storage strategy according to the communication quality of air compressor monitoring data. The technical scheme is specifically adopted in the application.
First, in order to achieve the above object, an air compression 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 registers which run in parallel according to the type of a protocol adopted by the data interface, each register stores different data segments in the information frame according to an information frame structure set by the protocol, each register is set to determine the offset of the storage address of the data segment in the information frame according to the receiving sequence of the information frame, the data segments in the same information frame are stored on the addresses with the same offset, and the data segments stored at the same offset position in each register are set to be synchronously stored and read; and the conversion module is used for simultaneously reading the data segments stored in the same offset positions in the registers, converting the data segments according to the protocol type requirement corresponding to the output data, rearranging the data segments according to the protocol type of the output data, and outputting the output data obtained by rearrangement.
Optionally, the air compression online storage system for the internet of things gateway as described in any of the above, wherein the conversion module is further provided with an offset pointer for marking an offset of a currently read data segment with respect to a first address of a register; and each register reads the data segment stored at the corresponding position of the offset according to the same offset pointer on the basis of the first address of the register.
Optionally, the air compression online storage system for the internet of things gateway as described in any one of the above, wherein the register set at least includes: 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 arranged in the inspection register to be used as a mode mark; and all the data registers are switched to the data storage modes according to the mode marks.
Optionally, in the air compression online storage system for an internet of things gateway as described in any of the above, each register stores a data segment of each information frame in the following manner in the first data storage mode: in each data period, directly storing the corresponding data segment in the first information frame, and then respectively storing the exclusive or result of the data segment in each subsequent information frame and the data segment in the first information frame at the corresponding position of the corresponding offset according to the receiving sequence of the information frames.
Optionally, the air compression online storage system for an internet of things gateway as described in any of the above, wherein the data register further stores the data segment of each information frame in the following manner in the second data storage mode: according to a preset data period, directly storing the data value in the first information frame in the data period, and then 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 according to the receiving sequence of the information frames.
Optionally, in any one of the above air compression online storage systems for an internet of things gateway, the number of positions corresponding to the offset in each register is correspondingly consistent with the number of information frames in a data cycle; the highest bit of the test register is fixedly set as a mode mark; the check value in the check register is stored in the order from the lower bit to the upper bit of the register.
Optionally, the air compression online storage system for an internet of things gateway as described in any of the above, wherein when the mode flag in the check register is set to the first data storage mode, the conversion module: respectively carrying out XOR (exclusive OR) verification on the data segments and the XOR results stored in the registers to obtain data segments to be verified; and judging whether the data segments to be verified obtained by other registers are correct or not according to the data segments to be verified obtained by the verification register, outputting data when the verification is correct, and discarding the data in the current data period in the register when the verification is wrong.
Optionally, the air compression online storage system for an internet of things gateway as described in any of the above, 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 merged data; respectively carrying out XOR (exclusive OR) verification on the data segments and the XOR results stored in other registers to obtain data segments to be verified; and judging whether the data values of the data segments to be verified and the merged data header obtained by other registers are correct or not according to the data segments to be verified obtained by the verification register, outputting data when the verification is correct, and discarding the data in the current data period in the register when the verification is wrong.
Meanwhile, in order to achieve the above purpose, the present application further provides an internet of things gateway for providing a data frame interaction link between an air compressor and a control platform, wherein, the internet of things gateways are interconnected and networked, each of the internet of things gateways is provided with the online storage system as described above, and the online storage system stores information frames for forwarding each air compressor of a lower level or the internet of things gateway.
Optionally, the internet of things gateway described in any of the above includes: each gateway receives and stores the information frame of each data interface by using a register group which is independent of each other in the gateway, converts the information frame of each data interface into output data by a conversion module, synchronously establishes a mapping relation between an address value and the data interface in each output data, and uploads the output data to a superior gateway or a control platform; after receiving the instruction frame issued by the upper-level gateway or the control platform, searching the data interface having the mapping relation with the instruction frame according to the address value in the instruction frame, and issuing the instruction 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. Each internet of things gateway can be connected with upper and lower internet of things gateways through a data interface of the internet of things gateway to realize networking besides being directly connected with an air compressor or a control platform. When networking, each internet of things gateway can respectively cache information frames through a register group in the internet of things gateway, splicing or checking different data sections in the information frames is realized through registers running in parallel in the register group, and then the data sections in the registers are simultaneously mapped to a form required by an output data communication protocol in a parallel mode through a conversion module. Therefore, the system 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 the linkage cooperation capacity of the whole air compressor system are improved, and the safe operation of each air compressor is ensured to improve the production line efficiency of enterprises.
According to the method and the device, the mode mark can be set by utilizing the vacant high-order space in the storage space of the error check data segment, so that different compression and splicing modes of the data segment in the register can be flexibly marked, and different data transmission scenes can be adapted. For a scene with higher requirement on data transmission accuracy, only one or a limited number of data values can be transmitted in a data period in a redundancy mode, and illegal signal jump in the data period is determined by performing XOR check on each data segment in the storage process and performing secondary check on the check result of each data segment by a conversion module according to a check code, so that the system is prompted to output data only under the condition that the data can be ensured to be accurate, and the accuracy of the data transmission process is improved.
For an application scenario with a larger data transmission amount, the method and the system can also enable the gateway to determine that all data values of the data segment in the data frame correspond to the change condition of each data value in one data period through the mode mark, so that the change condition of each increment or change amount filled into subsequent bytes of the data segment in a subsequent contraction mode is obtained through simple addition and subtraction operation according to the first complete data value in the data segment as a base number. In consideration of the fact that the sampling frequency of the device is high in a data period and the increase and decrease of the value between sampling data is limited, generally, in a data segment of output data, after a storage field of a first complete sampling value, each storage field is divided into two parts, namely a high-order part and a low-order part, and two continuous sampling data increments are respectively stored in the two parts, namely the high-order part and the low-order part. Therefore, the data section 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 data source addresses, target addresses and energy supply codes in the data period is saved, and meanwhile, the information amount carried by each uploaded data frame is increased, so that the method is suitable for data interaction scenes with high real-time performance and high precision requirements in industrial systems such as air compressors.
The method and the device have the advantages that the compression and processing steps of the data are innovatively realized in interface register hardware, and the efficient compression and high-safety verification and verification of the interface data can be realized through a simple interface configuration program or a driving program. The register set configured by an interface program or a driving program can effectively improve the throughput of the system to the air compressor data. Moreover, the configuration mode is convenient for upgrading the existing gateway interface by directly utilizing a burning mode. Therefore, the method and the device can be directly applied to the existing gateway, and the throughput and the data verification process of the existing gateway are upgraded to obtain a 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 the 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 embodiments of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram of a networking manner between gateways of the internet of things of the present application;
fig. 2 is a schematic diagram of an internet of things gateway air pressure 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 clearer, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings of the embodiments of the present application. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the application without inventive effort, are within the scope of protection of the 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" as used herein is intended to include both the individual components or both.
The term "connected" as used herein may mean 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 means that when data frames or instruction frames are interacted, the direction from the control platform to the air compressor is down, and the direction from the air compressor to the control platform is up, rather than the specific limitation on 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 mutually connected and networked and are used for providing a data frame interaction link between the air compressor and the control platform so as to upload real-time operation data of the air compressor and issue a control instruction of the control platform to the corresponding air compressor.
According to the application, communication connection and signal interaction CAN be flexibly realized between the gateways of the Internet of things, between the gateways of the Internet of things and the air compressor, and between the gateways of the Internet of things and the control platform through various modes such as Bluetooth, wifi, CAN bus, RS-485 interface, modbus serial communication protocol and the like. 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 the accuracy in the data interaction process of the air compressor, the line storage system shown in fig. 2 is further respectively arranged in each internet of things gateway, so that the effective conversion of the data content between different communication protocols is realized through the register groups matched with each equipment interface in the gateway.
Specifically, each internet of things gateway of the present application may be provided with the following set of devices for each device interface thereof:
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 operating registers according to the protocol type adopted by the data interface, each register stores different data segments in the information frame according to the information frame structure set by the protocol, each register is set to determine the offset of the storage address of the data segment in the information frame according to the receiving sequence of the information frame, the data segments in the same information frame are stored in the addresses with the same offset, and the data segments stored in the same offset position 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 positions in the registers, converting the data segments according to the protocol type requirement corresponding to the output data, rearranging the data segments according to the protocol type of the output data, and outputting the output data obtained by rearrangement.
Therefore, each gateway can realize data interaction among different equipment interfaces in the following mode respectively, 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 the control platform to each gateway and the air compressor are correspondingly received, forwarded and issued.
The following description will be given by taking an example of forwarding the operation data of the air compressor to the CAN bus of the output interface by the Modbus protocol data interface in any gateway in the system, where the specific operation process of the air compression online storage system in the present application is similar to the data forwarding process between other interfaces:
an independent register group is arranged in the gateway, and 4 registers are arranged in the register group according to the information frame structure of the Modbus protocol and are respectively used for independently storing the address segment, the function code, the data segment and the check value in the information frame of the Modbus protocol.
The data frames uploaded by the air compressor or the lower-level gateway are received by the equipment interface and then are firstly cached in the storage unit of the data interface, and then the address value of each data frame is respectively stored in the address register, the function code of the data frame is stored in the function code register, the data value of the data frame is stored in the numerical value register, and the check value of the data frame is stored in the check register by the data interface according to the receiving sequence of each data frame. When the 4 registers in the register group receive the corresponding data segment of the first data frame, the data segment is stored at the first address of the register, then the corresponding data segment of the second data frame is stored at an offset address after the first address of the register, the corresponding data segment of the third data frame is stored at the next offset address of the register, and so on until the register is full or the system needs to directly convert according to the existing data segments.
In the conversion process, the conversion module simultaneously reads the data segments stored in the 4 registers at the same offset position, 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 the 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 upper-level gateway or the control platform 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 instruction frame issued by the gateway or the control platform of the previous stage, the gateway can reversely search the data interface having the mapping relation with the address value according to the target address value in the instruction frame, thereby issuing the instruction frame to the corresponding data interface, and the gateway connected with the interface can further issue the instruction frame to the corresponding gateway of the next stage or to the equipment interface of the corresponding air compressor according to the internally formed mapping relation. Therefore, bidirectional data interaction can be achieved.
In the data interaction process, considering that different data may be stored in each cheap position of the register, in order to avoid the situation that the address value of a certain data frame is mistakenly combined to the data segments of other data frames by the conversion module and the mixing of the data frames occurs, the offset pointers with the global authority can be uniformly configured for each register in the register group. The offset pointer is called by the conversion module to be controlled and modified, and can mark the offset of the data segment currently read by the conversion module relative to the first address of the register. In the process of reading and writing, each register respectively determines the address of the register which needs to be read and written at present according to the offset marked by the offset pointer on the basis of the first address of the register, so that the data segment stored at the corresponding position of the offset is correspondingly read out, and the data of the corresponding data frame stored in the register is respectively converted.
In consideration of the fact that a redundancy mode is often adopted among data frames in an industrial bus, a plurality of repeated data frames are continuously sent to avoid misreading caused by data frame bit skipping due to accidental interference signals in a transmission channel, and the register can be further used for conducting consistency check on a plurality of same data frames which are continuously sent in the same batch in advance to save the operation amount of the conversion module. This application accessible only utilizes the conversion module to carry out once conversion and can obtain accurate output data to following setting to the register:
in the data period corresponding to the repeated data frames which are continuously sent, corresponding data segments in the first information frame in the data period are directly and respectively stored in each register, and then, according to the receiving sequence of each information frame in the data period, the consistency checking results of the corresponding data segments in the information frames corresponding to the offset in the data period are sequentially stored at the corresponding positions of the corresponding offsets behind the initial addresses of the registers. The consistency check result can be obtained simply by performing xor calculation on the data segment in the corresponding information frame and the same data segment in the first information frame: an exclusive-or obtains a "0" result when the two values are the same, and an exclusive-or obtains a "1" result when the two values are different. Therefore, whether the same data segments in the information frames in the same data period are consistent or not can be determined through simple XOR calculation, and the result of consistency comparison 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 influence of the interference-free signal is considered. At this time, the output data may be obtained by the following steps of the conversion module:
respectively carrying out XOR (exclusive OR) verification on the data segments and the XOR results stored in the registers, wherein at the moment, because the XOR data are all '0', the data segment section of the first address of the register can be directly used as the data segment to be verified; and then further judging whether the data segments to be verified obtained by other registers are correct or not according to whether the check values in the data segments to be verified obtained by the XOR check of the values in the check register meet the rules agreed by the equipment interface communication protocol or not. Therefore, when the check is judged to be correct, a plurality of repeated redundant data can be combined into one output data, and when the check is judged to be wrong, the data in the current data period in the register can be directly discarded to wait 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, determining that the partial data is influenced by the interference signal. At this time, the data error can be detected by the following steps of the conversion module to avoid the error data from being uploaded and forwarded:
respectively carrying out XOR (exclusive OR) verification on the data segments and the XOR results stored in the registers, wherein the XOR data at partial offset positions has '1', and the verification data segments different from the original data layer can be obtained through the XOR operation between the '1' and the data segment of the initial address of the register; and then further judging whether the data segments to be verified obtained by other registers are correct according to whether the verification values in the data segments to be verified obtained by the numerical value XOR verification in the verification register accord with the rule agreed by the equipment interface communication protocol, so that the data in the current data period in the register is directly discarded when the verification error is judged to wait for the next data period.
Similarly, considering that each air compressor needs to continuously monitor the operation data in the industrial bus, information frames in a link are continuously sent, adjacent information frames usually have the same address and the same function, only the data values are different, 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 sent in the same batch in advance through another mode that the register combines and abbreviations the plurality of continuous data frames into the same output data so as to save the calculation 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 only utilizing the conversion module to carry out one-time conversion through the following settings of the register:
in a preset data period, directly and respectively storing corresponding data segments in a first information frame in the data period in each register, 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 offset position after the first address of each register according to the receiving sequence of each information frame in the data period. Therefore, the change situation of the data value relative to the first data value in the continuous data frames or the increasing and decreasing situation between the adjacent data values is obtained. Because the interval time between the continuous data frames is limited, and the change amount of the data value and the incremental decrement of the data value are also limited, the change amount of the data value or the incremental decrement of the data value can be spliced in a data cycle after the first data frame in the data cycle in a form of abbreviation in a conversion module, so that the frames in the same data cycle are merged into the same output data, and the waste of bandwidth resources caused by the same address value and the same function code among the output data when the subsequent frames are independently forwarded is avoided.
In this mode, the conversion module may be configured to implement concatenation compression on 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 merged data; respectively carrying out XOR (exclusive OR) verification on the data segments and the XOR results stored in other registers to obtain data segments to be verified; and judging whether the data values of the data segments to be verified and the merged data header obtained by other registers are correct or not according to the data segments to be verified obtained by the verification register, outputting data when the verification is correct, and discarding the data in the current data period in the register when the verification is wrong.
The system can further set that the two modes are flexibly selected to store the data value according to the stability of data transmission of the communication link so as to realize two effects of high-precision verification and high-capacity data transmission.
In order to distinguish the two different data register storage modes, at least 1bit can be further fixedly set in a check register for storing the check value in the information frame to serve as a mode mark. To avoid interference with other data, the bit that is the pattern flag may be fixed at the highest bit in the check register. The check value which is originally required to be stored in the check register can be gradually filled to the high bit according to the sequence from the low bit to the high bit of the register, so that the storage and the identification of the mode mark are prevented from being influenced.
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 check errors, so as to avoid bit skipping caused by data interference through redundant data value exclusive OR check; the mode mark can also automatically trigger the second mode which is adjusted from the first mode to be capable of compressing more data values and improving the transmission efficiency after the conversion module does not give up output data for checking errors for a plurality of times continuously.
Generally, in order to avoid that each interface register excessively occupies system resources, the total number of storage locations corresponding to the maximum offset in each register may be set to be correspondingly consistent with the number of information frames continuously sent in one data period of the system. Alternatively, the total number of storage locations corresponding to the maximum offset in each register may be set to be integral times of the number of information frames continuously transmitted in one data cycle of the system. Under the condition that the total number of the storage positions is doubled, a plurality of conversion modules can be arranged to synchronously carry out protocol conversion on continuous data frames in different data periods so as to effectively improve the efficiency of data output.
The registers in the register bank may be arranged as FIFO memories to facilitate storage in the order in which the data frames are transmitted and to facilitate reading of the data in the same order.
The above description is only an embodiment of the present application, and the description is specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the protection scope of the present application.

Claims (10)

1. An air compression 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 registers which run in parallel according to the type of a protocol adopted by the data interface, each register stores different data segments in the information frame according to an information frame structure set by the protocol, each register is set to determine the offset of the storage address of the data segment in the information frame according to the receiving sequence of the information frame, the data segments in the same information frame are stored on the addresses with the same offset, and the data segments stored at the same offset position in each register are set to be synchronously stored and read;
and the conversion module is used for simultaneously reading the data segments stored in the same offset positions in the registers, converting the data segments according to the protocol type requirement corresponding to the output data, rearranging the data segments according to the protocol type of the output data, and outputting the output data obtained by rearrangement.
2. The air compression online storage system for the gateway of the internet of things as claimed in claim 1, wherein the conversion module is further provided with an offset pointer for marking an offset of a currently read data segment with respect to a first address of a register;
and each register reads the data segment stored at the corresponding position of the offset according to the same offset pointer on the basis of the first address of the register.
3. The air compression online storage system for the gateway of the internet of things as claimed in 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 arranged in the inspection register to be used as a mode mark;
and all the data registers are switched to the data storage modes according to the mode marks.
4. The air compression online storage system for the internet of things gateway as claimed in claim 3, wherein each register stores the data segment of each information frame in the first data storage mode as follows:
in each data period, directly storing the corresponding data segment in the first information frame, and then respectively storing the exclusive or result of the data segment in each subsequent information frame and the data segment in the first information frame at the corresponding position of the corresponding offset according to the receiving sequence of the information frames.
5. The air compression online storage system for the gateway of the internet of things according to claim 3, wherein the data register further stores the data segment of each information frame in a second data storage mode as follows:
according to a preset data period, directly storing the data value in the first information frame in the data period, and then 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 according to the receiving sequence of the information frames.
6. The air compression online storage system for the gateway of the internet of things as claimed in claims 3-6, wherein the number of positions corresponding to the offset in each register is correspondingly consistent with the number of information frames in the data period;
the highest bit of the test register is fixedly set as a mode mark; the check value in the check register is stored in the order from the lower bit to the upper bit of the register.
7. The air compression online storage system for the internet of things gateway as recited in claims 3-6, wherein when the mode flag in the check register is set to the first data storage mode, the conversion module:
respectively carrying out XOR (exclusive OR) verification on the data segments and the XOR results stored in the registers to obtain data segments to be verified;
and judging whether the data segments to be verified obtained by other registers are correct or not according to the data segments to be verified obtained by the verification register, outputting data when the verification is correct, and discarding the data in the current data period in the register when the verification is wrong.
8. The air compression online storage system for the internet of things gateway as recited in claim 5, wherein when the mode flag is set to the second data storage mode in the check register, 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 merged data;
respectively carrying out XOR (exclusive OR) verification on the data segments and the XOR results stored in other registers to obtain data segments to be verified;
and judging whether the data values of the data segments to be verified and the merged data header obtained by other registers are correct or not according to the data segments to be verified obtained by the verification register, outputting data when the verification is correct, and discarding the data in the current data period in the register when the verification is wrong.
9. An internet of things gateway, which is used for providing a data frame interactive link between an air compressor and a control platform, and is characterized in that the internet of things gateways are interconnected and networked, an online storage system as claimed in any one of claims 1 to 8 is arranged in each internet of things gateway, and the online storage system stores information frames for forwarding each air compressor or each internet of things gateway in the next stage.
10. The internet of things gateway of claim 9, wherein networking interaction between the internet of things gateways is as follows:
each gateway receives and stores the information frame of each data interface by using the register groups which are independent from each other in the gateway, converts the information frame of each data interface into output data by a conversion module, synchronously establishes the mapping relation between the address value and the data interface in each output data, and uploads the output data to the upper-level gateway or the control platform;
after receiving the instruction frame issued by the upper-level gateway or the control platform, searching the data interface having the mapping relation with the instruction frame according to the address value in the instruction frame, and issuing the instruction 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 true CN115484130A (en) 2022-12-16
CN115484130B 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 (11)

* 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
US20020169883A1 (en) * 2001-03-19 2002-11-14 Bright Penny Lynne Multiple-protocol home location register and method of use
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
US20160277151A1 (en) * 2013-10-29 2016-09-22 Zte Corporation Transmission method and device based on management data input/output multi-source agreements
CN107124421A (en) * 2017-05-11 2017-09-01 珠海格力电器股份有限公司 Multi-protocol-based communication method, multi-protocol gateway device and 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
US20200201637A1 (en) * 2018-12-21 2020-06-25 Intel Corporation Method and apparatus to re-configure mdio registers on an ethernet device
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

Patent Citations (11)

* 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
US20020169883A1 (en) * 2001-03-19 2002-11-14 Bright Penny Lynne Multiple-protocol home location register and method of use
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
US20160277151A1 (en) * 2013-10-29 2016-09-22 Zte Corporation Transmission method and device based on management data input/output multi-source agreements
CN107124421A (en) * 2017-05-11 2017-09-01 珠海格力电器股份有限公司 Multi-protocol-based communication method, multi-protocol gateway device and storage medium
CN108306835A (en) * 2018-01-23 2018-07-20 中国航空工业集团公司洛阳电光设备研究所 A kind of the input-buffer structure and data forwarding method of Ethernet switch
US20200201637A1 (en) * 2018-12-21 2020-06-25 Intel Corporation Method and apparatus to re-configure mdio registers on an ethernet device
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
CN115484130B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
JP2023525393A (en) Method and apparatus for updating gateway resources and IOT control platform
CN115484131B (en) Internet of things gateway and equipment data storage system for same
CN109858621B (en) Debugging device and method of convolutional neural network accelerator and storage medium
EP3835898A1 (en) Artificial intelligence computing device, control method and apparatus, engineer station, and industrial automation system
US10574727B2 (en) MIB data broadcast using inexpensive method incorporating microcontroller and FPGA
RU2683688C2 (en) Methods for encoding and decoding frames in telecommunication network
CN114205427A (en) Method, device and storage medium for protocol docking debugging
KR20040028917A (en) Communication controller and method of transforming information
CN113259273B (en) Switch control method, switch, computer device, and storage medium
CN101488369A (en) Interface circuit for BCH code controller
CN115484130A (en) Internet of things gateway and air compression online storage system for same
CN103714060A (en) Interrupt-period historical data processing method and front-end collecting sub system equipment
CN109521954B (en) Distribution network FTU fixed point file management method and device
CN117033855A (en) Filter mask generation method, device, electronic equipment and storage medium
CN107517094B (en) FPGA-based S-mode secondary radar information server and working method thereof
US20070171737A1 (en) Semiconductor storage device
CN105511815B (en) A kind of PLC based on segment table can operating file storing and resolving method and storage system
CN212391726U (en) Distributed controller database downloading structure based on double buffer areas
CN102568605A (en) System bus error detection and error correction method and NAND FLASH controller
CN112822290A (en) Train network communication device, system and method
CN113900425B (en) Method and system for reading and analyzing fault information of controller
CN111988310B (en) IEC61850 protocol-based data acquisition method and device
CN113127063B (en) Operation circuit and control method
CN112087513B (en) Linkage management method of edge equipment
CN115242826B (en) Nuclear power plant data real-time transmission and storage method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant