Multi-link data transmission method and device, processor, engineering vehicle and medium
By recording the time stamp of data in the torque limiter of the engineering vehicle and uploading it to the Internet platform, the problem of inaccurate time information during data transmission is solved, and the accuracy and reliability of data transmission is achieved.
Patent Information
- Application Number
- CN202411972234.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-09
AI Technical Summary
During the data transmission process of engineering vehicles, it is difficult for the prior art to accurately record and transmit data time information, resulting in inconsistent data time, affecting subsequent merge processing and analysis.
The data to be transmitted is obtained through the torque limiter and the timestamp is recorded, the association is recorded in the csv file, stored in local memory, compressed and packaged, and finally uploaded to the Internet platform based on multiple data transmission links.
It ensures the accuracy of time information during data transmission, is suitable for the data transmission link requirements of different vehicles, and improves the reliability and efficiency of data transmission.
Smart Images

Figure CN119967018A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a method, device, processor, engineering vehicle and medium for multi-link data transmission. Background Art
[0002] During the operation of engineering vehicles, the collection and transmission of working condition data is extremely important for subsequent processing. When transmitting data back through the torque limiter, the existing technology usually transmits vehicle working condition data and safety data without time information, and the receiver usually directly records the time when the data is received, resulting in a delay or even inaccurate time of the exported data. In addition, when the data receiver is not unique or the data transmission link is inconsistent, there will also be inconsistent data time, resulting in errors in the subsequent merging processing. Therefore, the technology has the problem of inaccurate data time information recorded during the data transmission process. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a method, device, processor, engineering vehicle and machine-readable storage medium for multi-link data transmission, so as to solve the problem of inaccurate time information of recorded data during data transmission in the current technology.
[0004] In order to achieve the above-mentioned object, a first aspect of an embodiment of the present application provides a method for multi-link data transmission, which is applied to an engineering vehicle, the engineering vehicle includes a torque limiter, and the engineering vehicle is configured with multiple data transmission links, the method comprising:
[0005] The data to be transmitted is obtained through the torque limiter, and a timestamp when the data to be transmitted is obtained is recorded;
[0006] The data to be transmitted and the timestamp acquired within the preset period are recorded in a csv file;
[0007] Store the csv file into the local memory of the torque limiter;
[0008] After the data storage is completed, the csv file is compressed and packaged to obtain a data file package;
[0009] Based on the target transmission link among the multiple data transmission links, the data file package is uploaded to the Internet platform.
[0010] In an embodiment of the present application, multiple data transmission links include a first transmission link, the first transmission link includes a vehicle terminal, and the vehicle terminal is associated with a vehicle terminal identifier; when the target transmission link is the first transmission link, based on the target transmission link among the multiple data transmission links, the data file package is uploaded to the Internet platform, including: transferring the data file package in the torque limiter to the vehicle terminal; and associating the data file package with the vehicle terminal identifier and uploading it to the Internet platform through the vehicle terminal.
[0011] In an embodiment of the present application, the method also includes: detecting whether the data file package is uploaded successfully; if the upload is successful, deleting the data file package at the vehicle terminal; if the upload fails, storing the data file package to the vehicle terminal, and re-uploading the data file package until the upload is successful.
[0012] In an embodiment of the present application, the multiple data transmission links include a second transmission link, and the second transmission link is associated with a virtual terminal identifier; when the target transmission link is the second transmission link, based on the target transmission link among the multiple data transmission links, the data file package is uploaded to the Internet platform, including: associating the data file package and the virtual terminal identifier through a torque limiter and uploading them to the Internet platform.
[0013] In an embodiment of the present application, the method further includes: obtaining the current system time; and deleting the historical CSV files stored in the torque limiter according to the current system time and a preset data storage period.
[0014] In an embodiment of the present application, the method also includes: when the engineering vehicle is started, based on the network time protocol and the message queue telemetry transmission protocol, the system time of the engineering vehicle is synchronized according to the platform time of the Internet platform.
[0015] A second aspect of an embodiment of the present application provides a processor configured to execute the above-mentioned multi-link data transmission method.
[0016] According to a third aspect of an embodiment of the present application, a multi-link data transmission device is applied to an engineering vehicle, the engineering vehicle includes a torque limiter, and the engineering vehicle is configured with multiple data transmission links, the device includes:
[0017] A data acquisition module, used for acquiring the data to be transmitted through the torque limiter, and recording the timestamp when the data to be transmitted is acquired;
[0018] The data recording module is used to associate and record the data to be transmitted and the timestamp acquired within a preset period into a csv file;
[0019] A data storage module, used to store the csv file into the local memory of the torque limiter;
[0020] The data packaging module is used to compress and package the CSV file after the data storage is completed to obtain a data file package;
[0021] The data transmission module is used to upload the data file package to the Internet platform based on the target transmission link among multiple data transmission links.
[0022] A fourth aspect of an embodiment of the present application provides an engineering vehicle, comprising: the above-mentioned processor or the above-mentioned multi-link data transmission device.
[0023] A fifth aspect of an embodiment of the present application provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned multi-link data transmission method.
[0024] Through the above technical scheme, it is applied to an engineering vehicle including a torque limiter and equipped with multiple data transmission links. The data to be transmitted that needs to be transmitted is obtained through the torque limiter, and the timestamp when the data to be transmitted is obtained is recorded, and then the data to be transmitted and the timestamp obtained within a preset period are associated and recorded in a csv file, and then the csv file is stored in the local memory of the torque limiter. After the data storage is completed, the csv file is compressed and packaged to obtain a data file package, and finally the data file package is uploaded to the Internet platform based on the target transmission link in the multiple data transmission links. This application records the data to be transmitted and the corresponding timestamp in the csv file, and can ensure the accuracy of the time information of the transmitted data by transmitting the csv file, and is suitable for the needs of data transmission links of different vehicles.
[0025] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0027] Figure 1 A flowchart of a method for multi-link data transmission according to an embodiment of the present application is schematically shown;
[0028] Figure 2 A schematic diagram of the structure of a multi-link data transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0030] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0031] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0032] The engineering vehicles of the embodiments of the present application include traditional engineering machinery vehicles, and also include new energy vehicles used in the field of engineering machinery, such as new energy mixer trucks, new energy pump trucks, new energy excavators, etc.; in addition, the engineering machinery vehicles of the present embodiment also belong to intelligent networked vehicles. The engineering machinery vehicles include sensing / perception systems, communication systems, etc., and collect vehicle operation data and vehicle surrounding environment information through the sensing / perception systems in the vehicle. The network connection with other vehicles and the cloud is realized through the communication system, and the collected vehicle operation data, vehicle surrounding environment information, etc. are shared to the cloud and other authorized vehicles to realize data sharing, remote analysis, intelligent driving and other operations.
[0033] Figure 1 The flowchart of a method for multi-link data transmission according to an embodiment of the present application is schematically shown. Figure 1 As shown, an embodiment of the present application provides a method for multi-link data transmission, which is applied to an engineering vehicle. The engineering vehicle includes a torque limiter and is configured with multiple data transmission links. The method is illustrated by applying the method to a processor of an engineering vehicle as an example. The method may include the following steps.
[0034] Step S101, obtaining data to be transmitted through a torque limiter, and recording a timestamp when the data to be transmitted is obtained.
[0035] Step S102, the data to be transmitted and the timestamp acquired within a preset period are associated and recorded in a csv file.
[0036] Step S103, storing the csv file in the local memory of the torque limiter.
[0037] Step S104, after the data storage is completed, the csv file is compressed and packaged to obtain a data file package.
[0038] Step S105: uploading the data file package to the Internet platform based on the target transmission link among the multiple data transmission links.
[0039] It can be understood that the engineering vehicle in the embodiment of the present application can be a fuel vehicle model or a new energy vehicle model. A plurality of data transmission links are configured in the engineering vehicle so that the appropriate links can be bound for data transmission according to the actual situation and needs of the engineering vehicle. The torque limiter can collect the posture data of the engineering vehicle in real time during operation, and synchronize the CAN bus to obtain the status data of the engineering vehicle during operation. The above data are all data to be transmitted that need to be transmitted back. In order to ensure the accuracy of the time information of the data to be transmitted, the timestamp of each data acquisition can be recorded to ensure the timing and accuracy of the data. Preferably, the data sampling frequency of the torque limiter can be ensured to be high enough to capture key data changes, and the timestamp should be accurate to milliseconds to support more sophisticated data analysis.
[0040] It can be understood that the preset period is a set value pre-set according to actual needs. For example, the preset period can be every hour or every day, etc. The data to be transmitted and its corresponding timestamp collected within the preset period are saved in csv format to form a csv file. Each data structure in the csv file is a data unit of the data to be transmitted and its corresponding timestamp. The csv file is a text file format that is easy to read and process, suitable for data exchange and storage. The naming of the csv file can be determined according to the system or platform standard. In an example, a more efficient binary file format (such as parquet, avro) can also be used to store data to save storage space and speed up processing.
[0041] It can be understood that since the torque limiter can also provide a data export function, after obtaining the csv file, the csv file can be temporarily stored on the local storage device of the torque limiter to ensure local backup of the data and flexibility of subsequent processing.
[0042] Furthermore, in order to improve the efficiency and security of data transmission, the csv file can be compressed and packaged to obtain a data file package. The csv file is compressed to reduce the file size, which is convenient for network transmission and storage. The packaging process can further protect the data integrity and simplify the transmission process.
[0043] Next, based on the engineering vehicles in the multiple data transmission links, in one example, the target transmission link can be selected based on the actual situation of the engineering vehicles, network conditions, bandwidth limitations, and transmission priority.
[0044] Through the above technical scheme, it is applied to an engineering vehicle including a torque limiter and equipped with multiple data transmission links. The data to be transmitted that needs to be transmitted is obtained through the torque limiter, and the timestamp when the data to be transmitted is obtained is recorded, and then the data to be transmitted and the timestamp obtained within a preset period are associated and recorded in a csv file, and then the csv file is stored in the local memory of the torque limiter. After the data storage is completed, the csv file is compressed and packaged to obtain a data file package, and finally the data file package is uploaded to the Internet platform based on the target transmission link in the multiple data transmission links. This application records the data to be transmitted and the corresponding timestamp in the csv file, and can ensure the accuracy of the time information of the transmitted data by transmitting the csv file, and is suitable for the needs of data transmission links of different vehicles.
[0045] In an embodiment of the present application, multiple data transmission links include a first transmission link, the first transmission link includes a vehicle terminal, and the vehicle terminal is associated with a vehicle terminal identifier; when the target transmission link is the first transmission link, uploading the data file package to the Internet platform based on the target transmission link among the multiple data transmission links may include: transferring the data file package in the torque limiter to the vehicle terminal; and associating the data file package with the vehicle terminal identifier and uploading it to the Internet platform through the vehicle terminal.
[0046] Specifically, the first transmission link among the multiple data transmission links includes a vehicle terminal, and the vehicle terminal is associated with a unique vehicle terminal identifier. When the target transmission link bound to the engineering vehicle is the first transmission link, the upload process of the data file package will involve the vehicle terminal, and the data file package will be uploaded to the Internet platform together with the vehicle terminal identifier. In one example, the data file package is transferred from the torque limiter to the vehicle terminal associated therewith by wired transmission, such as data transmission through CAN bus or Ethernet. In another example, the data file package is transferred from the torque limiter to the vehicle terminal associated therewith by wireless transmission, such as data transmission through Wi-Fi and Bluetooth. During the transmission process, it is necessary to ensure the integrity and security of the data to avoid data loss or tampering. Further, on the vehicle terminal, the data file package is associated with the vehicle terminal identifier. The vehicle terminal identifier is unique and is used to identify different vehicles and vehicle terminals on the Internet platform. This association can be achieved by embedding the vehicle terminal identifier information in the data file package, or attaching the vehicle terminal identifier as metadata during the upload process. Finally, the vehicle terminal uploads the data file package associated with the vehicle terminal identifier to the Internet platform through its communication module. During the uploading process, it is necessary to follow the data receiving protocol and format requirements of the Internet platform to ensure that the data can be correctly parsed and processed.
[0047] In this way, it can be ensured that under the first transmission link, the data file package can be safely and efficiently uploaded from the torque limiter to the Internet platform and associated with the vehicle terminal identification, providing convenience for subsequent data analysis and processing.
[0048] In an embodiment of the present application, the method may further include: detecting whether the data file package is uploaded successfully; if the upload is successful, deleting the data file package at the vehicle terminal; if the upload fails, storing the data file package to the vehicle terminal, and re-uploading the data file package until the upload is successful.
[0049] It can be understood that in order to avoid data loss due to upload failure, after the data file package is uploaded to the Internet platform, the vehicle terminal can detect whether the upload operation is successful. In one example, this can be achieved by checking the response code, status information or confirmation message returned by the Internet platform. If the upload is detected to be successful, the vehicle terminal should delete the uploaded data file package locally to free up storage space. In one example, the vehicle terminal can record the log information of successful upload, including upload time, file size, upload speed, etc., for subsequent analysis and statistics. If it is detected that the upload fails due to network failure, server error, etc., the vehicle terminal should re-store the data file package locally. At the same time, the vehicle terminal can record the log information of the failed upload, including the failure time, failure reason, number of retries, etc. Then, the vehicle terminal can wait for the next upload cycle to re-upload the data file package, and this process continues until the data file package is successfully uploaded to the Internet platform.
[0050] In this way, the data file package can be properly processed during the upload process, and the integrity and reliability of the data can be guaranteed regardless of whether the upload succeeds or fails. At the same time, this also provides users with a better user experience and service quality.
[0051] In an embodiment of the present application, the multiple data transmission links include a second transmission link, and the second transmission link is associated with a virtual terminal identifier; when the target transmission link is the second transmission link, uploading the data file package to the Internet platform based on the target transmission link among the multiple data transmission links may include: associating the data file package and the virtual terminal identifier through a torque limiter and uploading them to the Internet platform.
[0052] It can be understood that, considering that some engineering vehicles are not equipped with vehicle terminals, the embodiment of the present application provides a second transmission link, and the second transmission link is associated with a virtual terminal identifier. When the engineering vehicle binds the second transmission link as the target transmission link, the upload process of the data file package will be directly performed through the torque limiter, and the data file package will be uploaded to the Internet platform together with the virtual terminal identifier. Specifically, before preparing to upload, the torque limiter associates the data file package with the virtual terminal identifier. The virtual terminal identifier is a logical identifier used to distinguish different data transmission sources or groups on the Internet platform. This association can be achieved by embedding virtual terminal identification information in the data file package, or sending it to the Internet platform as metadata during the upload process. Further, the torque limiter uploads the data file package associated with the virtual terminal identifier directly to the Internet platform through its built-in communication module, such as a 4G / 5G module, a Wi-Fi module, or a wired network interface. During the upload process, it is necessary to follow the data receiving protocol and format requirements of the Internet platform to ensure that the data can be correctly parsed and processed.
[0053] In this way, it can be ensured that under the second transmission link, the data file package can be safely and efficiently uploaded from the torque limiter to the Internet platform and associated with the virtual terminal identifier, which facilitates subsequent data analysis and processing. At the same time, this also provides users or system administrators with better data management and monitoring capabilities.
[0054] In an embodiment of the present application, the method may further include: obtaining the current system time; and deleting the historical CSV files stored in the torque limiter according to the current system time and a preset data storage period.
[0055] It can be understood that, considering the limited local storage space of the torque limiter, the embodiment of the present application can delete the historical csv files based on the current system time and the preset data storage period. Specifically, the system can obtain the current accurate time through its built-in clock module or network time protocol (NTP) service. The preset data storage period is a predefined time period used to determine the maximum time that the historical csv files are stored in the torque limiter. This period can be configured according to actual needs, such as quarterly, semi-annual or annual. Furthermore, the torque limiter or the management system associated therewith can traverse the stored historical csv files and check the creation time or modification time of each file, and can mark those files whose creation time or modification time is earlier than the current system time minus the data storage period as expired files. Then, the deleted expired files are deleted to free up storage space. The deletion operation should ensure the physical deletion or secure overwriting of the data to prevent data leakage or recovery.
[0056] In this way, the CSV files stored in the torque limiter can be deleted in a rolling manner, ensuring that the historical CSV files in the torque limiter are managed in a timely and effective manner, thereby keeping the storage space tidy and the data up to date. This is essential for managing the storage space in the torque limiter, preventing data redundancy, and ensuring data timeliness.
[0057] In an embodiment of the present application, the method may further include: when the engineering vehicle is started, based on the network time protocol and the message queue telemetry transmission protocol, the system time of the engineering vehicle is synchronized according to the platform time of the Internet platform.
[0058] It can be understood that in order to ensure the time consistency between each system and the platform, ensure the accuracy of the system time of the engineering vehicle, and improve the timestamp accuracy of the data, time synchronization processing can be performed based on the Network Time Protocol (NTP) and the Message Queue Telemetry Transport Protocol (MQTT) when the engineering vehicle is started. When the engineering vehicle is started (or restarted), its control system begins to initialize and prepares to perform various self-test and configuration operations. The control system of the engineering vehicle sends a time synchronization request to the NTP server on the Internet through the NTP client. After receiving the request, the NTP server returns the current accurate time information to the control system of the engineering vehicle. If the engineering vehicle has established a connection with the Internet platform through the MQTT protocol, and the Internet platform provides time synchronization services, then the control system of the engineering vehicle can also send a time synchronization request to the Internet platform through MQTT. After receiving the request, the Internet platform can return its platform time (usually also based on the accurate time obtained by NTP or other time synchronization mechanisms) to the control system of the engineering vehicle.
[0059] Furthermore, the control system of the engineering vehicle synchronously updates its system time according to the received NTP time and / or MQTT time to ensure that the system time of the engineering vehicle is synchronized with the standard time on the Internet.
[0060] In one example, after time synchronization is completed, the engineering vehicle can continue with other initialization operations, such as data uploading, logging, etc. These operations will be performed based on accurate timestamps, thereby improving the accuracy and reliability of the data.
[0061] In this way, the system time of the engineering vehicle can be synchronized with the standard time on the Internet, thereby improving the accuracy and reliability of the data. This helps to improve the operating efficiency and management level of engineering vehicles.
[0062] A specific embodiment of the present application provides a multi-link data transmission method, which is applied to engineering vehicles. Taking into account that the working conditions of engineering vehicles are different and their settings are different, in order to be suitable for engineering vehicles with different requirements, the embodiment of the present application is configured with two high-frequency data storage and transmission links on the engineering vehicle, namely link one and link two. Link one includes a torque limiter, a vehicle terminal and an industrial Internet platform, and link two only includes a torque limiter and an industrial Internet platform. The engineering vehicle can bind one of the links according to the actual working conditions and requirements, and use it as the target return link for data return.
[0063] Specifically, the torque limiter can collect the working condition data of the engineering vehicle in real time, and collect the data to be transmitted by the vehicle through the CAN bus. The data recording frequency must be less than or equal to 2 seconds. Since the entire link data time is based on the torque limiter time, the original data time of the torque limiter must be accurate and cannot be changed with the interface setting time. In principle, the data transmission time cannot be changed after the base time is determined by the first synchronization.
[0064] Specifically, the time synchronization scheme of the reference time is as follows:
[0065] (1) The platform adds a computer virtual terminal. When binding the virtual terminal and on the premise that the platform time is accurate, the NTP working principle is used to synchronize the computer time using the MQTT protocol.
[0066] (2) When data is transmitted, a CSV file is used for data transmission, and a line of text in the CSV file is a data packet. The columns are separated by English commas, and the rows are separated by line breaks. The encoding is UTF-8. The data format is a timestamp and a data unit of the data to be transmitted. The timestamp is a millisecond timestamp, for example: 1698545631008. The data unit is hexadecimal CAN data, for example: 0A0A0A0A0A0A. In this way, after the system time of different engineering vehicles is synchronized based on the platform time, the uniformity of the timestamp can be guaranteed, and then the temporal and spatial uniformity of the data can be guaranteed.
[0067] First, the process of data transmission through link 1 is described. Specifically, in this specific embodiment, the frequency of the torque limiter sending time synchronization requests to the platform is set to be synchronized once every 10 minutes, and a text prompt is given on the display interface after successful synchronization. To ensure the real-time performance of data collection, the computer is set to write data into the ferroelectric memory in real time according to a 2-second cycle to ensure that data will not be lost due to power failure and other problems. Data is read from the ferroelectric memory and written into a csv file every 10 minutes.
[0068] Furthermore, the torque limiter can store and compress the data to be transmitted back. Specifically, the torque limiter can store the csv file of the data to be transmitted, and the stored data duration is not less than 1000H (can be set according to the size of the storage area). Then, in order to provide data transmission speed, the torque limiter can compress and package the high-frequency data format file in the csv file format. After the high-frequency data file in the csv format is compressed and packaged, the compression ratio relative to the real-time transmission of CAN data reaches 1:7.
[0069] Preferably, in order to ensure the timeliness of data storage, multi-threaded concurrent technology can be used to quickly store the data in the cache queue, thereby ensuring that the data in the queue is not lost and realizing the collection of millisecond-level data without loss.
[0070] Furthermore, the data to be transmitted back is transmitted back to the vehicle terminal, and the data is guaranteed not to be lost during the transmission process. Specifically, the torque limiter can upload the csv file to the terminal through the CAN bus, and transfer the file using the UDS protocol. When it cannot be uploaded to the vehicle terminal in time, the data needs to be stored locally and uploaded to the terminal in time when conditions permit. The specific transmission strategy can be: the torque limiter packages the data collected every hour into a file package and uploads it, and the upload time is no more than 5 minutes; when there is a power outage or CAN bus disconnection, the data packets of less than 1 hour are also packaged as one package; in addition, in order to prevent data loss during power outage or CAN bus disconnection, the response mode and retransmission technology can be used to ensure the reliability of the uploaded data. When uploading data, the torque limiter sends a request message to the vehicle terminal through CAN. After the vehicle terminal receives the data, it replies to the torque limiter through CAN according to the actual result. If it fails, the torque limiter saves the data packet and retransmits the data when the power is on or the CAN bus is normal until the retransmission is successful.
[0071] Next, for the vehicle terminal part, firstly, the process of the torque limiter transmitting csv through the CAN bus is described. For example, the process is as follows:
[0072] (1) File storage: The torque limiter collects bus CAN data and stores it in a csv file. A file is generated every hour, and the file naming rules must be implemented in accordance with the requirements of the Industrial Internet platform.
[0073] (2) The file is packaged and transmitted to the vehicle terminal. The vehicle terminal detects whether it has been more than 24 hours since the last CSV file was received. If so, the vehicle terminal sends a notification to the torque limiter to package the data. After receiving the notification from the vehicle terminal, the torque limiter starts to package the previously unuploaded data on a daily basis and compress it (compressed at a compression ratio of 7:1). After the compression is successful, the torque limiter starts to send the compressed file data to the bus at a speed of 20ms per frame (20ms per frame, about 50 frames in 1s, about 6% of the bus load, and a 130K file requires 6.5 minutes to transmit).
[0074] (3) Torque limiter retransmission mechanism: After the vehicle terminal receives the file, it verifies the file. If the verification passes, it notifies the torque limiter that the file has been received successfully. If the verification fails (caused by packet loss) or the waiting timeout occurs, it notifies the torque limiter to retransmit until the transmission is successful.
[0075] Furthermore, the data to be transmitted back is transmitted back to the platform and the data is guaranteed not to be lost. The vehicle terminal uploads all the received data to the Internet platform. When the platform cannot be uploaded in time, the data needs to be stored locally and uploaded to the platform in time when conditions permit. Specifically, the vehicle terminal directly uploads the received data file package to the platform. In order to prevent data loss when there is no power, no signal or weak signal, the vehicle terminal adopts MQT, HTTP and retransmission technology to ensure the reliability of upload communication. When uploading data, the upload data file package is first sent to the platform through MQTT, and then the data file package is uploaded to the server through HTTP. After the platform detects that the server has received the data, it replies to the terminal through MQTT based on the actual result. If it fails, the terminal retransmits the data until the retransmission is successful. Among them, the data upload process includes: data storage, detection of whether there is data upload, if there is no data upload, wait for an upload cycle before detection; if there is data upload, upload and store data. Then determine whether the data is uploaded successfully. If the upload fails, store the data that failed to upload; if the upload is successful, clear the uploaded data.
[0076] In an example, when the vehicle terminal is ready to upload data, it can obtain token information through MQTT. After receiving the token replied by the platform, the terminal uploads the packaged data through http. The vehicle terminal waits for the platform to upload the result. If successful, the uploaded file is deleted. If it fails or the waiting result times out, the data is saved as the uploaded file and waits for re-upload in the next cycle.
[0077] In this specific embodiment, for the Internet platform, the settings for data storage and export data may include: the data exported by the platform must be displayed according to the standard time zone of the selected country or city; the platform export data support time is optional, and the optional time range is within 1000 hours (adjustable according to the size of the storage space); the platform export data format can be customized according to user requirements; the company's internal overseas personnel can export data on the Internet of Things platform; the company's external agents and target users can export on the E-Butler web platform; the data range open to different users on different platforms can be set according to needs and confidentiality levels.
[0078] In the specific embodiment of the present application, the link 2 for high-frequency data storage and transmission is further described. First, for the torque limiter, refer to the above link 1, and on the basis of the above link 1, a built-in WIFI module is added, and the built-in WIFI module can directly share local hotspots such as mobile devices; and in the setting of returning the data to be transmitted to the platform and the data is not lost, all the received data is wirelessly uploaded to the industrial Internet platform when necessary. When it is impossible to upload the industrial Internet platform in time, the data needs to be stored locally and uploaded to the terminal in time when conditions permit. Except for the different transmission paths, the transmission strategies are the same as link 1.
[0079] Through the above technical solution, data loss prevention can be achieved for remote data transmission, including data real-time, storage timeliness, and data loss prevention when the signal is weak or no signal. At the same time, through high-frequency data compression and packaging transmission, high-frequency data files are compressed, and the compression ratio of real-time CAN data transmission reaches 1:7, which can improve data transmission efficiency.
[0080] The embodiment of the present application also provides a processor configured to execute the multi-link data transmission method in the above embodiment.
[0081] Figure 2 The structure diagram of a multi-link data transmission device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the embodiment of the present application provides a multi-link data transmission device 200, which is applied to an engineering vehicle, the engineering vehicle includes a torque limiter, and the engineering vehicle is configured with multiple data transmission links. The device 200 includes:
[0082] The data acquisition module 210 is used to acquire the data to be transmitted through the torque limiter, and record the timestamp when the data to be transmitted is acquired.
[0083] The data recording module 220 is used to associate and record the data to be transmitted and the timestamp acquired within a preset period into a csv file.
[0084] The data storage module 230 is used to store the csv file in the local memory of the torque limiter.
[0085] The data packaging module 240 is used to compress and package the CSV file after the data storage is completed to obtain a data file package.
[0086] The data transmission module 250 is used to upload the data file package to the Internet platform based on the target transmission link among the multiple data transmission links.
[0087] The device 200 for multi-link data transmission is applied to an engineering vehicle including a torque limiter and equipped with multiple data transmission links. The data to be transmitted is obtained through the torque limiter, and the timestamp when the data to be transmitted is obtained is recorded. Then, the data to be transmitted obtained within a preset period and the timestamp are associated and recorded in a csv file. Then, the csv file is stored in the local memory of the torque limiter. After the data storage is completed, the csv file is compressed and packaged to obtain a data file package. Finally, based on the target transmission link in the multiple data transmission links, the data file package is uploaded to the Internet platform. The present application records the data to be transmitted and the corresponding timestamp in a csv file, and can ensure the accuracy of the time information of the transmitted data by transmitting the csv file, and is suitable for the needs of data transmission links of different vehicles.
[0088] In one embodiment, multiple data transmission links include a first transmission link, the first transmission link includes a vehicle terminal, and the vehicle terminal is associated with a vehicle terminal identifier; when the target transmission link is the first transmission link, the data transmission module 250 is also used to: transfer the data file package in the torque limiter to the vehicle terminal; and associate the data file package with the vehicle terminal identifier and upload it to the Internet platform through the vehicle terminal.
[0089] In one embodiment, the data transmission module 250 is also used to: detect whether the data file package is uploaded successfully; if the upload is successful, delete the data file package at the vehicle terminal; if the upload fails, store the data file package to the vehicle terminal and re-upload the data file package until the upload is successful.
[0090] In one embodiment, the multiple data transmission links include a second transmission link, which is associated with a virtual terminal identifier; when the target transmission link is the second transmission link, the data transmission module 250 is also used to: associate the data file package and the virtual terminal identifier through a torque limiter and upload them to the Internet platform.
[0091] In one embodiment, the device 200 is also used to: obtain the current system time; and delete the historical csv files stored in the torque limiter according to the current system time and a preset data storage period.
[0092] In one embodiment, the device 200 is also used to: when the engineering vehicle is started, based on the network time protocol and the message queue telemetry transmission protocol, perform time synchronization processing on the system time of the engineering vehicle according to the platform time of the Internet platform.
[0093] An embodiment of the present application further provides an engineering vehicle, comprising: the processor in the above embodiment or the device for multi-link data transmission in the above embodiment.
[0094] An embodiment of the present application further provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the method for multi-link data transmission in the above-mentioned implementation manner.
[0095] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0096] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0097] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0098] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for multi-link data transmission, characterized in that: Applied to an engineering vehicle, the engineering vehicle includes a torque limiter, and the engineering vehicle is configured with multiple data transmission links. The method includes: Acquiring the data to be transmitted that needs to be transmitted through the torque limiter, and recording the timestamp when the data to be transmitted is acquired; The data to be transmitted and the timestamp acquired within a preset period are recorded in association in a csv file; Storing the csv file in the local memory of the torque limiter; After the data storage is completed, the csv file is compressed and packaged to obtain a data file package; Based on the target transmission link among the multiple data transmission links, the data file package is uploaded to the Internet platform.
2. The method according to claim 1, characterized in that The multiple data transmission links include a first transmission link, the first transmission link includes a vehicle terminal, and the vehicle terminal is associated with a vehicle terminal identifier; when the target transmission link is the first transmission link, uploading the data file package to the Internet platform based on the target transmission link among the multiple data transmission links includes: transmitting the data file package in the torque limiter to the vehicle terminal; The data file package and the vehicle terminal identification are associated and uploaded to the Internet platform through the vehicle terminal.
3. The method according to claim 2, characterized in that The method further comprises: Detecting whether the data file package is uploaded successfully; In case of successful uploading, deleting the data file package at the vehicle terminal; In the event of a failure in uploading, the data file package is stored in the vehicle terminal, and the data file package is re-uploaded until the uploading is successful.
4. The method according to claim 1, characterized in that: The multiple data transmission links include a second transmission link, and the second transmission link is associated with a virtual terminal identifier; when the target transmission link is the second transmission link, uploading the data file package to the Internet platform based on the target transmission link in the multiple data transmission links includes: The data file package and the virtual terminal identifier are associated and uploaded to the Internet platform through the torque limiter.
5. The method according to claim 1, characterized in that The method further comprises: Get the current system time; According to the current system time and the preset data storage period, the historical csv files stored in the torque limiter are deleted.
6. The method according to claim 1, characterized in that The method further comprises: When the engineering vehicle is started, the system time of the engineering vehicle is synchronized based on the network time protocol and the message queue telemetry transmission protocol according to the platform time of the Internet platform.
7. A processor, characterized in that: The device is configured to perform the multi-link data transmission method according to any one of claims 1 to 3.
8. A device for multi-link data transmission, characterized in that: Applied to an engineering vehicle, the engineering vehicle includes a torque limiter, the engineering vehicle is configured with multiple data transmission links, and the device includes: A data acquisition module, used for acquiring the data to be transmitted through the torque limiter, and recording the timestamp when the data to be transmitted is acquired; A data recording module is used to associate and record the data to be transmitted and the timestamp acquired within a preset period into a csv file; A data storage module, used for storing the csv file in the local memory of the torque limiter; A data packaging module is used to compress and package the csv file after the data storage is completed to obtain a data file package; A data transmission module is used to upload the data file package to an Internet platform based on a target transmission link among the multiple data transmission links.
9. An engineering vehicle, characterized in that: include: The processor according to claim 7 or the device for multi-link data transmission according to claim 8.
10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions, and the instructions are used to enable a machine to execute the multi-link data transmission method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Portable mobile medical terminal, and medical and nursing communication system
CN107888709A
Data accommodation processing platform
CN109995815A
Data transmission method, device and equipment and readable storage medium
CN111246033A
Audio and video data transmission method, electronic equipment and storage medium
CN111294664A
Vehicle data uploading and storage method and device, storage medium and vehicle
CN114584550A