A data compression transmission method and related equipment

By adopting USB communication connection and data compression technology in industrial equipment, the problem of serial communication bandwidth limitation is solved, efficient and secure data transmission is achieved, multiple processing flows are supported, and flexibility and reliability requirements in complex communication environments are met.

CN119697175BActive Publication Date: 2025-10-03临海市新睿电子科技股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411852286.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-10-03
Estimated Expiration
2044-12-16

AI Technical Summary

Technical Problem

Existing industrial equipment uses serial communication for data transmission, which has bandwidth limitations resulting in low transmission rates and inability to fully utilize high-speed network bandwidth. Bottlenecks are prone to occur, especially when transmitting large amounts of data, and the equipment lacks flexibility in complex communication environments.

Method used

USB communication connection is used instead of serial communication, combined with data compression technology, to communicate with the 4G module through the USB interface, and to establish a secure connection with the server based on target parameters to achieve efficient data transmission and flexible processing.

Benefits of technology

It significantly improves the data transmission rate, enhances the security and stability of data transmission, and supports multiple processing processes such as remote firmware upgrades and real-time data viewing to meet the needs of different application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697175B_ABST
    Figure CN119697175B_ABST
Patent Text Reader

Abstract

The present application relates to the field of data transmission technology, and in particular to a data compression transmission method and related equipment. The method comprises: establishing a USB communication connection; reading a Modbus data address to obtain target data from a control board and compressing it; obtaining a configuration file from a first server based on the USB communication connection and parsing it to obtain target parameters; pushing the target data to a second server based on the target parameters, wherein the target parameters include the connection address, verification information, and push policy parameters of the second server; receiving a target instruction issued by the second server and correspondingly invoking a corresponding processing flow. The present application can improve data transmission efficiency and enhance the flexibility and reliability of data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and in particular to a data compression transmission method and related equipment. Background Art

[0002] Existing industrial equipment typically uses the Modbus protocol for data acquisition, and remote data transmission relies on serial communication. However, due to bandwidth limitations, serial communication has a low data transmission rate and cannot fully utilize the bandwidth advantages of current high-speed 4G networks. This can easily lead to transmission bottlenecks when processing large amounts of data, increasing system latency and resource consumption.

[0003] Traditional STM32 and 4G modules typically communicate via serial ports, using AT commands to achieve network connection and data transmission. While this approach is simple and easy to use, its transmission efficiency falls far short of the required level in scenarios with large data volumes, such as remote device management and real-time status monitoring. Furthermore, serial port communication lacks flexibility in handling network state fluctuations and complex communication environments, often requiring additional communication strategies and data compression transmission strategies to ensure reliable data transmission. Summary of the Invention

[0004] In order to solve the problems existing in the above-mentioned related technologies, the present application provides a data compression transmission method and related equipment, which can improve data transmission efficiency and enhance the flexibility and reliability of data transmission.

[0005] In a first aspect, an embodiment of the present application discloses a data compression transmission method, which adopts the following scheme:

[0006] A data compression transmission method includes: establishing a USB communication connection; reading a Modbus data address to obtain target data from a control board and performing compression processing; obtaining a configuration file from a first server based on the USB communication connection and parsing the configuration file to obtain target parameters; pushing the target data to a second server based on the target parameters, wherein the target parameters include a connection address of the second server, verification information, and push strategy parameters; receiving a target instruction issued by the second server, and correspondingly calling a corresponding processing flow.

[0007] By adopting the above technical solution, by establishing a USB communication connection, that is, using a USB interface instead of a traditional serial port, the communication bandwidth can be improved, and by coordinating the compressed transmission of data, it can be applied to scenarios with large amounts of data, improve data transmission efficiency, and obtain target parameters by parsing the configuration file obtained from the first server, and then push the target data to the second server. After receiving the target instruction issued by the second server, the corresponding processing flow can be quickly called to ensure flexibility and efficient and reliable processing during data transmission.

[0008] Optionally, the target instructions include: re-obtaining configuration files, remote firmware upgrades, device activation and locking, push frequency modification, real-time data viewing, and obtaining device location;

[0009] Among them, when the target instruction is the re-acquisition of the configuration file, the processing flow is to update the target parameters; when the target instruction is the remote firmware upgrade, the processing flow is to verify the firmware file and update the original firmware file based on the download address and verification code issued by the second server; when the target instruction is the device activation and locking, the processing flow is to receive the activation code or lock code and write it into the target address of the control board; when the target instruction is the push frequency modification, the processing flow is to update the push strategy parameters; when the target instruction is the real-time data viewing, the processing flow is to push the target data based on the preset high-frequency parameters; when the target instruction is the acquisition of device positioning, the processing flow is to obtain the positioning information of the target device and return it to the second server.

[0010] By adopting the above technical solution, the target instructions include multiple functions such as re-acquiring configuration files, remote firmware upgrades, device activation and locking, push frequency modification, real-time data viewing, and obtaining device positioning. When the target instruction is to re-acquire configuration files, the processing flow updates the target parameters to ensure that the configuration information of the data transmission remains up to date; when the target instruction is a remote firmware upgrade, based on the download address and verification code issued by the second server, the firmware file can be verified and the original firmware file can be updated to achieve remote automatic upgrade of the device software; when the target instruction is device activation and locking, the activation code or lock code is received and written to the target address of the control board to facilitate the management of the device status; when the target instruction is to modify the push frequency, the push strategy parameters are updated to adjust the data transmission frequency according to actual needs; when the target instruction is to view real-time data, the target data is pushed based on the preset high-frequency parameters to meet the needs of real-time monitoring; when the target instruction is to obtain device positioning, the positioning information of the target device is obtained and returned to the second server to facilitate monitoring and management of the device's location information.

[0011] Optionally, the reading of the Modbus data address to obtain target data from the control board and perform compression processing includes: determining whether the size of the target data meets the compression condition; if so, compressing the target data to update the target data.

[0012] By adopting the above technical solution, it is determined whether the size of the target data meets the compression conditions. If so, it means that the data volume is large and the target data needs to be compressed to effectively reduce the data volume, significantly reduce data traffic, and save communication costs.

[0013] Optionally, the reading of the Modbus data address to obtain target data from the control board includes: reading the Modbus data address according to paging; and obtaining the target data from the control board through the ModbusTCP protocol based on the Modbus data address.

[0014] By adopting the above technical solution, the Modbus data address is read in a paging manner, and the target data is obtained from the control board through the ModbusTCP protocol based on the Modbus data address, thereby achieving an efficient and stable data reading process and ensuring the reliable transmission of large amounts of data.

[0015] Optionally, the reading of the Modbus data address to obtain target data from the control board includes: preprocessing the target data to update the target data; wherein the preprocessing includes unit conversion and filtering.

[0016] By adopting the above technical solution, the target data is converted into units and filtered, so that the data format can be unified and more accurate, thereby improving the reliability and effectiveness of data transmission.

[0017] Optionally, pushing the target data to the second server based on the target parameter includes: establishing a communication connection with the second server based on the connection address and verification information of the second server.

[0018] By adopting the above technical solution, a secure and reliable communication connection can be established with the second server based on its connection address and verification information, thereby ensuring the safe transmission of target data and avoiding data loss or leakage due to connection anomalies.

[0019] Optionally, the method further includes: receiving error feedback information; and executing a preset number of retry strategies based on the error feedback information.

[0020] By adopting the above technical solution, when the system receives error feedback information, it will automatically execute a preset number of retry strategies based on the error feedback information, thereby improving the reliability and stability of the data transmission process.

[0021] In a second aspect, an embodiment of the present application discloses a data compression transmission system, which adopts the following scheme:

[0022] A data compression transmission system comprises: a USB communication module for establishing a USB communication connection; a reading and compression module for reading a Modbus data address to obtain target data from a control board and perform compression processing; a parsing module for obtaining a configuration file from a first server based on the USB communication connection and parsing the configuration file to obtain target parameters; a push module for pushing the target data to a second server based on the target parameters, wherein the target parameters include a connection address of the second server, verification information, and push strategy parameters; and a calling module for receiving a target instruction issued by the second server and calling a corresponding processing flow.

[0023] By adopting the above technical solution, a USB communication connection is established through the USB communication module, that is, a USB interface is used instead of a traditional serial port, which can improve the communication bandwidth, and cooperate with the reading and compression module to compress and transmit data, which can be suitable for scenarios with large data volumes and improve data transmission efficiency. The configuration file obtained from the first server is parsed by the parsing module to obtain the target parameters, and then the target data is pushed to the second server through the push module. After the calling module receives the target instruction issued by the second server, the corresponding processing flow can be quickly called to ensure flexibility and efficient and reliable processing during data transmission.

[0024] In a third aspect, an embodiment of the present application discloses a data compression transmission device, which adopts the following scheme:

[0025] A data compression transmission device comprises: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to implement the steps of any one of the above-mentioned data compression transmission methods when executing the computer program.

[0026] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, which adopts the following solution:

[0027] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the data compression and transmission method described above.

[0028] In summary, this application includes at least one of the following beneficial technical effects:

[0029] 1. Efficiently obtain target data from the control board by establishing a USB communication connection and reading the Modbus data address. Compared with the traditional serial communication mode, it significantly improves the data transmission rate and overcomes the bandwidth limitation problem;

[0030] 2. Push the target data to the second server based on the target parameters, and use the connection address, verification information, and push policy parameters in the target parameters to optimize the data transmission process, thereby improving the security and stability of data transmission and ensuring the effectiveness of data transmission in complex communication environments;

[0031] 3. Supports processing flows corresponding to multiple target commands, including functions such as re-obtaining configuration files and remote firmware upgrades, greatly enhancing the management and maintenance capabilities of the device, thereby meeting the diverse needs of different application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of a system architecture used in a data compression transmission method disclosed in an embodiment of the present application;

[0033] Figure 2 A schematic flow chart of the steps of a data compression transmission method disclosed in one embodiment of the present application;

[0034] Figure 3 This is a structural diagram of a data compression transmission system disclosed in another embodiment of the present application;

[0035] Figure 4 This is a structural diagram of a data compression and transmission device disclosed in another embodiment of the present application. DETAILED DESCRIPTION

[0036] The present application is further described in detail below with reference to the accompanying drawings.

[0037] The following describes embodiments of the present application in more detail with reference to the accompanying drawings. Although the accompanying drawings illustrate embodiments of the present application, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. Rather, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0038] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a," "an," and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0039] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0040] The technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0041] See Figure 1 In the first embodiment of this application, a data compression transmission method is disclosed. The system architecture used includes an STM32 microcontroller, a 4G module, an industrial equipment control board, a first server, and a second server. The STM32 microcontroller module (hereinafter referred to as STM32) and the 4G module are communicated via a USB interface, the STM32 is connected to the industrial equipment control board (hereinafter referred to as the control board), and the first server and the second server are both wirelessly connected to the 4G module.

[0042] The STM32 uses an STM32H7 series microcontroller with a main frequency of 550MHz, a USBHost interface, and supports USBHost mode. Functionally, it implements the USBHost function for USB communication with the 4G module; runs the main program to control the entire system logic; collects data via the Modbus TCP protocol; processes AT commands to interact with the 4G module; compresses and decompresses data; implements push policy logic; and processes commands issued by the server.

[0043] 4G modules, such as the EC200M and EC20, support 4G networks, feature a USB Device interface, and support the AT command set. They support the TCP / IP protocol stack, HTTP, MQTT, and other protocols. They also provide an AT command interface for STM32 control. They also support positioning, providing base station or GPS location information. The STM32's USB Host interface connects to the 4G module's USB Device interface, using standard USB protocols for high-speed and stable data transmission.

[0044] The first server is an HTTP (Hypertext Transfer Protocol) server, a request-response protocol based on a client-server model. Each request is initiated by the client, and the server processes the request and returns a response. This is suitable for scenarios where requests and responses are relatively independent, such as file downloads and configuration file retrieval.

[0045] The second server is an MQTT (Message Queuing Telemetry Transport) server, a lightweight publish / subscribe protocol suitable for low-bandwidth, high-latency, or unreliable network environments. Devices publish and subscribe to messages using topics, enabling real-time communication and data push. This is suitable for applications that require high-frequency data exchange and real-time updates, such as pushing industrial machine data.

[0046] The STM32 is connected to the industrial control board via an Ethernet interface or a serial port (RS485). The combination can be used as a Modbus TCP acquisition module, using the Modbus TCP protocol for industrial data acquisition to read the specified register address and obtain device data. The acquisition and reading addresses and parameters are specified by the configuration file and can be dynamically updated.

[0047] The STM32 connects to the first server through the 4G module to obtain the configuration file, connects to the second server, and combines into an MQTT communication module. Through AT commands, the built-in MQTT function of the 4G module is used to receive the pushed data and call the corresponding processing flow for processing. For details, please refer to the detailed description of each step in the first embodiment.

[0048] [First embodiment]

[0049] See also Figure 2 In the first embodiment of the present application, a data compression transmission method is disclosed, comprising the following steps:

[0050] S10, establishing a USB communication connection;

[0051] The communication connection between STM32 and 4G module is realized through the USB interface. The USB interface rate can reach 12Mbps (USB 2.0 Full Speed), which is much higher than the 115200bps of the traditional serial port. It can give full play to the bandwidth advantage of the 4G network and is suitable for efficient transmission of large amounts of data.

[0052] S20, read the Modbus data address to obtain the target data from the control board and perform compression processing;

[0053] Among them, STM32 reads all Modbus data addresses according to pages, and based on this Modbus data address, it can collect data from the control board via the Modbus TCP protocol.

[0054] In this embodiment, the collected data is a large amount of data by default, and compression processing is used to reduce the size of the data. The algorithm used for the compression processing is, for example, the LZO (Lempel-Ziv-Oberhumer) lossless compression algorithm, with a compression ratio of about 1:3. For example, the original data is 1200 bytes, and after compression, it is about 400 bytes.

[0055] Specifically, in step S20, data compression includes:

[0056] S21, determining whether the size of the target data meets the compression condition;

[0057] S22: If yes, compress the target data to update the target data.

[0058] The compression condition is a set data size threshold. When the data volume is small, no further compression is required. If the data volume exceeds the threshold, a compression algorithm is used for compression to greatly save data traffic and increase transmission speed.

[0059] In this embodiment, step S20 further includes: pre-processing the target data to update the target data.

[0060] Among them, preprocessing includes unit conversion and filtering processing. Unit conversion is used to unify the data format, and filtering processing is used to filter out data with large deviations to make the data more accurate, thereby improving the reliability of data transmission.

[0061] S30, obtaining a configuration file from the first server based on the USB communication connection and parsing the configuration file to obtain target parameters;

[0062] Among them, in this step S30, the STM32 sends an HTTP POST request to the 4G module through the AT command to pull the configuration file from the first server. The content of the HTTP POST request includes: the unique identification code of the 4G module (such as IMEI), device mechanical code, device key, device activation validity period, device software and hardware version number and other information.

[0063] The configuration file obtained includes the Modbus data address that needs to be collected (such as alarm information, operating status, production information, etc.), the connection address, port, user name, password of the second server, the token required for device positioning, and push strategy parameters (such as the fastest and slowest push frequency). The necessary parameters are then parsed and saved as target parameters. The target parameters may include the connection address, verification information, and push strategy parameters of the second server. The verification information includes the user name and password, and the push strategy parameters are the frequency parameters of data push.

[0064] S40, pushing the target data to the second server based on the target parameters;

[0065] Among them, STM32 communicates with the second server through the 4G module based on the connection address of the second server included in the target parameters, and can establish a communication connection with the second server in conjunction with the verification information included in the target parameters, and the second server pushes the target instruction to STM32 based on the push policy parameters included in the target parameters.

[0066] S50, receiving the target instruction sent by the second server, and calling the corresponding processing flow accordingly;

[0067] Among them, step S50 corresponds to the push policy parameters (push frequency) to receive the target instruction sent by the second server, and the target instruction is matched to call the corresponding processing flow.

[0068] Specifically, the target commands include: re-obtaining configuration files, remote firmware upgrades, device activation and locking, modifying push frequency, viewing real-time data, and obtaining device location;

[0069] When the target instruction is to re-obtain the configuration file, the processing flow is to re-pull the configuration file from the first server to update the target parameters;

[0070] When the target instruction is a remote firmware upgrade, the processing flow is to verify the firmware file and update the original firmware file based on the download address and verification code sent by the second server;

[0071] The corresponding STM32 uses AT commands and HTTP GET requests to download the firmware file and save it to Flash or external storage. The MD5 code is verified to confirm the file's integrity. After verification, the firmware is upgraded. After the upgrade is complete, the system is rebooted and a notification ID (notifyId) is returned to the second server.

[0072] When the target command is device activation and locking, the processing flow is to receive the activation code or lock code and write it to the target address of the control board;

[0073] Correspondingly, the activation code or lock code is written to the specified address of the device control board through the Modbus TCP protocol. After the operation is completed, the notification ID is returned to the second server.

[0074] When the target instruction is to modify the push frequency, the processing flow is to update the push policy parameters;

[0075] When the target instruction is real-time data viewing, the processing flow is to push the target data based on the preset high-frequency parameters;

[0076] The corresponding second server enables real-time data viewing and periodically sends heartbeat packets. After receiving the heartbeat packets, the STM32 pushes real-time data at a set frequency. When the heartbeat packets stop (real-time data viewing is disabled), the STM32 counts down after receiving the last heartbeat packet, for example, 60 seconds, and resumes the previous push status. (A heartbeat packet is a defined command word that periodically notifies the client and server of their status. It is sent at regular intervals, similar to a heartbeat, hence the name heartbeat packet.)

[0077] When the target instruction is to obtain the device location, the processing flow is to obtain the location information of the target device and return it to the second server.

[0078] After receiving the positioning command, the STM32 requests positioning information from the 4G module through AT commands. The obtained positioning information, such as base station positioning information and GPS positioning information, is returned to the second server via MQTT, including the notification ID.

[0079] It is worth mentioning that, in this embodiment, the following is also included:

[0080] S60, receiving error feedback information;

[0081] The error feedback information may be obtained by the above-mentioned "returning the notification ID to the second server", and the error feedback information may include, for example, AT command error detection, data push failure, and the like.

[0082] S70: Based on the error feedback information, execute a preset number of retry strategies.

[0083] AT command error detection is as follows: each time an AT command is sent, the response is checked and an error is automatically retried. Data push failure: If data push fails, the preset number of times, i.e. the retry mechanism, is set to a maximum of 5 times. After 5 failures, push is suspended.

[0084] To sum up, the first embodiment of the present invention discloses a data compression transmission method, which efficiently obtains target data from the control board by establishing a USB communication connection and reading the Modbus data address. Compared with the traditional serial communication mode, it significantly improves the data transmission rate and overcomes the problem of bandwidth limitation; based on the target parameters, the target data is pushed to the second server, and the connection address, verification information and push strategy parameters in the target parameters are used to optimize the data transmission process, thereby improving the security and stability of data transmission and ensuring the effectiveness of data transmission in complex communication environments; supports processing flows corresponding to multiple target instructions, including functions such as re-obtaining configuration files and remote firmware upgrades, greatly enhancing the management and maintenance capabilities of the equipment, thereby meeting the diverse needs in different application scenarios.

[0085] [Second embodiment]

[0086] See also Figure 3 In the second embodiment of the present application, a data compression transmission system is disclosed, which includes: a USB communication module 81, a reading and compression module 82, a parsing module 83, a push module 84 and a calling module 85.

[0087] Among them, the USB communication module 81 is used to establish a USB communication connection; the reading and compression module 82 is used to read the Modbus data address to obtain the target data from the control board and perform compression processing; the parsing module 83 is used to obtain the configuration file from the first server based on the USB communication connection and parse it to obtain the target parameters, wherein the target parameters include the connection address, verification information, and push strategy parameters of the second server; the push module 84 is used to push the target data to the second server based on the target parameters; the calling module 85 is used to receive the target instruction issued by the second server and call the corresponding processing flow accordingly.

[0088] It should be noted that the data compression transmission method implemented by the data compression transmission system disclosed in the second embodiment of this application is the same as that in the first embodiment, so it will not be described in detail here. Optionally, the various modules in this embodiment and the above-mentioned other operations or functions are respectively for implementing the methods in the aforementioned embodiments.

[0089] [Third embodiment]

[0090] See also Figure 4 In a third embodiment of the present application, a data compression transmission device is disclosed. The device includes a memory 90 and a processor 100. The memory 90 is used to store a computer program. The processor 100 is used to implement the steps of the data compression transmission method described in the first embodiment when executing the computer program. For details, please refer to the above description and will not be described in detail here. The technical effect of the data compression transmission device provided in this embodiment in actual application is the same as the technical effect of the data compression transmission method in the first embodiment.

[0091] [Fourth embodiment]

[0092] In a fourth embodiment of the present application, a computer-readable storage medium is disclosed. The computer-readable storage medium is, for example, a non-volatile memory, such as a magnetic medium (such as a hard disk, a floppy disk, and a magnetic tape), an optical medium (such as a CDROM and a DVD), a magneto-optical medium (such as an optical disk), and a hardware device specifically configured to store and execute computer-executable instructions (such as a read-only memory (ROM), a random access memory (RAM), a flash memory, etc.). A computer program is stored on the computer-readable storage medium. The computer-readable storage medium can be used by one or more processors or processing devices to execute the computer program to implement a data compression transmission method in the aforementioned embodiment.

[0093] In addition, it can be understood that the aforementioned embodiments are merely exemplary descriptions of the present invention. Under the premise that the technical features do not conflict, the structures do not contradict, and the purpose of the present invention is not violated, the technical solutions of the various embodiments can be arbitrarily combined and used in combination.

[0094] In the several embodiments provided by the present invention, it should be understood that the disclosed methods, systems, and devices can be implemented in other ways. For example, the modules included in the system described above are merely schematic, and the division of modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0095] Units described as separate components may or may not be physically separate, and 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.

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

[0097] The above-mentioned integrated unit / module implemented in the form of a software functional unit / module can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for causing one or more processors of a computer device (which can be a personal computer, server, or network device, etc.) to execute some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc., various media that can store program code.

[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A data compression transmission method, characterized in that: include: Establish a USB communication connection between the STM32 microcontroller and the 4G module; Reading the Modbus data address to obtain target data from the control board and perform compression processing, wherein the control board is the STM32 microcontroller; Obtaining a configuration file from the first server based on the USB communication connection and parsing the configuration file to obtain target parameters, wherein the target parameters include a connection address of the second server, verification information, and push policy parameters; Pushing the target data to the second server based on the target parameter; Receive the target instruction sent by the second server and call the corresponding processing flow accordingly; The target instructions include: Retrieve configuration files, remote firmware upgrades, device activation and locking, modify push frequency, view real-time data, and obtain device location; Wherein, when the target instruction is the re-acquisition of the configuration file, the processing flow is to update the target parameters; When the target instruction is the remote firmware upgrade, the processing flow is to verify the firmware file and update the original firmware file based on the download address and verification code sent by the second server; When the target instruction is to activate or lock the device, the processing flow is to receive an activation code or a lock code and write it into a target address of the control board; When the target instruction is to modify the push frequency, the processing flow is to update the push policy parameters; When the target instruction is real-time data viewing, the processing flow is to push the target data based on preset high-frequency parameters; When the target instruction is to obtain the device location, the processing flow is to obtain the location information of the target device and return it to the second server.

2. The method according to claim 1, characterized in that The Modbus data address is read to obtain target data from the control board and perform compression processing, including: Determining whether the size of the target data meets the compression condition; If so, compress the target data to update the target data.

3. The method according to claim 1, characterized in that The Modbus data address is read to obtain target data from the control board, including: Read the Modbus data address according to the page; The target data is obtained from the control board through the Modbus TCP protocol based on the Modbus data address.

4. The method according to claim 1, wherein The Modbus data address is read to obtain target data from the control board, including: preprocessing the target data to update the target data; The preprocessing includes unit conversion and filtering.

5. The method according to claim 1, wherein The pushing the target data to the second server based on the target parameter includes: A communication connection is established with the second server based on the connection address and verification information of the second server.

6. The method according to claim 1, wherein Also includes: Receive error feedback information; Based on the error feedback information, a preset number of retry strategies are executed.

7. A data compression transmission system, characterized in that: Used to perform the method according to any one of claims 1 to 6, comprising: USB communication module, used to establish USB communication connection; The reading and compression module is used to read the Modbus data address to obtain the target data from the control board and perform compression processing; a parsing module, configured to obtain a configuration file from the first server based on the USB communication connection and parse the configuration file to obtain target parameters, wherein the target parameters include a connection address of the second server, verification information, and push policy parameters; A push module, configured to push the target data to a second server based on the target parameters; The calling module is used to receive the target instruction sent by the second server and call the corresponding processing flow accordingly.

8. A data compression transmission device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program; The processor is configured to implement the steps of a data compression transmission method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data compression transmission method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Mobile network quality automatic monitoring system and method for GSM and 3G

    CN102333334A

  • Communication method and device, edge gateway and storage medium

    CN118574090A