A network communication method and device based on HTTP and UDP nested optimization data parsing
By optimizing the data parsing method through HTTP and UDP nesting, the stability and efficiency issues of data transmission in aircraft intelligent technology are solved, achieving efficient data transmission in network environments with high packet loss and latency, and improving radar reception speed and the stability of visual display.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENYANG AIRCRAFT DESIGN INST AVIATION IND CORP OF CHINA
- Filing Date
- 2022-12-01
- Publication Date
- 2026-07-21
AI Technical Summary
Existing technologies struggle to efficiently transmit aircraft attitude and adversarial status information in aircraft intelligence, especially in environments with high packet loss and latency, resulting in insufficient radar reception speed and unstable visual display.
A nested optimized data parsing method based on HTTP and UDP is adopted. Data is received from the aircraft's intelligent brain via HTTP, and the RapidJSON recursive and iterative parser is used to split the data into packets. The packets are then sent to the visual display terminal and the radar terminal via UDP multicast, thus building a reliable transmission protocol to solve the data loss problem.
Achieving efficient data transmission in network environments with high packet loss and latency improves radar reception speed and visual display stability, simplifies configuration, and reduces cost requirements.
Smart Images

Figure CN116192826B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of data communication technology, and specifically relates to a network communication method and apparatus based on HTTP and UDP nested optimized data parsing. Background Technology
[0002] As aircraft intelligence technology matures, the required visual display becomes increasingly important. It is necessary to view the current attitude and combat status of the aircraft's intelligent brain from above the visual display. Furthermore, during aircraft combat, it is necessary to receive radar messages to determine the enemy aircraft's azimuth, pitch, and target distance. This requires a communication technology to support this function. Summary of the Invention
[0003] To address the aforementioned issues, this application designs a network communication method and apparatus based on HTTP and UDP nested optimized data parsing, used for communication between the aircraft's intelligent brain and hardware devices such as visual display clients and radar, to collect and transmit data.
[0004] The first aspect of this application provides a network communication method based on HTTP and UDP nested optimized data parsing, mainly including:
[0005] Step S1: Receive aircraft attitude information and adversarial status information from the aircraft's intelligent brain via HTTP;
[0006] Step S2: Analyze and split the aircraft attitude information and combat status information to form multiple data packets;
[0007] Step S3: Assemble the unpacked data into structural data according to the requirements of the visual display terminal and the radar terminal;
[0008] Step S4: Send the structure data to the visual display terminal and the radar terminal via UDP multicast.
[0009] Preferably, in step S2, a recursive parser and an iterative parser based on rapidjson are used to parse and decompose the aircraft attitude information and adversarial state information.
[0010] Preferably, in step S3, the requirements of the visual display terminal and the radar terminal are solidified into multiple requirement configuration components, and the structure data can be configured with one click by the user.
[0011] Preferably, the aircraft attitude information includes the aircraft azimuth, aircraft pitch, distance between the aircraft and the target, and northeast-facing velocity information.
[0012] A second aspect of this application provides a network communication device for optimized data parsing based on HTTP and UDP nesting, applied to a sending server, mainly comprising:
[0013] The data receiving module is used to receive aircraft attitude information and adversarial status information transmitted from the aircraft's intelligent brain via HTTP.
[0014] The data parsing module is used to parse and decompose the aircraft attitude information and combat status information to form multiple decompressed data packets;
[0015] The data assembly module is used to assemble the unpacked data into structured data according to the needs of the visual display terminal and the radar terminal.
[0016] The data transmission module is used to send the structure data to the visual display terminal and the radar terminal via UDP multicast.
[0017] Preferably, in the data parsing module, a recursive parser and an iterative parser based on RapidJSON are used to parse and decompose the aircraft attitude information and adversarial state information.
[0018] Preferably, in the data assembly module, the requirements of the visual display terminal and the radar terminal are solidified into multiple requirement configuration components, and the structure data can be configured with one click by the user.
[0019] Preferably, the aircraft attitude information includes the aircraft azimuth, aircraft pitch, distance between the aircraft and the target, and northeast-facing velocity information.
[0020] This application effectively solves the data loss problem and encapsulates complex retransmission strategy logic by constructing a reliable transmission protocol based on UDP. Under certain packet loss rate and latency network environments, it can achieve high-efficiency data transmission, improve the radar's receiving speed, and enhance the stability of situation display on the visual display terminal. Attached Figure Description
[0021] Figure 1 This is a flowchart of a preferred embodiment of the network communication method for optimizing data parsing based on nested HTTP and UDP in this application.
[0022] Figure 2 This is a schematic diagram illustrating data parsing according to a preferred embodiment of this application. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be described in more detail below with reference to the accompanying drawings. In the drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The described embodiments are only some, not all, of the embodiments of this application. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application. The embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0024] The first aspect of this application provides a network communication method based on HTTP and UDP nested optimized data parsing, such as... Figure 1 As shown, it mainly includes:
[0025] Step S1: Receive aircraft attitude information and adversarial status information from the aircraft's intelligent brain via HTTP.
[0026] In some optional implementations, the data returned by the radar is also received via HTTP. This application provides the aircraft's position information and control commands in real time, displays the aircraft's current combat situation information, and shows it through additional combat visual display software. Additionally, the real-time aircraft position information is transmitted to the radar, which locates the target and returns the data. Therefore, in step S1, data from the aircraft's intelligent system and the radar needs to be received via HTTP.
[0027] This application first designs an implementation method that can receive data from the aircraft's intelligent brain. This implementation method can efficiently receive transmitted data when the software starts up. Therefore, it uses an HTTP connection. Moreover, because the HTTP protocol is relatively simple, the program size of the HTTP server is small, resulting in a fast communication speed. The connection time is about 0.03 seconds, which can meet the needs of receiving data updates.
[0028] In this embodiment, the HTTP protocol employs a request / response model. The client sends a request message to the server, which includes the request method, URL, protocol version, request headers, and request data. The server responds with a status line, which includes the protocol version, success or error code, server information, response headers, and response data.
[0029] Step S2: Analyze and split the aircraft attitude information and combat status information to form multiple data packets.
[0030] In some optional implementations, in step S2, a recursive parser and an iterative parser based on rapidjson parse and decompose the aircraft attitude information and adversarial state information.
[0031] The primary goal of parsing data packets is to improve accuracy and speed, enabling rapid updates of the data packets for subsequent use. This embodiment utilizes RapidJSON for parsing because recursive parsers are faster and perform better when parsing large data packets. Simultaneously, the iterative parser uses a custom stack to maintain the parsing state. The parsing process is as follows... Figure 2 As shown, where, Figure 2 The topmost data is the data before parsing, and the data obtained after parsing is... Figure 2 The three unpacked data shown below represent data that has been split from the packaged data transmitted by the aircraft's intelligent brain and can be reassembled and sent to the requesting party according to the requirements.
[0032] Step S3: Assemble the unpacked data into structural data according to the requirements of the visual display terminal and the radar terminal.
[0033] In some alternative implementations, in step S3, the requirements of the visual display terminal and the radar terminal are solidified into multiple requirement configuration components, and the structure data can be configured with one click by the user.
[0034] Step S4: Send the structure data to the visual display terminal and the radar terminal via UDP multicast.
[0035] In this embodiment, after successful data parsing, the structure data can be configured with a single click and then multicasted via UDP to the situation monitoring and radar terminals. No connection is established between the source and terminal before data transmission; when the terminal wants to transmit, it captures data from the application and uploads it to the network as quickly as possible. The speed of UDP data transmission is limited only by the application's data generation speed, the computer's capabilities, and the transmission bandwidth; therefore, using UDP to send data can fully meet the speed requirements.
[0036] In some alternative implementations, the aircraft attitude information includes the aircraft azimuth, aircraft pitch, distance between the aircraft and the target, and northeast-facing velocity information.
[0037] This application requires no complex operations; simply start the program and follow the central control command. The entire process is automated and possesses cognitive and learning capabilities. The communication strategy will spontaneously explore received information and perform one-click configuration. Compared with existing technologies, this product is more convenient and faster to configure. It utilizes comparison interface files for multi-faceted data transmission. This application also effectively solves data loss problems and encapsulates complex retransmission strategy logic by constructing a reliable UDP-based transmission protocol. Under certain packet loss and latency network environments, it can achieve high-efficiency data transmission, ultimately improving radar reception speed and situational awareness stability. In terms of cost, the production and release of this product only requires a computer with high computing power, a server capable of stable operation in the later stages of software development, and programming software.
[0038] For the aforementioned communication method, this application constructs a communication testing software. Developed and compiled in C++, this software is divided into two parts to facilitate the receiving of agent data: the software itself and a Python script responsible for loading the aircraft agent's own data into a container and simultaneously sending the data to the communication software. The software captures the data and transmits it to the radar, while the client receives radar feedback information. Speed tests demonstrate that the communication method of this application improves the overall receiving rate, enabling near real-time reception and transmission of the aircraft agent's current state data; it also improves the accuracy of data packet parsing, significantly increasing parsing speed and simultaneously improving radar receiving speed.
[0039] A second aspect of this application provides a network communication device based on HTTP and UDP nested optimized data parsing, corresponding to the above method, applied to a sending server, mainly comprising:
[0040] The data receiving module is used to receive aircraft attitude information and adversarial status information transmitted from the aircraft's intelligent brain via HTTP.
[0041] The data parsing module is used to parse and decompose the aircraft attitude information and combat status information to form multiple decompressed data packets;
[0042] The data assembly module is used to assemble the unpacked data into structured data according to the needs of the visual display terminal and the radar terminal.
[0043] The data transmission module is used to send the structure data to the visual display terminal and the radar terminal via UDP multicast.
[0044] In some optional implementations, the data parsing module uses a recursive parser and an iterative parser based on RapidJSON to parse and decompose the aircraft attitude information and adversarial state information.
[0045] In some alternative implementations, the data assembly module solidifies the requirements of the visual display terminal and the radar terminal into multiple requirement configuration components, and the structure data can be configured with one click by the user.
[0046] In some alternative implementations, the aircraft attitude information includes the aircraft azimuth, aircraft pitch, distance between the aircraft and the target, and northeast-facing velocity information.
[0047] Although this application has been described in detail above with general descriptions and specific embodiments, some modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, such modifications or improvements made without departing from the spirit of this application are all within the scope of protection claimed in this application.
Claims
1. A network communication method based on HTTP and UDP nested optimized data parsing, characterized in that, The method, applied to communication scenarios between an aircraft's intelligent brain, a visual display terminal, and a radar terminal, includes: Step S1: Receive aircraft attitude information and adversarial status information from the aircraft's intelligent brain via HTTP; Step S2: Analyze and split the aircraft attitude information and combat status information to form multiple data packets; Step S3: Assemble the unpacked data into structural data according to the requirements of the visual display terminal and the radar terminal; Step S4: Send the structure data to the visual display terminal and the radar terminal via UDP multicast. In step S2, the recursive and iterative parsers based on rapidjson parse and decompose the aircraft attitude information and adversarial state information. In step S3, the requirements of the visual display terminal and the radar terminal are solidified into multiple requirement configuration components, and the structure data can be configured with one click by the user.
2. The network communication method based on HTTP and UDP nested optimized data parsing as described in claim 1, characterized in that, The aircraft attitude information includes the aircraft azimuth, aircraft pitch, distance between the aircraft and the target, and northeast-facing velocity information.
3. A network communication device based on HTTP and UDP nested optimized data parsing, applied to a sending-end server, characterized in that, The transmitting server is used for communication between the aircraft's intelligent brain, the visual display terminal, and the radar terminal. The device includes: The data receiving module is used to receive aircraft attitude information and adversarial status information transmitted from the aircraft's intelligent brain via HTTP. The data parsing module is used to parse and decompose the aircraft attitude information and combat status information to form multiple decompressed data packets; The data assembly module is used to assemble the unpacked data into structured data according to the needs of the visual display terminal and the radar terminal. The data transmission module is used to send the structure data to the visual display terminal and the radar terminal via UDP multicast. In the data parsing module, a recursive parser and an iterative parser based on RapidJSON are used to parse and decompose the aircraft attitude information and adversarial state information. In the data assembly module, the requirements of the visual display terminal and the radar terminal are solidified into multiple requirement configuration components, and the structure data can be configured with one click by the user.
4. The network communication device based on HTTP and UDP nested optimized data parsing as described in claim 3, characterized in that, The aircraft attitude information includes the aircraft azimuth, aircraft pitch, distance between the aircraft and the target, and northeast-facing velocity information.