The invention provides a TBox log uploading method and
system based on the number of dynamically configured fragments, and belongs to the technical field of
the Internet of Vehicles, and the method comprises the steps: responding to a TBox log uploading instruction, obtaining network parameters of an environment where a target vehicle is located, which are collected through an operation
system network interface, and obtaining equipment operation parameters collected through a TBox hardware monitoring interface; calculating an optimal fragment number according to the network parameters and the equipment operation parameters; and obtaining a corresponding number of pre-signature addresses according to the optimal fragment number,
cutting the TBox log file into a corresponding number of fragments according to the optimal fragment number, and uploading the fragments to a cloud according to the pre-signature addresses. According to the method and the device, the
log data can be uploaded with the optimal
fragment size, so that network resources are utilized to the maximum extent, and the time required for uploading is shortened. In addition, a plurality of data blocks are allowed to be processed in parallel through fragmentation uploading, the overall uploading speed is further increased, and the
advantage is more obvious especially in a high-speed network environment.