A software upgrading method, device and storage medium

By acquiring data from download channels and vehicle terminals, an upgrade strategy was developed to optimize the software upgrade process, resolving network congestion issues during downloads from multiple vehicle terminals and improving upgrade efficiency.

CN119544689BActive Publication Date: 2025-11-21CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311089075.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2025-11-21
Estimated Expiration
2043-08-28

AI Technical Summary

Technical Problem

In existing technologies, when multiple vehicle terminals download software upgrade data packages simultaneously, it can easily cause network congestion in the OTA download channel, resulting in low upgrade efficiency.

Method used

By obtaining the remaining bandwidth of the download channel and the test data transmission rate of the vehicle terminals, the number of vehicle terminals that can support simultaneous download of software upgrade files is determined. Based on target data such as vehicle speed, network type, test data transmission duration, and distance from the content distribution server, an upgrade strategy is formulated to optimize the upgrade process.

Benefits of technology

This effectively avoids network congestion in the OTA download channel and improves the efficiency of software upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544689B_ABST
    Figure CN119544689B_ABST
Patent Text Reader

Abstract

The application provides a software upgrading method and device and a storage medium, relates to the technical field of intelligent automobiles, and is used for solving the problem that the network may be blocked in the downloading channel in the prior art. The method comprises the following steps: acquiring the residual bandwidth of a downloading channel used for downloading a software upgrading file and the test data transmission rate of each vehicle-mounted terminal in at least one vehicle-mounted terminal connected with the downloading channel; determining the number of vehicle-mounted terminals supported by the residual bandwidth to simultaneously download the software upgrading file according to the residual bandwidth and the test data transmission rate of each vehicle-mounted terminal; selecting a target vehicle-mounted terminal in an operating state and installed with to-be-upgraded software corresponding to the software upgrading file from the at least one vehicle-mounted terminal, and acquiring target data of the target vehicle-mounted terminal; and determining an upgrading strategy of the to-be-upgraded software in the target vehicle-mounted terminal according to the number of vehicle-mounted terminals and the target data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent vehicle technology, and in particular to a software upgrade method, apparatus and storage medium. Background Technology

[0002] With the continuous development of the automotive industry, vehicle intelligence has become a trend in the industry. In order to meet the needs of the rapidly developing vehicle intelligence, the software used in the vehicle's onboard terminals needs to be constantly updated.

[0003] Current software update methods typically involve in-vehicle terminals using over-the-air (OTA) technology to download software upgrade data packages. However, when multiple in-vehicle terminals download software upgrade data packages simultaneously, it can easily cause network congestion in the OTA download channels used for downloading software upgrade data packages. Summary of the Invention

[0004] This application provides a software upgrade method, apparatus, and storage medium to address the problem of privacy information leakage risks in the prior art.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] In a first aspect, a software upgrade method is provided, comprising: obtaining the remaining bandwidth of a download channel used to download software upgrade files and the test data transmission rate of each vehicle-mounted terminal among at least one vehicle-mounted terminal connected to the download channel; determining the number of vehicle-mounted terminals that the remaining bandwidth supports for simultaneous downloading of software upgrade files based on the remaining bandwidth and the test data transmission rate of each vehicle-mounted terminal; selecting a target vehicle-mounted terminal from the at least one vehicle-mounted terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file installed, and obtaining target data of the target vehicle-mounted terminal; the target data includes at least one of the following: the driving speed of the vehicle to which the target vehicle-mounted terminal belongs, the network standard used by the target vehicle-mounted terminal, the test data transmission duration of the target vehicle-mounted terminal, and the distance between the target vehicle-mounted terminal and the content delivery server used to distribute the software upgrade file; and determining the upgrade strategy of the software to be upgraded in the target vehicle-mounted terminal based on the number of vehicle-mounted terminals and the target data.

[0007] Optionally, when the target data includes the driving speed of the vehicle to which the target vehicle terminal belongs, the upgrade strategy for the software to be upgraded in the target vehicle terminal is determined based on the number of vehicle terminals and the target data. This includes: selecting a first vehicle terminal from the target vehicle terminals that is less than or equal to the number of vehicle terminals; determining the actual data transmission rate of the target vehicle terminal based on the driving speed of the vehicle to which the target vehicle terminal belongs; the driving speed of the vehicle to which the target vehicle terminal belongs is inversely proportional to the actual data transmission rate of the target vehicle terminal; and determining the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: sending the software upgrade file to the first vehicle terminal at the actual data transmission rate of the target vehicle terminal.

[0008] Optionally, when the target data includes the network standard used by the target vehicle terminal, the upgrade strategy for the software to be upgraded in the target vehicle terminal is determined based on the number of vehicle terminals and the target data. This includes: selecting a second vehicle terminal from the target vehicle terminals under the same network standard, which is less than or equal to the number of vehicle terminals; and determining the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: sending software upgrade files to the second vehicle terminal in a first preset order; the first preset order is the order of network transmission speed from fastest to slowest for the network standard used by the target vehicle terminal.

[0009] Optionally, when the target data includes the test data transmission duration of the target vehicle terminal, the upgrade strategy for the software to be upgraded in the target vehicle terminal is determined based on the number of vehicle terminals and the target data. This includes: selecting a third vehicle terminal from the target vehicle terminals with the same test data transmission duration, with a number less than or equal to the number of vehicle terminals; determining the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: sending software upgrade files to the third vehicle terminal sequentially according to a second preset order; the second preset order is the order of test data transmission duration of the target vehicle terminal from smallest to largest.

[0010] Optionally, when the target data includes the distance between the target vehicle terminal and the content distribution server, the upgrade strategy for the software to be upgraded in the target vehicle terminal is determined based on the number of vehicle terminals and the target data. This includes selecting a fourth vehicle terminal from the target vehicle terminals whose distance from the same target vehicle terminal to the content distribution server is less than or equal to the number of vehicle terminals; and determining the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: sending software upgrade files to the fourth vehicle terminal in sequence according to a third preset order; the third preset order is the order in which the distance between the target vehicle terminal and the content distribution server increases from smallest to largest.

[0011] Optionally, after determining the upgrade strategy for the software to be upgraded in the target vehicle terminal, the software upgrade method further includes: sending a request to the target vehicle terminal to download the software upgrade file; receiving a response message from the target vehicle terminal agreeing to download the software upgrade file; and controlling the content distribution server to transmit the software upgrade file to the target vehicle terminal according to the upgrade strategy.

[0012] Secondly, a software upgrade apparatus is provided, comprising: an acquisition unit and a determination unit; the acquisition unit is configured to acquire the remaining bandwidth of a download channel used for downloading software upgrade files and the test data transmission rate of each vehicle-mounted terminal among at least one vehicle-mounted terminal connected to the download channel; the determination unit is configured to determine the number of vehicle-mounted terminals that the remaining bandwidth supports for simultaneously downloading software upgrade files, based on the remaining bandwidth and the test data transmission rate of each vehicle-mounted terminal; the acquisition unit is further configured to select a target vehicle-mounted terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file installed, from the at least one vehicle-mounted terminal, and acquire target data of the target vehicle-mounted terminal; the target data includes at least one of the following: the driving speed of the vehicle to which the target vehicle-mounted terminal belongs, the network standard used by the target vehicle-mounted terminal, the test data transmission duration of the target vehicle-mounted terminal, and the distance between the target vehicle-mounted terminal and the content delivery server used for distributing the software upgrade file; the determination unit is configured to determine the upgrade strategy of the software to be upgraded in the target vehicle-mounted terminal based on the number of vehicle-mounted terminals and the target data.

[0013] Optionally, when the target data includes the driving speed of the vehicle to which the target vehicle terminal belongs, the determining unit is specifically used to: select a first vehicle terminal from the target vehicle terminals that is less than or equal to the number of vehicle terminals; determine the actual data transmission rate of the target vehicle terminal based on the driving speed of the vehicle to which the target vehicle terminal belongs; the driving speed of the vehicle to which the target vehicle terminal belongs is inversely proportional to the actual data transmission rate of the target vehicle terminal; and determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as: sending the software upgrade file to the first vehicle terminal at the actual data transmission rate of the target vehicle terminal.

[0014] Optionally, when the target data includes the network standard used by the target vehicle terminal, the determining unit is specifically used to: select a second vehicle terminal from the target vehicle terminals under the same network standard that is less than or equal to the number of vehicle terminals; determine the upgrade strategy of the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the second vehicle terminal in sequence according to a first preset order; the first preset order is the order of network transmission speed from fast to slow for the network standard used by the target vehicle terminal.

[0015] Optionally, when the target data includes the test data transmission duration of the target vehicle terminal, the determining unit is specifically used to: select a third vehicle terminal from the target vehicle terminals with the same test data transmission duration that is less than or equal to the number of vehicle terminals; determine the upgrade strategy of the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the third vehicle terminal in sequence according to the second preset order; the second preset order is the order of the test data transmission duration of the target vehicle terminal from smallest to largest.

[0016] Optionally, when the target data includes the distance between the target vehicle terminal and the content distribution server, the determining unit is specifically used to: select a fourth vehicle terminal from the target vehicle terminals whose distance from the same target vehicle terminal to the content distribution server is less than or equal to the number of vehicle terminals; determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the fourth vehicle terminal in sequence according to a third preset order; the third preset order is the order in which the distance between the target vehicle terminal and the content distribution server increases from small to large.

[0017] Optionally, after determining the upgrade strategy for the software to be upgraded in the target vehicle terminal, the software upgrade device further includes: a sending unit and a control unit; the sending unit is used to send a request to the target vehicle terminal to download the software upgrade file; the receiving unit is also used to receive a response message from the target vehicle terminal agreeing to download the software upgrade file; and the control unit is used to control the content distribution server to transmit the software upgrade file to the target vehicle terminal according to the upgrade strategy.

[0018] Thirdly, a software upgrade apparatus is provided, including a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory via a bus; when the software upgrade apparatus is running, the processor executes the computer execution instructions stored in the memory, so that the software upgrade apparatus performs the software upgrade method described in the first aspect.

[0019] The software upgrade device can be a network device or a component of a network device, such as a chip system within the network device. This chip system supports the network device in implementing the functions involved in the first aspect and any of its possible implementations, such as acquiring, determining, and transmitting data and / or information involved in the aforementioned software upgrade method. The chip system includes a chip, but may also include other discrete devices or circuit structures.

[0020] Fourthly, a computer-readable storage medium is provided, comprising computer-executable instructions that, when executed on a computer, cause the computer to perform the software upgrade method described in the first aspect.

[0021] Fifthly, a computer program product is also provided, which includes computer instructions that, when executed on a software upgrade device, cause the software upgrade device to perform the software upgrade method as described in the first aspect above.

[0022] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on the first computer-readable storage medium. The first computer-readable storage medium may be packaged together with the processor of the software upgrade device, or it may be packaged separately from the processor of the software upgrade device; this application embodiment does not limit this.

[0023] The descriptions of the second, third, fourth, and fifth aspects in this application can be referenced to the detailed description of the first aspect; and the beneficial effects of the second, third, fourth, and fifth aspects can be referenced to the analysis of the beneficial effects of the first aspect, which will not be repeated here.

[0024] In the embodiments of this application, the name of the aforementioned software upgrade device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear under other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalents.

[0025] These or other aspects of this application will become more readily apparent in the following description.

[0026] The technical solution provided in this application brings at least the following beneficial effects:

[0027] Based on any of the above aspects, embodiments of this application provide a software upgrade method. First, the remaining bandwidth of the download channel used to download the software upgrade file and the test data transmission rate of each of the at least one vehicle-mounted terminal connected to the download channel can be obtained. Then, based on the remaining bandwidth and the test data transmission rate of each vehicle-mounted terminal, the number of vehicle-mounted terminals that the remaining bandwidth supports for simultaneous downloading of the software upgrade file can be determined. Next, a target vehicle-mounted terminal that is running and has the software to be upgraded corresponding to the software upgrade file installed can be selected from the at least one vehicle-mounted terminal, and the target data of the target vehicle-mounted terminal can be obtained. In this case, the upgrade strategy for the software to be upgraded in the target vehicle-mounted terminal can be determined based on the number of vehicle-mounted terminals and the target data.

[0028] In summary, the upgrade strategy for the software to be upgraded in the target vehicle terminal can be determined by using target data from multiple dimensions. This avoids network congestion in the OTA download channel used to download software upgrade data packages, thereby improving upgrade efficiency. Attached Figure Description

[0029] Figure 1 This is a schematic diagram of the structure of the software upgrade system provided in the embodiments of this application;

[0030] Figure 2 A schematic diagram of a hardware structure of the software upgrade device provided in the embodiments of this application;

[0031] Figure 3 A schematic diagram of another hardware structure of the software upgrade device provided in the embodiments of this application;

[0032] Figure 4 A flowchart illustrating a software upgrade method provided in an embodiment of this application;

[0033] Figure 5 A flowchart illustrating yet another software upgrade method provided in an embodiment of this application;

[0034] Figure 6 A flowchart illustrating yet another software upgrade method provided in an embodiment of this application;

[0035] Figure 7 A flowchart illustrating yet another software upgrade method provided in an embodiment of this application;

[0036] Figure 8 A flowchart illustrating yet another software upgrade method provided in an embodiment of this application;

[0037] Figure 9 A flowchart illustrating yet another software upgrade method provided in an embodiment of this application;

[0038] Figure 10 A flowchart illustrating yet another software upgrade method provided in an embodiment of this application;

[0039] Figure 11 This is a schematic diagram of a software upgrade device provided in an embodiment of this application. Detailed Implementation

[0040] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0041] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0042] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish the same or similar items with essentially the same function and effect. Those skilled in the art can understand that the terms "first" and "second" are not intended to limit the quantity or execution order.

[0043] Before providing a detailed description of the software upgrade method provided in this application, let me briefly introduce the background of this application.

[0044] With the continuous development of the automotive industry, vehicle intelligence has become a trend in the industry. In order to meet the needs of the rapidly developing vehicle intelligence, the software used in the vehicle's onboard terminals needs to be constantly updated.

[0045] Existing technologies typically involve upgrading and updating the software of in-vehicle terminals via OTA (Over-The-Air) technology, thereby providing new functions for the in-vehicle terminals.

[0046] To implement OTA (Over-The-Air) functionality, collaboration between the OTA platform management device and the content delivery server is required. The OTA platform management device can send the required software upgrade files to the target vehicle terminal to the content delivery server, and identify and select the vehicle terminal to be upgraded as the target vehicle terminal that needs to download the software upgrade files.

[0047] With advancements in content distribution server technology, software upgrade files can be stored on a content distribution server and then transmitted via an OTA download channel formed by the content distribution service and multiple in-vehicle terminals.

[0048] However, when multiple vehicle terminals download software upgrade data packages simultaneously, it can easily cause network congestion in the OTA download channel used to download software upgrade data packages.

[0049] To address the aforementioned issues, this application provides a software upgrade method. First, the remaining bandwidth of the download channel used to download the software upgrade file and the test data transmission rate of each of the at least one vehicle-mounted terminals connected to the download channel are obtained. Then, based on the remaining bandwidth and the test data transmission rate of each vehicle-mounted terminal, the number of vehicle-mounted terminals that the remaining bandwidth supports for simultaneous downloading of the software upgrade file can be determined. Next, a target vehicle-mounted terminal that is running and has the software to be upgraded corresponding to the software upgrade file installed can be selected from the at least one vehicle-mounted terminal, and the target data of the target vehicle-mounted terminal is obtained. In this case, the upgrade strategy for the software to be upgraded in the target vehicle-mounted terminal can be determined based on the number of vehicle-mounted terminals and the target data.

[0050] In summary, the upgrade strategy for the software to be upgraded in the target vehicle terminal can be determined by using target data from multiple dimensions. This avoids network congestion in the OTA download channel used to download software upgrade data packages, thereby improving upgrade efficiency.

[0051] This software upgrade method is applicable to software upgrade systems. Figure 1 One structure of the software upgrade system is shown. For example... Figure 1 As shown, the software upgrade system includes: electronic device 101, content distribution server 102, OTA platform management device 103, vehicle networking (telematics service provider, TSP) platform management device 104, and vehicle terminal 105.

[0052] The content distribution server 102 is connected to the electronic device 101, the OTA platform management device 103, the vehicle network platform management device 104, and the vehicle terminal 105. The electronic device 101 is connected to the OTA platform management device 103.

[0053] Optionally, the content distribution server 102 is used to transmit software upgrade files to the vehicle terminal 105.

[0054] Optionally, the OTA platform management device 103 is used to select the target vehicle terminal that needs to download the software upgrade file.

[0055] Optionally, the vehicle network platform management device 104 is used to query the location information of the target vehicle terminal and the driving speed of the vehicle to which the target vehicle terminal belongs.

[0056] Optionally, the vehicle terminal 105 is used to receive software upgrade files sent by the content distribution server 102 and upgrade the corresponding software to be upgraded using the software upgrade files.

[0057] In practical applications, electronic device 101 can connect to multiple content distribution servers, OTA platform management device 103 can connect to multiple content distribution servers, vehicle networking platform management device 104 can connect to multiple content distribution servers, and content distribution server 102 can connect to multiple in-vehicle terminals. For ease of understanding, this application uses an example of one electronic device 101 connected to one content distribution server 102, one OTA platform management device 103 connected to one content distribution server 102, one vehicle networking platform management device 104 connected to one content distribution server 102, and one content distribution server 102 connected to one in-vehicle terminal 105.

[0058] Optionally, the physical device of electronic device 101 can be a terminal, a server, or other types of electronic devices.

[0059] Optionally, when the physical device of electronic device 101 is a terminal, the terminal can be a device that provides voice and / or data connectivity to a user, a handheld device with wireless connectivity, or other processing devices connected to a wireless modem. The terminal can communicate with one or more core networks via a radio access network (RAN). The terminal can be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal, or a portable, pocket-sized, handheld, computer-embedded, or vehicle-mounted mobile device that exchanges voice and / or data with the radio access network, such as a mobile phone, tablet computer, laptop computer, netbook, or personal digital assistant (PDA).

[0060] Optionally, when the physical device of electronic device 101 is a server, the server can be one of the servers in a server cluster (composed of multiple servers), a chip in the server, a system-on-a-chip in the server, or a virtual machine (VM) deployed on a physical machine. This application embodiment does not limit this.

[0061] Optionally, when electronic device 101 is a server, it can be one of multiple devices that are set up independently of each other, or it can be integrated into the same device.

[0062] It is easy to understand that when electronic device 101 and OTA platform management device 103 are integrated into the same device, the communication method between them is the same as the communication between modules within the device. In this case, the communication process between the two devices is the same as the communication process between the two devices when electronic device 101 and OTA platform management device 103 are independent of each other.

[0063] For ease of understanding, this application uses the example of electronic device 101 and OTA platform management device 103 operating independently as an illustration.

[0064] The basic hardware structure of electronic devices 101 in the software upgrade system is similar, both including Figure 2 or Figure 3 The components included in the software upgrade device shown below. Figure 2 and Figure 3 Taking the software upgrade device shown as an example, the hardware structure of electronic device 101 will be introduced.

[0065] like Figure 2 The diagram shown is a hardware structure schematic of a software upgrade device provided in an embodiment of this application. The software upgrade device includes a processor 21, a memory 22, a communication interface 23, and a bus 24. The processor 21, memory 22, and communication interface 23 are connected via the bus 24.

[0066] Processor 21 is the control center of the software upgrade device. It can be a single processor or a collective term for multiple processing elements. For example, processor 21 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0067] As one embodiment, processor 21 may include one or more CPUs, for example Figure 2 CPU0 and CPU1 are shown in the diagram.

[0068] The memory 22 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0069] In one possible implementation, the memory 22 can exist independently of the processor 21. The memory 22 can be connected to the processor 21 via a bus 24 and is used to store instructions or program code. When the processor 21 calls and executes the instructions or program code stored in the memory 22, it can implement the software upgrade method provided in the following embodiments of this application.

[0070] In this embodiment, the software upgrade device 101 stores different software programs in memory 22, thus implementing different functions. The functions performed by each device will be described in conjunction with the following flowchart.

[0071] In another possible implementation, the memory 22 can also be integrated with the processor 21.

[0072] Communication interface 23 is used for the software upgrade device to connect with other devices via a communication network, such as Ethernet, wireless access network, or wireless local area network (WLAN). Communication interface 23 may include a receiving unit for receiving data and a sending unit for sending data.

[0073] Bus 24 can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 2 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0074] Figure 3 Another hardware structure of the software upgrade device in an embodiment of this application is shown. For example... Figure 3 As shown, the software upgrade device may include a processor 31 and a communication interface 32. The processor 31 is coupled to the communication interface 32.

[0075] The functions of processor 31 can be referred to in the description of processor 21 above. In addition, processor 31 also has a storage function, and can perform the functions of memory 22 mentioned above.

[0076] The communication interface 32 is used to provide data to the processor 31. The communication interface 32 can be an internal interface of the software upgrade device, or it can be an external interface of the software upgrade device (equivalent to communication interface 23).

[0077] It should be pointed out that, Figure 2 (or Figure 3 The structure shown in the diagram does not constitute a limitation on the software upgrade device, except... Figure 2 (or Figure 3 In addition to the components shown in the diagram, the software upgrade device may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0078] The software upgrade method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0079] like Figure 4 As shown, the software upgrade method provided in this application embodiment is applied to electronic devices, and the software upgrade method includes: S401-S404.

[0080] S401. The electronic device obtains the remaining bandwidth of the download channel used to download software upgrade files and the test data transmission rate of each vehicle terminal in at least one vehicle terminal connected to the download channel.

[0081] Optionally, the software upgrade file can be a file data package used to update the software to be upgraded in the vehicle terminal.

[0082] Optionally, the download channel for software upgrade files can be an OTA (Over-The-Air) download channel. OTA download, also known as over-the-air download technology, is a technology that enables remote management of in-vehicle terminals through an over-the-air communication interface.

[0083] Optionally, the remaining bandwidth can be the remaining available data in the total amount of data that the channel for downloading software upgrade files (also known as the OTA download channel) can transmit per unit time.

[0084] Optionally, the vehicle-mounted terminal can also be called a vehicle remote information dispatch and monitoring (telematics control unit, TCU) terminal, which is used as the front-end equipment of the vehicle monitoring and management system. Its functions include, but are not limited to: positioning, communication, driving record, business scheduling and data processing.

[0085] Optionally, the test data transmission rate can be the amount of test data sent by the channel per second received by the vehicle terminal.

[0086] Specifically, when multiple vehicle-mounted terminals are simultaneously downloading software upgrade files on a single download channel, these terminals will concurrently consume the bandwidth of that channel. Furthermore, since the bandwidth of a download channel is limited, the more vehicle-mounted terminals downloading software upgrade files simultaneously, the less bandwidth remains on the download channel. When the remaining bandwidth of the download channel approaches zero, information congestion will occur, thus affecting the transmission rate of all data transmissions on the aforementioned download channel.

[0087] Therefore, electronic devices can avoid information congestion in the download channel by controlling the number of vehicle-mounted terminals downloading simultaneously. To control the number of vehicle-mounted terminals downloading simultaneously, the remaining bandwidth of the download channel and the test data transmission rate of the vehicle-mounted terminals can be obtained first.

[0088] Optionally, one way for an electronic device to obtain the remaining bandwidth of the download channel used for downloading software upgrade files is as follows: The electronic device sends a request to the content delivery server to obtain the remaining bandwidth of the OTA download channel. The content delivery server then responds to the request by sending the total bandwidth and the currently used bandwidth of the OTA download channel to the electronic device. The electronic device then determines the remaining bandwidth of the OTA download channel based on the total bandwidth and the currently used bandwidth.

[0089] When the bandwidth utilization of the OTA download channel is too high, information congestion may occur. Therefore, it is necessary to keep the bandwidth utilization of the OTA download channel below 80%. Thus, as shown in Table 1, the remaining bandwidth of the OTA download channel = total bandwidth of the OTA download channel * 0.8 - current bandwidth used by the OTA download channel.

[0090] Table 1

[0091]

[0092] For example, in combination Figure 1 Assuming the total bandwidth of the download channel is 1000 megabits per second (Mbps), and the used bandwidth is 376 Mbps, then the electronic device can determine that the remaining bandwidth of the download channel is 1000 * 0.8 - 376 = 424 Mbps.

[0093] Optionally, one way for an electronic device to obtain the test data transmission rate of an in-vehicle terminal is as follows: the OTA platform management device sends test data packets to the in-vehicle terminal through a content delivery server. Then, after the in-vehicle terminal completes the download, it sends a download completion notification to the OTA platform management device through the content delivery server. In this case, when the electronic device sends a request to the OTA platform management device to obtain the test data transmission rate of the in-vehicle terminal, the OTA platform management device sends the time taken for the in-vehicle terminal to download the test data packets (which can also be called the test data transmission time of the target in-vehicle terminal). The electronic device can then determine the test data transmission rate of the in-vehicle terminal as the ratio of the size of the test data packets to the time taken for the in-vehicle terminal to download the test data packets.

[0094] For example, in combination Figure 1 Assuming the test data packet size is 1 megabyte (MByte), and the time taken for the vehicle-mounted terminal to download the test data packet is 0.05 seconds, the electronic device can determine that the test data transmission rate of the vehicle-mounted terminal is 1 ÷ 0.05 = 20 Mbps.

[0095] S402. The electronic device determines the number of vehicle terminals that can simultaneously download software upgrade files based on the remaining bandwidth and the test data transmission rate of each vehicle terminal.

[0096] Optionally, the electronic device can determine the average test data transmission rate of vehicle terminals under multiple network standards based on the test data transmission rate of each vehicle terminal.

[0097] Optionally, as shown in Table 2 below, the average test data transmission rate of the vehicle terminal under multiple network standards includes, but is not limited to: the average test data transmission rate of the vehicle terminal under the third-generation (3G) mobile communication technology, the average test data transmission rate of the vehicle terminal under the fourth-generation (4G) mobile communication technology, and the average test data transmission rate of the vehicle terminal under the fifth-generation (5G) mobile communication technology.

[0098] For example, referring to Table 1, it is known that the average test data transmission rate of terminal model AT-101 when using 5G is 128Mbps, the average test data transmission rate of terminal model AT-102 when using 5G is 118Mbps, and the average test data transmission rate of terminal model AT-103 when using 5G is 108Mbps. In this case, the electronic device can determine that the average test data transmission rate of the vehicle terminal under 5G is (128 + 118 + 108) ÷ 3 = 118Mbps.

[0099] Table 2

[0100]

[0101] Optionally, the number of in-vehicle terminals that can simultaneously download software upgrade files using the remaining bandwidth can also be referred to as the number of in-vehicle terminals under the target network standard that can simultaneously download software upgrade files using the remaining bandwidth. The electronic device determines the number of in-vehicle terminals under the target network standard that can simultaneously download software upgrade files using the remaining bandwidth as the ratio of the remaining bandwidth to the average test data transmission rate of the in-vehicle terminals under the target network standard.

[0102] Optionally, one way for the electronic device to determine the number of vehicle terminals under the target network standard that the remaining bandwidth can support for simultaneously downloading software upgrade files is as follows: the electronic device can determine the number of vehicle terminals under the target network standard that the remaining bandwidth can support for simultaneously downloading software upgrade files by using the ratio of the remaining bandwidth to the average test data transmission rate of the vehicle terminals under the target network standard.

[0103] For example, referring to Tables 1 and 2, the average test data transmission rate of the 5G-enabled vehicle terminal is known to be 118 Mbps, and the remaining bandwidth of the OTA download channel is 424 Mbps. The remaining bandwidth of the OTA download channel ÷ the average test data transmission rate of the 5G-enabled vehicle terminal = 424 ÷ 118 = 3.6. However, in practical applications, the number of vehicle terminals is generally an integer not exceeding 3.6. Therefore, the electronic device can determine that the remaining bandwidth supports the simultaneous download of software upgrade files by 3 5G vehicle terminals.

[0104] S403. The electronic device selects a target vehicle terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file installed from at least one vehicle terminal, and obtains the target data of the target vehicle terminal.

[0105] The target data includes at least one of the following: the driving speed of the vehicle to which the target vehicle terminal belongs, the network standard used by the target vehicle terminal, the test data transmission duration of the target vehicle terminal, and the distance between the target vehicle terminal and the content distribution server used to distribute software upgrade files.

[0106] Optionally, the vehicle-mounted terminal in operation can be a vehicle-mounted terminal that is in working condition and can receive data normally.

[0107] Specifically, the progress of downloading the software upgrade file for the target vehicle terminal may affect its normal operation. If the vehicle to which the target vehicle terminal belongs is traveling too fast, the downloading of the software upgrade file may cause the target vehicle terminal to malfunction, potentially leading to an accident.

[0108] Optionally, the software to be upgraded can be a file on the target vehicle terminal that needs to be upgraded. Once the target vehicle terminal has downloaded the software upgrade file, it can update the file to be upgraded.

[0109] Optionally, the network standard used by the target vehicle terminal may include, but is not limited to, 3G, 4G, and 5G. Furthermore, the corresponding test transmission rates will differ depending on the network standard used by the vehicle terminal.

[0110] Specifically, the test data transmission time of the target vehicle terminal is the time taken for the target vehicle terminal to download the test data packet. Because the test data transmission rate of the target vehicle terminals varies, the test data transmission time of the target vehicle terminals also varies. Prioritizing the target vehicle terminals with shorter test data transmission times to download the software upgrade file can improve the overall upgrade efficiency.

[0111] Optionally, electronic devices can send software upgrade files to the target vehicle terminal by controlling the content distribution server. The closer the target vehicle terminal is to the content distribution server, the better the data transmission effect.

[0112] Optionally, one implementation of the electronic device selecting a target vehicle terminal from at least one vehicle terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file installed is as follows: The electronic device sends requests to both the OTA platform management device and the vehicle network platform management device to obtain the target vehicle terminal. The OTA platform management device responds to the electronic device's request to obtain the target vehicle terminal and sends information about the vehicle terminal with the software to be upgraded corresponding to the software upgrade file installed to the electronic device. The vehicle network platform management device responds to the electronic device's request to obtain the target vehicle terminal and sends information about the vehicle terminal that is in operation to the electronic device.

[0113] In summary, electronic devices can determine the target vehicle terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file installed, based on the vehicle terminal information that has the software to be upgraded installed with the software upgrade file installed and the vehicle terminal information that is in operation.

[0114] For example, in combination Figure 1 Assume that the vehicle terminals equipped with the software to be upgraded, corresponding to the software upgrade file, include: vehicle terminal A, vehicle terminal B, and vehicle terminal C; and the vehicle terminals in operation include: vehicle terminal B, vehicle terminal C, and vehicle terminal D. In this case, electronic device 101 can determine that the target vehicle terminals include: vehicle terminal B and vehicle terminal C.

[0115] Optionally, when the target data includes the driving speed of the vehicle to which the target in-vehicle terminal belongs, one way for the electronic device to obtain the target data of the target in-vehicle terminal is as follows: After identifying the target in-vehicle terminal, the electronic device can send a request to the vehicle network platform management device to obtain the driving speed of the vehicle to which the target in-vehicle terminal belongs. The vehicle network platform management device responds to the request sent by the electronic device to obtain the driving speed of the vehicle to which the target in-vehicle terminal belongs, and sends the driving speed of the vehicle to which the target in-vehicle terminal belongs to the electronic device.

[0116] For example, in combination Figure 1Suppose an electronic device needs to obtain the speed of the vehicle to which the in-vehicle terminal 105 belongs. In this case, the electronic device 101 can send a request to the vehicle network platform management device 104 to obtain the speed of the vehicle to which the in-vehicle terminal 105 belongs. The vehicle network platform management device 104 can respond to the request from the electronic device 101 and, based on the corresponding number recorded by the in-vehicle terminal 105 in the vehicle network platform, determine that the speed of the vehicle to which the in-vehicle terminal 105 belongs is 70 kilometers per hour. Then, the vehicle network platform management device 104 sends the speed of the vehicle to which the in-vehicle terminal 105 belongs to the electronic device 101. In summary, the electronic device 101 can determine that the speed of the vehicle to which the in-vehicle terminal 105 belongs is 70 kilometers per hour.

[0117] Optionally, the target data includes the network standard used by the target vehicle terminal, which is obtained in a similar way to the method of obtaining the driving speed of the vehicle to which the target vehicle terminal belongs. The specific acquisition process can be found in the method of obtaining driving speed, and will not be repeated here.

[0118] Optionally, the specific implementation process of the electronic device acquiring the test data transmission duration of the target vehicle terminal can be referred to the specific description in S401, and will not be repeated here.

[0119] Optionally, when the target data includes the distance between the target vehicle terminal and the content distribution server used to distribute software upgrade files, one way for the electronic device to obtain the target data of the target vehicle terminal is as follows: the electronic device sends a request to the vehicle network platform management device to obtain the location information of the target vehicle terminal. The vehicle network platform management device responds to the request from the electronic device and sends the location information of the target vehicle terminal and the location information of the content distribution server near the target vehicle terminal to the electronic device.

[0120] In summary, electronic devices can determine the distance between the target vehicle terminal and the content distribution server used to distribute software upgrade files based on the location information of the target vehicle terminal sent by the vehicle networking platform management device and the location information of the content distribution server near the target vehicle terminal. When multiple content distribution servers exist near the target vehicle terminal, the nearest content distribution server is used to determine the distance between the target vehicle terminal and the content distribution server used to distribute the software upgrade files.

[0121] For example, in combination Figure 1Assuming the target vehicle terminal is vehicle terminal 105, in this case, electronic device 101 sends a request to vehicle network platform management device 104 to obtain the location information of vehicle terminal 105. Vehicle network platform management device 104 responds to the request from electronic device 101 and sends the location information of vehicle terminal 105 and the location information of content distribution server 102 near vehicle terminal 105 to the electronic device. The location information of vehicle terminal 105 is (100°N, 100°E), and the location information of content distribution server 102 is (101°N, 101°E). Then, electronic device 101 can determine the distance between vehicle terminal 105 and content distribution server 102 used for distributing software upgrade files using a two-point distance formula.

[0122] S404. The electronic device determines the upgrade strategy for the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data.

[0123] Optionally, when the target data includes the driving speed of the vehicle to which the target vehicle terminal belongs, one implementation of the electronic device determining the upgrade strategy for the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data is as follows: The electronic device can select a first vehicle terminal from the target vehicle terminals that is less than or equal to the number of vehicle terminals, and determine the actual data transmission rate of the target vehicle terminal based on the driving speed of the vehicle to which the target vehicle terminal belongs. In summary, the electronic device can determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the first vehicle terminal at the actual data transmission rate of the target vehicle terminal.

[0124] Optionally, when the target data includes the network standard used by the target vehicle terminal, one implementation of the electronic device determining the upgrade strategy for the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data is as follows: the electronic device can select a second vehicle terminal (less than or equal to the number of vehicle terminals) from the target vehicle terminals, and determine the order in which the second vehicle terminals download the software upgrade files according to the network transmission speed from fastest to slowest. In summary, the electronic device can determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: send the software upgrade files to the second vehicle terminals sequentially according to a first preset order.

[0125] Optionally, when the target data includes the test data transmission duration of the target vehicle terminal, one implementation of the electronic device determining the upgrade strategy for the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data is as follows: the electronic device can select a third vehicle terminal from the target vehicle terminals (less than or equal to the number of vehicle terminals), and determine the order in which the third vehicle terminal downloads the software upgrade files according to the ascending order of the test data transmission duration. In summary, the electronic device can determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: send the software upgrade files to the third vehicle terminals sequentially according to a second preset order.

[0126] Optionally, when the target data includes the distance between the target vehicle terminal and the content distribution server used to distribute software upgrade files, one implementation of the electronic device determining the upgrade strategy for the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data is as follows: The electronic device can select a fourth vehicle terminal from the target vehicle terminals (less than or equal to the number of vehicle terminals), and determine the order in which the fourth vehicle terminal downloads the software upgrade files according to the order in which the distance between the target vehicle terminal and the content distribution server used to distribute software upgrade files is from smallest to largest. In summary, the electronic device determines the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: The software upgrade files are sent to the fourth vehicle terminal sequentially according to a third preset order.

[0127] In some embodiments, combined with Figure 4 ,like Figure 5 As shown, when the target data includes the driving speed of the vehicle to which the target vehicle terminal belongs, the method by which the electronic device determines the upgrade strategy of the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data in S404 specifically includes: S501-S503.

[0128] S501, The electronic device selects a first vehicle terminal from the target vehicle terminals that is less than or equal to the number of vehicle terminals.

[0129] Specifically, the number of in-vehicle terminals that can be supported simultaneously by the OTA download channel is limited. Therefore, the selected number should be less than or equal to the number of in-vehicle terminals that the remaining bandwidth of the OTA download channel can support simultaneously. This ensures that the OTA download channel will not become congested due to multiple in-vehicle terminals downloading at the same time.

[0130] For example, in combination Figure 1 Assuming the remaining bandwidth of the OTA download channel can simultaneously support 5 vehicle-mounted terminals downloading, and the target number of vehicle-mounted terminals is 10, then electronic device 101 can select 5 vehicle-mounted terminals from the target vehicle-mounted terminals as the first vehicle-mounted terminals.

[0131] S502. The electronic device determines the actual data transmission rate of the target vehicle terminal based on the driving speed of the vehicle to which the target vehicle terminal belongs.

[0132] Among them, the driving speed of the vehicle to which the target vehicle terminal belongs is inversely proportional to the actual data transmission rate of the target vehicle terminal.

[0133] Optionally, the actual data transmission rate of the target vehicle terminal can be: the actual data transmission rate of the target vehicle terminal = the test data transmission rate of the target vehicle terminal * the preset actual data transmission rate coefficient.

[0134] Optionally, as shown in Table 3, the electronic device can preset a corresponding list of the driving speed of the target vehicle terminal and the preset actual data transmission rate coefficient according to the actual situation.

[0135] Table 3

[0136] Driving speed (km / h) Preset actual data transmission rate coefficient 0 100% (0,30] 80% (30,60] 50% (60,∞) 0%

[0137] For example, in combination Figure 1 Assuming that vehicle terminal 105 is the target vehicle terminal, the vehicle to which vehicle terminal 105 belongs is traveling at a speed of 40 kilometers per hour, and the test data transmission rate of vehicle terminal 105 is 100 Mbps, then the electronic device can determine that the actual data transmission rate of vehicle terminal 105 is 100 * 50% = 50 Mbps.

[0138] S503. The electronic device determines the upgrade strategy of the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the first vehicle terminal at the actual data transmission rate of the target vehicle terminal.

[0139] Specifically, during the software upgrade process on the target vehicle terminal, the intelligent driving functions of the vehicle to which the target vehicle terminal belongs may be affected. The higher the download speed, the greater the possibility of this impact, potentially leading to a safety incident involving the vehicle to which the target vehicle terminal belongs. Therefore, to prevent a safety incident from occurring in the vehicle to which the target vehicle terminal belongs due to the software upgrade process while the content distribution server is sending the software upgrade file to the first vehicle terminal, the electronic device needs to proactively reduce the actual data transmission rate or even pause the download when the speed of the vehicle to which the target vehicle terminal belongs is too high.

[0140] For example, in combination Figure 1Assume that electronic device 101 can select five vehicle terminals from the target vehicle terminals as first vehicle terminals, and that the actual data transmission rate of the first vehicle terminals is determined to be 50 Mbps, with vehicle terminal 105 being one of the first vehicle terminals. In this case, electronic device 101 can send a download command to content delivery server 102. Content delivery server 102 responds to the download command sent by electronic device 101 and sends a software upgrade file to vehicle terminal 105 at an actual data transmission rate of 50 Mbps.

[0141] In some embodiments, combined with Figure 5 ,like Figure 6 As shown, when the target data includes the network standard used by the target vehicle terminal, the method in S404 above for the electronic device to determine the upgrade strategy of the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data specifically includes: S601-S602.

[0142] S601. The electronic device selects a second vehicle terminal from the target vehicle terminals under the same network standard, which is less than or equal to the number of vehicle terminals.

[0143] Optionally, the specific description of the electronic device selecting a second vehicle terminal from the target vehicle terminals under the same network standard, which is less than or equal to the number of vehicle terminals, is similar to the specific description of the electronic device selecting a first vehicle terminal from the target vehicle terminals, which is less than or equal to the number of vehicle terminals, in S501, and will not be repeated here.

[0144] S602. The electronic device determines the upgrade strategy of the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the second vehicle terminal in sequence according to the first preset order.

[0145] The first preset order is the order of network transmission speed from fastest to slowest for the network standard used by the target vehicle terminal.

[0146] Optionally, the network standards used by the target vehicle terminal include, but are not limited to, 3G, 4G, and 5G. Electronic devices can determine the download order of different target vehicle terminals by judging the network transmission rate (also known as the test data transmission rate) under different network standards. Electronic devices can preferentially select target terminals with faster network transmission rates for software upgrades, thereby improving the overall upgrade efficiency.

[0147] For example, in combination Figure 1 Assuming the average test data transmission rate of the target vehicle terminal under 5G is 118Mbps, and the average test data transmission rate of the target vehicle terminal under 4G is 50Mbps, then electronic device 101 can determine that the target vehicle terminal under 5G is the preferred choice for software upgrade.

[0148] In some embodiments, combined with Figure 6 ,like Figure 7 As shown, when the target data includes the test data transmission duration of the target vehicle terminal, the method in S404 above for the electronic device to determine the upgrade strategy of the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data specifically includes: S701-S702.

[0149] S701. The electronic device selects a third vehicle terminal from the target vehicle terminals with the same test data transmission duration. The number of vehicle terminals is less than or equal to the number of vehicle terminals.

[0150] Optionally, the specific description of the electronic device selecting a third vehicle terminal from the target vehicle terminals under the same network standard, which is less than or equal to the number of vehicle terminals, is similar to the specific description of the electronic device selecting a first vehicle terminal from the target vehicle terminals, which is less than or equal to the number of vehicle terminals, in S501, and will not be repeated here.

[0151] S702, the electronic device determines the upgrade strategy of the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the third vehicle terminal in sequence according to the second preset order.

[0152] The second preset order is the order of the test data transmission duration of the target vehicle terminal from shortest to longest.

[0153] Optionally, when the target data includes the test data transmission duration of the target vehicle terminal, the electronic device can determine the order in which the target vehicle terminal downloads the software upgrade files by judging the test data transmission duration. By prioritizing the completion of software updates for target vehicle terminals with shorter test data transmission durations, information congestion in the download channel is avoided, thereby improving the overall upgrade efficiency of the software to be upgraded on the target vehicle terminal.

[0154] In some embodiments, combined with Figure 7 ,like Figure 8 As shown, when the target data includes the distance between the target vehicle terminal and the content distribution server, the method in S404 above for the electronic device to determine the upgrade strategy of the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data specifically includes: S801-S802.

[0155] S801. The electronic device selects a fourth vehicle terminal from among the target vehicle terminals whose distance from the same target vehicle terminal to the content distribution server is less than or equal to the number of vehicle terminals.

[0156] Optionally, the specific description of the electronic device selecting a fourth vehicle terminal from the target vehicle terminals whose distance from the content distribution server is less than or equal to the number of vehicle terminals is similar to the specific description of the electronic device selecting a first vehicle terminal from the target vehicle terminals whose distance is less than or equal to the number of vehicle terminals in S501, and will not be repeated here.

[0157] S802, the electronic device determines the upgrade strategy of the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the fourth vehicle terminal in sequence according to the third preset order.

[0158] The third preset order is the order in which the distance between the target vehicle terminal and the content distribution server increases from small to large.

[0159] Optionally, the electronic device can send the software upgrade file to the fourth vehicle terminal sequentially, according to the increasing distance between the target vehicle terminal and the content distribution server. Target vehicle terminals closer to the content distribution server can better receive the software upgrade file, complete the download task faster, and are less likely to cause download backlog. Therefore, by preferentially selecting target vehicle terminals closer to the content distribution server, the overall upgrade efficiency of the target vehicle terminals can be improved.

[0160] In some embodiments, combined with Figure 8 ,like Figure 9 As shown, after determining the upgrade strategy for the software to be upgraded in the target vehicle terminal, the above software upgrade method also includes: S901-S903.

[0161] S901: The electronic device sends a request to the target vehicle terminal to download the software upgrade file.

[0162] Specifically, when an electronic device determines that the software on the target vehicle terminal needs an upgrade, it must first send a request to the target vehicle terminal to download the software upgrade file. Only after the driver of the vehicle to which the target vehicle terminal belongs agrees to download the software upgrade file will the electronic device control the content delivery service to send the software upgrade file to the target vehicle terminal.

[0163] For example, in combination Figure 1 Assuming the vehicle terminal 105 is the target vehicle terminal, once the upgrade strategy for the software to be upgraded in the target vehicle terminal is determined, the electronic device 101 sends a request to the vehicle terminal 105 to download the software upgrade file.

[0164] S902, The electronic device receives a response message from the target vehicle terminal agreeing to download the software upgrade file.

[0165] Specifically, the electronic device sends a request to the target vehicle terminal to download a software upgrade file. Then, the driver of the vehicle to which the target vehicle terminal belongs can agree to download the software upgrade file on the target vehicle terminal. Correspondingly, the target vehicle terminal responds to the driver's action by sending a response message to the electronic device agreeing to download the software upgrade file.

[0166] S903, the electronic device control content distribution server transmits software upgrade files to the target vehicle terminal according to the upgrade strategy.

[0167] Specifically, after the electronic device receives a response message from the target vehicle terminal agreeing to download the software upgrade file, the electronic device sends a request to the content distribution server to control the content distribution server to transmit the software upgrade file to the target vehicle terminal according to the upgrade policy, thereby controlling the content distribution server to transmit the software upgrade file to the target vehicle terminal according to the upgrade policy.

[0168] Optionally, after the electronic device controls the content distribution server to transmit the software upgrade file to the target vehicle terminal according to the upgrade strategy, the target vehicle terminal can send an OTA download data report to the electronic device. Then, the electronic device can determine the interval for the next upgrade based on the OTA download data report sent by the target vehicle terminal. Next, the electronic device sends a reminder message to the OTA platform management device to remind it to select a new batch of target vehicle terminals that need to download the software upgrade file.

[0169] In some embodiments, Figure 10 A flowchart illustrating an embodiment of a software upgrade method provided in this application is shown. Figure 10 As shown, the processing strategy method provided in this application embodiment includes: S1001-S1009.

[0170] S1001. The electronic device obtains the remaining bandwidth of the download channel used to download software upgrade files and the test data transmission rate of each vehicle terminal in at least one vehicle terminal connected to the download channel.

[0171] Combination Figure 4 For a description of the remaining bandwidth of the download channel used to download software upgrade files and the test data transmission rate of each vehicle terminal connected to the download channel, please refer to the relevant description in S401, which will not be repeated here.

[0172] S1002. The electronic device determines the number of vehicle terminals that can simultaneously download software upgrade files based on the remaining bandwidth and the test data transmission rate of each vehicle terminal.

[0173] Combination Figure 4 The description of how electronic devices determine the number of vehicle terminals that can simultaneously download software upgrade files based on the remaining bandwidth and the test data transmission rate of each vehicle terminal can be found in the relevant description of S402, and will not be repeated here.

[0174] S1003. The electronic device selects a target vehicle terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file installed from at least one vehicle terminal, and obtains the target data of the target vehicle terminal.

[0175] Combination Figure 4 The description of how the electronic device selects a target vehicle terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file from at least one vehicle terminal, and obtains the target data of the target vehicle terminal, can be found in the relevant description of S403, and will not be repeated here.

[0176] S1004. The electronic device determines the upgrade strategy for the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data.

[0177] Combination Figure 4 The description of the upgrade strategy for the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data can be found in the relevant description of S404, and will not be repeated here.

[0178] S1005. The electronic device sends a request to download the software upgrade file to the target vehicle terminal according to the upgrade strategy to be upgraded in the target vehicle terminal.

[0179] Combination Figure 9 The description of how the electronic device sends a request to download the software upgrade file to the target vehicle terminal according to the upgrade strategy to be upgraded in the target vehicle terminal can be found in the relevant description of S901, and will not be repeated here.

[0180] S1006. The electronic device receives a response message from the target vehicle terminal agreeing to download the software upgrade file.

[0181] Combination Figure 9 For a description of the electronic device receiving the response message from the target vehicle terminal agreeing to download the software upgrade file, please refer to the relevant description in S902, which will not be repeated here.

[0182] S1007. The electronic device control content distribution server transmits software upgrade files to the target vehicle terminal according to the upgrade strategy.

[0183] Combination Figure 9For a description of how the electronic device control content distribution server transmits software upgrade files to the target vehicle terminal according to the upgrade strategy, please refer to the relevant description in S903, which will not be repeated here.

[0184] S1008, the interval between upgrades for electronic devices.

[0185] Combination Figure 9 For details regarding the intervals for electronic devices to receive upgrades, please refer to the relevant description in S903, which will not be repeated here.

[0186] S1009. The electronic equipment periodically acquires the vehicle terminal to be upgraded, which has the corresponding software upgrade file installed, according to the upgrade interval.

[0187] Combination Figure 9 For a description of how the electronic device control content distribution server transmits software upgrade files to the target vehicle terminal according to the upgrade strategy, please refer to the relevant description in S903, which will not be repeated here.

[0188] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0189] This application embodiment can divide the software upgrade device into functional modules according to the above method example. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0190] like Figure 11 The diagram shown is a structural schematic of a software upgrade device provided in an embodiment of this application. This software upgrade device can be used to perform... Figures 4-9 The software upgrade method is shown. Figure 11 The software upgrade device shown includes: an acquisition unit 1101, a determination unit 1102, a sending unit 1103, and a control unit 1104.

[0191] The acquisition unit 1101 is used to acquire the remaining bandwidth of the download channel used to download the software upgrade file and the test data transmission rate of each vehicle terminal among at least one vehicle terminal connected to the download channel; the determination unit 1102 is used to determine the number of vehicle terminals that the remaining bandwidth supports for simultaneous downloading of the software upgrade file based on the remaining bandwidth and the test data transmission rate of each vehicle terminal; the acquisition unit 1101 is also used to select a target vehicle terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file installed from the at least one vehicle terminal, and acquire the target data of the target vehicle terminal; the target data includes at least one of the following: the driving speed of the vehicle to which the target vehicle terminal belongs, the network standard used by the target vehicle terminal, the test data transmission duration of the target vehicle terminal, and the distance between the target vehicle terminal and the content delivery server used to distribute the software upgrade file; the determination unit 1102 is used to determine the upgrade strategy of the software to be upgraded in the target vehicle terminal based on the number of vehicle terminals and the target data.

[0192] Optionally, when the target data includes the driving speed of the vehicle to which the target vehicle terminal belongs, the determining unit 1102 is specifically used to: select a first vehicle terminal from the target vehicle terminals that is less than or equal to the number of vehicle terminals; determine the actual data transmission rate of the target vehicle terminal based on the driving speed of the vehicle to which the target vehicle terminal belongs; the driving speed of the vehicle to which the target vehicle terminal belongs is inversely proportional to the actual data transmission rate of the target vehicle terminal; and determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as: sending the software upgrade file to the first vehicle terminal at the actual data transmission rate of the target vehicle terminal.

[0193] Optionally, when the target data includes the network standard used by the target vehicle terminal, the determining unit 1102 is specifically used to: select a second vehicle terminal from the target vehicle terminals under the same network standard that is less than or equal to the number of vehicle terminals; determine the upgrade strategy of the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the second vehicle terminal in sequence according to a first preset order; the first preset order is the order of network transmission speed from fast to slow for the network standard used by the target vehicle terminal.

[0194] Optionally, when the target data includes the test data transmission duration of the target vehicle terminal, the determining unit 1102 is specifically used to: select a third vehicle terminal from the target vehicle terminals with the same test data transmission duration that is less than or equal to the number of vehicle terminals; determine the upgrade strategy of the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the third vehicle terminal in sequence according to the second preset order; the second preset order is the order of the test data transmission duration of the target vehicle terminal from smallest to largest.

[0195] Optionally, when the target data includes the distance between the target vehicle terminal and the content distribution server, the determining unit 1102 is specifically used to: select a fourth vehicle terminal from the target vehicle terminals whose distance from the same target vehicle terminal to the content distribution server is less than or equal to the number of vehicle terminals; determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the fourth vehicle terminal in sequence according to a third preset order; the third preset order is the order in which the distance between the target vehicle terminal and the content distribution server is from smallest to largest.

[0196] Optionally, after determining the upgrade strategy of the software to be upgraded in the target vehicle terminal, the sending unit 1103 is used to send a request to the target vehicle terminal to download the software upgrade file; the obtaining unit 1101 is also used to receive a response message from the target vehicle terminal agreeing to download the software upgrade file; and the control unit 1104 is used to control the content distribution server to transmit the software upgrade file to the target vehicle terminal according to the upgrade strategy.

[0197] This application also provides a computer-readable storage medium, which includes computer-executable instructions that, when executed on a computer, cause the computer to perform the software upgrade method provided in the above embodiments.

[0198] This application also provides a computer program that can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program can implement the software upgrade method provided in the above embodiments.

[0199] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any medium that facilitates the transmission of a computer program from one place to another. Storage media can be any available medium accessible to a general-purpose or special-purpose computer.

[0200] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0201] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings or direct couplings or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate; components shown as units may be one physical unit or multiple physical units, i.e., they may be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0202] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0203] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A software upgrade method, characterized in that, include: The remaining bandwidth of the download channel used to download software upgrade files and the test data transmission rate of each vehicle terminal in at least one vehicle terminal connected to the download channel are obtained. Based on the remaining bandwidth and the test data transmission rate of each vehicle terminal, determine the number of vehicle terminals that the remaining bandwidth can support for simultaneously downloading the software upgrade file; From the at least one vehicle-mounted terminal, select a target vehicle-mounted terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file installed, and obtain the target data of the target vehicle-mounted terminal; the target data includes at least one of the following: the driving speed of the vehicle to which the target vehicle-mounted terminal belongs, the network standard used by the target vehicle-mounted terminal, the test data transmission duration of the target vehicle-mounted terminal, and the distance between the target vehicle-mounted terminal and the content distribution server used to distribute the software upgrade file; When the target data includes the driving speed of the vehicle to which the target vehicle terminal belongs, a first vehicle terminal is selected from the target vehicle terminals, with a number less than or equal to the number of vehicle terminals. Based on the driving speed of the vehicle to which the target vehicle terminal belongs, the actual data transmission rate of the target vehicle terminal is determined. The driving speed of the vehicle to which the target vehicle terminal belongs is inversely proportional to the actual data transmission rate of the target vehicle terminal. The upgrade strategy for the software to be upgraded in the target vehicle terminal is determined to be: sending the software upgrade file to the first vehicle terminal at the actual data transmission rate of the target vehicle terminal. When the target data includes the network standard used by the target vehicle terminal, a second vehicle terminal is selected from the target vehicle terminals under the same network standard, and the number of second vehicle terminals is less than or equal to the number of the target vehicle terminals. The upgrade strategy for the software to be upgraded in the target vehicle terminal is determined as follows: the software upgrade file is sent to the second vehicle terminal in a first preset order. The first preset order is the order of network transmission speed from fastest to slowest for the network standard used by the target vehicle terminal. When the target data includes the test data transmission duration of the target vehicle terminal, a third vehicle terminal with a number less than or equal to that of the target vehicle terminals with the same test data transmission duration is selected; the upgrade strategy for the software to be upgraded in the target vehicle terminal is determined as follows: the software upgrade file is sent to the third vehicle terminal in sequence according to a second preset order; the second preset order is the order of the test data transmission duration of the target vehicle terminals from smallest to largest; When the target data includes the distance between the target vehicle terminal and the content distribution server, a fourth vehicle terminal is selected from the target vehicle terminals with the same distance between the target vehicle terminal and the content distribution server, and the number of the fourth vehicle terminal is less than or equal to the number of the target vehicle terminals. The upgrade strategy for the software to be upgraded in the target vehicle terminal is determined as follows: the software upgrade file is sent to the fourth vehicle terminal in sequence according to a third preset order. The third preset order is the order in which the distance between the target vehicle terminal and the content distribution server is from smallest to largest.

2. The software upgrade method according to claim 1, characterized in that, After determining the upgrade strategy for the software to be upgraded in the target vehicle terminal, the method further includes: Send a request to the target vehicle terminal to download the software upgrade file; Receive a response message from the target vehicle terminal agreeing to download the software upgrade file; The content distribution server is controlled to transmit the software upgrade file to the target vehicle terminal according to the upgrade strategy.

3. A software upgrade device, characterized in that, include: Acquiring and determining units; The acquisition unit is used to acquire the remaining bandwidth of the download channel used to download software upgrade files and the test data transmission rate of each vehicle terminal in at least one vehicle terminal connected to the download channel. The determining unit is used to determine the number of vehicle terminals that the remaining bandwidth can support for simultaneously downloading the software upgrade file, based on the remaining bandwidth and the test data transmission rate of each vehicle terminal. The acquisition unit is further configured to select a target vehicle terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file installed from the at least one vehicle terminal, and acquire target data of the target vehicle terminal; the target data includes at least one of the following: the driving speed of the vehicle to which the target vehicle terminal belongs, the network standard used by the target vehicle terminal, the test data transmission duration of the target vehicle terminal, and the distance between the target vehicle terminal and the content distribution server used to distribute the software upgrade file; When the target data includes the driving speed of the vehicle to which the target vehicle terminal belongs, the determining unit is specifically configured to: select a first vehicle terminal from the target vehicle terminals that is less than or equal to the number of vehicle terminals; determine the actual data transmission rate of the target vehicle terminal based on the driving speed of the vehicle to which the target vehicle terminal belongs; the driving speed of the vehicle to which the target vehicle terminal belongs is inversely proportional to the actual data transmission rate of the target vehicle terminal; and determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as: sending the software upgrade file to the first vehicle terminal at the actual data transmission rate of the target vehicle terminal. When the target data includes the network standard used by the target vehicle terminal, the determining unit is specifically configured to: select a second vehicle terminal from the target vehicle terminals under the same network standard, with a number less than or equal to the number of the vehicle terminals; determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the second vehicle terminal in a first preset order; the first preset order is the order of network transmission speed from fastest to slowest for the network standard used by the target vehicle terminal; When the target data includes the test data transmission duration of the target vehicle terminal, the determining unit is specifically configured to: select a third vehicle terminal from the target vehicle terminals with the same test data transmission duration, the number of which is less than or equal to the number of the vehicle terminals; determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the third vehicle terminal sequentially according to a second preset order; the second preset order is the order of the test data transmission duration of the target vehicle terminals from smallest to largest; When the target data includes the distance between the target vehicle terminal and the content distribution server, the determining unit is specifically used to: select a fourth vehicle terminal from the target vehicle terminals whose distance from the same target vehicle terminal to the content distribution server is less than or equal to the number of the vehicle terminals; determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as follows: send the software upgrade file to the fourth vehicle terminal in sequence according to a third preset order; the third preset order is the order in which the distance between the target vehicle terminal and the content distribution server is from smallest to largest.

4. A software upgrade device, characterized in that, It includes a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory via a bus; when the software upgrade device is running, the processor executes the computer execution instructions stored in the memory, so that the software upgrade device performs the software upgrade method as described in any one of claims 1-2.

5. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer-executable instructions that, when executed on a computer, cause the computer to perform the software upgrade method as described in any one of claims 1-2.

Citation Information

Patent Citations

  • Vehicle over-the-air OTA processing method and device

    CN111726749A

  • Network node upgrading method and device and electronic equipment

    CN112887146A