Remote synchronous receiving method for engine ground test parameters

文档序号:1963749 发布日期:2021-12-14 浏览:17次 中文

阅读说明:本技术 一种发动机地面试验测试参数远程同步接收方法 (Remote synchronous receiving method for engine ground test parameters ) 是由 王世辉 李铁 邹宇 丁凡 王欢欢 韩晓颖 张丹静 于 2021-08-02 设计创作,主要内容包括:本发明涉及一种发动机地面试验测试参数远程同步接收方法。包括1)参数设置,包括软件设置和采集端、接收端IP设置;2)解析xml配置文件,配置NATS信息,将用到的采集通道的属性信息和路数放在xml配置文件中;3)接收UDP包,分析抓包的数据得到采集软件发送UDP数据包的报文协议;4)解析采集数据,解析采样路数及每路采样对应的eUUnits值;5)封装数据并上传,将解析出的数据以及xml配置文件中的信息封装并发布到中间件服务器上;6)远程接收数据,将接收到的数据流转化为Sample data数据类型并发送到远程接收服务器上。本发明第一时间得到试验测试数据,为缩短发动机研制周期奠定基础。(The invention relates to a remote synchronous receiving method for testing parameters of an engine ground test. The method comprises the steps of 1) parameter setting, including software setting and IP setting of a collection end and a receiving end; 2) analyzing an xml configuration file, configuring NATS information, and placing the attribute information and the number of paths of the used acquisition channel in the xml configuration file; 3) receiving a UDP packet, analyzing the data of the packet capturing to obtain a message protocol of sending the UDP data packet by the acquisition software; 4) analyzing the collected data, analyzing the number of sampling paths and the eUUnnits value corresponding to each path of sampling; 5) packaging and uploading the data, and packaging and issuing the analyzed data and the information in the xml configuration file to a middleware server; 6) and receiving data remotely, converting the received data stream into a Sample data type and transmitting the Sample data type to a remote receiving server. The invention obtains test data in the first time and lays a foundation for shortening the development period of the engine.)

1. A remote synchronous receiving method for engine ground test parameters is characterized by comprising the following steps:

1) setting parameters including software setting, acquisition end and receiving end IP setting

Setting software configuration information, setting 'distribution UDP Date' as 'yes' and 'select UDP Date channels' as channels for distributing data packets, setting channel information including sampling rate, measurement type, sensor type, measurement unit, sensitivity and the like, and requiring three consistent bits in front for IP addresses of a collection end and a receiving end;

2) parsing xml configuration files

Firstly, configuring related information of NATS, including IP (Internet protocol) and port number of a NATS server and a publish-subscribe theme, secondly, placing attribute information of a used acquisition channel in an xml (extensible markup language) configuration file, defining according to the data format in the text, wherein the attribute of the acquisition channel comprises a data type, a channel number, a case number, a slot number and a channel number, and meanwhile, placing the path number of the acquisition channel in the xml configuration file;

3) receiving UDP packets

Analyzing a data sample of a Wireshark packet capturing can obtain a message protocol of a UDP (user Datagram protocol) data packet sent by acquisition software, wherein 37-38 th bytes represent the current sampling path number and are integer data; starting from the 61 th byte, every 4 bytes represent the value of the eUUnnits of one channel, namely the value sampled by the current sampling channel, wherein the value of the eUUnnits is a 32-bit floating point number, and the number of sampling ways is equal to the number of the eUUnnits;

4) parsing acquired data

Analyzing the UDP message according to the analysis of the message protocol of the UDP data packet sent by the acquisition software, wherein the main work is analyzing the number of sampling paths and the eUUnits value corresponding to each path of sampling;

5) encapsulating data and uploading

Packaging the analyzed data and related information in the xml configuration file into a Sample data type, converting the packaged Sample data into a binary data stream and issuing the binary data stream to a middleware server;

6) remote reception of data

The middleware server monitors and receives the binary data stream, converts the received data stream into a Sample data type and sends the Sample data type to the remote receiving server.

2. The method for remotely and synchronously receiving the ground test parameters of the engine according to claim 1, wherein the step 4) of analyzing the collected data comprises four parts of obtaining a 2-bit data stream, converting a 16-bit array, converting a 4-bit 16-bit array into integer data, and converting an 8-bit 16-bit array into 32-bit floating point data, and comprises the following steps:

41) the data directly acquired from the UDP data packet is binary data stream, and an array recvBuf of a byte type is defined for storing the binary data stream acquired from the UDP data packet;

42) in the byte array, one data corresponds to one byte, the first four digits and the second four digits of one byte are respectively obtained by using shift operation, the first four digits and the second four digits are respectively converted into hexadecimal integer numbers, then the obtained hexadecimal numbers are converted into corresponding characters, and the hexadecimal array stored by using a character string type is obtained, so that the data in the UDP packet is converted into the character array stored by using the hexadecimal;

43) multiplying each bit by the corresponding n-th power of an integer 16 (n =0, 1, 2, 3, 4, 5, 6, 7), and adding all the obtained numbers to convert a hexadecimal array with the length of 4 into integer data;

44) firstly, a 16-system array is converted into a 2-system array, then the 2-system array is converted into a 32-bit floating point, and after the 2-system array is converted into the 32-bit floating point, firstly, the 2-system array is ensured to be 32-bit, then, the floating point sign is determined, the effective number and the exponent number are decomposed, and finally, the 32-bit floating point is calculated and stored by a double type.

3. The remote synchronous receiving method for the ground test parameters of the engine as claimed in claim 1, wherein: the acquisition software is selected as Pacific 6000 software.

Technical Field

The invention relates to the field of test, in particular to a remote synchronous receiving method for a ground test parameter of an engine.

Background

The solid rocket engine ground test is an essential test item in the engine development process, and is the only test item for testing whether the design parameters of the engine meet the overall requirement parameters and whether each structure in the engine is stable. Under the conditions of intense and competitive development cycle of missile weapons, the ground test of the engine is particularly concerned by weapon model totality, engine designers, even military representatives and the like. To obtain the test results of the engine floor test at the first time, each representative would typically gather from a remote location to the test site to visit the test, but the entire floor test typically lasts only a few tens of seconds. On the other hand, the engine ground test parameter testing equipment is the Pacific 6000, and the data distribution function is arranged in the acquisition software through communication with equipment manufacturers, so that the further analysis can be carried out, and the remote synchronous receiving of the test data is realized.

The distributed database adopts a data synchronization method and a synchronization middleware, and a plurality of ISVs also develop a large amount of software and products with heterogeneous database synchronization functions, thereby gaining general acceptance in the market.

The existing data synchronization method is used independently, the existing data are remotely and synchronously transmitted, and the existing data synchronization method is combined with the existing Pacific 6000 test software to be used for remotely and synchronously receiving the data acquired in real time.

Aiming at the problems and the requirements of using the existing Pacific 6000 test software in combination, the invention analyzes the parameter configuration file by analyzing and comparing UDP (user Datagram protocol) data packets captured by WireShark according to the requirements of remotely and synchronously receiving real-time acquired data, thereby remotely and synchronously transmitting the acquired data after repackaging, realizing the remote and synchronous receiving of the test data, enabling related personnel to receive and analyze the ground test data of the engine at the first time, and effectively shortening the development cycle of the engine.

Disclosure of Invention

Technical problem to be solved by the invention

The invention provides a remote synchronous receiving method for testing parameters of an engine ground test, which analyzes the types of acquisition parameters, the number of acquisition channels, the corresponding value of each acquisition channel and an xml configuration file by analyzing UDP packets captured by WireShark and comparing the UDP packets with data actually acquired by Pacific acquisition software, thereby remotely and synchronously transmitting the acquired data to a receiving server after packaging.

Technical scheme adopted for solving technical problem

A remote synchronous receiving method for engine ground test parameters comprises the following steps:

1) parameter setting

The parameter setting comprises the Pacific 6000 software setting and the IP setting of the acquisition end and the receiving end,

pacific 6000 software settings

Setting software configuration information, setting the distribution UDP Date as yes and setting the select UDP data channels as channels for distributing the data packets;

setting channel information including sampling rate, measurement type, sensor type, measurement unit, sensitivity, etc.,

the IP addresses of the acquisition end and the receiving end are required to be consistent;

2) parsing xml configuration files

Firstly, the relevant information of NATS, including IP, port number and publish-subscribe subject of the NATS server,

secondly, because the UDP packet does not include the attribute information corresponding to each acquisition channel, the attribute information of the acquisition channel to be used needs to be placed in the xml configuration file, and according to the data format definition in the foregoing, the attributes of the acquisition channel include dataType (data type), pacificNum (channel number), cratenem (chassis number), slotNum (slot number), and passNum (channel number), and at the same time, the number of paths of the acquisition channel also needs to be placed in the xml configuration file,

3) receiving UDP packets

Analyzing a data sample of a Wireshark packet capturing to obtain a message protocol of a UDP (user Datagram protocol) data packet sent by Pacific acquisition software, wherein 37-38 bytes represent the current sampling path number and are integer data; starting from the 61 th byte, every 4 bytes represent the value of the eUUnnits of one channel (the value sampled by the current sampling channel), wherein the value of the eUUnnits is a 32-bit floating point number, and the number of sampling ways is equal to the number of the eUUnnits;

4) parsing acquired data

According to the analysis of the message protocol of the UDP data packet sent by the Pacific ocean acquisition software, the main work of analyzing the UDP message is to analyze the number of sampling paths and the eUUnits value corresponding to each path of sampling;

5) encapsulating data and uploading

Packaging the analyzed data and related information in the xml configuration file into a Sample data type, converting the packaged Sample data into a binary data stream and issuing the binary data stream to a middleware server;

6) remote reception of data

The middleware server monitors and receives the binary data stream, converts the received data stream into a Sample data type and sends the Sample data type to the remote receiving server.

Further, analyzing the collected data in step 4) includes acquiring four parts, namely, a 2-bit data stream, converting a 16-bit array, converting a 4-bit array with a 16-bit array into integer data, and converting an 8-bit array with a 16-bit array into 32-bit floating point data, and includes the following steps:

1) the data directly acquired from the UDP data packet is binary data stream, and an array recvBuf of a byte type is defined for storing the binary data stream acquired from the UDP data packet;

2) in the byte array, one data corresponds to one byte, the first four digits and the second four digits of one byte are respectively obtained by using shift operation, the first four digits and the second four digits are respectively converted into hexadecimal integer numbers, then the obtained hexadecimal numbers are converted into corresponding characters, and the hexadecimal array stored by using a character string type is obtained, so that the data in the UDP packet is converted into the character array stored by using the hexadecimal;

3) multiplying each bit by the corresponding n-th power of an integer 16 (n is 0, 1, 2, 3, 4, 5, 6, 7), and adding all obtained numbers to convert a hexadecimal array with the length of 4 into integer data;

4) firstly, a 16-system array is converted into a 2-system array, then the 2-system array is converted into a 32-bit floating point, and after the 2-system array is converted into the 32-bit floating point, firstly, the 2-system array is ensured to be 32-bit, then, the floating point sign is determined, the effective number and the exponent number are decomposed, and finally, the 32-bit floating point is calculated and stored by a double type.

The beneficial effects obtained

The method realizes the remote synchronous receiving of the ground test data of the engine, enables the persons concerned about the success or failure of the test, such as engine designers, model totalities, general assembly personnel, and the like, to remotely and synchronously receive the data curves of all the test parameters of the ground test, receives the ground test data of the engine at the first time and analyzes the ground test data, effectively shortens the development period of the engine, and lays a foundation for shortening the development period of the engine.

Drawings

FIG. 1: a remote synchronous receiving method for engine ground test parameters is disclosed;

FIG. 2: analyzing the acquired data flow chart;

FIG. 3: a UDP message protocol;

FIG. 4: a vibration curve collected by the pacific 6000 in the 1 st road;

FIG. 5: 1 st path of vibration curve received remotely and synchronously;

FIG. 6: a vibration curve collected by the No. 2 Pacific 6000;

FIG. 7: 2 nd path remote synchronous receiving vibration curve;

FIG. 8: strain curves collected from the pacific 6000 in the 1 st lane;

FIG. 9: and (3) receiving strain curves of the 1 st path in a remote synchronous mode.

Detailed Description

The invention provides a remote synchronous receiving method for engine ground test parameters, which comprises the following steps of setting parameters, analyzing an xml configuration file, receiving a UDP packet, analyzing acquired data, packaging and uploading the data, and remotely receiving the data, wherein the specific steps are as follows:

1) parameter setting

Pacific 6000 software settings

Setting software configuration information, setting the distribution UDP Date as yes and the select UDP data channels as channels for distributing the data packets;

setting channel information including sampling rate, measurement type, sensor type, measurement unit, sensitivity and the like;

the IP addresses of the acquisition end and the receiving end are required to be consistent.

2) Parsing xml configuration files

Firstly, configuring related information of NATS, including IP (Internet protocol) and port number of a NATS server and a publish-subscribe topic;

secondly, because the UDP packet does not include the attribute information corresponding to each acquisition channel, the attribute information of the acquisition channel that is used needs to be placed in the xml configuration file, and according to the data format definition in the foregoing, the attributes of the acquisition channel include dataType (data type), pacificNum (channel number), cratenem (chassis number), slotNum (slot number), and passNum (channel number), and at the same time, the number of ways of the acquisition channel also needs to be placed in the xml configuration file.

3) Receiving UDP packets

Analyzing a data sample of a Wireshark packet capturing to obtain a message protocol of a UDP (user Datagram protocol) data packet sent by Pacific acquisition software, wherein 37-38 bytes represent the current sampling path number and are integer data; starting at byte 61, every 4 bytes represents the value of the eUUnits (sampled value of the current sampling channel) of one channel, wherein the value of the eUUnits is a 32-bit floating point number, and the number of sampling ways is equal to the number of the values of the eUUnits.

4) Parsing acquired data

According to the analysis of the packet protocol of the UDP data packet sent by the pacific acquisition software, it can be found that when the UDP packet is analyzed, the main work is to analyze the number of sampling paths and the eUUnits value corresponding to each path of sampling.

Analyzing the collected data comprises four parts of obtaining 2-system data flow, converting a 16-system array, converting a 4-bit 16-system array into integer data and converting an 8-bit 16-system array into 32-bit floating point data, and specifically comprises the following steps:

a) the data directly acquired from the UDP data packet is binary data stream, and an array recvBuf of a byte type is defined for storing the binary data stream acquired from the UDP data packet;

b) in the byte array, one data corresponds to one byte, the first four digits and the second four digits of one byte are respectively obtained by using shift operation, the first four digits and the second four digits are respectively converted into hexadecimal integer numbers, then the obtained hexadecimal numbers are converted into corresponding characters, and the hexadecimal array stored by using a character string type is obtained, so that the data in the UDP packet is converted into the character array stored by using the hexadecimal;

c) multiplying each bit by the corresponding n-th power of an integer 16 (n is 0, 1, 2, 3, 4, 5, 6, 7), and adding all obtained numbers to convert a hexadecimal array with the length of 4 into integer data;

d) firstly, a 16-system array is converted into a 2-system array, then the 2-system array is converted into a 32-bit floating point, and after the 2-system array is converted into the 32-bit floating point, firstly, the 2-system array is ensured to be 32-bit, then, the floating point sign is determined, the effective number and the exponent number are decomposed, and finally, the 32-bit floating point is calculated and stored by a double type.

5) Encapsulating data and uploading

And packaging the analyzed data and related information in the xml configuration file into a Sample data type, converting the packaged Sample data into a binary data stream and issuing the binary data stream to a middleware server.

6) Remote reception of data

The middleware server monitors and receives the binary data stream, converts the received data stream into a Sample data type and sends the Sample data type to the remote receiving server.

In order to make the objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is obvious that the described embodiments are only some, not all embodiments of the proposed solution. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

As shown in fig. 1, a method for remotely and synchronously receiving engine ground test parameters includes setting pacific 6000 software, analyzing xml configuration files, receiving UDP packets, analyzing collected data, packaging and uploading data, and remotely receiving data, where the following method takes remote reception of two paths of vibration and one path of empty mining signals of strain parameters as an example:

1) parameter setting

The parameter setting comprises the Pacific 6000 software setting and the IP setting of the acquisition end and the receiving end,

pacific 6000 software settings

Setting software configuration information, setting the distribution UDP Date to be "yes", and setting the select UDP data channels to be three channels of 0: 1: 0, 0: 1 and 0: 7: 0;

vibration sampling rate: 1000Spc/channel, measurement type: acceleration, sensor type: charge, measured in g's;

strain sampling rate: 1000Spc/channel, measurement type: strain, sensor type: half bridge, unit of measurement: uStrain, drive level: 2V.

IP setting of collection end and receiving end

Here, the acquisition end sets the IP address to 192.168.0.5;

the recipient IP address is 192.168.0.6.

2) Parsing xml configuration files

The related information of the middleware NATS is first configured, including the IP of the middleware server, the port number, and the topic of publish-subscribe.

Secondly, since the UDP packet does not include the attribute information corresponding to each acquisition channel, the attribute information of the acquisition channel used needs to be placed in the xml configuration file. According to the data format definition above, the attributes of the acquisition channel include dataType (data type), pacificNum (channel number), cratenem (chassis number), slotNum (slot number), and passNum (channel number). At the same time, the number of channels to acquire is also put in the xml configuration file.

The specific xml configuration file is as follows:

3) receiving UDP packets

And analyzing the data sample of the Wireshark packet capture to obtain a message protocol of the UDP data packet sent by the Pacific acquisition software. Wherein, the 37 th to 38 th bytes represent the current sampling path number and are integer data; starting at byte 61, every 4 bytes represents the value of the eUUnits (the value sampled by the current sampling channel) of one channel, where the value of the eUUnits is a 32-bit floating point number. The number of sampling paths is equal to the number of eUUnits values.

The UDP packet protocol definition is shown in fig. 3.

4) Parsing acquired data

As shown in fig. 2, analyzing the collected data includes acquiring a 2-bit data stream, converting a 16-bit array, converting a 4-bit 16-bit array into integer data, and converting an 8-bit 16-bit array into 32-bit floating point data. The method specifically comprises the following steps:

a) the data directly acquired from the UDP data packet is binary data stream, and an array recvBuf of a byte type is defined for storing the binary data stream acquired from the UDP data packet;

b) in the byte array, one data corresponds to one byte, the first four digits and the second four digits of one byte are respectively obtained by using shift operation, the first four digits and the second four digits are respectively converted into hexadecimal integer numbers, then the obtained hexadecimal numbers are converted into corresponding characters, and the hexadecimal array stored by using a character string type is obtained, so that the data in the UDP packet is converted into the character array stored by using the hexadecimal;

c) multiplying each bit by the corresponding n-th power of an integer 16 (n ═ O, 1, 2, 3, 4, 5, 6, 7), and then adding all the obtained numbers together to convert the hexadecimal array with the length of 4 into integer data;

d) firstly, the 16-system array is converted into the 2-system array, and then the 2-system array is converted into the 32-bit floating point number. When the 2-system array is converted into a 32-bit floating point number, firstly, the 2-system array is ensured to be 32-bit, then, the floating point sign is determined, the significant number and the exponent number are decomposed, and finally, the 32-bit floating point number is calculated and stored by a double type.

5) Encapsulating data and uploading

And packaging the analyzed data and related information in the xml configuration file into a Sample data type, converting the packaged Sample data into a binary data stream, and issuing the binary data stream to a middleware server. Fig. 4 and 6 are respectively two paths of vibration data of the air mining acquired by the pacific 6000 acquisition software, and fig. 8 is one path of strain data of the air mining acquired by the pacific 6000 acquisition software.

6) Remote reception of data

The middleware server monitors and receives a binary data stream, converts the received data stream into a Sample data type and transmits the Sample data type to the remote receiving server, fig. 5 and 7 respectively show two paths of vibration data remotely received by the method, and fig. 9 shows one path of strain data remotely received by the method.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于区块链的业务处理方法、电子设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!