Data compression transmission method and related equipment

By adopting USB communication connection and data compression transmission methods in industrial equipment, the problem of serial communication bandwidth limitation is solved, efficient, secure and stable data transmission is achieved, the needs of large data transmission are met and the equipment management capabilities are enhanced.

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

Patent Information

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

AI Technical Summary

Technical Problem

In data transmission, existing industrial equipment has a low data transmission rate due to the bandwidth limitation of serial communication, and cannot fully utilize the bandwidth advantages of 4G networks. Especially when processing large data volumes, transmission bottlenecks are prone to occur, increasing system delay and resource consumption.

Method used

By establishing a USB communication connection, reading the Modbus data address and performing compression processing, the target data is efficiently obtained from the control board, and the configuration file is obtained from the first server based on the USB communication connection for parsing, obtaining target parameters, and pushing the target data to the second server to achieve efficient data transmission.

Benefits of technology

It significantly improves the data transmission rate, overcomes the problem of bandwidth limitation, improves the security and stability of data transmission, ensures the effectiveness of data transmission in complex communication environments, and supports the processing flow of multiple target instructions, enhancing the management and maintenance capabilities of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697175A_ABST
    Figure CN119697175A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data transmission, in particular to a data compression transmission method and related equipment. The method comprises the following steps: establishing USB communication connection; reading a Modbus data address so as to obtain target data from the control panel and perform compression processing; acquiring a configuration file from a first server based on the USB communication connection, and analyzing the configuration file to acquire a target parameter; pushing the target data to a second server based on the target parameter, wherein the target parameter comprises a connection address, verification information and a pushing strategy parameter of the second server; and receiving a target instruction issued by the second server, and correspondingly calling a corresponding processing flow. The data transmission efficiency can be improved, and the flexibility and reliability of data transmission can be enhanced.
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 usually uses the Modbus protocol for data collection, and the remote transmission of data relies on the serial communication mode. However, due to bandwidth limitations, the data transmission rate of serial communication is low, and it cannot fully utilize the bandwidth advantages of the current high-speed 4G network. Especially when processing large amounts of data, transmission bottlenecks are prone to occur, which will increase system delays and resource consumption.

[0003] Traditional STM32 and 4G modules usually communicate through serial ports, and use AT commands to achieve network connection and data transmission. Although this method is simple and easy, the transmission efficiency is far from meeting the needs in scenarios with large data volumes, such as remote device management and real-time status monitoring. In addition, serial port communication lacks flexibility in dealing with changes in network status and complex communication environments, and often requires 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 the efficiency of data transmission 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: A data compression transmission method comprises: 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 it 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, verification information, and push strategy parameters of the second server; receiving a target instruction issued by the second server, and correspondingly calling a corresponding processing flow.

[0006] 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 compression transmission of data, it can be applicable to scenarios with large amounts of data and improve data transmission efficiency. By parsing the configuration file obtained from the first server to obtain the target parameters, the target data can be pushed to the second server, and 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.

[0007] 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; 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 the 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.

[0008] By adopting the above technical solution, the target instruction includes multiple functions such as re-acquiring configuration files, remote firmware upgrade, device activation and locking, push frequency modification, real-time data viewing, and obtaining device location. When the target instruction is to re-acquire the configuration file, the processing flow updates the target parameters to ensure that the configuration information of the data transmission is kept 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 into 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, and the data transmission frequency can be adjusted 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 location, the location information of the target device is obtained and returned to the second server to facilitate monitoring and management of the device's location information.

[0009] Optionally, the reading of the Modbus data address to obtain the 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.

[0010] 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.

[0011] 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.

[0012] 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.

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

[0014] 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.

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

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

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

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

[0019] In a second aspect, an embodiment of the present application discloses a data compression transmission system, which adopts the following scheme: 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 performing parsing to obtain target parameters; a pushing module for pushing the target data to a second server based on the target parameters, wherein the target parameters include a connection address, verification information, and push strategy parameters of the second server; and a calling module for receiving a target instruction issued by the second server and correspondingly calling a corresponding processing flow.

[0020] By adopting the above technical solution, a USB communication connection is established through a 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.

[0021] In a third aspect, an embodiment of the present application discloses a data compression transmission device, which adopts the following scheme: 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 a data compression transmission method as described in any one of the above items when executing the computer program.

[0022] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, which adopts the following scheme: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a data compression transmission method as described above are implemented.

[0023] In summary, the present application includes at least one of the following beneficial technical effects: 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 port communication mode, the data transmission rate is significantly improved and the bandwidth limitation problem is overcome; 2. Push the target data to the second server based on the target parameters, and use the connection address, verification information and push strategy 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 a complex communication environment; 3. Supports processing flows corresponding to multiple target instructions, including functions such as re-obtaining configuration files and remote firmware upgrades, which greatly enhances the management and maintenance capabilities of the device, thereby meeting the diverse needs of different application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A schematic diagram of a system architecture used in a data compression transmission method disclosed in an embodiment of the present application; Figure 2 A schematic diagram of a step flow of a data compression transmission method disclosed in an embodiment of the present application; Figure 3 A structural schematic diagram of a data compression transmission system disclosed in another embodiment of the present application; Figure 4 A structural schematic diagram of a data compression transmission device disclosed in yet another embodiment of the present application. DETAILED DESCRIPTION

[0025] The present application is further described in detail below in conjunction with the accompanying drawings.

[0026] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, 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.

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

[0028] 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 the same type of information 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, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0029] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0030] See also Figure 1 A data compression transmission method is disclosed in the first embodiment of the present application. 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 and connected 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.

[0031] Among them, STM32 uses STM32H7 series microcontroller, with a main frequency of 550MHz, equipped with USBHost interface, and supports USBHost mode. In terms of functions: realize USBHost function, communicate with 4G module via USB; run the main program, control the logic of the whole system; collect data through Modbus TCP protocol; process AT commands, interact with 4G module; compress and decompress data; realize push strategy logic; process commands issued by the server.

[0032] The models used by 4G modules are such as EC200M, EC20, etc., which are used to support 4G networks, have USB Device interfaces, and support AT instruction sets. In terms of functions: support TCP / IP protocol stack, support HTTP, MQTT and other protocols. Provide AT command interface for STM32 control. Support positioning function, provide base station positioning or GPS positioning information. Among them, the USBHost interface of STM32 is connected to the USB Device interface of the 4G module, using the standard USB protocol to achieve high-speed and stable data transmission.

[0033] The first server is an HTTP (Hypertext Transfer Protocol) server, which is 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. It is suitable for scenarios where requests and responses are relatively independent, such as file downloads, configuration file pulls, etc.

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

[0035] STM32 is connected to the industrial control board through the Ethernet interface or 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 address and parameters to be read are specified by the configuration file and can be dynamically updated.

[0036] 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 instructions, 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.

[0037] [First embodiment] See also Figure 2 In the first embodiment of the present application, a data compression transmission method is disclosed, comprising the following steps: S10, establishing a USB communication connection; Among them, 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.

[0038] S20, reading the Modbus data address to obtain the target data from the control board and perform compression processing; 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.

[0039] 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, and the compression ratio is about 1:3. For example, the original data is 1200 bytes, and after compression, it is about 400 bytes.

[0040] Specifically, in step S20, data compression includes: S21, determining whether the size of the target data meets the compression condition; S22: If yes, compress the target data to update the target data.

[0041] 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.

[0042] In this embodiment, step S20 further includes: preprocessing the target data to update the target data.

[0043] 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.

[0044] S30, obtaining a configuration file from the first server based on the USB communication connection and parsing it to obtain target parameters; Among them, in this step S30, STM32 sends an HTTP POST request to the 4G module through an 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 (IMEI, etc.), the device mechanical code, the device key, the device activation validity period, the device software and hardware version number and other information.

[0045] 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, token required for device positioning, and push strategy parameters (such as the fastest and slowest push frequency) of the second server. 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.

[0046] S40, pushing the target data to the second server based on the target parameter; 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.

[0047] S50, receiving the target instruction sent by the second server, and calling the corresponding processing flow accordingly; Among them, step S50 corresponds to the push strategy 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.

[0048] Specifically, 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; Wherein, 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; 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; The corresponding STM32 uses HTTP GET request to download the firmware file through AT command and save it to Flash or external storage. Verify the MD5 code to confirm the integrity of the file. After verification, perform firmware upgrade. After the upgrade is completed, restart the system. And return the notification ID (notifyId) to the second server.

[0049] When the target command is 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; 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.

[0050] When the target instruction is to modify the push frequency, the processing flow is to update the push strategy parameters; 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; The corresponding second server turns on the real-time data viewing function and sends heartbeat packets regularly. After receiving the heartbeat packet, STM32 pushes real-time data at a set fast frequency. When the heartbeat packet stops (real-time data viewing is turned off), STM32 counts down for 60 seconds after receiving the last heartbeat packet and restores the previous push status. (The heartbeat packet is a defined command word that regularly notifies the client and server of their own status. It is sent at a certain time interval, similar to a heartbeat, so it is called a heartbeat packet).

[0051] 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.

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

[0053] It is worth mentioning that, in this embodiment, it also includes: S60, receiving error feedback information; 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.

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

[0055] AT command error detection includes: checking the response after each AT command is sent, and automatically retrying if an error occurs. Data push failure: If data push fails, the preset number of times, i.e., the retry mechanism, is, for example, up to 5 times, and push is suspended after 5 failures.

[0056] In summary, a data compression transmission method disclosed in the first embodiment of the present invention 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 port communication mode, the data transmission rate is significantly improved and the problem of bandwidth limitation is overcome; the target data is pushed to the second server based on the target parameters, 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; supporting processing flows corresponding to multiple target instructions, including re-obtaining configuration files, remote firmware upgrades and other functions, greatly enhancing the management and maintenance capabilities of the equipment, thereby meeting the diverse needs in different application scenarios.

[0057] [Second embodiment] 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.

[0058] 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 for parsing 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 correspondingly call the corresponding processing flow.

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

[0060] [Third embodiment] See also Figure 4 In the third embodiment of the present application, a data compression transmission device is disclosed, the device comprising: 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 a data compression transmission method described in the first embodiment when executing the computer program, and the details can be referred to above, so it will not be described in detail here. The technical effect of a data compression transmission device provided by this embodiment in actual application is the same as the technical effect of a data compression transmission method in the first embodiment.

[0061] [Fourth embodiment] In the 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 disk and a DVD), a magneto-optical medium (such as an optical disk), and a hardware device specially constructed 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 executed by one or more processors or processing devices to implement a data compression transmission method in the aforementioned embodiment.

[0062] In addition, it can be understood that the aforementioned embodiments are only 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.

[0063] 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 only schematic, and the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

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

[0065] In addition, each functional unit / module in each embodiment of the present invention may be integrated into one processing unit / module, or each unit / module may exist physically separately, or two or more units / modules may be integrated into one unit / module. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of hardware plus software functional units / modules.

[0066] 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 enabling one or more processors of a computer device (which can be a personal computer, a server, or a network device, etc.) to perform 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 (Read-Only Memory, referred to as ROM), random access memory (RandomAccess Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0067] 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 embodiments of the present invention.

Claims

1. A data compression transmission method, characterized in that: include: Establish USB communication connection; Read the Modbus data address to obtain the target data from the control board and perform compression processing; Obtaining a configuration file from the first server based on the USB communication connection and parsing it to obtain target parameters, wherein the target parameters include a connection address, verification information, and push policy parameters of the second server; Pushing the target data to a second server based on the target parameter; Receive the target instruction sent by the second server, and call the corresponding processing flow accordingly.

2. The method according to claim 1, characterized in that The target instructions include: Re-obtain configuration files, remote firmware upgrades, device activation and locking, push frequency modification, real-time data viewing, and device location acquisition; 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 the target address of the control board; When the target instruction is to modify the push frequency, 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 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.

3. 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, the target data is compressed to update the target data.

4. The method according to claim 1, characterized in that: The reading of the Modbus data address to obtain target data from the control board includes: 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.

5. The method according to claim 1, characterized in that 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; The preprocessing includes unit conversion and filtering.

6. The method according to claim 1, characterized in that 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.

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

8. A data compression transmission system, characterized in that: include: 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 it to obtain target parameters, wherein the target parameters include a connection address, verification information, and push strategy parameters of the second server; A push module, used for pushing the target data to the second server based on the target parameter; The calling module is used to receive the target instruction sent by the second server and call the corresponding processing flow accordingly.

9. 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 used to implement the steps of a data compression transmission method as described in any one of claims 1 to 7 when executing the computer program.

10. 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 a data compression transmission method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

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

    CN102333334A

  • Method and system for upgrading equipment through IOT adapter, and IOT adapter

    CN107222553A

  • Internet of things end-to-end network quality monitoring method and system and storage medium

    CN110099102A

  • Communication method and device, edge gateway and storage medium

    CN118574090A

  • File transmission proxy system and method

    CN1627687A