CN118713799A - Telemetry communication multi-cascade network collection and editing frame method and system - Google Patents
Telemetry communication multi-cascade network collection and editing frame method and system Download PDFInfo
- Publication number
- CN118713799A CN118713799A CN202411186514.0A CN202411186514A CN118713799A CN 118713799 A CN118713799 A CN 118713799A CN 202411186514 A CN202411186514 A CN 202411186514A CN 118713799 A CN118713799 A CN 118713799A
- Authority
- CN
- China
- Prior art keywords
- network
- collector
- mapping table
- data
- converter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000004891 communication Methods 0.000 title claims abstract description 47
- 238000013507 mapping Methods 0.000 claims abstract description 258
- 238000009432 framing Methods 0.000 claims abstract description 99
- 230000005540 biological transmission Effects 0.000 claims abstract description 28
- 239000000872 buffer Substances 0.000 claims description 143
- 238000005070 sampling Methods 0.000 claims description 30
- 238000012544 monitoring process Methods 0.000 abstract description 4
- 238000013506 data mapping Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003111 delayed effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 102220491290 Annexin A1_S34A_mutation Human genes 0.000 description 1
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 230000003750 conditioning effect Effects 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 102220064657 rs786205565 Human genes 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0076—Distributed coding, e.g. network coding, involving channel coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/06—Notations 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)
- Small-Scale Networks (AREA)
Abstract
本发明提供一种遥测通信多级联网络采编编帧方法、系统,根据一级环网和二级环网中各个网络设备的MAC地址对各个网络设备节点分别分配节点号,并通过预设的上位机基于节点号按照预设的非电量遥测参数来源编制PCM映射表,使一级环网、二级环网中的主站分别根据PCM映射表接收各自从站中的遥测数据,以使网络综合器动态接收全部遥测数据,将遥测数据与所述PCM映射表相对应以完成多级联网络编帧,如此,整个编帧过程统一、通用,可以适用于工业和航空航天领域中任意需要进行实时监测参数的环网,能够实现通用化、系列化和产品化,并且在整个编帧过程中每次传输的数据都是有效数据,大大节约网络带宽资源,提高网络传输效率。
The present invention provides a telemetry communication multi-cascade network collection and editing framing method and system, which respectively allocates node numbers to each network device node according to the MAC address of each network device in the primary ring network and the secondary ring network, and compiles a PCM mapping table based on the node number according to the preset non-electrical telemetry parameter source through a preset upper computer, so that the master stations in the primary ring network and the secondary ring network respectively receive the telemetry data in their respective slave stations according to the PCM mapping table, so that the network integrator dynamically receives all the telemetry data, and the telemetry data is matched with the PCM mapping table to complete the multi-cascade network framing. In this way, the entire framing process is unified and universal, and can be applied to any ring network in the industrial and aerospace fields that requires real-time parameter monitoring, and can achieve universalization, serialization and productization, and the data transmitted each time in the entire framing process is valid data, which greatly saves network bandwidth resources and improves network transmission efficiency.
Description
技术领域Technical Field
本发明涉及遥测通信技术领域,涉及一种航空航天中遥测数据的编帧算法,更为具体地,涉及一种遥测通信多级联网络采编编帧方法、系统。The present invention relates to the field of telemetry communication technology, and more specifically to a telemetry data framing algorithm in aerospace, and more specifically to a telemetry communication multi-cascade network acquisition and framing method and system.
背景技术Background Art
针对当前工业和航空航天领域,越来越多的大型飞行器需要在飞行过程中实时监测飞行参数,单个采编器很难满足多舱段、多参数采集任务需求,在一个大型飞行器内部,由于多个舱段的划分,往往需要多个单机经过多级组网,形成一个完整多级联采集系统,但在当前阶段很多采编器的研制只是针对某个特定型号和特定功能来设计系统编帧结构,很难实现通用化、系列化和产品化。In view of the current industrial and aerospace fields, more and more large aircraft need to monitor flight parameters in real time during flight. It is difficult for a single data collector to meet the needs of multi-cabin and multi-parameter collection tasks. Inside a large aircraft, due to the division of multiple cabins, multiple single machines are often required to be networked at multiple levels to form a complete multi-cascade collection system. However, at the current stage, the development of many data collectors is only designed for a specific model and specific function to design the system framing structure, which makes it difficult to achieve generalization, serialization and productization.
因此,亟需一种通用化可配置的编帧算法,一种能够通用,且可以随时灵活调整、配置的遥测通信多级联网络采编编帧方法、系统。Therefore, there is an urgent need for a universal and configurable framing algorithm, a telemetry communication multi-cascade network framing method and system that can be universally used and flexibly adjusted and configured at any time.
发明内容Summary of the invention
鉴于上述问题,本发明的目的是提供一种遥测通信多级联网络采编编帧方法、系统,以解决当前阶段很多采编器的研制只是针对某个特定型号和特定功能来设计系统编帧结构,很难实现通用化、系列化和产品化的问题。In view of the above problems, the purpose of the present invention is to provide a telemetry communication multi-cascade network acquisition and editing framing method and system to solve the problem that at the current stage, many acquisition and editing devices are developed only to design the system framing structure for a specific model and specific function, which makes it difficult to achieve generalization, serialization and productization.
本发明提供的一种遥测通信多级联网络采编编帧方法,其中,包括:The present invention provides a telemetry communication multi-cascade network collection and editing framing method, which includes:
将遥测通信中网络采集器与网络变换器之间的网络传输设备环网作为一级环网,将网络综合器和所述网络采集器之间的网络传输设备环网作为二级环网;其中,所述网络采集器为所述一级环网的主站,所述网络变换器为所述一级环网的从站;所述网络采集器同时为所述二级环网的从站,所述网络综合器为所述二级环网的主站;The network transmission equipment ring network between the network collector and the network converter in the telemetry communication is regarded as the primary ring network, and the network transmission equipment ring network between the network integrator and the network collector is regarded as the secondary ring network; wherein the network collector is the master station of the primary ring network, and the network converter is the slave station of the primary ring network; the network collector is also the slave station of the secondary ring network, and the network integrator is the master station of the secondary ring network;
根据所述一级环网和所述二级环网中各个网络设备的MAC地址对各个网络设备节点分别分配节点号;According to the MAC address of each network device in the primary ring network and the secondary ring network, a node number is respectively assigned to each network device node;
通过预设的上位机基于所述节点号按照预设的非电量遥测参数来源编制PCM映射表,使所述一级环网、所述二级环网中的主站分别根据所述PCM映射表接收各自从站中的遥测数据,以使所述网络综合器动态接收全部遥测数据,并将所述遥测数据与所述PCM映射表相对应以完成多级联网络编帧。A PCM mapping table is compiled by a preset host computer based on the node number according to a preset non-electrical telemetry parameter source, so that the master stations in the primary ring network and the secondary ring network receive the telemetry data in their respective slave stations according to the PCM mapping table, so that the network integrator dynamically receives all telemetry data, and the telemetry data is matched with the PCM mapping table to complete the multi-cascade network framing.
优选地,通过预设的上位机基于所述节点号按照预设的非电量遥测参数来源编制PCM映射表,使所述一级环网、所述二级环网中的主站分别根据所述PCM映射表接收各自从站中的遥测数据,以使所述网络综合器动态接收全部遥测数据,并将所述遥测数据与所述PCM映射表相对应以完成多级联网络编帧的过程包括:使所述上位机:Preferably, the process of compiling a PCM mapping table based on the node number according to a preset non-electric telemetry parameter source by a preset host computer so that the master stations in the primary ring network and the secondary ring network receive the telemetry data in their respective slave stations according to the PCM mapping table respectively, so that the network integrator dynamically receives all telemetry data, and corresponds the telemetry data to the PCM mapping table to complete the multi-cascade network framing includes: enabling the host computer to:
以P(i,j,k)表示所述非电量遥测参数来源;其中,i表示所述非电量遥测参数由所述一级环网中节点为i的采集器进行采集;j表示所述非电量遥测参数由节点号为i的采集器所对应的二级环网中的节点号为j的变换器进行采集;k表示所述非电量遥测参数由节点号为j的变换器的第k个采集通道;P (i, j, k) represents the source of the non-electrical telemetry parameter; wherein i represents that the non-electrical telemetry parameter is collected by the collector with node i in the primary ring network; j represents that the non-electrical telemetry parameter is collected by the converter with node j in the secondary ring network corresponding to the collector with node i; k represents that the non-electrical telemetry parameter is collected by the kth channel of the converter with node j;
对所有的非电量遥测参数来源进行汇总制表以形成PCM映射表;All non-electric telemetry parameter sources are summarized and tabulated to form a PCM mapping table;
参照所述PCM映射表按照不同类别划分形成通道号全帧映射表、变换器全帧映射表和采集器全帧映射表;Referring to the PCM mapping table, forming a channel number full-frame mapping table, a converter full-frame mapping table and a collector full-frame mapping table according to different categories;
将所述通道号全帧映射表发送至所述网络变换器,以使所述网络变换器根据所述通道号全帧映射表接收传感器发送的模拟量数据;将所述变换器全帧映射表发送至所述网络采集器,以使所述网络采集器根据所述变换器全帧映射表接收所述网络变换器的输出数据;将所述采集器全帧映射表发送至所述网络综合器,以使所述网络综合器根据所述采集器全帧映射表接收所述网络采集器的输出数据,并使所述网络综合器基于所述PCM映射表对所接收的所述网络采集器的输出数据进行映射汇总以完成多级联网络编帧。The channel number full-frame mapping table is sent to the network converter, so that the network converter receives the analog data sent by the sensor according to the channel number full-frame mapping table; the converter full-frame mapping table is sent to the network collector, so that the network collector receives the output data of the network converter according to the converter full-frame mapping table; the collector full-frame mapping table is sent to the network integrator, so that the network integrator receives the output data of the network collector according to the collector full-frame mapping table, and the network integrator maps and summarizes the received output data of the network collector based on the PCM mapping table to complete multi-cascade network framing.
优选地,在参照所述PCM映射表按照不同类别划分形成通道号全帧映射表、变换器全帧映射表和采集器全帧映射表的过程中,Preferably, in the process of forming a channel number full frame mapping table, a converter full frame mapping table and a collector full frame mapping table according to different categories with reference to the PCM mapping table,
所述上位机在所述PCM映射表中对同一个网络采集器、同一个网络变换器对应的表格进行挑选和分类,使每一个网络变换器分配一个通道号全帧映射表;所述通道号全帧映射表中以通道号为区分,一个通道号全帧映射表中的所有的非电量遥测参数来源为P(i,j,x);其中,i和j相同,x表示同一个网络变换器所接收数据使用的不同的通道的通道号;The host computer selects and classifies the tables corresponding to the same network collector and the same network converter in the PCM mapping table, so that each network converter is assigned a channel number full-frame mapping table; the channel number full-frame mapping table is distinguished by channel number, and the source of all non-electric telemetry parameters in a channel number full-frame mapping table is P (i, j, x); wherein i and j are the same, and x represents the channel number of different channels used by the same network converter to receive data;
所述上位机在所述PCM映射表中对同一个网络采集器对应的表格进行挑选和分类,使每一个网络采集器分配一个变换器全帧映射表;所述变换器全帧映射表以变换器节点号为区分,一个变换器全帧映射表中的所有的非电量遥测参数来源为P(i,y,x);其中,i相同,y表示同一个网络采集器所网络连接的不同网络变换器的节点号;x表示节点号为y的网络变换器所接收数据所对应的通道号;The host computer selects and classifies the tables corresponding to the same network collector in the PCM mapping table, so that each network collector is assigned a converter full-frame mapping table; the converter full-frame mapping table is distinguished by the converter node number, and the source of all non-electric telemetry parameters in a converter full-frame mapping table is P (i, y, x); wherein i is the same, y represents the node number of different network converters connected to the same network collector; x represents the channel number corresponding to the data received by the network converter with the node number y;
所述上位机在所述PCM映射表中对网络综合器对应的表格进行挑选和分类,使所述网络综合器所分配的采集器全帧映射表以网络采集器的节点号为分类;所述采集器全帧映射表中的所有的非电量遥测参数来源为P(z,y,x);其中,z表示所述网络综合器所网络连接的不同的网络采集器的节点号,y表示节点号为z的网络采集器所网络连接的网络变换器的节点号;x表示节点号为z的网络采集器所连接的节点号为y的网络变换器接收数据所对应的通道号。The host computer selects and classifies the tables corresponding to the network integrators in the PCM mapping table, so that the collector full-frame mapping table allocated by the network integrator is classified according to the node number of the network collector; the source of all non-electrical telemetry parameters in the collector full-frame mapping table is P (z, y, x); wherein z represents the node number of different network collectors connected to the network integrator, y represents the node number of the network converter connected to the network collector with node number z; x represents the channel number corresponding to the data received by the network converter with node number y connected to the network collector with node number z.
优选地,将所述通道号全帧映射表发送至所述网络变换器,以使所述网络变换器根据所述通道号全帧映射表接收传感器发送的模拟量数据的过程,包括:Preferably, the process of sending the channel number full frame mapping table to the network converter so that the network converter receives the analog data sent by the sensor according to the channel number full frame mapping table includes:
将所述通道号全帧映射表发送至所述网络变换器中;Sending the channel number full frame mapping table to the network converter;
使所述网络变换器基于所述上位机设置的取样速率,对应所述通道号全帧映射表中的非电量遥测参数来源P(i,j,x)将通道数为x的通道所对应的传感器的模拟量数据发送至所述网络变换器中与所述通道数为x的通道所对应的FIF0缓冲区中;其中,所述网络变换器中按照最大的通道数初始化有12个FIF0缓冲区;The network converter sends the analog data of the sensor corresponding to the channel with the number x to the FIFO buffer corresponding to the channel with the number x in the network converter based on the sampling rate set by the host computer and corresponding to the non-electric telemetry parameter source P (i, j, x) in the channel number full frame mapping table; wherein 12 FIFO buffers are initialized in the network converter according to the maximum number of channels;
判断所述通道数为x的通道所对应的FIF0缓冲区是否为非空,若非空,则将所述通道数为x的通道所对应的FIF0缓冲区中的模拟量数据写入至所述网络变换器中的数据缓冲区;其中,所述数据缓冲区为A/B双缓冲区;Determine whether the FIFO buffer corresponding to the channel with the channel number x is not empty, and if not empty, write the analog data in the FIFO buffer corresponding to the channel with the channel number x into the data buffer in the network converter; wherein the data buffer is an A/B double buffer;
当所述网络变换器中数据缓冲区中的总模拟量数据达到一个完整的通道号全帧映射表时,则形成通道号全帧映射表编帧数据,并将所述通道号全帧映射表编帧数据写入至预设的变换器发送缓冲区。When the total analog data in the data buffer of the network converter reaches a complete channel number full-frame mapping table, the channel number full-frame mapping table framing data is formed and the channel number full-frame mapping table framing data is written to the preset converter sending buffer.
优选地,所述上位机通过环网总线将所述通道号全帧映射表下发至所述网络变换器;并且,所述上位机为所述网络变换器设置的取样速率为所述网络变换器所连接的每个通道的采样率的最小公倍数。Preferably, the host computer sends the channel number full-frame mapping table to the network converter via the ring network bus; and the sampling rate set by the host computer for the network converter is the least common multiple of the sampling rates of each channel connected to the network converter.
优选地,将所述变换器全帧映射表发送至所述网络采集器,以使所述网络采集器根据所述变换器全帧映射表接收所述网络变换器的输出数据的过程,包括:Preferably, the process of sending the converter full frame mapping table to the network collector so that the network collector receives the output data of the network converter according to the converter full frame mapping table includes:
将所述变换器全帧映射表发送至所述网络采集器中;Sending the converter full frame mapping table to the network collector;
使所述网络采集器基于所述上位机设置的取样速率,对应所述变换器全帧映射表中的非电量遥测参数来源P(i,y,x),对节点号为y的网络变换器发送数据请求指令,以使节点号为y的网络变换器将变换器发送缓冲区中的通道号全帧映射表编帧数据作为所述网络变换器的输出数据回传至所述网络采集器中;The network collector sends a data request instruction to the network converter with node number y based on the sampling rate set by the host computer and corresponds to the non-electric telemetry parameter source P (i, y, x) in the full-frame mapping table of the converter, so that the network converter with node number y transmits the channel number full-frame mapping table framing data in the converter sending buffer as the output data of the network converter back to the network collector;
所述网络采集器按照网络变换器的节点号y将所述网络变换器y的输出数据作为数据帧有序写入至所述网络采集器中所述网络变换器y所对应的FIF0缓冲区中;其中,所述网络采集器按照连接网络变换器的最大量初始化有64个FIF0缓冲区;The network collector writes the output data of the network converter y as data frames in order into the FIFO buffer corresponding to the network converter y in the network collector according to the node number y of the network converter; wherein the network collector is initialized with 64 FIFO buffers according to the maximum number of connected network converters;
判断所述网络变换器y所对应的FIF0缓冲区是否为非空,若非空,则将所述网络变换器所对应的FIF0缓冲区中的数据帧写入至所述网络采集器中的数据缓冲区;其中,所述数据缓冲区为A/B双缓冲区;Determine whether the FIFO buffer corresponding to the network converter y is not empty, and if not, write the data frame in the FIFO buffer corresponding to the network converter into the data buffer in the network collector; wherein the data buffer is an A/B double buffer;
当所述网络采集器中的数据缓冲区中的数据帧总量达到一个完整的交换器全帧映射表时,则形成交换器全帧映射表编帧数据,并将所述交换器全帧映射表编帧数据写入至预设的采集器发送缓冲区。When the total amount of data frames in the data buffer in the network collector reaches a complete switch full frame mapping table, the switch full frame mapping table framing data is formed and written into the preset collector sending buffer.
优选地,将所述变换器全帧映射表发送至所述网络采集器时,Preferably, when the converter full frame mapping table is sent to the network collector,
所述上位机将装订的变换器全帧映射表存储在所述网络采集器的非易失性flash存储器中,在所述网络采集器上电初始化后,将所述变换器全帧映射表存放在所述网络采集器的数据缓冲区中。The host computer stores the bound converter full frame mapping table in the non-volatile flash memory of the network collector, and after the network collector is powered on and initialized, the converter full frame mapping table is stored in the data buffer of the network collector.
优选地,将所述采集器全帧映射表发送至所述网络综合器,以使所述网络综合器根据所述采集器全帧映射表接收所述网络采集器的输出数据,并使所述网络综合器基于所述PCM映射表对所接收的所述网络采集器的输出数据进行映射汇总以完成多级联网络编帧的过程,包括:Preferably, the collector full frame mapping table is sent to the network integrator, so that the network integrator receives the output data of the network collector according to the collector full frame mapping table, and the network integrator maps and summarizes the received output data of the network collector based on the PCM mapping table to complete the process of multi-cascade network framing, including:
按照预设的最大采样率将所述采集器全帧映射表发送至所述网络综合器中;Sending the collector full frame mapping table to the network integrator according to a preset maximum sampling rate;
在所述采集器全帧映射表中添加遥测参数、平行延迟数据和存储重发数据的映射关系以形成PCM全帧映射表;Adding the mapping relationship between telemetry parameters, parallel delay data and storage retransmission data in the collector full frame mapping table to form a PCM full frame mapping table;
使所述网络综合器基于所述上位机设置的取样速率,对应所述PCM全帧中的非电量遥测参数来源P(z,y,x),对节点号为z的网络采集器发送数据请求指令,以使节点号为z的网络采集器将采集器发送缓冲区中的交换器全帧映射表编帧数据作为所述网络采集器的输出数据回传至所述网络综合器中;The network integrator sends a data request instruction to the network collector with node number z based on the sampling rate set by the host computer and corresponds to the non-electric telemetry parameter source P (z, y, x) in the PCM full frame, so that the network collector with node number z transmits the switch full frame mapping table framing data in the collector sending buffer as the output data of the network collector back to the network integrator;
所述网络综合器按照网络采集器的节点号z将所述网络采集器z的输出数据作为数据帧有序写入至所述网络综合器中所述网络采集器z所对应的FIF0缓冲区中;其中,所述网络综合器按照连接网络采集器的最大量初始化有16个FIF0缓冲区;The network integrator writes the output data of the network collector z as data frames in order into the FIFO buffer corresponding to the network collector z in the network integrator according to the node number z of the network collector; wherein the network integrator is initialized with 16 FIFO buffers according to the maximum number of connected network collectors;
判断所述网络采集器z所对应的FIF0缓冲区是否为非空,若非空,则将所述网络采集器所对应的FIF0缓冲区中的数据帧写入至所述网络综合器中的数据缓冲区;其中,所述数据缓冲区为A/B双缓冲区;Determine whether the FIFO buffer corresponding to the network collector z is not empty, if not empty, write the data frame in the FIFO buffer corresponding to the network collector into the data buffer in the network integrator; wherein the data buffer is an A/B double buffer;
当所述网络综合器中数据缓冲区中的数据帧总量达到一个完整的PCM全帧映射表时,则形成全帧映射表编帧数据,并将所述全帧映射表编帧数据送入预设的PCM编帧模块,以完成多级联网络编帧。When the total amount of data frames in the data buffer in the network integrator reaches a complete PCM full-frame mapping table, full-frame mapping table framing data is formed and sent to a preset PCM framing module to complete multi-cascade network framing.
优选地,所述网络综合器在根据所述采集器全帧映射表接收所述网络采集器的输出数据的同时,还包括:Preferably, while receiving the output data of the network collector according to the collector full frame mapping table, the network integrator further comprises:
接收所述上位机所发送的关于PCM映射表的装订指令,并向所述上位机反馈所述网络采集器、网络变换器,以及所述网络综合器中各个子模块的状态信息。Receive the binding instruction about the PCM mapping table sent by the host computer, and feed back the status information of each submodule in the network collector, the network converter and the network integrator to the host computer.
本发明还提供一种遥测通信多级联网络采编编帧系统,实现如上所述的遥测通信多级联网络采编编帧方法,包括:The present invention also provides a telemetry communication multi-cascade network collection and editing framing system, which implements the telemetry communication multi-cascade network collection and editing framing method as described above, including:
遥测通信中网络采集器与网络变换器所组成的一级环网,以及网络综合器和所述网络采集器组成的二级环网;其中,所述网络采集器为所述一级环网的主站,所述网络变换器为所述一级环网的从站;所述网络采集器同时为所述二级环网的从站,所述网络综合器为所述二级环网的主站;A primary ring network composed of a network collector and a network converter in telemetry communication, and a secondary ring network composed of a network integrator and the network collector; wherein the network collector is the master station of the primary ring network, and the network converter is the slave station of the primary ring network; the network collector is also the slave station of the secondary ring network, and the network integrator is the master station of the secondary ring network;
上位机,所述上位机用于根据所述一级环网和所述二级环网中各个网络设备的MAC地址对各个网络设备节点分别分配节点号,基于所述节点号按照预设的非电量遥测参数来源编制PCM映射表,使所述一级环网、所述二级环网中的主站分别根据所述PCM映射表接收各自从站中的遥测数据,以使所述网络综合器动态接收全部遥测数据,并将所述遥测数据与所述PCM映射表相对应以完成多级联网络编帧。The host computer is used to assign node numbers to each network device node according to the MAC address of each network device in the primary ring network and the secondary ring network, and compile a PCM mapping table based on the node number according to a preset non-electrical telemetry parameter source, so that the master stations in the primary ring network and the secondary ring network receive the telemetry data in their respective slave stations according to the PCM mapping table, so that the network integrator dynamically receives all the telemetry data, and corresponds the telemetry data to the PCM mapping table to complete the multi-cascade network framing.
从上面的技术方案可知,本发明提供的遥测通信多级联网络采编编帧方法、系统,将遥测通信中网络采集器与网络变换器之间的网络传输设备环网作为一级环网,将网络综合器和所述网络采集器之间的网络传输设备环网作为二级环网;其中,网络采集器为所述一级环网的主站,网络变换器为一级环网的从站;网络采集器同时为所述二级环网的从站,网络综合器为所述二级环网的主站,而后根据一级环网和二级环网中各个网络设备的MAC地址对各个网络设备节点分别分配节点号,并通过预设的上位机基于节点号按照预设的非电量遥测参数来源编制PCM映射表,使一级环网、二级环网中的主站分别根据PCM映射表接收各自从站中的遥测数据,以使网络综合器动态接收全部遥测数据,将遥测数据与所述PCM映射表相对应以完成多级联网络编帧,如此,整个编帧过程统一、通用,可以适用于工业和航空航天领域中任意需要进行实时监测参数的环网,能够实现通用化、系列化和产品化,并且在整个编帧过程中每次传输的数据都是有效数据,大大节约网络带宽资源,提高网络传输效率。It can be seen from the above technical scheme that the telemetry communication multi-cascade network collection and editing framing method and system provided by the present invention regards the network transmission equipment ring network between the network collector and the network converter in the telemetry communication as the primary ring network, and regards the network transmission equipment ring network between the network integrator and the network collector as the secondary ring network; wherein the network collector is the master station of the primary ring network, and the network converter is the slave station of the primary ring network; the network collector is also the slave station of the secondary ring network, and the network integrator is the master station of the secondary ring network, and then the node number is assigned to each network device node according to the MAC address of each network device in the primary ring network and the secondary ring network, and through the preset The upper computer compiles a PCM mapping table based on the node number according to the preset non-electrical telemetry parameter source, so that the master stations in the primary ring network and the secondary ring network receive the telemetry data in their respective slave stations according to the PCM mapping table, so that the network integrator dynamically receives all telemetry data, and corresponds the telemetry data to the PCM mapping table to complete the multi-cascade network framing. In this way, the entire framing process is unified and universal, and can be applied to any ring network in the industrial and aerospace fields that requires real-time monitoring of parameters, and can achieve generalization, serialization and productization. In addition, the data transmitted each time during the entire framing process is valid data, which greatly saves network bandwidth resources and improves network transmission efficiency.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
通过参考以下结合附图的说明书内容,并且随着对本发明的更全面理解,本发明的其它目的及结果将更加明白及易于理解。在附图中:By referring to the following description in conjunction with the accompanying drawings, and with a more comprehensive understanding of the present invention, other objects and results of the present invention will become more apparent and easy to understand. In the accompanying drawings:
图1为根据本发明实施例的遥测通信多级联网络采编编帧方法的流程图;1 is a flow chart of a telemetry communication multi-cascade network collection and editing framing method according to an embodiment of the present invention;
图2为根据本发明实施例的遥测通信多级联网络采编编帧方法中所涉及的网络传输设备环网示意图;2 is a schematic diagram of a network transmission device ring network involved in a telemetry communication multi-cascade network collection and editing framing method according to an embodiment of the present invention;
图3为根据本发明实施例的遥测通信多级联网络采编编帧方法中网络变换器依据通道号全帧映射表的组帧过程示意图;3 is a schematic diagram of a framing process of a network converter according to a channel number full frame mapping table in a telemetry communication multi-cascade network collection and editing framing method according to an embodiment of the present invention;
图4为根据本发明实施例的遥测通信多级联网络采编编帧方法中网络采集器依据交换器全帧映射表的组帧过程示意图;4 is a schematic diagram of a framing process of a network collector according to a full frame mapping table of a switch in a telemetry communication multi-cascade network framing method according to an embodiment of the present invention;
图5为根据本发明实施例的遥测通信多级联网络采编编帧方法中网络综合器依据采集器全帧映射表的组帧过程示意图;5 is a schematic diagram of a framing process of a network integrator according to a full-frame mapping table of a collector in a telemetry communication multi-cascade network collection and editing framing method according to an embodiment of the present invention;
图6为根据本发明实施例的遥测通信多级联网络采编编帧系统的系统框图。FIG6 is a system block diagram of a telemetry communication multi-cascade network collection and editing framing system according to an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
越来越多的大型飞行器需要在飞行过程中实时监测飞行参数,单个采编器很难满足多舱段、多参数采集任务需求,在一个大型飞行器内部,由于多个舱段的划分,往往需要多个单机经过多级组网,形成一个完整多级联采集系统,但在当前阶段很多采编器的研制只是针对某个特定型号和特定功能来设计系统编帧结构,很难实现通用化、系列化和产品化。More and more large aircraft need to monitor flight parameters in real time during flight. It is difficult for a single data acquisition device to meet the needs of multi-cabin and multi-parameter data acquisition tasks. Inside a large aircraft, due to the division of multiple cabins, multiple single machines are often required to be networked at multiple levels to form a complete multi-cascade data acquisition system. However, at the current stage, the development of many data acquisition devices is only designed for a specific model and specific function to design the system framing structure, which makes it difficult to achieve universalization, serialization and productization.
针对上述问题,本发明提供一种遥测通信多级联网络采编编帧方法、系统,以下将结合附图对本发明的具体实施例进行详细描述。In view of the above problems, the present invention provides a telemetry communication multi-cascade network data acquisition and editing framing method and system. The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
为了说明本发明提供的遥测通信多级联网络采编编帧方法、系统,图1-图6对本发明实施例的进行了示例性标示。In order to illustrate the telemetry communication multi-cascade network data acquisition and editing framing method and system provided by the present invention, Figures 1 to 6 provide exemplary illustrations of the embodiments of the present invention.
以下示例性实施例的描述实际上仅仅是说明性的,决不作为对本发明及其应用或使用的任何限制。对于相关领域普通技术人员已知的技术和设备可能不作详细讨论,但在适当情况下,所述技术和设备应当被视为说明书的一部分。The following description of exemplary embodiments is merely illustrative in nature and is not intended to limit the present invention and its application or use. Technologies and devices known to ordinary technicians in the relevant field may not be discussed in detail, but in appropriate cases, the technologies and devices should be considered as part of the specification.
如图1所示,本发明提供一种遥测通信多级联网络采编编帧方法,包括:As shown in FIG1 , the present invention provides a telemetry communication multi-cascade network collection and editing framing method, comprising:
S1:将遥测通信中网络采集器与网络变换器之间的网络传输设备环网作为一级环网,将网络综合器和所述网络采集器之间的网络传输设备环网作为二级环网;其中,所述网络采集器为所述一级环网的主站,所述网络变换器为所述一级环网的从站;所述网络采集器同时为所述二级环网的从站,所述网络综合器为所述二级环网的主站;S1: The network transmission equipment ring network between the network collector and the network converter in the telemetry communication is used as the primary ring network, and the network transmission equipment ring network between the network integrator and the network collector is used as the secondary ring network; wherein the network collector is the master station of the primary ring network, and the network converter is the slave station of the primary ring network; the network collector is also the slave station of the secondary ring network, and the network integrator is the master station of the secondary ring network;
S2:根据所述一级环网和所述二级环网中各个网络设备的MAC地址对各个网络设备节点分别分配节点号S2: assigning node numbers to the nodes of the network devices according to the MAC addresses of the network devices in the primary ring network and the secondary ring network
S3:通过预设的上位机基于所述节点号按照预设的非电量遥测参数来源编制PCM映射表,使所述一级环网、所述二级环网中的主站分别根据所述PCM映射表接收各自从站中的遥测数据,以使所述网络综合器动态接收全部遥测数据,并将所述遥测数据与所述PCM映射表相对应以完成多级联网络编帧。S3: A PCM mapping table is compiled by a preset host computer based on the node number according to a preset non-electrical telemetry parameter source, so that the master stations in the primary ring network and the secondary ring network receive the telemetry data in their respective slave stations according to the PCM mapping table, so that the network integrator dynamically receives all telemetry data, and matches the telemetry data with the PCM mapping table to complete the multi-cascade network framing.
在图1、图2共同所示的实施例中,步骤S1为将遥测通信中网络采集器与网络变换器之间的网络传输设备环网作为一级环网,将网络综合器和所述网络采集器之间的网络传输设备环网作为二级环网的过程,其中,网络采集器为一级环网的主站,网络变换器为一级环网的从站;网络采集器同时为二级环网的从站,网络综合器为二级环网的主站;In the embodiment shown in FIG. 1 and FIG. 2 , step S1 is a process of using the network transmission equipment ring network between the network collector and the network converter in the telemetry communication as a primary ring network, and using the network transmission equipment ring network between the network integrator and the network collector as a secondary ring network, wherein the network collector is the master station of the primary ring network, and the network converter is the slave station of the primary ring network; the network collector is also the slave station of the secondary ring network, and the network integrator is the master station of the secondary ring network;
在本实施例中,网络变换器通过多个通道分别各自连接有用于感测一线数据的传感器,从而构成数据采集、传输、编帧的完整回路。In this embodiment, the network converter is connected to sensors for sensing first-line data through multiple channels, thereby forming a complete loop of data collection, transmission, and framing.
在本实施例中,步骤S2为根据所述一级环网和所述二级环网中各个网络设备的MAC地址对各个网络设备节点分别分配节点号的过程。In this embodiment, step S2 is a process of respectively allocating a node number to each network device node according to the MAC address of each network device in the primary ring network and the secondary ring network.
具体的,网络传输设备环网(一级环网和二级环网的总称)每一个节点都有自己的MAC地址和节点号,根据每一个节点(单个的网络综合器、网络采集器、网络变换器)不同的MAC地址分配不同的节点号,节点之间通过节点号加以区分,因此为保证每个采集器和变换器程序的版本统一,网络采集器(又称:采集器)和网络变换器(又称:变换器)都有独立的硬件参数装订接口,通过参数装订接口需要给每一个采集器和变换器单独装订节点号和mac地址。每一个采集器程序使用同一个默认初始的MAC地址和节点号,节点号由预设的参数装订软件提前完成,装订节点号时,首先通过初始的mac地址和节点号连接上单独的网络采集器和变换器,将单独的mac地址和ID节点号装订给每一个采集器和变换器,采集器和变换器将装订的mac地址和ID节点号写入eeprom,重启上电后通过eeprom中读取当前的mac地址和ID节点号,后续上位机在进行相关工作及后续的具体边镇过程中直接按照装订在eeprom中的MAC和ID节点号执行,即1编帧时候用到的节点号就是现在设定的ID节点号,每一个节点都有一个唯一的可以标识自己节点的ID节点号,变换器和采集器都有属于自己的ID节点号,都需要提前通过参数装订功能装订不同的ID节点号。后续网络综合器需要根据采集器的ID节点号分配对应的FIFO缓冲区,存储从对应ID节点号的网络采集器发送到网络综合器的数据。并且在本实施例中,默认上电读取eeprom中的参数,如果eeprom中的数据全F,则判定该eeprom所属的节点尚未装订ID节点号(节点号),程序按照默认的mac和ID号来设置网络端口。Specifically, each node in the network transmission equipment ring network (a general term for primary ring networks and secondary ring networks) has its own MAC address and node number. Different node numbers are assigned according to the different MAC addresses of each node (a single network integrator, network collector, network converter), and the nodes are distinguished by the node numbers. Therefore, in order to ensure the uniformity of the program versions of each collector and converter, the network collector (also known as: collector) and network converter (also known as: converter) have independent hardware parameter binding interfaces. Through the parameter binding interface, each collector and converter needs to be individually bound with the node number and mac address. Each collector program uses the same default initial MAC address and node number. The node number is completed in advance by the preset parameter binding software. When binding the node number, first connect the separate network collector and converter through the initial mac address and node number, bind the separate mac address and ID node number to each collector and converter, and the collector and converter write the bound mac address and ID node number into the eeprom. After restarting and powering on, read the current mac address and ID node number from the eeprom. The subsequent host computer directly executes the MAC and ID node number bound in the eeprom during related work and subsequent specific border town processes, that is, the node number used in 1 framing is the ID node number set now. Each node has a unique ID node number that can identify its own node. The converter and collector have their own ID node number, and different ID node numbers need to be bound in advance through the parameter binding function. The subsequent network integrator needs to allocate the corresponding FIFO buffer according to the ID node number of the collector to store the data sent from the network collector with the corresponding ID node number to the network integrator. And in this embodiment, the parameters in the eeprom are read by default when powered on. If the data in the eeprom are all F, it is determined that the node to which the eeprom belongs has not yet been bound with an ID node number (node number), and the program sets the network port according to the default mac and ID number.
在图1-图5共同所示的实施例中,步骤S3为通过预设的上位机基于所述节点号按照预设的非电量遥测参数来源编制PCM映射表,使所述一级环网、所述二级环网中的主站分别根据所述PCM映射表接收各自从站中的遥测数据,以使所述网络综合器动态接收全部遥测数据,并将所述遥测数据与所述PCM映射表相对应以完成多级联网络编帧的过程。In the embodiment shown in Figures 1 to 5, step S3 is to compile a PCM mapping table based on the node number according to a preset non-electrical telemetry parameter source by a preset host computer, so that the master stations in the primary ring network and the secondary ring network respectively receive the telemetry data in their respective slave stations according to the PCM mapping table, so that the network integrator dynamically receives all telemetry data, and corresponds the telemetry data to the PCM mapping table to complete the multi-cascade network framing process.
其中,步骤S3通过预设的上位机基于所述节点号按照预设的非电量遥测参数来源编制PCM映射表,使所述一级环网、所述二级环网中的主站分别根据所述PCM映射表接收各自从站中的遥测数据,以使所述网络综合器动态接收全部遥测数据,并将所述遥测数据与所述PCM映射表相对应以完成多级联网络编帧的过程包括:使所述上位机:Among them, step S3 compiles a PCM mapping table based on the node number according to the preset non-electric telemetry parameter source by a preset host computer, so that the master stations in the primary ring network and the secondary ring network receive the telemetry data in their respective slave stations according to the PCM mapping table, so that the network integrator dynamically receives all telemetry data, and corresponds the telemetry data to the PCM mapping table to complete the multi-cascade network framing process, including: enabling the host computer:
S31:以P(i,j,k)表示所述非电量遥测参数来源;其中,i表示所述非电量遥测参数由所述一级环网中节点为i的采集器进行采集;j表示所述非电量遥测参数由节点号为i的采集器所对应的二级环网中的节点号为j的变换器进行采集;k表示所述非电量遥测参数由节点号为j的变换器的第k个采集通道;S31: P (i, j, k) represents the source of the non-electrical telemetry parameter; wherein i represents that the non-electrical telemetry parameter is collected by the collector with node i in the primary ring network; j represents that the non-electrical telemetry parameter is collected by the converter with node j in the secondary ring network corresponding to the collector with node i; k represents that the non-electrical telemetry parameter is collected by the kth channel of the converter with node j;
S32:对所有的非电量遥测参数来源进行汇总制表以形成PCM映射表;S32: Summarize and tabulate all non-electric telemetry parameter sources to form a PCM mapping table;
S33:参照所述PCM映射表按照不同类别划分形成通道号全帧映射表、变换器全帧映射表和采集器全帧映射表;S33: referring to the PCM mapping table and dividing it into different categories to form a channel number full frame mapping table, a converter full frame mapping table and a collector full frame mapping table;
S34:将所述通道号全帧映射表发送至所述网络变换器,以使所述网络变换器根据所述通道号全帧映射表接收传感器发送的模拟量数据;将所述变换器全帧映射表发送至所述网络采集器,以使所述网络采集器根据所述变换器全帧映射表接收所述网络变换器的输出数据;将所述采集器全帧映射表发送至所述网络综合器,以使所述网络综合器根据所述采集器全帧映射表接收所述网络采集器的输出数据;S34: sending the channel number full frame mapping table to the network converter, so that the network converter receives the analog data sent by the sensor according to the channel number full frame mapping table; sending the converter full frame mapping table to the network collector, so that the network collector receives the output data of the network converter according to the converter full frame mapping table; sending the collector full frame mapping table to the network integrator, so that the network integrator receives the output data of the network collector according to the collector full frame mapping table;
S35:使所述网络综合器基于所述PCM映射表对所接收的所述网络采集器的输出数据进行映射汇总以完成多级联网络编帧。S35: The network integrator maps and aggregates the received output data of the network collector based on the PCM mapping table to complete multi-cascade network framing.
其中,步骤S33在参照所述PCM映射表按照不同类别划分形成通道号全帧映射表、变换器全帧映射表和采集器全帧映射表的过程中,In step S33, in the process of forming a channel number full frame mapping table, a converter full frame mapping table and a collector full frame mapping table according to different categories by referring to the PCM mapping table,
所述上位机在所述PCM映射表中对同一个网络采集器、同一个网络变换器对应的表格进行挑选和分类,使每一个网络变换器分配一个通道号全帧映射表;所述通道号全帧映射表中以通道号为区分,一个通道号全帧映射表中的所有的非电量遥测参数来源为P(i,j,x);其中,i和j相同,x表示同一个网络变换器所接收数据使用的不同的通道的通道号;The host computer selects and classifies the tables corresponding to the same network collector and the same network converter in the PCM mapping table, so that each network converter is assigned a channel number full-frame mapping table; the channel number full-frame mapping table is distinguished by channel number, and the source of all non-electric telemetry parameters in a channel number full-frame mapping table is P (i, j, x); wherein i and j are the same, and x represents the channel number of different channels used by the same network converter to receive data;
所述上位机在所述PCM映射表中对同一个网络采集器对应的表格进行挑选和分类,使每一个网络采集器分配一个变换器全帧映射表;所述变换器全帧映射表以变换器节点号为区分,一个变换器全帧映射表中的所有的非电量遥测参数来源为P(i,y,x);其中,i相同,y表示同一个网络采集器所网络连接的不同网络变换器的节点号;x表示节点号为y的网络变换器所接收数据所对应的通道号;The host computer selects and classifies the tables corresponding to the same network collector in the PCM mapping table, so that each network collector is assigned a converter full-frame mapping table; the converter full-frame mapping table is distinguished by the converter node number, and the source of all non-electric telemetry parameters in a converter full-frame mapping table is P (i, y, x); wherein i is the same, y represents the node number of different network converters connected to the same network collector; x represents the channel number corresponding to the data received by the network converter with the node number y;
所述上位机在所述PCM映射表中对网络综合器对应的表格进行挑选和分类,使所述网络综合器所分配的采集器全帧映射表以网络采集器的节点号为分类;所述采集器全帧映射表中的所有的非电量遥测参数来源为P(z,y,x);其中,z表示所述网络综合器所网络连接的不同的网络采集器的节点号,y表示节点号为z的网络采集器所网络连接的网络变换器的节点号;x表示节点号为z的网络采集器所连接的节点号为y的网络变换器接收数据所对应的通道号。The host computer selects and classifies the tables corresponding to the network integrators in the PCM mapping table, so that the collector full-frame mapping table allocated by the network integrator is classified according to the node number of the network collector; the source of all non-electrical telemetry parameters in the collector full-frame mapping table is P (z, y, x); wherein z represents the node number of different network collectors connected to the network integrator, y represents the node number of the network converter connected to the network collector with node number z; x represents the channel number corresponding to the data received by the network converter with node number y connected to the network collector with node number z.
即遥测系统中的非电量遥测参数以P(i,j,k)表示(i/j/k只是为了说明参数的来源而做的标识,只是为了方便我们解读PCM映射表的数据的来源,上位机下发的数据映射表要标识出当前参数的源地址:哪个采集器哪个变换器哪个通道),其中i表示该参数由一级环网中编号为i的采集器进行采集,j表示该参数由对应编号i的采集器对应的二级环网中的编号为j的变换器进行采集,k表示编号为j的变换器的第k个采集通道。That is, the non-electrical telemetry parameters in the telemetry system are represented by P(i, j, k) (i/j/k is just an identification to illustrate the source of the parameters, just to facilitate our interpretation of the source of the data in the PCM mapping table. The data mapping table sent by the upper computer must identify the source address of the current parameter: which collector, which converter, which channel), where i indicates that the parameter is collected by the collector numbered i in the primary ring network, j indicates that the parameter is collected by the converter numbered j in the secondary ring network corresponding to the collector numbered i, and k indicates the kth collection channel of the converter numbered j.
也就是,上位机设置完成PCM帧结构后形成一个总的PCM映射表,而后按照一定的规则进行挑选形成通道号全帧映射表、变换器全帧映射表和采集器全帧映射表分别下发到网络变换器、网络采集器、网络综合器中,各个一级环网和二级环网的节点按照上位机设置的相应的表将采集到的数据编帧,编帧后的数据存储到发送缓冲区,等待主站发送请求命令,发送给主站,主站接收到数据后存储fifo缓冲区,用于系统PCM编帧使用;具体的规则即按照上述步骤S33的实施例进行挑选,简言之,即按照P(i,j,k),挑选具有相同i和j的形成为有别于k的作为通道号全帧映射表;具有相同i的不同j的,k不做限制,作为变换器全帧映射表;具有不同i,j和k不做限制的作为采集器全帧映射表。如此,便于统一编帧管理,并且可以人为通过上位机操作控制,统一性强的同时可靠性和灵活性也强。That is, after the host computer sets the PCM frame structure, a total PCM mapping table is formed, and then selected according to certain rules to form a channel number full frame mapping table, a converter full frame mapping table and a collector full frame mapping table, which are respectively sent to the network converter, the network collector and the network integrator. The nodes of each primary ring network and the secondary ring network frame the collected data according to the corresponding table set by the host computer, and the framed data is stored in the sending buffer, waiting for the master station to send a request command, and sent to the master station. After the master station receives the data, it stores the fifo buffer for system PCM framing; the specific rules are selected according to the embodiment of the above step S33. In short, according to P (i, j, k), the same i and j are selected to form a different k as the channel number full frame mapping table; the same i with different j, k is not limited, as the converter full frame mapping table; the different i, j and k are not limited as the collector full frame mapping table. In this way, it is convenient to unify the framing management, and it can be manually controlled through the host computer operation. The uniformity is strong while the reliability and flexibility are also strong.
其中,在步骤S34中包括,S34A:将所述通道号全帧映射表发送至所述网络变换器,以使所述网络变换器根据所述通道号全帧映射表接收传感器发送的模拟量数据的过程,包括:Wherein, step S34 includes: S34A: sending the channel number full frame mapping table to the network converter so that the network converter receives the analog data sent by the sensor according to the channel number full frame mapping table, including:
SA1:将所述通道号全帧映射表发送至所述网络变换器中;SA1: Send the channel number full frame mapping table to the network converter;
SA2:使所述网络变换器基于所述上位机设置的取样速率,对应所述通道号全帧映射表中的非电量遥测参数来源P(i,j,x)将通道数为x的通道所对应的传感器的模拟量数据发送至所述网络变换器中与所述通道数为x的通道所对应的FIF0缓冲区中;其中,所述网络变换器中按照最大的通道数初始化有12个FIF0缓冲区;SA2: The network converter sends the analog data of the sensor corresponding to the channel with the number x to the FIFO buffer corresponding to the channel with the number x in the network converter based on the sampling rate set by the host computer and the non-electric telemetry parameter source P (i, j, x) in the channel number full frame mapping table; wherein 12 FIFO buffers are initialized in the network converter according to the maximum number of channels;
SA3:判断所述通道数为x的通道所对应的FIF0缓冲区是否为非空,若非空,则将所述通道数为x的通道所对应的FIF0缓冲区中的模拟量数据写入至所述网络变换器中的数据缓冲区;其中,所述数据缓冲区为A/B双缓冲区;SA3: Determine whether the FIFO buffer corresponding to the channel with the channel number x is not empty. If it is not empty, write the analog data in the FIFO buffer corresponding to the channel with the channel number x into the data buffer in the network converter; wherein the data buffer is an A/B double buffer;
SA4:当所述网络变换器中数据缓冲区中的总模拟量数据达到一个完整的通道号全帧映射表时,则形成通道号全帧映射表编帧数据,并将所述通道号全帧映射表编帧数据写入至预设的变换器发送缓冲区。SA4: When the total analog data in the data buffer of the network converter reaches a complete channel number full-frame mapping table, the channel number full-frame mapping table framing data is formed, and the channel number full-frame mapping table framing data is written to the preset converter sending buffer.
所述上位机通过环网总线将所述通道号全帧映射表下发至所述网络变换器;并且,所述上位机为所述网络变换器设置的取样速率为所述网络变换器所连接的每个通道的采样率的最小公倍数。The host computer sends the channel number full-frame mapping table to the network converter via the ring network bus; and the sampling rate set by the host computer for the network converter is the least common multiple of the sampling rates of each channel connected to the network converter.
具体的,即网络变换器作为一级环网的从站节点,负责采集各个传感器的原始信号,将原始信号根据上位机装订的参数变换成标准的十六进制数据,按照上位机装订给的PCM映射表组成有效数据帧,存入缓冲区中等待发送给采集器主站。考虑到FPGA逻辑代码中,每一个采集器对应的FIFO缓存个数和长度只能通过编写程序设定,不可以通过参数装订的形式来实现FIFO的建立和取消,因此需要在采集器中按照一级环网最大的变换器个数来开辟FIFO缓冲区,每一个采集器开辟64个深度为1024*16bit的FIFO,每一个FIFO 对应一个变换器的数据,通过向每一个变换器发送,变换器返回给采集器,采集器将每一个变换器中的数据存入到对应的fifo缓冲区。遥测全帧格式如下表所示,每一个参数通过P(i,j,k)表示。i表示二级环网采集器节点号(0-15)、j表示一级环网变换器节点号(0-63)、k表示变换器通道号(0-12,三个调理模块,每个最多四路)。Specifically, the network converter, as a slave node of the primary ring network, is responsible for collecting the original signals of each sensor, converting the original signals into standard hexadecimal data according to the parameters bound by the host computer, forming a valid data frame according to the PCM mapping table bound by the host computer, and storing it in the buffer waiting to be sent to the collector master station. Considering that in the FPGA logic code, the number and length of the FIFO buffer corresponding to each collector can only be set by writing a program, and the establishment and cancellation of FIFO cannot be achieved by parameter binding, it is necessary to open a FIFO buffer in the collector according to the maximum number of converters in the primary ring network. Each collector opens 64 FIFOs with a depth of 1024*16bit. Each FIFO corresponds to the data of a converter. By sending to each converter, the converter returns to the collector, and the collector stores the data in each converter into the corresponding fifo buffer. The full telemetry frame format is shown in the following table, and each parameter is represented by P(i,j,k). i represents the node number of the secondary ring network collector (0-15), j represents the node number of the primary ring network converter (0-63), and k represents the converter channel number (0-12, three conditioning modules, each with a maximum of four channels).
所获取的通道号全帧映射表如图3和下表所示:The obtained channel number full frame mapping table is shown in Figure 3 and the following table:
即上位机配置的PCM映射表为遥测全帧格式,需要上位机将PCM映射表格式中不同变换器中的数据分类,即分成单个变换器的数据,将单个变换器的数据映射表分别发送给每一个特定的变换器,同时变换器的数据映射表按照子帧和全帧中的顺序排列从而形成通道号全帧映射表,变换器按照上位机装订的通道号全帧映射表排列的顺序按照特定的采样率写入映射缓冲区,写完整帧数据后统一写入发送缓冲区。That is, the PCM mapping table configured by the host computer is in the telemetry full-frame format. The host computer needs to classify the data in different converters in the PCM mapping table format, that is, divide it into the data of a single converter, and send the data mapping table of a single converter to each specific converter respectively. At the same time, the data mapping table of the converter is arranged in the order of the sub-frame and the full-frame to form a channel number full-frame mapping table. The converter writes into the mapping buffer at a specific sampling rate in the order of the arrangement of the channel number full-frame mapping table bound by the host computer. After the complete frame data is written, it is uniformly written into the send buffer.
以上为从全帧中挑选的节点号为1的采集器环网中节点号为1的变换器中1-12通道的数据表,按照在PCM全帧中的顺序排列,上位机需要从全帧PCM全帧中挑选后形成一个单独变换器的映射表,通过环网总线下发给每一个变换器。下发的协议如下表所示。通过以下协议设置完成每一个变换器的PCM全帧映射表,当前变换器数据帧长度即可确定,通过参数装订将数据帧长度写入变换器flash存储器,每次传输的数据都是有效数据,大大节约了网络带宽资源,提高了网络传输效率。The above is a data table of channels 1-12 in the converter with node number 1 in the collector ring network with node number 1 selected from the full frame. They are arranged in the order in the PCM full frame. The host computer needs to select from the full frame PCM full frame to form a mapping table for a separate converter, which is sent to each converter through the ring network bus. The sent protocol is shown in the following table. The PCM full frame mapping table of each converter is set by the following protocol, and the current converter data frame length can be determined. The data frame length is written into the converter flash memory through parameter binding. Each transmitted data is valid data, which greatly saves network bandwidth resources and improves network transmission efficiency.
更为具体的,在一个具体实施例中,网络变换器程序(FPGA)中按照最大的通道数初始化了12个FIFO缓冲区,上位机按照最大的采样率(单个变换器所有通道中采样率最大的数值)下发给变换器,变换器设定所有通道按照最大的采样率采集模拟量数据;上位机分别设定每一个通道的取样速率(同全帧pcm结构中数据重复次数相关),变换器中FPGA逻辑按照上位机设定的取样速率将对应通道采集到的数据发送到对应通道的FIFO缓冲区中,根据变换器数据映射表信息,判断对应通道FIFO(FIFO缓冲区)为非空时,就可以读取当前fifo中的数据写入数据缓冲区,当写入的缓冲区数据达到一个完整映射表的长度时,即可将整个缓冲区数据写入发送缓冲区,具体逻辑关系如下图所示。网络变换器内部开辟两个数据数据缓冲区A/B,等待本次循环周期到来时,直接将数据缓冲区B中的数据存入发送缓冲区,该数据为上次循环周期采集到的数据,本次循环周期将采集到的数据存储到数据缓冲区A,等待下一循环周期存入到发送缓冲区,数据缓冲区A和数据缓冲区B乒乓操作,因此在变换器内部采集的数据发送会延迟一个循环周期的时间。More specifically, in a specific embodiment, 12 FIFO buffers are initialized in the network converter program (FPGA) according to the maximum number of channels, and the host computer sends it to the converter according to the maximum sampling rate (the maximum sampling rate value among all channels of a single converter), and the converter sets all channels to collect analog data at the maximum sampling rate; the host computer sets the sampling rate of each channel respectively (related to the number of data repetitions in the full-frame PCM structure), and the FPGA logic in the converter sends the data collected by the corresponding channel to the FIFO buffer of the corresponding channel according to the sampling rate set by the host computer. According to the information of the converter data mapping table, when it is determined that the corresponding channel FIFO (FIFO buffer) is not empty, the data in the current fifo can be read and written into the data buffer. When the written buffer data reaches the length of a complete mapping table, the entire buffer data can be written into the sending buffer. The specific logical relationship is shown in the figure below. Two data buffers A/B are opened inside the network converter. When waiting for the current cycle to arrive, the data in data buffer B is directly stored in the sending buffer. The data is the data collected in the previous cycle. In this cycle, the collected data is stored in data buffer A, waiting for the next cycle to be stored in the sending buffer. Data buffer A and data buffer B perform ping-pong operation, so the sending of data collected inside the converter will be delayed by one cycle.
上位机按照单个变换器通道中所有通道采样率的最大公倍数作为该变换器每一个通道采样的采样率,上位机根据PCM全帧中的单个变换器每个通道的数据的重复次数来设置每一个通道的取样速率,采样速率要求是所有通道取样速率的公倍数,即每次采样的数值保证不会重复。取样后的通道数据直接存入对应通道的fifo缓冲区,编帧的代码逻辑判断FIFO非空时即可读取FIFO中的数据,根据变换器全帧映射表写入数据缓冲区,当写入缓冲区中的数据达到变换器全帧映射表中的数据个数时,表示当前组帧完成,将数据缓冲区的变换器全帧数据写入数据缓冲区,即可完成当前变换器PCM帧的灵活配置。The host computer uses the greatest common multiple of the sampling rates of all channels in a single converter channel as the sampling rate of each channel of the converter. The host computer sets the sampling rate of each channel according to the number of repetitions of the data of each channel of a single converter in the PCM full frame. The sampling rate is required to be a common multiple of the sampling rates of all channels, that is, the value of each sampling is guaranteed not to be repeated. The sampled channel data is directly stored in the fifo buffer of the corresponding channel. When the framing code logic determines that the FIFO is not empty, the data in the FIFO can be read and written into the data buffer according to the converter full frame mapping table. When the data written into the buffer reaches the number of data in the converter full frame mapping table, it indicates that the current framing is completed, and the converter full frame data in the data buffer is written into the data buffer, and the flexible configuration of the current converter PCM frame can be completed.
如图4所示,在步骤S34中包括,S34B:将所述变换器全帧映射表发送至所述网络采集器,以使所述网络采集器根据所述变换器全帧映射表接收所述网络变换器的输出数据的过程,包括:As shown in FIG4 , step S34 includes: S34B: sending the converter full frame mapping table to the network collector so that the network collector receives the output data of the network converter according to the converter full frame mapping table, including:
SB1:将所述变换器全帧映射表发送至所述网络采集器中;SB1: Sending the converter full frame mapping table to the network collector;
SB2:使所述网络采集器基于所述上位机设置的取样速率,对应所述变换器全帧映射表中的非电量遥测参数来源P(i,y,x),对节点号为y的网络变换器发送数据请求指令,以使节点号为y的网络变换器将变换器发送缓冲区中的通道号全帧映射表编帧数据作为所述网络变换器的输出数据回传至所述网络采集器中;SB2: The network collector sends a data request instruction to the network converter with node number y based on the sampling rate set by the host computer and corresponds to the non-electric telemetry parameter source P (i, y, x) in the full-frame mapping table of the converter, so that the network converter with node number y transmits the channel number full-frame mapping table framing data in the converter sending buffer as the output data of the network converter back to the network collector;
SB3:所述网络采集器按照网络变换器的节点号y将所述网络变换器y的输出数据作为数据帧有序写入至所述网络采集器中所述网络变换器y所对应的FIF0缓冲区中;其中,所述网络采集器按照连接网络变换器的最大量初始化有64个FIF0缓冲区;SB3: The network collector writes the output data of the network converter y as data frames in order into the FIFO buffer corresponding to the network converter y in the network collector according to the node number y of the network converter; wherein the network collector is initialized with 64 FIFO buffers according to the maximum number of connected network converters;
SB4:判断所述网络变换器y所对应的FIF0缓冲区是否为非空,若非空,则将所述网络变换器所对应的FIF0缓冲区中的数据帧写入至所述网络采集器中的数据缓冲区;其中,所述数据缓冲区为A/B双缓冲区;SB4: Determine whether the FIFO buffer corresponding to the network converter y is not empty. If it is not empty, write the data frame in the FIFO buffer corresponding to the network converter to the data buffer in the network collector; wherein the data buffer is an A/B double buffer;
SB5:当所述网络采集器中的数据缓冲区中的数据帧总量达到一个完整的交换器全帧映射表时,则形成交换器全帧映射表编帧数据,并将所述交换器全帧映射表编帧数据写入至预设的采集器发送缓冲区。SB5: When the total amount of data frames in the data buffer in the network collector reaches a complete switch full frame mapping table, the switch full frame mapping table framing data is formed and the switch full frame mapping table framing data is written into the preset collector sending buffer.
将所述变换器全帧映射表发送至所述网络采集器时,When the converter full frame mapping table is sent to the network collector,
所述上位机将装订的变换器全帧映射表存储在所述网络采集器的非易失性flash存储器中,在所述网络采集器上电初始化后,将所述变换器全帧映射表存放在所述网络采集器的数据缓冲区中。The host computer stores the bound converter full frame mapping table in the non-volatile flash memory of the network collector, and after the network collector is powered on and initialized, the converter full frame mapping table is stored in the data buffer of the network collector.
具体的,网络采集器作为一级环网的主站,一个循环周期内需要将当前环网中各个变换器的数据回读,各个变换器按照上位机装订的数据映射表和参数信息组成数据帧,回传给网络采集器主站,主站接收到数据帧后需要将各个变换器的数据放入网络采集器对应的FIFO中。每一个网络采集器最多可以连接64个网络变换器,因此需要在网络采集器程序中初始化64个FIFO缓冲区,按照接收的变换器节点号,将变换器的数据帧存储到对应的FIFO缓冲区。上位机装订针对当前网络采集器的数据帧映射表,并将网络采集器数据帧映射表存储到非易失性flash存储器中,上电初始化后,将数据帧从flash中读取后放入数据缓冲区。Specifically, the network collector, as the master station of the primary ring network, needs to read back the data of each converter in the current ring network within one cycle. Each converter forms a data frame according to the data mapping table and parameter information bound by the host computer, and transmits it back to the network collector master station. After receiving the data frame, the master station needs to put the data of each converter into the FIFO corresponding to the network collector. Each network collector can connect up to 64 network converters, so it is necessary to initialize 64 FIFO buffers in the network collector program, and store the converter data frame in the corresponding FIFO buffer according to the received converter node number. The host computer binds the data frame mapping table for the current network collector, and stores the network collector data frame mapping table in the non-volatile flash memory. After power-on initialization, the data frame is read from the flash and placed in the data buffer.
网络采集器作为一级环网和二级环网的中间节点,既是一级环网网络变换器的主站,又是二级环网网络综合器的从站,网络采集器主站和网络采集器从站分别以两个不同IP核的形式同时存在于网络采集器程序代码中,并在网络采集器内部分别开辟网络采集器主站缓冲区和网络采集器从站缓冲区,分别有网络采集器从站发送数据缓存和网络采集器主站接收数据缓存。As the intermediate node between the primary ring network and the secondary ring network, the network collector is both the master station of the primary ring network converter and the slave station of the secondary ring network integrator. The network collector master station and the network collector slave station exist in the network collector program code in the form of two different IP cores, and a network collector master station buffer and a network collector slave station buffer are opened inside the network collector, respectively, with a network collector slave station send data cache and a network collector master station receive data cache.
网络采集器按照上位机装订的数据帧映射表读取64个FIFO中的数据填入数据帧格式,每一个循环周期内判断FIFO中是否非空,来读取FIFO中的数据值,填入网络采集器数据帧结构缓冲区。当组成一个完成数据帧后,将当前数据帧存入发送缓冲区,发送给网络综合器。具体过程如下图所示,网络采集器采用A/B双缓冲区来完成数据的缓存。假设当前循环发送给网络采集器从站发送缓冲的数据来自于数据缓冲区B,数据缓冲区B中的数据则为网络采集器上一次循环采集的当前一级环网所有变换器的数据。本次循环命令到来时,直接将数据缓冲区B中的数据发给网络采集器从站发送缓冲区,当前循环中网络采集器主站主站接收缓冲区的数据读出后存储到对应FIFO缓冲区,并将FIFO中的数据读出后根据映射表存储到数据缓冲区A,等待下一次循环开启时将数据缓冲区A数据写入网络采集器从站发送缓冲区。数据缓冲区A和数据缓冲区B通过乒乓操作完成数据的发送,因此网络采集器内部数据发送会延迟一个循环周期。The network collector reads the data in 64 FIFOs according to the data frame mapping table bound by the host computer and fills them into the data frame format. In each cycle, it determines whether the FIFO is not empty to read the data value in the FIFO and fill it into the data frame structure buffer of the network collector. When a completed data frame is formed, the current data frame is stored in the sending buffer and sent to the network integrator. The specific process is shown in the figure below. The network collector uses A/B double buffer to complete the data cache. Assume that the data sent to the network collector slave station sending buffer in the current cycle comes from data buffer B, and the data in data buffer B is the data of all converters of the current primary ring network collected by the network collector in the last cycle. When the current cycle command arrives, the data in data buffer B is directly sent to the network collector slave station sending buffer. In the current cycle, the data in the network collector master station receiving buffer is read out and stored in the corresponding FIFO buffer, and the data in the FIFO is read out and stored in data buffer A according to the mapping table, waiting for the next cycle to start and write the data in data buffer A into the network collector slave station sending buffer. Data buffer A and data buffer B complete data transmission through ping-pong operation, so the internal data transmission of the network collector will be delayed by one cycle.
为完成采集器PCM帧的映射,上位机需要根据PCM映射表将同一个采集器内部的所有变换器的数据按照在全帧中的排列顺序逐个挑选,形成一个单独采集器的关于交换器的交换器全帧映射表,该交换器全帧映射表如下所示:To complete the mapping of the collector PCM frame, the host computer needs to select the data of all converters in the same collector one by one according to the arrangement order in the full frame according to the PCM mapping table, and form a full-frame mapping table of the switch for a separate collector. The full-frame mapping table of the switch is as follows:
以上为从PCM映射表中挑选的节点号为1的采集器环网中1-64节点号的数据映射表,按照在PCM映射表中的顺序排列,上位机需要从PCM映射表中挑选后形成一个单独采集器的映射表,通过环网总线下发给每一个采集器。从而设置完成属于每一个采集器的PCM全帧映射表,即交换器全帧映射表,当前采集器数据帧长度即可确定,通过参数装订将数据帧长度写入采集器flash存储器,采集器每次传输的数据都是有效数据,大大节约了采集器网络带宽资源,提高了网络传输效率。The above is the data mapping table of nodes 1-64 in the ring network of the collector with node number 1 selected from the PCM mapping table. Arranged in the order in the PCM mapping table, the host computer needs to select from the PCM mapping table to form a mapping table for a separate collector, and send it to each collector through the ring network bus. Thus, the PCM full-frame mapping table belonging to each collector, that is, the switch full-frame mapping table, is set up, the current collector data frame length can be determined, and the data frame length is written into the collector flash memory through parameter binding. The data transmitted by the collector each time is valid data, which greatly saves the collector network bandwidth resources and improves network transmission efficiency.
如图5所示,在步骤S34中还包括,S34C:将所述采集器全帧映射表发送至所述网络综合器,以使所述网络综合器根据所述采集器全帧映射表接收所述网络采集器的输出数据,并使所述网络综合器基于所述PCM映射表对所接收的所述网络采集器的输出数据进行映射汇总以完成多级联网络编帧的过程,包括:As shown in FIG5 , step S34 also includes: S34C: sending the collector full frame mapping table to the network integrator, so that the network integrator receives the output data of the network collector according to the collector full frame mapping table, and the network integrator maps and summarizes the received output data of the network collector based on the PCM mapping table to complete the multi-cascade network framing process, including:
SC1:按照预设的最大采样率将所述采集器全帧映射表发送至所述网络综合器中;SC1: sending the full frame mapping table of the collector to the network integrator according to the preset maximum sampling rate;
SC2:在所述采集器全帧映射表中添加遥测参数、平行延迟数据和存储重发数据的映射关系以形成PCM全帧映射表;SC2: Adding the mapping relationship between telemetry parameters, parallel delay data and storage retransmission data in the collector full frame mapping table to form a PCM full frame mapping table;
SC3:使所述网络综合器基于所述上位机设置的取样速率,对应所述PCM全帧中的非电量遥测参数来源P(z,y,x),对节点号为z的网络采集器发送数据请求指令,以使节点号为z的网络采集器将采集器发送缓冲区中的交换器全帧映射表编帧数据作为所述网络采集器的输出数据回传至所述网络综合器中;SC3: The network integrator sends a data request instruction to the network collector with node number z based on the sampling rate set by the host computer and corresponding to the non-electric telemetry parameter source P (z, y, x) in the PCM full frame, so that the network collector with node number z transmits the switch full frame mapping table framing data in the collector sending buffer as the output data of the network collector back to the network integrator;
SC4:所述网络综合器按照网络采集器的节点号z将所述网络采集器z的输出数据作为数据帧有序写入至所述网络综合器中所述网络采集器z所对应的FIF0缓冲区中;其中,所述网络综合器按照连接网络采集器的最大量初始化有16个FIF0缓冲区;SC4: The network integrator writes the output data of the network collector z as data frames in order into the FIFO buffer corresponding to the network collector z in the network integrator according to the node number z of the network collector; wherein the network integrator is initialized with 16 FIFO buffers according to the maximum number of connected network collectors;
SC5:判断所述网络采集器z所对应的FIF0缓冲区是否为非空,若非空,则将所述网络采集器所对应的FIF0缓冲区中的数据帧写入至所述网络综合器中的数据缓冲区;其中,所述数据缓冲区为A/B双缓冲区;SC5: Determine whether the FIFO buffer corresponding to the network collector z is not empty. If it is not empty, write the data frame in the FIFO buffer corresponding to the network collector into the data buffer in the network integrator; wherein the data buffer is an A/B double buffer;
SC6:当所述网络综合器中数据缓冲区中的数据帧总量达到一个完整的PCM全帧映射表时,则形成全帧映射表编帧数据,并将所述全帧映射表编帧数据送入预设的PCM编帧模块,以完成所及网络编帧。SC6: When the total amount of data frames in the data buffer in the network integrator reaches a complete PCM full-frame mapping table, full-frame mapping table framing data is formed, and the full-frame mapping table framing data is sent to the preset PCM framing module to complete the network framing.
所述网络综合器在根据所述采集器全帧映射表接收所述网络采集器的输出数据的同时,还包括:The network integrator, while receiving the output data of the network collector according to the collector full frame mapping table, also includes:
接收所述上位机所发送的关于PCM映射表的装订指令,并向所述上位机反馈所述网络采集器、网络变换器,以及网络综合器中各个子模块的状态信息。Receive the binding instruction about the PCM mapping table sent by the host computer, and feed back the status information of each submodule in the network collector, network converter and network integrator to the host computer.
网络综合器作为二级环网的主站和环网系统的综合终端,一方面接收上位机参数装订指令并向上位机反馈各个模块的状态信息,另一方面需要将所有采集器器的数据汇总,按照PCM全帧映射表格式输出给PCM编帧模块,输出PCM数据流信息。As the master station of the secondary ring network and the integrated terminal of the ring network system, the network integrator, on the one hand, receives parameter binding instructions from the host computer and feeds back the status information of each module to the host computer; on the other hand, it needs to aggregate the data of all collectors and output them to the PCM framing module in the format of the PCM full frame mapping table, thereby outputting the PCM data stream information.
上位机需要根据PCM映射表按照采集器的ID编号进行分类,不需要区分变换器类型和ID 号(此部分映射关系已经在采集器和变换器表征),网络综合器二级环网最多支持16个采集器组网,因此在网络综合器逻辑代码中分配16个FIFO缓冲区,每次循环结束后,网络综合器根据装订的PCM帧映射表读取对应采集器FIFO 中的数据,将读取的数据填入网络综合器PCM编帧缓冲区。网络综合器中映射表只表征当前数据来自哪个采集器,按照以下映射表从对应采集器的FIFO缓冲区中读取数据填入数据缓冲区,发送给PCM编帧模块。关于采集器的采集器全帧映射表如下表所示:The host computer needs to classify the collectors according to the ID number based on the PCM mapping table. There is no need to distinguish the converter type and ID number (this part of the mapping relationship has been represented in the collector and the converter). The secondary ring network of the network integrator supports up to 16 collectors, so 16 FIFO buffers are allocated in the network integrator logic code. After each cycle, the network integrator reads the data in the corresponding collector FIFO according to the bound PCM frame mapping table, and fills the read data into the network integrator PCM framing buffer. The mapping table in the network integrator only indicates which collector the current data comes from. According to the following mapping table, the data is read from the FIFO buffer of the corresponding collector and filled into the data buffer, and sent to the PCM framing module. The full frame mapping table of the collector is shown in the following table:
如上表所示,网络综合器进行PCM编帧过程中,不仅仅考虑采集器的数据,还需要将遥测参数,平行延迟数据,存储重发数据的映射关系反应到PCM全帧映射表。网络综合器读取PCM全帧映射表,通过全帧映射表读取对应采集器FIFO中的数据,采集器FIFO中的数据已经通过网络变换器映射和网络采集器映射按照PCM全帧顺序排列,因此读取的FIFO数据可以直接放入网络综合器全帧数据缓冲区,并送入PCM编帧模块。As shown in the table above, during the PCM framing process, the network integrator not only considers the data of the collector, but also needs to reflect the mapping relationship between telemetry parameters, parallel delay data, and storage retransmission data to the PCM full frame mapping table. The network integrator reads the PCM full frame mapping table and reads the data in the corresponding collector FIFO through the full frame mapping table. The data in the collector FIFO has been arranged in the PCM full frame sequence through the network converter mapping and the network collector mapping. Therefore, the read FIFO data can be directly placed in the network integrator full frame data buffer and sent to the PCM framing module.
如图5所示,网络综合器采用单缓冲机制,由于PCM数据流发送的速度明显低于循环周期数据采集速度,因此将采集器对应的FIFO中的数据按照映射表直接写入PCM FIFO缓冲区中,PCM数据发送模块可以直接从PCM FIFO缓冲区读取数据,按照PCM数据发送时序输出PCM数据流信息。上位机配置网络综合器数据帧映射信息需要区分采集器ID号、平行延迟、存储重发以及遥测参数等内容,因此需要三个字节映射表来映射对应通道的数据,映射表单独列出,从而使编帧更加完整详细,且有利于后期认为控制,提高编帧的灵活性。As shown in Figure 5, the network synthesizer adopts a single buffer mechanism. Since the transmission speed of the PCM data stream is significantly lower than the cycle data acquisition speed, the data in the FIFO corresponding to the collector is directly written into the PCM FIFO buffer according to the mapping table. The PCM data transmission module can directly read data from the PCM FIFO buffer and output the PCM data stream information according to the PCM data transmission timing. The host computer configures the network synthesizer data frame mapping information to distinguish the collector ID number, parallel delay, storage retransmission, and telemetry parameters. Therefore, three byte mapping tables are required to map the data of the corresponding channels. The mapping tables are listed separately, so that the framing is more complete and detailed, which is conducive to the later control and improves the flexibility of framing.
基于上述实施例,本发明提供的遥测通信多级联网络采编编帧方法,将遥测通信中网络采集器与网络变换器之间的网络传输设备环网作为一级环网,将网络综合器和所述网络采集器之间的网络传输设备环网作为二级环网;其中,网络采集器为所述一级环网的主站,网络变换器为一级环网的从站;网络采集器同时为所述二级环网的从站,网络综合器为所述二级环网的主站,而后根据一级环网和二级环网中各个网络设备的MAC地址对各个网络设备节点分别分配节点号,并通过预设的上位机基于节点号按照预设的非电量遥测参数来源编制PCM映射表,使一级环网、二级环网中的主站分别根据PCM映射表接收各自从站中的遥测数据,以使网络综合器动态接收全部遥测数据,将遥测数据与所述PCM映射表相对应以完成多级联网络编帧,如此,整个编帧过程统一、通用,可以适用于工业和航空航天领域中任意需要进行实时监测参数的环网,能够实现通用化、系列化和产品化,并且在整个编帧过程中每次传输的数据都是有效数据,大大节约网络带宽资源,提高网络传输效率。Based on the above embodiments, the telemetry communication multi-cascade network collection and editing framing method provided by the present invention takes the network transmission equipment ring network between the network collector and the network converter in the telemetry communication as the primary ring network, and takes the network transmission equipment ring network between the network integrator and the network collector as the secondary ring network; wherein the network collector is the master station of the primary ring network, and the network converter is the slave station of the primary ring network; the network collector is also the slave station of the secondary ring network, and the network integrator is the master station of the secondary ring network, and then assigns a node number to each network device node according to the MAC address of each network device in the primary ring network and the secondary ring network, and through a preset upper computer A PCM mapping table is compiled based on the node number according to the preset non-electrical telemetry parameter source, so that the master stations in the primary ring network and the secondary ring network receive the telemetry data in their respective slave stations according to the PCM mapping table, so that the network integrator dynamically receives all the telemetry data, and the telemetry data is matched with the PCM mapping table to complete the multi-cascade network framing. In this way, the entire framing process is unified and universal, and can be applied to any ring network in the industrial and aerospace fields that requires real-time monitoring of parameters, and can achieve universalization, serialization and productization. In addition, the data transmitted each time during the entire framing process is valid data, which greatly saves network bandwidth resources and improves network transmission efficiency.
如图6所示,本发明还提供一种遥测通信多级联网络采编编帧系统,实现如前所述的遥测通信多级联网络采编编帧方法,包括:As shown in FIG6 , the present invention further provides a telemetry communication multi-cascade network collection and editing framing system, which implements the telemetry communication multi-cascade network collection and editing framing method as described above, including:
遥测通信中网络采集器与网络变换器所组成的一级环网101,以及网络综合器和所述网络采集器组成的二级环网102;其中,所述网络采集器为所述一级环网的主站,所述网络变换器为所述一级环网的从站;所述网络采集器同时为所述二级环网的从站,所述网络综合器为所述二级环网的主站;A primary ring network 101 composed of a network collector and a network converter in telemetry communication, and a secondary ring network 102 composed of a network integrator and the network collector; wherein the network collector is the master station of the primary ring network, and the network converter is the slave station of the primary ring network; the network collector is also the slave station of the secondary ring network, and the network integrator is the master station of the secondary ring network;
上位机103,所述上位机用于根据所述一级环网和所述二级环网中各个网络设备的MAC地址对各个网络设备节点分别分配节点号,基于所述节点号按照预设的非电量遥测参数来源编制PCM映射表,使所述一级环网、所述二级环网中的主站分别根据所述PCM映射表接收各自从站中的遥测数据,以使所述网络综合器动态接收全部遥测数据,并将所述遥测数据与所述PCM映射表相对应以完成多级联网络编帧。The host computer 103 is used to assign node numbers to each network device node according to the MAC address of each network device in the primary ring network and the secondary ring network, and compile a PCM mapping table based on the node number according to a preset non-electrical telemetry parameter source, so that the master stations in the primary ring network and the secondary ring network receive the telemetry data in their respective slave stations according to the PCM mapping table, so that the network integrator dynamically receives all the telemetry data, and corresponds the telemetry data to the PCM mapping table to complete the multi-cascade network framing.
具体的实施方式参照上述遥测通信多级联网络采编编帧方法的实施例,再此不做赘述。The specific implementation method refers to the above-mentioned embodiment of the telemetry communication multi-cascade network data acquisition and editing framing method, which will not be described in detail here.
如上所述,本发明提供的遥测通信多级联网络采编编帧系统,将遥测通信中网络采集器与网络变换器之间的网络传输设备环网作为一级环网101,将网络综合器和所述网络采集器之间的网络传输设备环网作为二级环网102;其中,网络采集器为所述一级环网的主站,网络变换器为一级环网的从站;网络采集器同时为所述二级环网的从站,网络综合器为所述二级环网的主站,而后根据一级环网和二级环网中各个网络设备的MAC地址对各个网络设备节点分别分配节点号,并通过预设的上位机103基于节点号按照预设的非电量遥测参数来源编制PCM映射表,使一级环网、二级环网中的主站分别根据PCM映射表接收各自从站中的遥测数据,以使网络综合器动态接收全部遥测数据,将遥测数据与所述PCM映射表相对应以完成多级联网络编帧,如此,整个编帧过程统一、通用,可以适用于工业和航空航天领域中任意需要进行实时监测参数的环网,能够实现通用化、系列化和产品化,并且在整个编帧过程中每次传输的数据都是有效数据,大大节约网络带宽资源,提高网络传输效率。As described above, the telemetry communication multi-cascade network collection and editing frame system provided by the present invention uses the network transmission equipment ring network between the network collector and the network converter in the telemetry communication as the primary ring network 101, and uses the network transmission equipment ring network between the network integrator and the network collector as the secondary ring network 102; wherein, the network collector is the master station of the primary ring network, and the network converter is the slave station of the primary ring network; the network collector is also the slave station of the secondary ring network, and the network integrator is the master station of the secondary ring network, and then the node number is respectively assigned to each network device node according to the MAC address of each network device in the primary ring network and the secondary ring network, and the node number is ... 103 compiles a PCM mapping table based on the node number according to the preset non-electrical telemetry parameter source, so that the master stations in the primary ring network and the secondary ring network receive the telemetry data in their respective slave stations according to the PCM mapping table, so that the network integrator dynamically receives all the telemetry data, and corresponds the telemetry data with the PCM mapping table to complete the multi-cascade network framing. In this way, the entire framing process is unified and universal, and can be applied to any ring network in the industrial and aerospace fields that requires real-time parameter monitoring, and can achieve universalization, serialization and productization. In addition, the data transmitted each time during the entire framing process is valid data, which greatly saves network bandwidth resources and improves network transmission efficiency.
如上参照附图以示例的方式描述了根据本发明提出的遥测通信多级联网络采编编帧方法、系统。但是,本领域技术人员应当理解,对于上述本发明所提出的遥测通信多级联网络采编编帧方法、系统,还可以在不脱离本发明内容的基础上做出各种改进。因此,本发明的保护范围应当由所附的权利要求书的内容确定。As described above with reference to the accompanying drawings, the telemetry communication multi-cascade network collection and editing framing method and system proposed in the present invention are described by way of example. However, those skilled in the art should understand that various improvements can be made to the telemetry communication multi-cascade network collection and editing framing method and system proposed in the present invention without departing from the content of the present invention. Therefore, the protection scope of the present invention should be determined by the content of the attached claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411186514.0A CN118713799B (en) | 2024-08-28 | 2024-08-28 | Telemetry communication multi-cascade network collection and editing frame method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411186514.0A CN118713799B (en) | 2024-08-28 | 2024-08-28 | Telemetry communication multi-cascade network collection and editing frame method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118713799A true CN118713799A (en) | 2024-09-27 |
CN118713799B CN118713799B (en) | 2024-11-08 |
Family
ID=92807994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411186514.0A Active CN118713799B (en) | 2024-08-28 | 2024-08-28 | Telemetry communication multi-cascade network collection and editing frame method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118713799B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010082042A1 (en) * | 2009-01-14 | 2010-07-22 | Nine Tiles Networks Limited | Method and apparatus for transceiving data |
CN105450322A (en) * | 2015-11-11 | 2016-03-30 | 成都飞机工业(集团)有限责任公司 | Multi-bit-stream and multi-redundant telemetry data stream real-time fusion method |
CN106100799A (en) * | 2016-08-18 | 2016-11-09 | 西安中飞航空测试技术发展有限公司 | The conversion method of PCM data is converted to for multichannel Ethernet data |
CN116094577A (en) * | 2023-03-14 | 2023-05-09 | 天津讯联科技有限公司 | Multi-mode frame reconfigurable universal telemetry transmitter |
-
2024
- 2024-08-28 CN CN202411186514.0A patent/CN118713799B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010082042A1 (en) * | 2009-01-14 | 2010-07-22 | Nine Tiles Networks Limited | Method and apparatus for transceiving data |
CN105450322A (en) * | 2015-11-11 | 2016-03-30 | 成都飞机工业(集团)有限责任公司 | Multi-bit-stream and multi-redundant telemetry data stream real-time fusion method |
CN106100799A (en) * | 2016-08-18 | 2016-11-09 | 西安中飞航空测试技术发展有限公司 | The conversion method of PCM data is converted to for multichannel Ethernet data |
CN116094577A (en) * | 2023-03-14 | 2023-05-09 | 天津讯联科技有限公司 | Multi-mode frame reconfigurable universal telemetry transmitter |
Also Published As
Publication number | Publication date |
---|---|
CN118713799B (en) | 2024-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100499872C (en) | Voice-over IP communication without echo cancellation | |
US8352628B2 (en) | Method for transferring data from a source target to a destination target, and corresponding network interface | |
US6678275B1 (en) | Multitrunk ATM termination device | |
JPS63284654A (en) | Protocol engine | |
US8670460B2 (en) | Method and system for optimized transmission of data between a control device and a plurality of field devices | |
GB2355619A (en) | Packet switching | |
JP5853211B2 (en) | Bus interface device, relay device, and bus system including them | |
CN101001209B (en) | System for switching variable-length data packets of heterogeneous network and method thereof and method for forming address list using signal loop interface | |
KR19990067730A (en) | An apparatus and method for transmitting and receiving data into and out of a universal serial bus device | |
JP2012514388A (en) | Layer 2 packet aggregation and fragmentation in managed networks | |
CN113190291B (en) | A configurable protocol conversion system and method based on network-on-chip data acquisition | |
JPH0634548B2 (en) | Communications system | |
CN104375484B (en) | Distributed control system based on CAN open protocol | |
CN110109872A (en) | A kind of remote sensing satellite isomeric data unifies memory management unit | |
CN114257245A (en) | A Multi-Channel AD Acquisition System Based on DSP-FPGA | |
CN113556320B (en) | Ethernet multi-channel audio real-time transmission method and equipment | |
CN106292518A (en) | Remote PLC monitoring and debugging system and method | |
KR20010080097A (en) | Method of and apparatus for dispatching a processing element to a program location | |
JP2010517396A (en) | Network components, methods for operating such network components, automated systems having such network components, methods for communicating data in automated systems using such network components, corresponding computer programs, and Computer program products | |
CN118713799A (en) | Telemetry communication multi-cascade network collection and editing frame method and system | |
JP4033915B2 (en) | Data stream control method and apparatus | |
JP2002521942A (en) | Memory device and method of operating memory device | |
CN112783813B (en) | Interconnectable HART communication protocol chip and use method thereof | |
CN111554003B (en) | An aircraft-borne multi-node state monitoring data black box and monitoring method | |
CN105806399A (en) | Measurement parameter hybrid framing method of missile-borne recorder |
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 |