Method for transmitting upgrade file package, processor and engineering machinery
By obtaining the upgrade file package of the vehicle-mounted electronic control unit and the current working status data and bus usage rate of the construction machinery, and determining and adjusting the data transmission rate, the problem of high data transmission failure rate in the existing technology is solved and the transmission success rate is improved.
Patent Information
- Application Number
- CN202311629825.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, the failure rate of data transmission is relatively high, especially when the data is retransmitted at breakpoints, the parameter information of data transmission cannot be adjusted, resulting in the transmission failure during the retransmission process.
By obtaining the upgrade file package of the on-board electronic control unit, the current working status data of the construction machinery and the current bus usage rate, the initial data transmission rate of the upgrade file package is determined, and the data transmission rate is adjusted according to the error rate during the transmission process to improve the transmission success rate.
By combining the main factors affecting data transmission to adjust the data transmission rate, the success rate of transmission upgraded file packets is significantly improved and the risk of data transmission failure is reduced.
Smart Images

Figure CN120075152A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of construction machinery data transmission, and specifically relates to a method, a processor, and a construction machinery for transmitting an upgrade file package. Background Art
[0002] In the vehicle electronic control unit of construction machinery, usually only the vehicle-mounted terminal has the ability to remotely connect to the server. If it is necessary to remotely upgrade other vehicle-mounted electronic control units, first, the vehicle-mounted terminal downloads the upgrade file package of the vehicle-mounted electronic control unit to the local, and then the vehicle-mounted terminal sends the upgrade file package to the specified vehicle-mounted electronic control unit through the in-vehicle bus to complete the upgrade of the vehicle-mounted electronic control unit. Chinese Patent Application CN109639745A discloses a data transmission method between a vehicle-mounted terminal and a server, which uses a breakpoint resumption scheme. However, when resending data at the breakpoint, the parameter information of data transmission is not adjusted according to the reason for data transmission failure, resulting in the possibility of still transmission failure during the resending process. Therefore, the existing data transmission scheme has a problem of high failure rate during data transmission. Summary of the Invention
[0003] The purpose of the embodiments of this application is to provide a method, a processor, and a construction machinery for transmitting an upgrade file package to solve the problem of high failure rate during data transmission in the existing data transmission scheme.
[0004] To achieve the above purpose, in the first aspect of the embodiments of this application, a method for transmitting an upgrade file package is provided, and the method includes:
[0005] Obtain the upgrade file package of the vehicle-mounted electronic control unit;
[0006] Obtain the current working state data and the current bus utilization rate of the construction machinery;
[0007] Determine the initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate;
[0008] Send the upgrade file package to the corresponding vehicle-mounted electronic control unit at the initial data transmission rate.
[0009] In an embodiment of the present application, determining an initial data transmission rate of an upgrade file package according to current working state data and current bus utilization rate includes: obtaining a maximum data transmission rate, a minimum data transmission rate, maximum working state data, minimum working state data, a working state data threshold, a maximum bus utilization rate, a minimum bus utilization rate, and a bus utilization rate threshold; determining a working state influence parameter according to the current working state data, the maximum data transmission rate, the minimum data transmission rate, the maximum working state data, the minimum working state data, and the working state data threshold; determining a bus utilization rate influence parameter according to the current bus utilization rate, the maximum data transmission rate, the minimum data transmission rate, the maximum bus utilization rate, the minimum bus utilization rate, and the bus utilization rate threshold; and combining the working state influence parameter and the bus utilization rate influence parameter to determine the initial data transmission rate of the upgrade file package.
[0010] In an embodiment of the present application, sending the upgrade file package to a corresponding vehicle-mounted electronic control unit according to the initial data transmission rate includes: splitting the upgrade file package to obtain a plurality of data blocks; and sending the plurality of data blocks to the corresponding vehicle-mounted electronic control unit according to the initial data transmission rate.
[0011] In an embodiment of the present application, the method further includes: when any data block is transmitted successfully, determining whether an error code feedback from the vehicle-mounted electronic control unit is received within a preset time; when the error code feedback from the vehicle-mounted electronic control unit is received within the preset time and the error code is a first error code or a second error code, determining an error rate of any data block; adjusting the initial data transmission rate according to the error rate to obtain a target data transmission rate; and retransmitting any data block according to the target data transmission rate.
[0012] In an embodiment of the present application, the method further includes: when the error code feedback from the vehicle-mounted electronic control unit is not received within the preset time, retransmitting any data block according to the initial data transmission rate.
[0013] In an embodiment of the present application, adjusting the initial data transmission rate according to the error rate to obtain a target data transmission rate includes: obtaining a maximum data transmission rate, a minimum data transmission rate, a maximum error rate, a minimum error rate, and an error rate threshold; determining an error rate influence parameter according to the error rate, the maximum data transmission rate, the minimum data transmission rate, the maximum error rate, the minimum error rate, and the error rate threshold; and adjusting the initial data transmission rate according to the error rate influence parameter to obtain a target data transmission rate.
[0014] In an embodiment of the present application, the target data transmission rate satisfies formula (1):
[0015] Res = Res 0 + Res fr ; (1)
[0016] Among them, Res is the target data transmission rate, and Res 0 is the initial data transmission rate, and Res fr is the error rate impact parameter;
[0017] When the error rate is less than or equal to the error rate threshold, the error rate impact parameter satisfies formula (2):
[0018] Res fr = Res min +(Fr - Fr min )*(Res max - Res min ) / (Fr set - Fr min ); (2)
[0019] When the error rate is greater than the error rate threshold, the error rate impact parameter satisfies formula (3):
[0020] Res fr = Res min +(Fr set - Fr min )*(Res max - Res min ) / (Fr set - Fr min )+(Fr - Fr set )*(Res max - Res min ) / (Fr max - Fr set ); (3)
[0021] Among them, Res fr is the error rate impact parameter, Res min is the minimum data transmission rate, Res max is the maximum data transmission rate, Fr is the error rate, Fr max is the maximum error rate, Fr min is the minimum error rate, Fr set is the error rate threshold.
[0022] In the embodiments of the present application, the method further includes: respectively determining the lengths and digital signatures of each data block to obtain the lengths and digital signatures of multiple data blocks; sending the lengths and digital signatures of the multiple data blocks to the corresponding vehicle-mounted electronic control unit; when the transmission of the multiple data blocks is completed, receiving the verification result feedback by the vehicle-mounted electronic control unit, and the verification result is obtained by the vehicle-mounted electronic control unit according to the lengths and digital signatures of the multiple data blocks; when the verification result is a verification failure result, retransmitting the upgrade file package.
[0023] In the embodiment of the present application, the upgrade file package is split to obtain multiple data blocks, including: querying whether there is a reception record of the upgrade file package in the vehicle-mounted electronic control unit; in the case where there is a reception record of the upgrade file package in the vehicle-mounted electronic control unit, determining the transmission break point position of the upgrade file package; and splitting the upgrade file package starting from the transmission break point position to obtain multiple data blocks.
[0024] The second aspect of the embodiment of the present application provides a processor configured to execute the above method for transmitting the upgrade file package.
[0025] The third aspect of the embodiment of the present application provides a construction machinery, including: a vehicle-mounted electronic control unit; and a processor.
[0026] The fourth aspect of the embodiment of the present application provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to cause the machine to execute the above method for transmitting the upgrade file package.
[0027] In the above technical solution, by obtaining the upgrade file package of the vehicle-mounted electronic control unit, and obtaining the current working state data and the current bus utilization rate of the construction machinery, and then determining the initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate, and finally sending the upgrade file package to the corresponding vehicle-mounted electronic control unit at the initial data transmission rate. By determining the initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate of the construction machinery, and sending the upgrade file package to the vehicle-mounted electronic control unit that needs to be upgraded at the initial data transmission rate, the present application can adjust the data transmission rate by combining the main factors affecting data transmission, so as to improve the success rate of transmitting the upgrade file package.
[0028] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation part. Description of the Drawings
[0029] The drawings are used to provide a further understanding of the embodiments of the present application, and constitute a part of the specification, and are used to explain the embodiments of the present application together with the following specific implementation, but do not constitute a limitation to the embodiments of the present application. In the drawings:
[0030] Figure 1 Schematically shows a flowchart of a method for transmitting an upgrade file package according to an embodiment of the present application;
[0031] Figure 2 Schematically shows a flowchart of a method for transmitting an upgrade file package according to a specific embodiment of the present application;
[0032] Figure 3Schematically shows a structural diagram of a construction machine according to an embodiment of the present application.
[0033] Description of reference numerals
[0034] 310 Vehicle-mounted electronic control unit 311 Data receiving module
[0035] 312 Data verification module 320 Processor
[0036] 321 Data segmentation module 322 Data sending module
[0037] 323 Status detection module 324 Sending parameter calculation module Detailed implementation manners
[0038] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the specific implementation manners described herein are only for explaining and illustrating the embodiments of the present application, and are not used to limit the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.
[0039] It should be noted that if there are directional indications (such as up, down, left, right, front, back,...) involved in the embodiments of the present application, such directional indications are only used to explain the relative positional relationship and movement conditions between components in a specific posture (as shown in the drawings). If the specific posture changes, the directional indications will also change accordingly.
[0040] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, such descriptions of "first", "second", etc. are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions between various embodiments can be combined with each other, but it must be based on the fact that those of ordinary skill in the art can implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the protection scope required by the present application.
[0041] Figure 1 Schematically shows a flowchart of a method for transmitting an upgrade file package according to an embodiment of the present application. As Figure 1 shown, the embodiments of the present application provide a method for transmitting an upgrade file package. Taking the application of this method to a processor as an example, this method may include the following steps:
[0042] Step S101: Obtain the upgrade file package of the vehicle-mounted electronic control unit.
[0043] Step S102: Obtain the current working state data and the current bus utilization rate of the construction machinery.
[0044] Step S103: Determine the initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate.
[0045] Step S104: Send the upgrade file package to the corresponding vehicle-mounted electronic control unit at the initial data transmission rate.
[0046] In the embodiment of the present application, the processor communicates with the server. When it is necessary to upgrade the vehicle-mounted electronic control unit in the construction machinery, the processor can obtain the upgrade file package of the vehicle-mounted electronic control unit from the server and send the upgrade file package to the corresponding vehicle-mounted electronic control unit. The working states of the construction machinery include an idle state, a full-load working state, an overload working state, etc. The processor can quantify the working states of the construction machinery to obtain a quantization range, and then determine the corresponding working state data of the construction machinery in different working states. For example, when the working state of the construction machinery is the idle state, the corresponding current working state data is 0%. For another example, when the working state of the construction machinery is the full-load working state, the corresponding current working state data is 100%. For still another example, when the working state of the construction machinery is the overload working state, the corresponding current working state data is 120%. In this way, during the actual operation process, the processor can determine the current working state data of the construction machinery.
[0047] After receiving the upgrade file package sent by the server, the processor can obtain the current working state data and the current bus utilization rate of the construction machinery, determine the working state influence parameter according to the current working state data, and determine the bus utilization rate influence parameter according to the current bus utilization rate. Then, the processor combines the working state influence parameter and the bus utilization rate influence parameter to determine the initial data transmission rate of the upgrade file package. Subsequently, the processor can send the upgrade file package to the corresponding vehicle-mounted electronic control unit at the initial data transmission rate. In this way, the sending success rate of the upgrade file package can be improved.
[0048] In the above technical solution, by obtaining the upgrade file package of the vehicle-mounted electronic control unit, as well as the current working state data and the current bus utilization rate of the construction machinery, and then determining the initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate, and finally sending the upgrade file package to the corresponding vehicle-mounted electronic control unit according to the initial data transmission rate. By determining the initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate of the construction machinery, and sending the upgrade file package to the vehicle-mounted electronic control unit that needs to be upgraded according to the initial data transmission rate, the present application can adjust the data transmission rate by combining the main factors affecting data transmission, so as to improve the success rate when transmitting the upgrade file package.
[0049] In an embodiment of the present application, determining the initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate may include: obtaining the maximum data transmission rate, the minimum data transmission rate, the maximum working state data, the minimum working state data, the working state data threshold, the maximum bus utilization rate, the minimum bus utilization rate, and the bus utilization rate threshold; determining the working state influence parameter according to the current working state data, the maximum data transmission rate, the minimum data transmission rate, the maximum working state data, the minimum working state data, and the working state data threshold; determining the bus utilization rate influence parameter according to the current bus utilization rate, the maximum data transmission rate, the minimum data transmission rate, the maximum bus utilization rate, the minimum bus utilization rate, and the bus utilization rate threshold; and determining the initial data transmission rate of the upgrade file package by combining the working state influence parameter and the bus utilization rate influence parameter.
[0050] In an embodiment of the present application, the processor may determine the initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate of the construction machinery. First, the processor may obtain the maximum data transmission rate, the minimum data transmission rate, the maximum working state data, the minimum working state data, the working state data threshold, the maximum bus utilization rate, the minimum bus utilization rate, and the bus utilization rate threshold, and the foregoing parameters can all be adjusted according to the actual working conditions. Subsequently, the processor may judge the magnitude relationship between the current working state data and the working state data threshold, and then combine the magnitude relationship between the current working state data and the working state data threshold to determine the working state influence parameter according to the current working state data, the maximum data transmission rate, the minimum data transmission rate, the maximum working state data, the minimum working state data, and the working state data threshold. Specifically, when the current working state data Wd is less than or equal to the working state data threshold Wd set the working state influence parameter satisfies formula (4):
[0051] Res wd = Res min +(Wd - Wd min)*(Res max -Res min ) / (Wd set -Wd min ); (4)
[0052] When the current working state data Wd is greater than the working state data threshold Wd set , the working state influence parameter satisfies formula (5):
[0053] Res wd = Res min +(Wd set -Wd min )*(Res max -Res min ) / (Wd set -Wd min )+(Wd - Wd set )*(Res max -Res min ) / (Wd max -Wd set ); (5)
[0054] Where Res wd is the working state influence parameter, Res min is the minimum data transfer rate, Res max is the maximum data transfer rate, Wd is the current working state data, Wd max is the maximum working state data, Wd min is the minimum working state data, Wd set is the working state data threshold.
[0055] In this way, the processor can determine the working state influence parameter. Similarly, the processor can judge the magnitude relationship between the current bus utilization rate and the bus utilization rate threshold, and then combine the magnitude relationship between the current bus utilization rate and the bus utilization rate threshold to determine the bus utilization rate influence parameter according to the current bus utilization rate, the maximum data transfer rate, the minimum data transfer rate, the maximum bus utilization rate, the minimum bus utilization rate, and the bus utilization rate threshold. Specifically, when the current bus utilization rate Br is less than or equal to the bus utilization rate threshold Br set , the bus utilization rate influence parameter satisfies formula (6):
[0056] Res br = Res min +(Br - Br min )*(Res max -Res min ) / (Br set -Br min ); (6)
[0057] When the current bus utilization rate Br is greater than the bus utilization rate threshold Br set , the bus utilization rate impact parameter satisfies Equation (7):
[0058] Res br = Res min +(Br set - Br min )*(Res max - Res min ) / (Br set - Br min )+(Br - Br set )*(Res max - Res min ) / (Br max - Br set ); (7)
[0059] where Res br is the bus utilization rate impact parameter, Res min is the minimum data transfer rate, Res max is the maximum data transfer rate, Br is the current bus utilization rate, Br max is the maximum bus utilization rate, Br min is the minimum bus utilization rate, and Br set is the bus utilization rate threshold.
[0060] Accordingly, the processor can further determine the initial data transfer rate of the upgrade file package by combining the working state impact parameter and the bus utilization rate impact parameter. The initial data transfer rate satisfies Equation (8):
[0061] Res 0 = Res wd + Res br ; (8)
[0062] where Res 0 is the initial data transfer rate, Res wd is the working state impact parameter, and Res br is the bus utilization rate impact parameter.
[0063] In this way, the processor can send the upgrade file package at the determined initial data transfer rate, improving the transmission success rate of the upgrade file package.
[0064] In the embodiments of the present application, sending the upgrade file package to the corresponding vehicle-mounted electronic control unit at the initial data transfer rate may include: splitting the upgrade file package to obtain multiple data blocks; and sending the multiple data blocks to the corresponding vehicle-mounted electronic control unit at the initial data transfer rate.
[0065] In an embodiment of the present application, before the processor transfers the upgrade file package to the corresponding vehicle-mounted electronic control unit, the processor may split the upgrade file package into multiple data blocks, and according to the initial data transfer rate, sequentially send the data blocks to the corresponding vehicle-mounted electronic control unit according to the sending order among the multiple data blocks. In this way, the upgrade file package can be sent to the corresponding vehicle-mounted electronic control unit.
[0066] In an embodiment of the present application, splitting the upgrade file package to obtain multiple data blocks may include: querying whether there is a reception record of the upgrade file package in the vehicle-mounted electronic control unit; in the case that there is a reception record of the upgrade file package in the vehicle-mounted electronic control unit, determining the transmission breakpoint position of the upgrade file package; and splitting the upgrade file package starting from the transmission breakpoint position to obtain multiple data blocks.
[0067] In an embodiment of the present application, after receiving the upgrade file package sent by the server, the processor may obtain the upgrade package information of the upgrade file package, where the upgrade package information includes version information, upgrade package length, upgrade package digital signature, etc. Subsequently, based on the upgrade package information, the processor may query whether there is a reception record of the upgrade file package in the corresponding vehicle-mounted electronic control unit. If there is a reception record of the upgrade file package in the vehicle-mounted electronic control unit, the vehicle-mounted electronic control unit may determine whether it has received some data of the upgrade file package according to the reception record. If some data has been received, the vehicle-mounted electronic control unit will feedback the length of the received part of the data to the processor, so that the processor can determine the transmission breakpoint position of the upgrade file package, and then the processor may split the upgrade file package starting from the transmission breakpoint position to obtain multiple data blocks. If the vehicle-mounted electronic control unit has not received the data of the upgrade file package, it will reply to the processor that the length of the received upgrade file package data is zero. At this time, the processor splits the upgrade file package starting from the starting position of the upgrade file package to obtain multiple data blocks. In this way, the processor can complete the splitting of the upgrade file package.
[0068] In an embodiment of the present application, the method may further include: in the case that any data block transmission is completed, determining whether an error code feedback by the vehicle-mounted electronic control unit is received within a preset time; in the case that an error code feedback by the vehicle-mounted electronic control unit is received within the preset time and the error code is the first error code or the second error code, determining the error rate of any data block; adjusting the initial data transfer rate according to the error rate to obtain a target data transfer rate; and retransmitting any data block according to the target data transfer rate.
[0069] In an embodiment of the present application, the processor may split the upgrade file package into multiple data blocks, and send the data blocks to the corresponding vehicle-mounted electronic control unit in sequence according to the sending order among the multiple data blocks at the initial data transmission rate. When any data block is transmitted, the processor may determine whether an error code fed back by the vehicle-mounted electronic control unit is received within a preset time. The preset time may be determined according to the actual situation. The error code may include a first error code, a second error code, and a third error code. Among them, the first error code and the second error code indicate that there is an abnormal situation during the transmission of any data block. The third error code indicates that there is no abnormal situation during the transmission of any data block. Specifically, the first error code may be used to prompt that data disorder occurs in any data block, and the second error code may be used to prompt that data loss occurs in any data block. The third error code may be used to prompt that the transmission of any data block is normal.
[0070] After receiving the error code fed back by the vehicle-mounted electronic control unit, the processor may determine whether the error code is the first error code or the second error code. If so, the processor may further determine the error rate of any data block. In one example, if the processor receives the first error code, the processor may determine the number of characters with data disorder according to the character order of any data block and the character order received by the vehicle-mounted electronic control unit, and then determine the error rate of any data block. In another example, if the processor receives the second error code, the processor may determine the number of lost characters according to the length of any data block and the number of characters received by the vehicle-mounted electronic control unit, and then determine the error rate of any data block. Subsequently, the processor may adjust the initial data transmission rate according to the error rate to obtain the target data transmission rate, and retransmit any data block at the target data transmission rate. In addition, a data block retransmission times may be preset. For example, the data block retransmission times may be 10 times. When the number of times of retransmitting any data block is less than or equal to the data block retransmission times, the processor may adjust the initial data transmission rate according to the error rate, and then retransmit any data block according to the obtained target data transmission rate. When the number of times of retransmitting any data block is greater than the data block retransmission times, the data transmission is temporarily stopped, and the transmission is resumed after the working state of the construction machinery is changed or the load rate is reduced, so as to avoid construction machinery failures caused by infinite retransmission of data blocks.
[0071] In an embodiment of the present application, adjusting the initial data transmission rate according to the error rate to obtain the target data transmission rate may include: obtaining the maximum data transmission rate, the minimum data transmission rate, the maximum error rate, the minimum error rate, and the error rate threshold; determining the error rate influence parameter according to the error rate, the maximum data transmission rate, the minimum data transmission rate, the maximum error rate, the minimum error rate, and the error rate threshold; and adjusting the initial data transmission rate according to the error rate influence parameter to obtain the target data transmission rate.
[0072] In an embodiment of the present application, after receiving the first error code or the second error code fed back by the vehicle-mounted electronic control unit, the processor can adjust the initial data transmission rate according to the error rate of any currently transmitted data block, so that the processor can re-transmit the data block at the target data transmission rate. The processor can obtain the maximum data transmission rate, the minimum data transmission rate, the maximum error rate, the minimum error rate, and the error rate threshold, and the foregoing parameters can all be determined according to the actual working conditions. In this way, the processor can determine the error rate influence parameter according to the error rate, the maximum data transmission rate, the minimum data transmission rate, the maximum error rate, the minimum error rate, and the error rate threshold, and adjust the initial data transmission rate according to the error rate influence parameter to determine the target data transmission rate when re-transmitting any data block.
[0073] In an embodiment of the present application, the target data transmission rate can satisfy formula (1):
[0074] Res=Res 0 +Res fr ; (1)
[0075] Wherein, Res is the target data transmission rate, Res 0 is the initial data transmission rate, and Res fr is the error rate influence parameter;
[0076] In the case where the error rate is less than or equal to the error rate threshold, the error rate influence parameter can satisfy formula (2):
[0077] Res fr =Res min +(Fr-Fr min )*(Res max -Res min ) / (Fr set -Fr min ); (2)
[0078] In the case where the error rate is greater than the error rate threshold, the error rate influence parameter can satisfy formula (3):
[0079] Res fr =Res min +(Fr set -Fr min )*(Res max -Res min ) / (Fr set -Fr min )+(Fr-Fr set )*(Res max -Res min ) / (Fr max -Frset ); (3)
[0080] where Res fr is the error rate impact parameter, Res min is the minimum data transfer rate, Res max is the maximum data transfer rate, Fr is the error rate, Fr max is the maximum error rate, Fr min is the minimum error rate, Fr set is the error rate threshold.
[0081] In the embodiment of the present application, after receiving the first error code or the second error code fed back by the vehicle-mounted electronic control unit, the processor may adjust the initial data transfer rate according to the error rate of any data block currently being transmitted. Specifically, the processor may obtain the maximum data transfer rate, the minimum data transfer rate, the maximum error rate, the minimum error rate, and the error rate threshold, and the foregoing parameters may all be determined according to the actual working conditions. In this way, the processor may determine the error rate impact parameter according to the error rate, the maximum data transfer rate, the minimum data transfer rate, the maximum error rate, the minimum error rate, and the error rate threshold, and adjust the initial data transfer rate according to the error rate impact parameter to determine the target data transfer rate when retransmitting any data block.
[0082] In the embodiment of the present application, the method may further include: retransmitting any data block at the initial data transfer rate in the case where no error code fed back by the vehicle-mounted electronic control unit is received within a preset time.
[0083] In the embodiment of the present application, if the processor does not receive the error code fed back by the vehicle-mounted electronic control unit within the preset time, then the processor needs to retransmit any data block currently being transmitted to the vehicle-mounted electronic control unit. Since the processor cannot determine whether there is an abnormal situation in the transmission process of any data block at this time, the processor may retransmit any data block currently being transmitted at the initial data transfer rate.
[0084] In the embodiment of the present application, the method may further include: respectively determining the lengths and digital signatures of each data block to obtain the lengths and digital signatures of multiple data blocks; sending the lengths and digital signatures of the multiple data blocks to the corresponding vehicle-mounted electronic control unit; receiving the verification result fed back by the vehicle-mounted electronic control unit in the case where the transmission of the multiple data blocks is completed, and the verification result is obtained by the vehicle-mounted electronic control unit according to the lengths and digital signatures of the multiple data blocks; retransmitting the upgrade file package in the case where the verification result is a non-passed verification result.
[0085] In the embodiments of the present application, the processor may determine the lengths of each data block and generate digital signatures corresponding to each data block. The digital signatures of each data block usually adopt Message Digest Algorithm 5 (MD5) check values or Cyclic Redundancy Check 32 (CRC32) check values. In addition, parity check codes, block check codes or Hamming check codes may also be used. Subsequently, the processor may send the lengths and digital signatures of multiple data blocks to the corresponding vehicle-mounted electronic control unit, so that the vehicle-mounted electronic control unit can verify the received multiple data blocks according to the lengths and digital signatures of the multiple data blocks when the transmission of the multiple data blocks is completed, so as to obtain a verification result. The verification result includes a verification passed result and a verification failed result. In the case where the verification result is a verification passed result, a restart may be performed to complete the upgrade. In the case where the verification result is a verification failed result, the processor may retransmit the upgrade file package. Similarly, a file package retransmission times may be preset. For example, the file package retransmission times may be 5 times. When the number of times of retransmitting the upgrade file package is less than or equal to the file package retransmission times, the processor may retransmit the upgrade file package. When the number of times of retransmitting the upgrade file package is greater than the file package retransmission times, it may be determined that the transmission of the upgrade file package fails, and the vehicle-mounted electronic control unit upgrade fails, avoiding construction machinery failures caused by infinite retransmission of the upgrade file package.
[0086] Figure 2 Schematically shows a flowchart of a method for transmitting an upgrade file package according to a specific embodiment of the present application. As Figure 2 shown, in a specific embodiment of the present application, the method for transmitting an upgrade file package may include the following steps:
[0087] S1. The processor queries whether the vehicle-mounted electronic control unit has a receiving record of the upgrade file package. If so, go to step S3; if not, go to step S2.
[0088] S2. The processor starts splitting from the starting position of the upgrade file package, and records the starting position as the first data block.
[0089] S3. The processor starts splitting from the transmission breakpoint position of the upgrade file package, and records the transmission breakpoint position as the first data block.
[0090] S4. Generate a digital signature for each data block.
[0091] S5. Collect the current working state data and the current bus usage rate.
[0092] S6. Determine the configuration parameters for transmitting data according to the current working state data and the current bus usage rate.
[0093] S7. The processor transfers the upgrade file package in the order of data blocks.
[0094] S8. The vehicle-mounted electronic control unit determines whether the verification is passed according to the digital signature of the data block. If so, go to S9; if not, go to S10.
[0095] S9. Continue to transfer the next data block.
[0096] S10. Transmit the error code back to the processor, and the processor adjusts the initial data transfer rate according to the error code.
[0097] S11. The processor determines whether the data block is the last data block. If so, go to S12; if not, go to S7.
[0098] S12. Verify the integrity of the upgrade file package.
[0099] In a specific embodiment of the present application, before transmitting the data of the upgrade file package, the processor may query whether the vehicle-mounted electronic control unit has a reception record of the upgrade file package. If there is a reception record, determine the transmission breakpoint position of the upgrade file package according to the reception record, start splitting from the transmission breakpoint position, and record it as the first data block starting from the transmission breakpoint position. The transmission breakpoint position may be the starting position of the upgrade file package or any position in the upgrade file package. If there is no reception record, the processor may start splitting from the starting position of the upgrade file package and record it as the first data block starting from the starting position. A corresponding digital signature may be generated for each data block, and at the same time, the processor sends the digital signature corresponding to each data block to the vehicle-mounted electronic control unit. The processor may collect the current working state data and the current bus utilization rate of the construction machinery through the state detection module, and then determine the configuration parameters for transmitting data, that is, the initial data transfer rate of the upgrade file package, according to the current working state data and the current bus utilization rate. Subsequently, the processor may transfer the upgrade file package according to the initial data transfer rate and the order of data blocks.
[0100] After receiving the data block, the vehicle-mounted electronic control unit may determine whether the currently received data block matches the digital signature according to the previously received digital signature, so as to generate a verification result. When the verification is passed, the processor may continue to transfer the next data block until all the data blocks are transferred. When the verification fails, the processor may transmit the error code back to the processor, and the processor adjusts the initial data transfer rate according to the error code, thereby generating a target data transfer rate and re-transmitting the data block according to the target data transfer rate. After the upgrade file package is transferred, the vehicle-mounted electronic control unit may verify the integrity of the entire upgrade file package to determine whether to end the transmission process of the upgrade file package. In this way, the data transmission of the upgrade file package can be completed.
[0101] An embodiment of the present application further provides a processor configured to execute the above method for transmitting an upgrade file package.
[0102] Specifically, in the embodiment of the present application, the processor may be configured to: obtain an upgrade file package of a vehicle-mounted electronic control unit; obtain current working state data and current bus utilization rate of a construction machinery; determine an initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate; and send the upgrade file package to the corresponding vehicle-mounted electronic control unit at the initial data transmission rate.
[0103] In one embodiment, the processor is further configured to: obtain a maximum data transmission rate, a minimum data transmission rate, maximum working state data, minimum working state data, a working state data threshold, a maximum bus utilization rate, a minimum bus utilization rate, and a bus utilization rate threshold; determine a working state influence parameter according to the current working state data, the maximum data transmission rate, the minimum data transmission rate, the maximum working state data, the minimum working state data, and the working state data threshold; determine a bus utilization rate influence parameter according to the current bus utilization rate, the maximum data transmission rate, the minimum data transmission rate, the maximum bus utilization rate, the minimum bus utilization rate, and the bus utilization rate threshold; and combine the working state influence parameter and the bus utilization rate influence parameter to determine the initial data transmission rate of the upgrade file package.
[0104] In one embodiment, the processor is further configured to: split the upgrade file package to obtain a plurality of data blocks; and send the plurality of data blocks to the corresponding vehicle-mounted electronic control unit at the initial data transmission rate.
[0105] In one embodiment, the processor is further configured to: determine whether an error code feedback by the vehicle-mounted electronic control unit is received within a preset time when any data block is transmitted; determine an error rate of any data block when the error code feedback by the vehicle-mounted electronic control unit is received within the preset time and the error code is a first error code or a second error code; adjust the initial data transmission rate according to the error rate to obtain a target data transmission rate; and re-transmit any data block at the target data transmission rate.
[0106] In one embodiment, the processor is further configured to: re-transmit any data block at the initial data transmission rate when the error code feedback by the vehicle-mounted electronic control unit is not received within the preset time.
[0107] In one embodiment, the processor is further configured to: obtain a maximum data transfer rate, a minimum data transfer rate, a maximum error rate, a minimum error rate, and an error rate threshold; determine an error rate impact parameter according to the error rate, the maximum data transfer rate, the minimum data transfer rate, the maximum error rate, the minimum error rate, and the error rate threshold; and adjust an initial data transfer rate according to the error rate impact parameter to obtain a target data transfer rate.
[0108] In one embodiment, the target data transfer rate satisfies formula (1):
[0109] Res = Res 0 + Res fr ; (1)
[0110] where Res is the target data transfer rate, Res 0 is the initial data transfer rate, and Res fr is the error rate impact parameter;
[0111] In the case where the error rate is less than or equal to the error rate threshold, the error rate impact parameter satisfies formula (2):
[0112] Res fr = Res min + (Fr - Fr min ) * (Res max - Res min ) / (Fr set - Fr min ) ; (2)
[0113] In the case where the error rate is greater than the error rate threshold, the error rate impact parameter satisfies formula (3):
[0114] Res fr = Res min + (Fr set - Fr min ) * (Res max - Res min ) / (Fr set - Fr min ) + (Fr - Fr set ) * (Res max - Res min ) / (Fr max - Fr set ) ; (3)
[0115] where Res fr is the error rate impact parameter, Res min is the minimum data transfer rate, Res max is the maximum data transfer rate, Fr is the error rate, Frmax is the maximum error rate, Fr min is the minimum error rate, Fr set is the error rate threshold.
[0116] In one embodiment, the processor is further configured to: respectively determine the lengths and digital signatures of the data blocks to obtain the lengths and digital signatures of multiple data blocks; send the lengths and digital signatures of the multiple data blocks to the corresponding vehicle-mounted electronic control unit; in the case where the transmission of the multiple data blocks is completed, receive the verification result fed back by the vehicle-mounted electronic control unit, where the verification result is obtained by the vehicle-mounted electronic control unit according to the lengths and digital signatures of the multiple data blocks; and in the case where the verification result is a non-passing result, re-transmit the upgrade file package.
[0117] In one embodiment, the processor is further configured to: query whether there is a reception record of the upgrade file package in the vehicle-mounted electronic control unit; in the case where there is a reception record of the upgrade file package in the vehicle-mounted electronic control unit, determine the transmission break point position of the upgrade file package; and split the upgrade file package starting from the transmission break point position to obtain multiple data blocks.
[0118] In the above technical solution, by obtaining the upgrade file package of the vehicle-mounted electronic control unit, as well as the current working state data and the current bus utilization rate of the construction machinery, and then determining the initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate, and finally sending the upgrade file package to the corresponding vehicle-mounted electronic control unit at the initial data transmission rate. By determining the initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate of the construction machinery, and sending the upgrade file package to the vehicle-mounted electronic control unit that needs to be upgraded at the initial data transmission rate, the present application can adjust the data transmission rate by combining the main factors affecting data transmission, so as to improve the success rate when transmitting the upgrade file package.
[0119] Figure 3 Schematically shows a structural diagram of a construction machinery according to an embodiment of the present application. As Figure 3 shown, an embodiment of the present application further provides a construction machinery, which may include: a vehicle-mounted electronic control unit 310; and a processor 320.
[0120] In an embodiment of the present application, a construction machine includes a vehicle-mounted electronic control unit 310 and a processor 320. The processor 320 communicates with a server (not shown in the figure). The processor 320 can obtain an upgrade file package from the server and send the upgrade file package to the vehicle-mounted electronic control unit 310 after processing the upgrade file package. The vehicle-mounted electronic control unit 310 may include a data receiving module 311 and a data verification module 312. Through the data receiving module 311, the vehicle-mounted electronic control unit 310 can receive the upgrade file package sent by the processor 320. Through the data verification module 312, the vehicle-mounted electronic control unit 310 can verify the upgrade file package.
[0121] The processor 320 may include a data segmentation module 321, a data sending module 322, a status detection module 323, and a sending parameter calculation module 324. Through the data segmentation module 321, the upgrade file package can be segmented into multiple data blocks. Through the data sending module 322, the multiple data blocks can be sent to the data receiving module 311. Through the status detection module 323, the current working state data and the current bus utilization rate of the construction machine can be obtained. Through the sending parameter calculation module 324, the initial data transmission rate can be determined according to the current working state data and the current bus utilization rate, and the target data transmission rate can be determined according to the error rate after receiving the error code feedback from the vehicle-mounted electronic control unit 310. In this way, the transmission process of the upgrade file package can be completed.
[0122] The embodiment of the present application also provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to cause the machine to execute the above method for transmitting an upgrade file package.
[0123] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0124] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate for implementation in the processFigure 1 means for a process or processes and / or blocks Figure 1 specified in one block or multiple blocks.
[0125] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction means that implements the function in the process Figure 1 means for a process or processes and / or blocks Figure 1 specified in one block or multiple blocks.
[0126] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus, such that a series of operational steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable apparatus provide steps for implementing the function in the process Figure 1 means for a process or processes and / or blocks Figure 1 specified in one block or multiple blocks.
[0127] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0128] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
[0129] Computer-readable media includes both permanent and non-permanent, removable and non-removable media implemented by any method or technology for storing information. The 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 technologies, compact disc read-only memory (CD-ROM), digital versatile discs (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 accessible by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated data signals and carrier waves.
[0130] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or apparatus comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or apparatus. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising the element.
[0131] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims
1. A method for transmitting an upgrade file package, characterized in that, the method includes: obtaining an upgrade file package of a vehicle-mounted electronic control unit; obtaining the current working state data and the current bus utilization rate of a construction machinery; determining an initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate; sending the upgrade file package to the corresponding vehicle-mounted electronic control unit according to the initial data transmission rate.
2. The method according to claim 1, characterized in that, the determining the initial data transmission rate of the upgrade file package according to the current working state data and the current bus utilization rate includes: obtaining a maximum data transmission rate, a minimum data transmission rate, maximum working state data, minimum working state data, a working state data threshold, a maximum bus utilization rate, a minimum bus utilization rate, and a bus utilization rate threshold; determining a working state influence parameter according to the current working state data, the maximum data transmission rate, the minimum data transmission rate, the maximum working state data, the minimum working state data, and the working state data threshold; determining a bus utilization rate influence parameter according to the current bus utilization rate, the maximum data transmission rate, the minimum data transmission rate, the maximum bus utilization rate, the minimum bus utilization rate, and the bus utilization rate threshold; combining the working state influence parameter and the bus utilization rate influence parameter to determine the initial data transmission rate of the upgrade file package.
3. The method according to claim 1, characterized in that, the sending the upgrade file package to the corresponding vehicle-mounted electronic control unit according to the initial data transmission rate includes: splitting the upgrade file package to obtain a plurality of data blocks; sending the plurality of data blocks to the corresponding vehicle-mounted electronic control unit according to the initial data transmission rate.
4. The method according to claim 3, characterized in that, the method further includes: when any data block is transmitted, determining whether an error code feedback by the vehicle-mounted electronic control unit is received within a preset time; when the error code feedback by the vehicle-mounted electronic control unit is received within the preset time and the error code is a first error code or a second error code, determining an error rate of the any data block; adjusting the initial data transmission rate according to the error rate to obtain a target data transmission rate; re-transmitting the any data block according to the target data transmission rate.
5. The method according to claim 4, characterized in that, the method further includes: when the error code feedback by the vehicle-mounted electronic control unit is not received within the preset time, re-transmitting the any data block according to the initial data transmission rate.
6. The method according to claim 4, characterized in that, the adjusting the initial data transmission rate according to the error rate to obtain a target data transmission rate includes: obtaining a maximum data transmission rate, a minimum data transmission rate, a maximum error rate, a minimum error rate, and an error rate threshold; Determine an error rate impact parameter based on the error rate, the maximum data transmission rate, the minimum data transmission rate, the maximum error rate, the minimum error rate, and the error rate threshold; Adjust the initial data transmission rate according to the error rate impact parameter to obtain a target data transmission rate.
7. The method according to claim 6, wherein, the target data transmission rate satisfies formula (1): Res = Res 0 + Res fr ; (1) Among them, the Res is the target data transfer rate, and Res 0 is the initial data transfer rate, and Res fr is the error rate impact parameter; In the case where the error rate is less than or equal to the error rate threshold, the error rate impact parameter satisfies formula (2): Res fr = Res min + (Fr - Fr min ) * (Res max - Res min ) / (Fr set - Fr min ); (2) In the case where the error rate is greater than the error rate threshold, the error rate impact parameter satisfies formula (3): Res fr = Res min + (Fr set - Fr min ) * (Res max - Res min ) / (Fr set - Fr min ) + (Fr - Fr set ) * (Res max - Res min ) / (Fr max - Fr set ); (3) Among them, Res fr is the error rate impact parameter, Res min is the minimum data transfer rate, Res max is the maximum data transfer rate, Fr is the error rate, Fr max is the maximum error rate, Fr min is the minimum error rate, Fr set is the error rate threshold.
8. The method according to claim 3, wherein, the method further includes: Determine the length and digital signature of each data block respectively to obtain the lengths and digital signatures of the multiple data blocks; Send the lengths and digital signatures of the multiple data blocks to the corresponding vehicle-mounted electronic control unit; When the transmission of the multiple data blocks is completed, receive the verification result feedback by the vehicle-mounted electronic control unit, where the verification result is obtained by the vehicle-mounted electronic control unit according to the lengths and digital signatures of the multiple data blocks; When the verification result is a non-passing result, re-transmit the upgrade file package.
9. The method according to claim 3, wherein, the splitting of the upgrade file package to obtain multiple data blocks includes: Query whether there is a reception record of the upgrade file package in the vehicle-mounted electronic control unit; When there is a reception record of the upgrade file package in the vehicle-mounted electronic control unit, determine the transmission breakpoint position of the upgrade file package; Split the upgrade file package starting from the transmission breakpoint position to obtain the multiple data blocks.
10. A processor, wherein, configured to execute the method for transmitting an upgrade file package according to any one of claims 1 to 9.
11. A construction machinery, wherein, includes: a vehicle-mounted electronic control unit; and the processor according to claim 10.
12. A machine-readable storage medium, wherein, instructions are stored on the machine-readable storage medium, and the instructions are used to cause the machine to execute the method for transmitting an upgrade file package according to any one of claims 1 to 9.
Citation Information
Patent Citations
Unmanned vehicle route data transmission system with breakpoint continuous transmission and method thereof
CN109639745A