Real-time data transmission method and system in narrow bandwidth environment

By designing a personalized real-time transmission protocol format and data encapsulation, compression, and segmentation steps, combining programming language optimization and adaptive transmission strategies, data transmission delay and loss problems in narrow bandwidth environments are solved, and efficient and stable data transmission is achieved.

CN120547246APending Publication Date: 2025-08-26SCHOOL OF INFORMATION & COMM TECH NAT UNIV OF DEFENSE TECH OF THE CHINESE PEOPLES LIBERATION ARMY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510595219.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-09
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

In a narrow bandwidth environment, traditional data transmission methods cannot meet the requirements of real-time and integrity, resulting in high data transmission delay and data loss.

Method used

Design a personalized real-time transmission protocol format, adopt data encapsulation, compression, segmentation and other steps to convert data into code, and optimize it using programming language, combine lossless compression algorithms and adaptive transmission strategies to dynamically adjust transmission parameters to adapt to network status.

Benefits of technology

It improves data transmission speed and efficiency in narrow bandwidth environments, reduces latency and loss rates, meets real-time, integrity and reliability requirements, and adapts to diverse narrow bandwidth application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120547246A_ABST
    Figure CN120547246A_ABST
Patent Text Reader

Abstract

The invention provides a real-time data transmission method and system in a narrow bandwidth environment, and relates to the technical field of computers, and the method comprises the steps: obtaining a protocol demand, and determining a protocol format; acquiring to-be-transmitted data, and determining a data protocol structure; filling and packaging the data protocol structure into a protocol format to obtain packaged data, and processing the packaged data in a binary form to obtain binary data; sequentially performing data compression processing and data segmentation processing on the binary data according to the data compression information and the data segmentation information to obtain a first transmission code; compiling and optimizing the first transmission code by utilizing a programming language to obtain a second transmission code; and transmitting the second transmission code to a receiving end to realize real-time data transmission in a narrow bandwidth environment. The problems that real-time data transmission cannot be guaranteed in a narrow bandwidth environment, and the real-time performance and integrity requirements of data transmission cannot be met are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a real-time data transmission method and system in a narrow bandwidth environment. Background Art

[0002] When devices collect real-time data, the actual network bandwidth on-site is often very limited, with frequent interruptions and a minimum bandwidth of only a few kilobytes. In such a narrow bandwidth environment, with bandwidths under 100 kilobytes, traditional data transmission methods can suffer from high latency, data congestion, and data loss. These methods fail to meet the real-time and integrity requirements of data collection, hindering personnel's ability to quickly and accurately grasp dynamic device information.

[0003] Traditional data transmission methods mainly use Web Socket (communication term), HTTP (Hypertext Transfer Protocol), message mechanisms, etc. to convert data into formats such as JSON, XML, CSV, etc. to achieve data transmission.

[0004] JSON (JavaScript Object Notation) is a format that organizes and represents data in the form of key-value pairs. Its structure includes basic types such as objects, arrays, strings, numbers, Boolean values, and null. During data transmission, the client serializes the organized data into a string format according to the JSON format and sends it to the server via the network protocol. After receiving the data, the server performs a deserialization operation to restore it to the original data structure for subsequent application. The disadvantages of the JSON format include: (1) the syntax specification lacks annotations, resulting in the inability to add comments; (2) it does not support namespaces, resulting in naming conflicts and is not conducive to data integration and management; (3) it occupies network bandwidth and cannot guarantee real-time data transmission in a narrow bandwidth environment.

[0005] XML (Extensible Markup Language) describes data using custom tags. It can not only nest data to form a hierarchical structure, but also add attributes within tags to further describe element characteristics. Its data transmission process is similar to that of JSON. The disadvantages of XML include: (1) a large number of tags and tag opening and closing, resulting in a relatively bloated data format; (2) a specialized XML parser is required to process the data, making parsing complex and time-consuming; (3) strict syntax; for example, an incorrect tag opening or closing or an incorrectly written attribute will result in parsing failure; and (4) it occupies network bandwidth and cannot guarantee real-time data transmission in a narrow bandwidth environment.

[0006] The CSV format (Concurrent Version System) stores tabular data in plain text. Each row of data represents a record, and the fields (columns) in each row are separated by specific delimiters. The data transmission process is similar to that of JSON and XML formats. The CSV format has the following disadvantages: (1) The format itself does not clearly indicate the data type of each field, resulting in unclear data types; (2) It can only simply represent tabular data and lacks the ability to describe structure; (3) The format itself contains special character fields such as delimiters and line breaks, which makes it sensitive to special characters and prone to parsing errors; (4) It occupies network bandwidth and cannot guarantee real-time data transmission in a narrow bandwidth environment.

[0007] It can be seen that the three commonly used data exchange formats mentioned above, regardless of the transmission method through WebSocket, HTTP, or message mechanism, cannot guarantee real-time data transmission in a narrow bandwidth environment and cannot meet the real-time and integrity requirements of data transmission. Summary of the Invention

[0008] The present invention provides a real-time data transmission method and system in a narrow bandwidth environment, which is used to solve the problem that the existing data transmission method cannot guarantee real-time data transmission in a narrow bandwidth environment and cannot meet the real-time and integrity requirements of data transmission.

[0009] The present invention provides a real-time data transmission method in a narrow bandwidth environment, the steps of the real-time data transmission method comprising: S101 obtains protocol requirements and determines the protocol format; S102: Obtain data to be transmitted and determine the data protocol structure; S103: Fill and encapsulate the data protocol structure into the protocol format to obtain encapsulated data, and process the encapsulated data in binary form to obtain binary data; S104: Performing data compression and data segmentation processing on the binary data in sequence according to the data compression information and the data segmentation information to obtain a first transmission code; wherein the network status is monitored in real time, and the data compression information, the data segmentation information, and the transmission strategy are dynamically adjusted according to the network status; S105: Compile and optimize the first transmission code using a programming language to obtain a second transmission code; transmit the second transmission code to a receiving end through a transmission channel to achieve real-time data transmission in a narrow bandwidth environment.

[0010] Furthermore, the real-time data transmission method further includes: After each step is completed, test optimization is performed; the test optimization includes: functional testing, performance testing and compatibility testing.

[0011] Furthermore, one or more of the protocol format, the data protocol structure, the encapsulated data, the data compression information, the data segmentation information, the compilation optimization, and the transmission channel are adjusted according to the test optimization result.

[0012] Furthermore, the method further comprises: receiving the second transmission code, and sequentially performing data reassembly processing and data decompression processing on the second transmission code to obtain complete binary data; The complete binary data is unpacked, and the data protocol structure is extracted according to the protocol format to obtain each data field of the received data.

[0013] Furthermore, processing the encapsulated data in binary form includes: utilizing bit operations, byte array operations or specific libraries in a programming language.

[0014] Furthermore, the data compression process is as follows: Selecting a lossless compression algorithm to compress the binary data; Optimize the data compression process to increase compression speed by adjusting the lossless compression algorithm or distributing the compression task among multiple processors.

[0015] Furthermore, the protocol format includes header information, data part and tail information.

[0016] Furthermore, the header information includes a protocol version number, a data type, and a data length; the data portion includes data to be transmitted; and the tail information includes checksum information.

[0017] Furthermore, the data protocol structure includes: a data name field to be transmitted, and a data type and data length of each data name field.

[0018] On the other hand, the present invention also provides a real-time data transmission system in a narrow bandwidth environment, comprising a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of any of the above methods.

[0019] In general, the present invention provides a method and system for real-time data transmission in a narrow bandwidth environment. The technical solution conceived by the present invention can achieve the following beneficial effects compared with the existing technology: (1) The present invention designs a personalized real-time transmission protocol format according to the protocol requirements, and uses steps such as data encapsulation, compression, and segmentation to convert data into code, and then uses a programming language to optimize the code; it can ensure that the data to be transmitted can be transmitted quickly and orderly in a narrow bandwidth channel, thereby improving the overall speed and efficiency of data transmission in a narrow bandwidth environment, reducing the amount of data, and reducing data delay, blocking and loss rates. It is suitable for real-time data transmission in a narrow bandwidth environment, meets the real-time, integrity and reliability requirements of data transmission, and quickly and accurately grasps the dynamic information of the device.

[0020] (2) The present invention utilizes bit operations, byte array operations, or specific libraries in programming languages ​​to convert packaged data into binary data, thereby occupying less transmission capacity. Since the underlying computer hardware itself performs operations and storage based on binary, directly processing packaged data in binary form can reduce the overhead of data format conversion, increase processing speed, and better conform to the operating mechanism of the computer system.

[0021] (3) The present invention uses an efficient programming language algorithm to compile and optimize the transmission code, reducing the code size and execution efficiency, avoiding unnecessary calculations and memory usage; improving system performance and reducing resource usage.

[0022] (4) The present invention adopts an adaptive transmission strategy to dynamically adjust data transmission parameters such as data compression information and data segmentation information according to changes in network status to adapt to different network environments, thereby improving the adaptability, real-time performance and stability of data transmission.

[0023] (5) The real-time data transmission method and system of the present invention are adaptable to a variety of narrow-bandwidth application scenarios. Whether in special environments such as communications in remote areas, data collection at equipment sites, or marine monitoring, they can achieve efficient, stable, and real-time data transmission. They are highly versatile and provide support for various upper-layer business applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0025] Figure 1 This is a schematic diagram of the method steps of a real-time data transmission method and system in a narrow bandwidth environment provided by the present invention. DETAILED DESCRIPTION

[0026] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings and embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0027] It should be noted that, in the description of the embodiments of the present invention, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a method, step, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such method, step, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the method, step, or apparatus comprising the element.

[0028] In a narrow bandwidth environment, traditional data transmission methods are often inefficient and prone to problems such as high latency and data congestion. In order to achieve efficient, real-time, and complete data transmission in a narrow bandwidth environment and meet various data transmission application scenarios with high real-time requirements, the present invention proposes a real-time data transmission method in a narrow bandwidth environment, which greatly improves the data transmission efficiency under narrow bandwidth conditions. Specifically, Figure 1 As shown, the steps of the real-time data transmission method include: S101 obtains protocol requirements and determines the protocol format.

[0029] Protocol requirements, that is, the functional requirements for real-time data transmission in a narrow bandwidth environment, such as data type setting, frequency control, error detection and correction, etc.

[0030] As an embodiment, the protocol format includes header information, data part and tail information. By optimizing the protocol format, it is ensured that data can be transmitted quickly and orderly in a narrow bandwidth channel, thereby improving the overall data transmission rate.

[0031] More specifically, the header information includes information such as the protocol version number, data type, and data length; the data portion includes actual data to be transmitted, that is, the transmission data to be obtained in S102; and the tail information includes checksum information.

[0032] In narrow bandwidth environments, data transmission is susceptible to interference from various factors, leading to data loss, errors, and other problems. This present invention enhances the stability and reliability of data transmission by adding checksum information to the data and implementing error detection and correction mechanisms. This ensures data integrity and accuracy even in poor network conditions, reducing the risk of data transmission failure. For example, in scenarios such as field and remote data collection, this ensures that collected data can be stably and accurately transmitted back to the central server, providing a reliable data foundation for subsequent analysis and processing.

[0033] S102: Obtain the data to be transmitted and determine the data protocol structure.

[0034] As an example, the data protocol structure includes: a field for the name of the data to be transmitted, as well as the data type and data length of each data name field. In other words, analyzing the content of the data to be transmitted includes determining which data fields need to be transmitted, the data type of each data field, and the data length of each field.

[0035] The data protocol structure can be implemented using structures, classes, or custom data types in programming languages.

[0036] For example, if the data to be transmitted is [car number, longitude, latitude, status], that is, the data packet to be transmitted contains only the car number, longitude, latitude, and status information. Then its data protocol structure includes the data name field, data type, and data length. Specifically, the data protocol structure of the transmitted data is determined as follows: Vehicle number: string type, length is 16 bytes; Longitude: unsigned double type, 8 bytes in length; Latitude: unsigned double type, length is 8 bytes; Status: enumeration type, length is 1 byte.

[0037] S103: Fill and encapsulate the data protocol structure into the protocol format to obtain encapsulated data, and process the encapsulated data in binary form to obtain binary data.

[0038] More specifically, the data type in the data protocol structure is converted into the designed protocol format, and then each data name field is filled into the protocol format to obtain encapsulated data including the data to be transmitted and in the protocol format.

[0039] It should be noted that the filling encapsulation method includes: fixed-length field encapsulation, variable-length field encapsulation, bit operation encapsulation, and protocol header + data body encapsulation or one or more of the following.

[0040] For example, for a string type field, the string can be converted into a fixed-length byte array and filled into the protocol format; for an integer type field, the integer can be converted into the corresponding byte sequence and filled into the protocol format.

[0041] As an embodiment, processing the packaged data in binary form includes: utilizing bit operations, byte array operations, or specific libraries in a programming language.

[0042] More specifically, the data to be transmitted may be formatted according to the protocol of the device acquisition specification, and the encapsulated data may be calculated and stored using a binary field of a preset fixed length.

[0043] S104: Perform data compression processing and data segmentation processing on the binary data in sequence according to the data compression information and the data segmentation information to obtain a first transmission code.

[0044] It should be noted that the data compression process includes: selecting a lossless compression algorithm to compress binary data; optimizing the data compression process to increase the compression speed by adjusting the lossless compression algorithm or distributing the compression task to multiple processors.

[0045] Lossless compression algorithms include Huffman coding algorithm, LZ77 coding algorithm, etc. Using these lossless compression algorithms can not only effectively reduce the data size, but also will not lose any information.

[0046] Optimizing data compression processing includes automatically adjusting and optimizing the selected compression algorithm. Specifically, by dynamically adjusting compression algorithm parameters or replacing them with more efficient ones, data transmission capacity can be reduced, thereby improving compression speed and compression ratio to meet real-time requirements. For example, dictionary encoding can be used for sections with high repetition rates, and differential encoding can be used for numerical data.

[0047] Optimizing data compression processing also includes utilizing parallel computing technology to distribute compression tasks to multiple processor cores to increase compression speed.

[0048] It should be noted that data segmentation involves dividing a large, compressed data packet into multiple small data blocks for transmission. Each small data block can be transmitted independently, thereby improving transmission efficiency. The appropriate data block size can be determined by properly segmenting the data based on network bandwidth and / or data type.

[0049] The data is divided into smaller data blocks for transmission. Each data block can be transmitted independently to avoid the failure or blockage of the entire data transmission due to the loss of a single data block.

[0050] Monitor network status in real time and dynamically adjust data compression information, data segmentation information and transmission strategies based on network status.

[0051] Real-time monitoring of network status, including real-time monitoring of network parameters such as bandwidth, delay, packet loss rate, etc.

[0052] Network status information monitoring tools include Ping, Traceroute, etc. In addition, you can also use the network programming interface provided by the programming language to monitor the network status, such as Java's NetworkInterface class, Python's socket module, etc. to obtain network interface information and realize network status monitoring.

[0053] Dynamically adjust data transmission parameters based on network conditions. Specifically, when network bandwidth increases, data transmission speed is increased; when network bandwidth decreases, data transmission speed is reduced to ensure real-time data transmission. For example, the data compression ratio and data block size are adjusted to adapt to different network environments.

[0054] It's important to note that adaptive algorithms can be used to dynamically adjust transmission strategies based on network conditions. For example, a feedback mechanism can be used to send feedback information from the receiving end, such as reception speed and packet loss rate, to the transmitting end. The transmitting end can then adjust its transmission strategy based on this feedback to improve transmission efficiency and reliability. When the receiving speed is fast or the packet loss rate is low, the compression speed and packet size can be increased, or the data block size can be increased. When the receiving speed is slow or the packet loss rate is high, the compression speed and packet size can be decreased, or the data block size can be reduced.

[0055] Real-time data transmission in narrow bandwidth environments is a challenge. This invention utilizes an adaptive transmission strategy that dynamically adjusts transmission parameters based on network conditions, ensuring timely data transmission within limited bandwidth and meeting the needs of applications with high real-time requirements. Whether transmitting location data in emergency situations or in real-time interactive communication scenarios, this approach ensures timely data arrival and processing, improving system responsiveness and practicality.

[0056] S105: Compile and optimize the first transmission code using a programming language to obtain a second transmission code; transmit the second transmission code to a receiving end through a transmission channel to achieve real-time data transmission in a narrow bandwidth environment.

[0057] In resource-constrained environments, such as embedded devices and mobile terminals, resource usage is highly sensitive. This invention utilizes a programming language to compile and optimize the first transmission code, reducing its size and execution time, thereby lowering resource consumption. This not only improves device operational efficiency but also extends battery life, making it suitable for a variety of resource-constrained applications. Furthermore, the optimized transmission code is easier to implement and deploy on different hardware platforms, enhancing the versatility and scalability of the technology.

[0058] On the one hand, the first transmission code is compiled and optimized. The first transmission code is continuously compiled and optimized using an efficient programming language such as Java or C++, thereby reducing memory usage and avoiding frequent memory allocation and release until data transmission is optimized.

[0059] On the other hand, the transmission channel is optimized. Based on transmission technologies such as WebSocket, HTTP, and message mechanisms, multiple transmission channels are used to transmit the second transmission code to the receiving end, realizing real-time data transmission in a narrow bandwidth environment.

[0060] As an embodiment of the present invention, the real-time data transmission method further includes: performing test optimization after each step is completed; the test optimization includes: functional testing, performance testing and compatibility testing.

[0061] Functional testing is used to perform functional testing on the transmission code to ensure that each step can be implemented correctly, such as data encapsulation, data compression, data segmentation, and data transmission.

[0062] Performance testing is used to test the transmission code and evaluate its transmission efficiency and real-time performance in narrow bandwidth environments. Based on the performance test results, the transmission code is adjusted and optimized to improve its performance and efficiency. Further improvements can be made by adjusting algorithm parameters, optimizing data structures, and reducing memory usage.

[0063] Specifically, based on the performance test results, by adjusting one or more of the protocol format, data protocol structure, encapsulated data, data compression information, data segmentation information, compilation optimization and transmission channels, the final transmission code is optimized to achieve the transmission efficiency and real-time performance of the second transmission code in a narrow bandwidth environment.

[0064] Compatibility testing is used to test the transmission code for compatibility, ensuring that the code can run properly under different operating systems, programming languages, and network environments. Furthermore, virtual machines and containers can be used to simulate different operating systems and network environments to test code compatibility. Based on the compatibility test results, the transmission code can be adjusted and optimized to improve code compatibility and portability.

[0065] Specifically, based on the compatibility test results, by adjusting one or more of the protocol format, data protocol structure, encapsulated data, data compression information, data segmentation information, compilation optimization and transmission channels, the final transmission code is optimized to achieve the transmission efficiency and real-time performance of the second transmission code in a narrow bandwidth environment.

[0066] As an embodiment of the present invention, the real-time data transmission method further includes: The second transmission code is received, and data reassembly processing and data decompression processing are performed on the second transmission code in sequence to obtain complete binary data; wherein, at the receiving end, reassembly can be performed according to the numbering information and check information of the data block to ensure the integrity and correctness of the data.

[0067] Unpack the complete binary data, extract the data protocol structure according to the protocol format, and obtain each data field of the received data.

[0068] It should be noted that at the receiving end, after receiving the reassembled binary data, it is necessary to perform an unpacking operation to convert the binary data into the original data structure. The unpacking process is the opposite of the encapsulation process. It is necessary to extract each data field from the binary data according to the data protocol structure to obtain the original data.

[0069] Clarifying the protocol format followed by both the sender and the receiver is the fundamental basis for accurate parsing using key information such as the organizational structure of binary data, the meaning, length, encoding method of each field, and corresponding functions.

[0070] Different computer systems have different byte orders. In Big-Endian order, the high-order byte of data is stored at a lower address, and the low-order byte is stored at a higher address. Little-Endian order is the opposite. You must determine the received binary data based on the protocol format or data protocol structure; otherwise, subsequent parsing errors may occur.

[0071] In addition, in order to deeply explore the data value of the device and provide data support for upper-layer applications, the method can also provide data sharing and data storage capabilities, generate a data sharing interface through visual configuration, and realize data sharing.

[0072] In another aspect, the present invention further provides a real-time data transmission system in a narrow-bandwidth environment, comprising a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of any of the above methods. The technical features of the system are consistent with those of the method and are not further detailed here.

[0073] In summary, the present invention designs a personalized real-time transmission protocol format according to protocol requirements, and uses steps such as data encapsulation, compression, and segmentation to convert data into code, and then uses a programming language to optimize the code; it can ensure that the data to be transmitted can be transmitted quickly and orderly in a narrow bandwidth channel, thereby improving the overall speed and efficiency of data transmission in a narrow bandwidth environment, reducing the amount of data, and reducing data delay, blocking and loss rates, adapting to real-time data transmission in a narrow bandwidth environment, meeting the real-time, integrity and reliability requirements of data transmission, and quickly and accurately grasping device dynamic information.

[0074] It should be noted that for the aforementioned embodiments, for simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0075] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0076] In the several embodiments provided in this application, it should be understood that the disclosed methods or systems can be implemented in other ways. For example, the embodiments described above are merely illustrative, and the division of the units described is merely a logical functional division. In actual implementation, other division methods may be used, such as combining or integrating multiple units or components into another system, or ignoring or not implementing certain features.

[0077] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0078] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0079] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of this application, or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of this application.

[0080] Those skilled in the art will appreciate that all or part of the various circuits in the above embodiments may be implemented by instructing related hardware through a program. The program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0081] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure herein, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art that are not recorded in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

[0082] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0083] It will be easily understood by those skilled in the art that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A real-time data transmission method in a narrow bandwidth environment, characterized in that: The steps of the real-time data transmission method include: S101 obtains protocol requirements and determines the protocol format; S102: Obtain data to be transmitted and determine the data protocol structure; S103: Fill and encapsulate the data protocol structure into the protocol format to obtain encapsulated data, and process the encapsulated data in binary form to obtain binary data; S104: Performing data compression and data segmentation processing on the binary data in sequence according to the data compression information and the data segmentation information to obtain a first transmission code; wherein the network status is monitored in real time, and the data compression information, the data segmentation information, and the transmission strategy are dynamically adjusted according to the network status; S105: Compile and optimize the first transmission code using a programming language to obtain a second transmission code; transmit the second transmission code to a receiving end through a transmission channel to achieve real-time data transmission in a narrow bandwidth environment.

2. The method for real-time data transmission in a narrow bandwidth environment according to claim 1, wherein: The real-time data transmission method further includes: After each step is completed, test optimization is performed; the test optimization includes: functional testing, performance testing and compatibility testing.

3. The method for real-time data transmission in a narrow bandwidth environment according to claim 2, wherein: One or more of the protocol format, the data protocol structure, the encapsulated data, the data compression information, the data segmentation information, the compilation optimization, and the transmission channel are adjusted according to the test optimization result.

4. The method for real-time data transmission in a narrow bandwidth environment according to claim 1, wherein: The method further comprises: receiving the second transmission code, and sequentially performing data reassembly processing and data decompression processing on the second transmission code to obtain complete binary data; The complete binary data is unpacked, and the data protocol structure is extracted according to the protocol format to obtain each data field of the received data.

5. The method for real-time data transmission in a narrow bandwidth environment according to claim 1, wherein: Processing the packaged data in binary form includes: utilizing bit operations, byte array operations, or specific libraries in a programming language.

6. The method for real-time data transmission in a narrow bandwidth environment according to claim 1, wherein: The data compression process is as follows: Selecting a lossless compression algorithm to compress the binary data; Optimize the data compression process to increase compression speed by adjusting the lossless compression algorithm or distributing the compression task among multiple processors.

7. The method for real-time data transmission in a narrow bandwidth environment according to claim 1, wherein: The protocol format includes header information, data part and tail information.

8. The method for real-time data transmission in a narrow bandwidth environment according to claim 7, wherein: The header information includes a protocol version number, a data type, and a data length; the data portion includes data to be transmitted; and the tail information includes checksum information.

9. The method for real-time data transmission in a narrow bandwidth environment according to claim 1, wherein: The data protocol structure includes: a data name field to be transmitted, and a data type and data length of each data name field.

10. A real-time data transmission system in a narrow bandwidth environment, comprising a memory, a processor, and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 9.