Software upgrading method and device and storage medium
By obtaining the remaining bandwidth of the download channel and the test data transmission rate of the on-board terminal, and determining the upgrade strategy based on the target data of the on-board terminal, the OTA download channel network blockage caused by the simultaneous download of multiple on-board terminals is solved, and the efficiency of software upgrade is improved.
Patent Information
- Application Number
- CN202311089075.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2043-08-28
AI Technical Summary
In the prior art, when multiple on-board terminals download software upgrade packets at the same time, it is easy to cause the OTA download channel network to be blocked, affecting the upgrade efficiency.
By obtaining the remaining bandwidth of the download channel and the test data transmission rate of the on-board terminal, determine the number of on-board terminals that support downloading at the same time, and determine the upgrade strategy based on the target data of the on-board terminal (such as driving speed, network standard, test data transmission duration and distance from the content distribution server) to avoid network congestion.
It effectively avoids network blockage in the OTA download channel and improves the efficiency of software upgrades.
Smart Images

Figure CN119544689A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent vehicle technology, and in particular to a software upgrade method, device and storage medium. Background Art
[0002] With the continuous development of the automobile industry, automobile intelligence has become a development trend of the automobile industry. In order to meet the needs of the rapid development of automobile intelligence, the software used in the on-board terminal of the car needs to be continuously updated.
[0003] The existing software update method is usually that the vehicle terminal uses over-the-air technology (OTA) to download the software upgrade data package. However, when multiple vehicle terminals download the software upgrade data package at the same time, it is easy to cause the OTA download channel network for downloading the software upgrade data package to be blocked. Summary of the invention
[0004] The present application provides a software upgrade method, device and storage medium, which are used to solve the problem of privacy information leakage risk in the prior art.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, a software upgrade method is provided, comprising: obtaining the remaining bandwidth of a download channel for downloading software upgrade files and a test data transmission rate of each vehicle-mounted terminal in at least one vehicle-mounted terminal connected to the download channel; determining 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; selecting a target vehicle-mounted terminal that is in a running state and has software to be upgraded corresponding to the software upgrade file installed from at least one vehicle-mounted terminal, and obtaining target data of the target vehicle-mounted terminal; the target data comprising at least one of a driving speed of a vehicle to which the target vehicle-mounted terminal belongs, a network standard used by the target vehicle-mounted terminal, a test data transmission duration of the target vehicle-mounted terminal, and a distance between the target vehicle-mounted terminal and a content distribution server for distributing software upgrade files; and determining an upgrade strategy for 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 according to the number of vehicle terminals and the target data, including: selecting a first vehicle terminal that is less than or equal to the number of vehicle terminals from the target vehicle terminals; determining the actual data transmission rate of the target vehicle terminal according to 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: 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 according to the number of vehicle terminals and the target data, including: selecting a second vehicle terminal whose number is less than or equal to the number of vehicle terminals from the target vehicle terminals under the same network standard; determining the upgrade strategy for the software to be upgraded in the target vehicle terminal as: sending software upgrade files to the second vehicle terminal in sequence according to a first preset order; the first preset order is the order of network transmission rates of the network standard used by the target vehicle terminal from fast to slow.
[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 according to the number of vehicle terminals and the target data, including: selecting a third vehicle terminal whose number is less than or equal to that of the target vehicle terminals with the same test data transmission duration; determining the upgrade strategy for the software to be upgraded in the target vehicle terminal as: sending the software upgrade file 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 small to large.
[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 according to the number of vehicle terminals and the target data, including: selecting a fourth vehicle terminal whose distance between the same target vehicle terminal and the content distribution server is 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 the software upgrade file to the fourth vehicle terminal in sequence according to a third preset order; the third preset order is the order of the distance between the target vehicle terminal and the content distribution server from small to large.
[0011] Optionally, after determining the upgrade strategy for the software to be upgraded in the target vehicle terminal, the software upgrade method also includes: sending a request to the target vehicle terminal to download the software upgrade file; receiving a response message sent by 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] In a second aspect, a software upgrade device is provided, including: an acquisition unit and a determination unit; the acquisition unit is used to acquire the remaining bandwidth of a download channel for downloading software upgrade files and a test data transmission rate of each vehicle-mounted terminal in at least one vehicle-mounted terminal connected to the download channel; the determination unit is used to determine the number of vehicle-mounted terminals that can simultaneously download software upgrade files with the remaining bandwidth based on the remaining bandwidth and the test data transmission rate of each vehicle-mounted terminal; the acquisition unit is also used to select a target vehicle-mounted terminal that is in a running state and has software to be upgraded corresponding to the software upgrade file installed from at least one vehicle-mounted terminal, and to acquire target data of the target vehicle-mounted terminal; the target data includes at least one of the driving speed of the vehicle to which the target vehicle-mounted terminal belongs, the network format 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 files; the determination unit is used to determine the upgrade strategy for 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 determination unit is specifically used to: select a first vehicle terminal whose number is less than or equal to that of the target vehicle terminals from the target vehicle terminals; determine the actual data transmission rate of the target vehicle terminal according to 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; determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as: send 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 determination unit is specifically used to: select a second vehicle terminal that is less than or equal to the number of vehicle terminals from the target vehicle terminals under the same network standard; determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as: 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 rates of the network standard used by the target vehicle terminal from fast to slow.
[0015] Optionally, when the target data includes: the test data transmission duration of the target vehicle terminal, the determination unit is specifically used to: select a third vehicle terminal whose number is less than or equal to the number of vehicle terminals from the target vehicle terminals with the same test data transmission duration; determine that the upgrade strategy for the software to be upgraded in the target vehicle terminal is: sending the software upgrade file 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 small to large.
[0016] Optionally, when the target data includes: the distance between the target vehicle terminal and the content distribution server, the determination unit is specifically used to: select a fourth vehicle terminal whose number is less than or equal to the number of vehicle terminals from the target vehicle terminals whose distance between the same target vehicle terminal and 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: 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 of the distance between the target vehicle terminal and the content distribution server 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 also 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 acquisition unit is also used to receive a response message sent by the target vehicle terminal agreeing to download the software upgrade file; 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] In a third aspect, a software upgrade device is provided, comprising a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory through 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 executes the software upgrade method described in the first aspect.
[0019] The software upgrade device may be a network device, or a part of a network device, such as a chip system in the network device. The chip system is used to support the network device to implement the functions involved in the first aspect and any possible implementation thereof, for example, to obtain, determine, and send the data and / or information involved in the above-mentioned software upgrade method. The chip system includes a chip, and may also include other discrete devices or circuit structures.
[0020] In a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising computer execution instructions, and when the computer execution instructions are executed on a computer, the computer executes the software upgrade method described in the first aspect.
[0021] In a fifth aspect, a computer program product is also provided. The computer program product includes computer instructions. When the computer instructions are executed on a software upgrading device, the software upgrading device executes the software upgrading method as described in the first aspect above.
[0022] It should be noted that the above-mentioned 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 may be packaged separately from the processor of the software upgrade device, which is not limited in the embodiments of the present application.
[0023] The description of the second, third, fourth and fifth aspects of the present application can refer to the detailed description of the first aspect; and the beneficial effects of the second, third, fourth and fifth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0024] In the embodiments of the present application, the name of the software upgrade device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present application, they fall within the scope of the claims of the present application and their equivalent technologies.
[0025] These and other aspects of the present application will become more apparent from the following description.
[0026] The technical solution provided by this application brings at least the following beneficial effects:
[0027] Based on any of the above aspects, an embodiment of the present application provides a software upgrade method, which can first obtain the remaining bandwidth of the download channel used to download the software upgrade file and the test data transmission rate of each vehicle terminal in at least one vehicle terminal connected to the download channel. Then, based on the remaining bandwidth and the test data transmission rate of each vehicle terminal, the number of vehicle terminals that can support the simultaneous download of the software upgrade file can be determined. Next, a target vehicle terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file installed can be selected from at least one vehicle terminal, and the target data of the target vehicle terminal can be obtained. In this case, the upgrade strategy for the software to be upgraded in the target vehicle terminal can be determined based on the number of vehicle terminals and the target data.
[0028] In summary, the upgrade strategy of the software to be upgraded in the target vehicle terminal can be determined through target data of multiple dimensions, thereby avoiding network congestion in the OTA download channel corresponding to the OTA technology used to download software upgrade data packets, and improving the upgrade efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the structure of a software upgrade system provided in an embodiment of the present application;
[0030] Figure 2 A schematic diagram of a hardware structure of a software upgrade device provided in an embodiment of the present application;
[0031] Figure 3 A schematic diagram of another hardware structure of the software upgrade device provided in an embodiment of the present application;
[0032] Figure 4 A flowchart of a software upgrade method provided in an embodiment of the present application;
[0033] Figure 5 A flowchart of another software upgrade method provided in an embodiment of the present application;
[0034] Figure 6 A flowchart of another software upgrade method provided in an embodiment of the present application;
[0035] Figure 7 A flowchart of another software upgrade method provided in an embodiment of the present application;
[0036] Figure 8 A flowchart of another software upgrade method provided in an embodiment of the present application;
[0037] Fig. 9 A flowchart of another software upgrade method provided in an embodiment of the present application;
[0038] Fig.10 A flowchart of another software upgrade method provided in an embodiment of the present application;
[0039] Fig.11 A schematic diagram of the structure of a software upgrade device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0042] In order to facilitate a clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and order of execution.
[0043] Before introducing the software upgrade method provided by the present application in detail, a brief introduction to the background involved in the present application is first given.
[0044] With the continuous development of the automobile industry, automobile intelligence has become a development trend of the automobile industry. In order to meet the needs of the rapid development of automobile intelligence, the software used in the on-board terminal of the car needs to be continuously updated.
[0045] The existing technology usually upgrades and updates the software of the vehicle terminal through OTA technology, thereby providing new functions for the vehicle terminal.
[0046] To realize the OTA function, the OTA platform management device and the content distribution server need to work together to complete it. The OTA platform management device can send the software upgrade file required by the target vehicle terminal to the content distribution server, and determine and select the vehicle terminal to be upgraded as the target vehicle terminal that needs to download the software upgrade file.
[0047] With the advancement of content distribution technology server technology, software upgrade files can also be stored in the content distribution server and transmitted through the OTA download channel composed of the content distribution service and multiple vehicle terminals.
[0048] However, when multiple vehicle-mounted terminals download software upgrade data packages at the same time, it is easy to cause network congestion of the OTA download channel used to download the software upgrade data packages.
[0049] In view of the above problems, an embodiment of the present application provides a software upgrade method, which can first obtain the remaining bandwidth of the download channel used to download the software upgrade file and the test data transmission rate of each vehicle terminal in at least one vehicle terminal connected to the download channel. Then, based on the remaining bandwidth and the test data transmission rate of each vehicle terminal, the number of vehicle terminals that can support the simultaneous download of the software upgrade file can be determined. Next, a target vehicle terminal that is in operation and has the software to be upgraded corresponding to the software upgrade file installed can be selected from at least one vehicle terminal, and the target data of the target vehicle terminal can be obtained. In this case, the upgrade strategy for the software to be upgraded in the target vehicle terminal can be determined based on the number of vehicle terminals and the target data.
[0050] In summary, the upgrade strategy of the software to be upgraded in the target vehicle terminal can be determined through target data of multiple dimensions, thereby avoiding network congestion in the OTA download channel corresponding to the OTA technology used to download software upgrade data packets, and improving the upgrade efficiency.
[0051] The software upgrade method is applicable to a software upgrade system. Figure 1 FIG. 1 shows a structure of the software upgrade system. Figure 1 As shown, the software upgrade system includes: an electronic device 101, a content distribution server 102, an OTA platform management device 103, a telematics service provider (TSP) platform management device 104, and a vehicle terminal 105.
[0052] Among them, the content distribution server 102 is respectively connected to the electronic device 101, the OTA platform management device 103, the Internet of Vehicles platform management device 104, and the vehicle terminal 105, and 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 a target vehicle terminal to which the software upgrade file needs to be downloaded.
[0055] Optionally, the Internet of Vehicles platform management device 104 is used to query the location information of the target vehicle-mounted terminal and the driving speed of the vehicle to which the target vehicle-mounted terminal belongs.
[0056] Optionally, the vehicle terminal 105 is used to receive the software upgrade file sent by the content distribution server 102, and upgrade the corresponding software to be upgraded through the software upgrade file.
[0057] In actual applications, the electronic device 101 can be connected to multiple content distribution servers, the OTA platform management device 103 can be connected to multiple content distribution servers, the Internet of Vehicles platform management device 104 can be connected to multiple content distribution servers, and the content distribution server 102 can be connected to multiple vehicle terminals. For ease of understanding, this application takes an electronic device 101 connected to a content distribution server 102, an OTA platform management device 103 connected to a content distribution server 102, a Internet of Vehicles platform management device 104 connected to a content distribution server 102, and a content distribution server 102 connected to a vehicle terminal 105 as an example for explanation.
[0058] Optionally, the physical device of the electronic device 101 may be a terminal, a server, or other types of electronic devices.
[0059] Optionally, when the physical device of the electronic device 101 is a terminal, the terminal may be a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. The terminal may communicate with one or more core networks via a radio access network (RAN). The terminal may 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-built-in or vehicle-mounted mobile device that exchanges language and / or data with a radio access network, such as a mobile phone, a tablet computer, a laptop computer, a netbook, a personal digital assistant (PDA).
[0060] Optionally, when the physical device of the electronic device 101 is a server, the server can be a server in a server cluster (consisting of multiple servers), or a chip in the server, or a system on a chip in the server, or can be implemented by a virtual machine (VM) deployed on a physical machine, which is not limited in this embodiment of the present application.
[0061] Optionally, when the electronic device 101 is a server, the OTA platform management device 103 may be multiple devices independently set up, or may be integrated in the same device.
[0062] It is easy to understand that when the electronic device 101 and the OTA platform management device 103 are integrated into the same device, the communication between the two is the communication between the internal modules of the device. In this case, the communication process between the two devices is the same as the "communication process between the two devices when the electronic device 101 and the OTA platform management device 103 are independent of each other".
[0063] For ease of understanding, this application is described by taking the electronic device 101 and the OTA platform management device 103 as an example in which they are independent of each other.
[0064] The basic hardware structure of the electronic device 101 in the software upgrade system is similar, including Figure 2 or Figure 3 The components included in the software upgrade device shown in FIG. Figure 2 and Figure 3 Taking the software upgrade device shown as an example, the hardware structure of the electronic device 101 is introduced.
[0065] like Figure 2 , which is a schematic diagram of a hardware structure of a software upgrade device provided in an embodiment of the present application. The software upgrade device includes a processor 21, a memory 22, a communication interface 23, and a bus 24. The processor 21, the memory 22, and the communication interface 23 can be connected via a bus 24.
[0066] The processor 21 is the control center of the software upgrade device, which can be a processor or a general term for multiple processing elements. For example, the 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 an embodiment, the processor 21 may include one or more CPUs, such as Figure 2 CPU0 and CPU1 are shown in the figure.
[0068] The memory 22 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0069] In a possible implementation, the memory 22 may exist independently of the processor 21, and the memory 22 may be connected to the processor 21 via a bus 24 to store instructions or program codes. When the processor 21 calls and executes the instructions or program codes stored in the memory 22, the software upgrade method provided in the following embodiments of the present application can be implemented.
[0070] In the embodiment of the present application, for the software upgrade device 101, the software programs stored in the memory 22 are different, so the functions implemented by the software upgrade device 101 are different. The functions performed by each device will be described in conjunction with the following flowchart.
[0071] In another possible implementation, the memory 22 may also be integrated with the processor 21 .
[0072] The communication interface 23 is used to connect the software upgrade device to other devices through a communication network, and the communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 23 may include a receiving unit for receiving data and a sending unit for sending data.
[0073] The bus 24 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0074] Figure 3 Another hardware structure of the software upgrade device in the embodiment of the present application is shown. 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 the processor 31 may refer to the description of the processor 21. In addition, the processor 31 also has a storage function and can function as the memory 22.
[0076] The communication interface 32 is used to provide data to the processor 31. The communication interface 32 may be an internal interface of the software upgrade device, or an external interface of the software upgrade device (equivalent to the communication interface 23).
[0077] It should be pointed out that Figure 2 (or Figure 3 ) does not constitute a limitation on the software upgrade device, except Figure 2 (or Figure 3 ) In addition to the components shown in the figure, the software upgrade device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0078] The software upgrade method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0079] like Figure 4 As shown, the software upgrade method provided in the embodiment of the present application is applied to an electronic device, and the software upgrade method includes: S401-S404.
[0080] S401. The electronic device obtains the remaining bandwidth of a download channel for downloading software upgrade files and a test data transmission rate of each vehicle-mounted terminal in at least one vehicle-mounted terminal connected to the download channel.
[0081] Optionally, the software upgrade file may be a file data package used to update the software to be upgraded in the vehicle terminal.
[0082] Optionally, the download channel for downloading the software upgrade file may be an OTA download channel. OTA download may be referred to as an over-the-air download technology, which is a technology for remotely managing the vehicle terminal through an air interface of communication.
[0083] Optionally, the remaining bandwidth may be the remaining available data volume in the total data volume that can be transmitted in a unit time through a channel for downloading software upgrade files (also referred to as an OTA download channel).
[0084] Optionally, the vehicle-mounted terminal may also be referred to as a vehicle telematics control unit (TCU) terminal, which is a front-end device for a vehicle monitoring and management system, and its functions include but are not limited to: positioning, communication, driving records, business scheduling and data processing.
[0085] Optionally, the test data transmission rate may be the amount of test data sent by the vehicle-mounted terminal through the receiving channel per second.
[0086] Specifically, when multiple vehicle terminals simultaneously download software upgrade files on a download channel, the multiple vehicle terminals will occupy the bandwidth of the download channel at the same time. In addition, because the bandwidth of a download channel is limited, the more vehicle terminals download software upgrade files at the same time, the less remaining bandwidth of the download channel. When the remaining bandwidth of the download channel approaches 0, information congestion will occur, thereby affecting the transmission rate of all data transmissions on the download channel.
[0087] Therefore, the electronic device can avoid the situation where the download channel is blocked by controlling the number of vehicle terminals that download at the same time. To control the number of vehicle terminals that download at the same time, the remaining bandwidth of the download channel and the test data transmission rate of the vehicle terminal can be obtained first.
[0088] Optionally, an implementation method for an electronic device to obtain the remaining bandwidth of a download channel for downloading software upgrade files is as follows: the electronic device sends a request to obtain the remaining bandwidth of an OTA download channel to a content distribution server. Then, the content distribution server responds to the request sent by the electronic device to obtain the remaining bandwidth of the OTA download channel, and sends the total bandwidth of the OTA download channel and the currently used bandwidth of the OTA download channel to the electronic device. Next, the electronic device determines the remaining bandwidth of the OTA download channel based on the total bandwidth of the OTA download channel and the currently used bandwidth of the OTA download channel.
[0089] When the bandwidth utilization of the OTA download channel is too high, information congestion may occur, so it is necessary to keep the bandwidth utilization of the OTA download channel below 80%. Therefore, as shown in Table 1, the remaining bandwidth of the OTA download channel = the total bandwidth of the OTA download channel * 0.8 - the current bandwidth used by the OTA download channel.
[0090] Table 1
[0091]
[0092] Exemplary, combined Figure 1 , assuming that the total bandwidth of the download channel is 1000 megabits per second (Mbps) and the used bandwidth is 376 Mbps. In this case, the electronic device can determine that the remaining bandwidth of the download channel = 1000*0.8-376 = 424 Mbps.
[0093] Optionally, one implementation method for the electronic device to obtain the test data transmission rate of the vehicle terminal is: the OTA platform management device sends a data packet of test data to the vehicle terminal through the content distribution server, and then, when the vehicle terminal completes the download, the content distribution server sends a download completion prompt to the OTA platform management device. 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 vehicle terminal, the OTA platform management device sends the electronic device the time it takes for the vehicle terminal to download the data packet of test data (also referred to as the test data transmission time of the target vehicle terminal). Then, the electronic device can determine the test data transmission rate of the vehicle terminal by the ratio of the capacity of the above-mentioned test data packet to the time it takes for the vehicle terminal to download the test data packet.
[0094] Exemplary, combined Figure 1 , assuming that the capacity of the test data packet is 1 megabyte (MByte, M), and the time taken by the vehicle terminal to download the test data packet is 0.05 seconds. In this case, the electronic device can determine the test data transmission rate of the vehicle terminal = 1 ÷ 0.05 = 20Mbps.
[0095] S402: The electronic device determines the number of vehicle-mounted terminals that can be supported by the remaining bandwidth to simultaneously download software upgrade files based on the remaining bandwidth and the test data transmission rate of each vehicle-mounted terminal.
[0096] Optionally, the electronic device may determine an average test data transmission rate of vehicle terminals under multiple network standards according to the test data transmission rate of each vehicle terminal.
[0097] Optionally, as shown in Table 2 below, the average test data transmission rate of vehicle terminals under multiple network standards includes but is not limited to: the average test data transmission rate of vehicle terminals under the third-generation mobile communication technology (3rd-generation, 3G), the average test data transmission rate of vehicle terminals under the fourth-generation mobile communication technology (the 4th generation mobile communication technology, 4G), and the average test data transmission rate of vehicle terminals under the fifth-generation mobile communication technology (5th-generationmobile communication technology, 5G).
[0098] For example, in conjunction with Table 1, it is known that the average test data transmission rate of the terminal model AT-101 when using 5G is 128Mbps, the average test data transmission rate of the terminal model AT-102 when using 5G is 118Mbps, and the average test data transmission rate of the terminal model AT-103 when using 5G is 108Mbps. In this case, the electronic device can determine the average test data transmission rate of the vehicle-mounted terminal under 5G = (128 + 118 + 108) ÷ 3 = 118Mbps.
[0099] Table 2
[0100]
[0101] Optionally, the number of vehicle terminals that the remaining bandwidth supports for downloading software upgrade files at the same time can also be referred to as the number of vehicle terminals under the target network standard that the remaining bandwidth supports for downloading software upgrade files at the same time. The electronic device determines the ratio of the remaining bandwidth to the average test data transmission rate of the vehicle terminals under the target network standard as the number of vehicle terminals under the target network standard that the remaining bandwidth supports for downloading software upgrade files at the same time.
[0102] Optionally, the electronic device determines the number of vehicle terminals under the target network standard that can simultaneously download software upgrade files based on the remaining bandwidth and the average test data transmission rate of the vehicle terminals under the target network standard. One implementation method is: the electronic device can determine the number of vehicle terminals under the target network standard that can simultaneously download software upgrade files based on the remaining bandwidth as 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, in combination with Table 1 and Table 2, it is known that the average test data transmission rate of vehicle terminals under 5G is 118Mbps, and the remaining bandwidth of the OTA download channel is 424Mbps. The remaining bandwidth of the OTA download channel ÷ the average test data transmission rate of vehicle terminals under 5G = 424 ÷ 118 = 3.6. However, in actual applications, the number of vehicle terminals is generally an integer that cannot exceed 3.6. Therefore, the electronic device can determine that the number of 5G vehicle terminals that can simultaneously download software upgrade files with the remaining bandwidth is 3.
[0104] S403: The electronic device selects a target vehicle-mounted terminal that is in operation and has installed the software to be upgraded corresponding to the software upgrade file from at least one vehicle-mounted terminal, and obtains target data of the target vehicle-mounted terminal.
[0105] Among them, the target data includes: 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 at least one of 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 the running state may be a vehicle-mounted terminal in a working state, which can receive data normally.
[0107] Specifically, the progress of the target vehicle terminal downloading the software upgrade file may affect the normal operation of the target vehicle terminal. When the vehicle to which the target vehicle terminal belongs is traveling too fast, the target vehicle terminal downloading the software upgrade file may cause the target vehicle terminal to be unable to drive normally, thereby causing an accident.
[0108] Optionally, the software to be upgraded may be a file that needs to be upgraded in the target vehicle terminal. When the target vehicle terminal downloads the software upgrade file, the file to be upgraded may be updated.
[0109] Optionally, the network standard used by the target vehicle terminal includes, but is not limited to, 3G, 4G, and 5G. In addition, the network standards used by the vehicle terminal are different, and the corresponding test transmission rates are also different.
[0110] Specifically, the test data transmission time of the target vehicle terminal is the time it takes for the target vehicle terminal to download the test data packet. Because the test data transmission rates of the target vehicle terminals are different, the test data transmission time of the target vehicle terminals is also different. Giving priority to the target vehicle terminal with a shorter test data transmission time to download the software upgrade file can improve the overall upgrade efficiency.
[0111] Optionally, the electronic device may send the software upgrade file to the target vehicle terminal by controlling the content distribution server. The closer the distance between the target vehicle terminal and the content distribution server is, the better the data transmission effect is.
[0112] Optionally, an implementation method in which the electronic device selects a target vehicle terminal that is in operation and has installed the software to be upgraded corresponding to the software upgrade file from at least one vehicle terminal is as follows: the electronic device sends a request to obtain the target vehicle terminal to the OTA platform management device and the Internet of Vehicles platform management device respectively. The OTA platform management device responds to the request sent by the electronic device to obtain the target vehicle terminal, and sends the vehicle terminal information on which the software to be upgraded corresponding to the software upgrade file is installed to the electronic device. The Internet of Vehicles platform management device responds to the request sent by the electronic device to obtain the target vehicle terminal, and sends the vehicle terminal information in operation to the electronic device.
[0113] In summary, the electronic device can determine the target vehicle terminal that is in running state 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 corresponding to the software upgrade file installed and the vehicle terminal information that is in running state.
[0114] Exemplary, combined Figure 1 , assuming that the vehicle terminals installed 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, the 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 vehicle terminal belongs, one implementation method for the electronic device to obtain the target data of the target vehicle terminal is: after the electronic device determines the target vehicle terminal, it can send a request to the Internet of Vehicles platform management device to obtain the driving speed of the vehicle to which the target vehicle terminal belongs. The Internet of Vehicles platform management device responds to the request sent by the electronic device to obtain the driving speed of the vehicle to which the target vehicle terminal belongs, and sends the driving speed of the vehicle to which the target vehicle terminal belongs to the electronic device.
[0116] Exemplary, combined Figure 1, assuming that the electronic device needs to obtain the driving speed of the vehicle to which the vehicle-mounted terminal 105 belongs. In this case, the electronic device 101 can send a request to the Internet of Vehicles platform management device 104 to obtain the driving speed of the vehicle to which the vehicle-mounted terminal 105 belongs. The Internet of Vehicles platform management device 104 can respond to the request sent by the electronic device 101 to obtain the driving speed of the vehicle to which the vehicle-mounted terminal 105 belongs, and query and determine that the driving speed of the vehicle to which the vehicle-mounted terminal 105 belongs is 70 kilometers per hour according to the corresponding number recorded in the Internet of Vehicles platform by the vehicle-mounted terminal 105. Then, the Internet of Vehicles platform management device 104 sends the driving speed of the vehicle to which the vehicle-mounted terminal 105 belongs to the electronic device 101. In summary, the electronic device 101 can determine that the driving speed of the vehicle to which the vehicle-mounted terminal 105 belongs is 70 kilometers per hour.
[0117] Optionally, the case where the target data includes the network standard used by the target vehicle terminal is similar to the method of obtaining the driving speed of the vehicle to which the target vehicle terminal belongs. The specific acquisition process can refer to the method of obtaining the driving speed, which will not be repeated here.
[0118] Optionally, the specific implementation process of the electronic device obtaining the test data transmission duration of the target vehicle-mounted terminal can refer to the specific description in S401, which will not be repeated here.
[0119] Optionally, when the target data includes the distance between the target vehicle terminal and the content distribution server for distributing software upgrade files, one implementation method for the electronic device to obtain the target data of the target vehicle terminal is: the electronic device sends a request for obtaining the location information of the target vehicle terminal to the vehicle networking platform management device. The vehicle networking platform management device responds to the request for obtaining the location information of the target vehicle terminal sent by 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, the electronic device can determine the distance between the target vehicle terminal and the content distribution server for distributing 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 there are multiple content distribution servers near the target vehicle terminal, the nearest content distribution server is used as the distance between the target vehicle terminal and the content distribution server for distributing software upgrade files.
[0121] Exemplary, combined Figure 1, assuming that the target vehicle-mounted terminal is the vehicle-mounted terminal 105. In this case, the electronic device 101 sends a request to the vehicle networking platform management device 104 to obtain the location information of the vehicle-mounted terminal 105. The vehicle networking platform management device 104 responds to the request for obtaining the location information of the vehicle-mounted terminal 105 sent by the electronic device 101, and sends the location information of the vehicle-mounted terminal 105 and the location information of the content distribution server 102 near the vehicle-mounted terminal 105 to the electronic device. Among them, the location information of the vehicle-mounted terminal 105 is (100° north latitude, 100° east longitude), and the location information of the content distribution server 102 is (101° north latitude, 101° east longitude. Then, the electronic device 101 can determine the distance between the vehicle-mounted terminal 105 and the content distribution server 102 used to distribute software upgrade files by using the two-point distance formula.
[0122] S404: The electronic device determines an upgrade strategy for the software to be upgraded in the target vehicle terminal according to 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, the electronic device determines the upgrade strategy of the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data. One implementation method is: the electronic device can select a first vehicle terminal that is less than or equal to the number of vehicle terminals from the target vehicle terminals, and determine the actual data transmission rate of the target vehicle terminal according to the driving speed of the vehicle to which the target vehicle terminal belongs. In summary, the electronic device can determine the upgrade strategy of 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.
[0124] Optionally, when the target data includes: the network format used by the target vehicle terminal, the electronic device determines the upgrade strategy of the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data. One implementation method is: the electronic device can select a second vehicle terminal that is less than or equal to the number of vehicle terminals from the target vehicle terminals, and determine the order in which the second vehicle terminal downloads the software upgrade file according to the network transmission rate from fast to slow. In summary, the electronic device can determine the upgrade strategy of the software to be upgraded in the target vehicle terminal as: sending the software upgrade file to the second vehicle terminal in sequence according to the first preset order.
[0125] Optionally, when the target data includes: the test data transmission duration of the target vehicle terminal, the electronic device determines the upgrade strategy of the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data. One implementation method is: the electronic device can select a third vehicle terminal that is less than or equal to the number of vehicle terminals from the target vehicle terminals, and determine the order in which the third vehicle terminal downloads the software upgrade file in the order of the test data transmission duration from small to large. In summary, the electronic device can determine the upgrade strategy of the software to be upgraded in the target vehicle terminal as: sending the software upgrade file to the third vehicle terminal in sequence according to the second preset order.
[0126] Optionally, when the target data includes: the distance between the target vehicle terminal and the content distribution server for distributing software upgrade files, the electronic device determines the upgrade strategy of the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data. One implementation method is: the electronic device can select a fourth vehicle terminal that is less than or equal to the number of vehicle terminals from the target vehicle terminals, and determine the order in which the fourth vehicle terminal downloads the software upgrade file in the order of the distance between the target vehicle terminal and the content distribution server for distributing software upgrade files from small to large. In summary, the electronic device determines the upgrade strategy of the software to be upgraded in the target vehicle terminal as follows: sending the software upgrade file to the fourth vehicle terminal in sequence according to the third preset order.
[0127] In some embodiments, in combination 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, in the above S404, the method for the electronic device to determine the upgrade strategy of the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data specifically includes: S501-S503.
[0128] S501. The electronic device selects a first vehicle-mounted terminal whose number is less than or equal to the number of vehicle-mounted terminals from the target vehicle-mounted terminals.
[0129] Specifically, the number of vehicle terminals that the OTA download channel can support simultaneously is limited, so it is necessary to select a number that is less than or equal to the number of vehicle terminals that the remaining bandwidth of the OTA download channel can support downloading at the same time. This ensures that the OTA download channel will not be blocked due to multiple vehicle terminals downloading at the same time.
[0130] Exemplary, combined Figure 1 , assuming that the number of vehicle-mounted terminals that can be simultaneously supported by the remaining bandwidth of the OTA download channel is 5, and the number of target vehicle-mounted terminals is 10. In this case, the 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 an actual data transmission rate of the target vehicle-mounted terminal according to the driving speed of the vehicle to which the target vehicle-mounted terminal belongs.
[0132] 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-mounted terminal may be: the actual data transmission rate of the target vehicle-mounted terminal=the test data transmission rate of the target vehicle-mounted terminal*a preset actual data transmission rate coefficient.
[0134] Optionally, as shown in Table 3, the electronic device may preset a corresponding list of the driving speed of the vehicle to which the target vehicle-mounted terminal belongs and the preset actual data transmission rate coefficient according to actual conditions.
[0135] Table 3
[0136] Driving speed (km / h) Preset actual data transfer rate coefficient 0 100% (0,30] 80% (30,60] 50% (60,∞) 0%
[0137] Exemplary, combined Figure 1 , it is assumed that the vehicle terminal 105 is the target vehicle terminal, the driving speed of the vehicle to which the vehicle terminal 105 belongs is 40 kilometers per hour, and the test data transmission rate of the vehicle terminal 105 is 100Mbps. In this case, the electronic device can determine that the actual data transmission rate of the vehicle terminal 105 = 100*50% = 50Mbps.
[0138] S503: The electronic device determines that the upgrade strategy for the software to be upgraded in the target vehicle terminal is: sending the software upgrade file to the first vehicle terminal at the actual data transmission rate of the target vehicle terminal.
[0139] Specifically, when the software to be upgraded in the target vehicle terminal is being upgraded, it may affect the intelligent driving function of the vehicle to which the target vehicle terminal belongs. The higher the download speed, the greater the possibility of the impact, thereby causing a safety accident to the vehicle to which the target vehicle terminal belongs. Therefore, in order to avoid a safety accident to which the target vehicle terminal belongs due to the upgrade of the software to be upgraded during the process of the content distribution server sending the software upgrade file to the first vehicle terminal, the electronic device needs to actively reduce the actual data transmission rate or even suspend downloading when the vehicle to which the target vehicle terminal belongs is traveling at an excessively high speed.
[0140] Exemplary, combined Figure 1, assuming that the electronic device 101 can select 5 vehicle-mounted terminals from the target vehicle-mounted terminals as the first vehicle-mounted terminals, and can determine that the actual data transmission rate of the first vehicle-mounted terminal is 50Mbps, and the vehicle-mounted terminal 105 is one of the first vehicle-mounted terminals. In this case, the electronic device 101 can send a download instruction to the content distribution server 102. The content distribution server 102 responds to the download instruction sent by the electronic device 101 and sends the software upgrade file to the vehicle-mounted terminal 105 at an actual data transmission rate of 50Mbps.
[0141] In some embodiments, in combination Figure 5 ,like Figure 6 As shown, when the target data includes: the network format used by the target vehicle terminal, in the above S404, the method for the electronic device to determine the upgrade strategy of the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data specifically includes: S601-S602.
[0142] S601. The electronic device selects a second vehicle-mounted terminal whose number is less than or equal to the number of vehicle-mounted terminals from target vehicle-mounted terminals under the same network standard.
[0143] Optionally, the specific description of the electronic device selecting a second vehicle-mounted terminal that is less than or equal to the number of vehicle-mounted terminals from the target vehicle-mounted terminals under the same network standard is similar to the specific description of the electronic device selecting a first vehicle-mounted terminal that is less than or equal to the number of vehicle-mounted terminals from the target vehicle-mounted terminals in S501, and is not repeated here.
[0144] S602: The electronic device determines that the upgrade strategy for the software to be upgraded in the target vehicle terminal is: sending software upgrade files to the second vehicle terminal in sequence according to a first preset order.
[0145] Among them, the first preset order is the order of network transmission rates of the network standards used by the target vehicle-mounted terminal from fast to slow.
[0146] Optionally, the network standard used by the target vehicle terminal includes but is not limited to: 3G, 4G, 5G. The electronic device can determine the download order of different target vehicle terminals by judging the network transmission rate (also known as the test data transmission rate) of the target vehicle terminal under different network standards. The electronic device can preferably select the target terminal under the network standard with a faster network transmission rate for software upgrade, thereby improving the overall upgrade efficiency.
[0147] Exemplary, combined Figure 1 , assuming that 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. In this case, the electronic device 101 can determine to preferably select the target vehicle terminal under 5G for software upgrade.
[0148] In some embodiments, in combination Figure 6 ,like Figure 7 As shown, when the target data includes: the test data transmission duration of the target vehicle terminal, in the above S404, the method for the electronic device to determine the upgrade strategy of the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data specifically includes: S701-S702.
[0149] S701. The electronic device selects a third vehicle-mounted terminal whose number is less than or equal to the number of vehicle-mounted terminals from the target vehicle-mounted terminals with the same test data transmission duration.
[0150] Optionally, the specific description of the electronic device selecting a third vehicle-mounted terminal that is less than or equal to the number of vehicle-mounted terminals from the target vehicle-mounted terminals under the same network standard is similar to the specific description of the electronic device selecting a first vehicle-mounted terminal that is less than or equal to the number of vehicle-mounted terminals from the target vehicle-mounted terminals in S501, and is not repeated here.
[0151] S702: The electronic device determines that the upgrade strategy for the software to be upgraded in the target vehicle terminal is: sending software upgrade files to the third vehicle terminal in sequence according to a second preset order.
[0152] Among them, the second preset order is the order of the test data transmission time of the target vehicle-mounted terminal from small to large.
[0153] Optionally, when the target data includes: the test data transmission time of the target vehicle terminal, the electronic device can determine the order in which the target vehicle terminal downloads the software upgrade file by judging the test data transmission time. By preferentially completing the software update of the target vehicle terminal with a shorter test data transmission time, information congestion in the download channel is avoided, thereby improving the overall upgrade efficiency of the target vehicle terminal software to be upgraded.
[0154] In some embodiments, in combination Figure 7 ,like Figure 8 As shown, when the target data includes: the distance between the target vehicle terminal and the content distribution server, in the above S404, the method for the electronic device to determine the upgrade strategy of the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data specifically includes: S801-S802.
[0155] S801. The electronic device selects a fourth vehicle-mounted terminal from the target vehicle-mounted terminals whose distances from the same target vehicle-mounted terminal to the content distribution server are less than or equal to the number of vehicle-mounted terminals.
[0156] Optionally, the specific description of the electronic device selecting a fourth vehicle-mounted terminal from the target vehicle-mounted terminals whose distances from the same target vehicle-mounted terminal to the content distribution server are less than or equal to the number of vehicle-mounted terminals is similar to the specific description of the electronic device selecting a first vehicle-mounted terminal from the target vehicle-mounted terminals in S501, and is not repeated here.
[0157] S802: The electronic device determines that the upgrade strategy for the software to be upgraded in the target vehicle terminal is: sending software upgrade files to the fourth vehicle terminal in sequence according to a third preset sequence.
[0158] The third preset order is the order of the distance between the target vehicle terminal and the content distribution server from small to large.
[0159] Optionally, the electronic device can send software upgrade files to the fourth vehicle terminal in order of the distance between the target vehicle terminal and the content distribution server from small to large. The target vehicle terminal that is closer to the content distribution server can better receive the software upgrade file sent by the content distribution server, complete the download task faster, and is not likely to cause a backlog of download tasks. Therefore, by preferentially selecting the target vehicle terminal that is closer to the content distribution server, the overall upgrade efficiency of the target vehicle terminal can be improved.
[0160] In some embodiments, in combination Figure 8 ,like Fig. 9 As shown, after determining the upgrade strategy of the software to be upgraded in the target vehicle terminal, the software upgrade method further includes: S901-S903.
[0161] S901. The electronic device sends a request to download a software upgrade file to a target vehicle terminal.
[0162] Specifically, when the electronic device determines that the software to be upgraded in the target vehicle terminal needs to be upgraded, it needs to 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, the electronic device will control the content distribution service to send the software upgrade file to the target vehicle terminal.
[0163] Exemplary, combined Figure 1 , assuming that the vehicle terminal 105 is the target vehicle terminal. After determining the upgrade strategy of the software to be upgraded in the target vehicle terminal, 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-mounted terminal indicating that the target vehicle-mounted terminal agrees to download the software upgrade file.
[0165] Specifically, the electronic device sends a request to the target vehicle terminal to download the software upgrade file. Then, the driver of the vehicle to which the target vehicle terminal belongs can perform an operation on the target vehicle terminal to agree to download the software upgrade file. Correspondingly, the target vehicle terminal responds to the operation of the driver of the vehicle to which the target vehicle terminal belongs and sends a response message to the electronic device to agree to download the software upgrade file.
[0166] S903: The electronic device controls the content distribution server to transmit the software upgrade file to the target vehicle terminal according to the upgrade strategy.
[0167] Specifically, when the electronic device receives the response message sent by 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 strategy, thereby controlling the content distribution server to transmit the software upgrade file to the target vehicle terminal according to the upgrade strategy.
[0168] Optionally, when 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 duration of the next upgrade based on the OTA download data report sent by the target vehicle terminal. Then, the electronic device sends a reminder message to the OTA platform management device to remind the OTA platform management device to select a new batch of target vehicle terminals that need to download software upgrade files.
[0169] In some embodiments, Fig.10 FIG. 1 shows an overall flow chart of a software upgrade method provided by an embodiment of the present application. Fig.10 As shown, the processing strategy method provided in the embodiment of the present application includes: S1001-S1009.
[0170] S1001. The electronic device obtains the remaining bandwidth of a download channel for downloading software upgrade files and a test data transmission rate of each vehicle-mounted terminal in at least one vehicle-mounted terminal connected to the download channel.
[0171] Combination Figure 4 For the description of the electronic device obtaining the remaining bandwidth of the download channel for downloading software upgrade files and the test data transmission rate of each vehicle terminal in at least one vehicle terminal connected to the download channel, please refer to the relevant description of S401, which will not be repeated here.
[0172] S1002. The electronic device determines the number of vehicle-mounted terminals that can be supported by the remaining bandwidth to simultaneously download software upgrade files based on the remaining bandwidth and the test data transmission rate of each vehicle-mounted terminal.
[0173] Combination Figure 4 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. For details, please refer to the relevant description of S402, which will not be repeated here.
[0174] S1003: The electronic device selects a target vehicle-mounted terminal that is in operation and has installed the software to be upgraded corresponding to the software upgrade file from at least one vehicle-mounted terminal, and obtains target data of the target vehicle-mounted terminal.
[0175] Combination Figure 4 The electronic device selects a target vehicle-mounted terminal that is in operation and has installed the software to be upgraded corresponding to the software upgrade file from at least one vehicle-mounted terminal, and obtains the relevant description of the target data of the target vehicle-mounted terminal. Please refer to the relevant description of S403, which will not be repeated here.
[0176] S1004: The electronic device determines an upgrade strategy for the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data.
[0177] Combination Figure 4 The electronic device determines the upgrade strategy of the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data. For the description of S404, reference may be made to the description of S404, which will not be repeated here.
[0178] S1005: The electronic device sends a request to download a software upgrade file to the target vehicle terminal according to the upgrade policy to be upgraded in the target vehicle terminal.
[0179] Combination Fig. 9 For the description of the electronic device sending 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, please refer to the description of S901, which will not be repeated here.
[0180] S1006. The electronic device receives a response message sent by the target vehicle-mounted terminal indicating that the target vehicle-mounted terminal agrees to download the software upgrade file.
[0181] Combination Fig. 9 For the relevant description of the electronic device receiving the response message sent by the target vehicle terminal agreeing to download the software upgrade file, please refer to the relevant description of S902, which will not be repeated here.
[0182] S1007: The electronic device controls the content distribution server to transmit the software upgrade file to the target vehicle terminal according to the upgrade strategy.
[0183] Combination Fig. 9For the description of the electronic device controlling the content distribution server to transmit the software upgrade file to the target vehicle terminal according to the upgrade strategy, please refer to the description of S903, which will not be repeated here.
[0184] S1008: The electronic device obtains an upgrade interval.
[0185] Combination Fig. 9 For the description of the interval time for the electronic device to obtain the upgrade, please refer to the relevant description of S903, which will not be repeated here.
[0186] S1009. The electronic device periodically obtains the vehicle terminal to be upgraded that is installed with the software upgrade file according to the upgrade interval.
[0187] Combination Fig. 9 For the description of the electronic device controlling the content distribution server to transmit the software upgrade file to the target vehicle terminal according to the upgrade strategy, please refer to the description of S903, which will not be repeated here.
[0188] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0189] The embodiment of the present application can divide the functional modules of the software upgrade device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0190] like Fig.11 The figure is a schematic diagram of the structure of a software upgrade device provided in an embodiment of the present application. The software upgrade device can be used to execute Figure 4-Figure 9 The software upgrade method shown. Fig.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 for downloading the software upgrade file and the test data transmission rate of each vehicle-mounted terminal in at least one vehicle-mounted terminal connected to the download channel; the determination unit 1102 is used to determine the number of vehicle-mounted terminals that can simultaneously download the software upgrade file supported by the remaining bandwidth based on the remaining bandwidth and the test data transmission rate of each vehicle-mounted terminal; the acquisition unit 1101 is also used to select a target vehicle-mounted terminal that is in a running state and has installed the software to be upgraded corresponding to the software upgrade file from at least one vehicle-mounted terminal, and acquire the target data of the target vehicle-mounted terminal; the target data includes: at least one of the driving speed of the vehicle to which the target vehicle-mounted terminal belongs, the network format 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; the determination unit 1102 is used to determine the upgrade strategy for the software to be upgraded in the target vehicle-mounted terminal based on the number of vehicle-mounted 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 determination unit 1102 is specifically used to: select a first vehicle terminal from the target vehicle terminals whose number is less than or equal to that of the vehicle terminals; determine the actual data transmission rate of the target vehicle terminal according to 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; determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as: send 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 determination unit 1102 is specifically used to: select a second vehicle terminal that is less than or equal to the number of vehicle terminals from the target vehicle terminals under the same network standard; determine the upgrade strategy for the software to be upgraded in the target vehicle terminal as: 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 rates of the network standard used by the target vehicle terminal from fast to slow.
[0194] Optionally, when the target data includes: the test data transmission duration of the target vehicle terminal, the determination unit 1102 is specifically used to: select a third vehicle terminal whose number is less than or equal to the number of vehicle terminals from the target vehicle terminals with the same test data transmission duration; determine that the upgrade strategy for the software to be upgraded in the target vehicle terminal is: sending the software upgrade file 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 small to large.
[0195] Optionally, when the target data includes: the distance between the target vehicle terminal and the content distribution server, the determination unit 1102 is specifically used to: select a fourth vehicle terminal whose number is less than or equal to the number of vehicle terminals from the target vehicle terminals whose distance between the same target vehicle terminal and 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: 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 of the distance between the target vehicle terminal and the content distribution server from small to large.
[0196] Optionally, after determining the upgrade strategy for 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 acquiring unit 1101 is also used to receive a response message sent by the target vehicle terminal agreeing to download the software upgrade file; 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] An embodiment of the present application further provides a computer-readable storage medium, which includes computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer executes the software upgrade method provided in the above embodiment.
[0198] The embodiment of the present application also provides a computer program, which 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 embodiment.
[0199] Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.
[0200] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned 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 several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0202] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially 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, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk.
[0203] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A software upgrade method, characterized in that: include: Acquire the remaining bandwidth of a download channel for downloading software upgrade files and the test data transmission rate of each vehicle-mounted terminal in at least one vehicle-mounted terminal connected to the download channel; Determine the number of vehicle terminals that can simultaneously download the software upgrade file supported by the remaining bandwidth according to the remaining bandwidth and the test data transmission rate of each vehicle terminal; A target vehicle-mounted terminal in operation and installed with the software to be upgraded corresponding to the software upgrade file is selected from the at least one vehicle-mounted terminal, and target data of the target vehicle-mounted terminal is obtained; 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 time 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; An upgrade strategy for the software to be upgraded in the target vehicle terminal is determined according to the number of vehicle terminals and the target data.
2. The software upgrade method according to claim 1, characterized in that: When the target data includes: the driving speed of the vehicle to which the target vehicle terminal belongs, the step of determining the upgrade strategy of the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data includes: Selecting a first vehicle-mounted terminal whose number is less than or equal to the number of the vehicle-mounted terminals from the target vehicle-mounted terminals; Determine the actual data transmission rate of the target vehicle terminal according to 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; The upgrade strategy for the software to be upgraded in the target vehicle terminal is determined as follows: sending the software upgrade file to the first vehicle terminal at an actual data transmission rate of the target vehicle terminal.
3. The software upgrade method according to claim 1, characterized in that: When the target data includes: a network standard used by the target vehicle-mounted terminal, determining the upgrade strategy of the software to be upgraded in the target vehicle-mounted terminal according to the number of vehicle-mounted terminals and the target data includes: Selecting second vehicle-mounted terminals whose number is less than or equal to the number of the vehicle-mounted terminals from the target vehicle-mounted terminals under the same network standard; The upgrade strategy for the software to be upgraded in the target vehicle terminal is determined as follows: sending 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 rates of the network standard used by the target vehicle terminal from fast to slow.
4. The software upgrade method according to claim 1, characterized in that: When the target data includes: the test data transmission duration of the target vehicle-mounted terminal, determining the upgrade strategy of the software to be upgraded in the target vehicle-mounted terminal according to the number of vehicle-mounted terminals and the target data includes: Selecting third vehicle-mounted terminals whose number is less than or equal to the number of the vehicle-mounted terminals from the target vehicle-mounted terminals with the same test data transmission duration; 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 a second preset order; the second preset order is the order of the test data transmission time of the target vehicle terminal from small to large.
5. The software upgrade method according to claim 1, characterized in that: When the target data includes: the distance between the target vehicle terminal and the content distribution server, determining the upgrade strategy of the software to be upgraded in the target vehicle terminal according to the number of vehicle terminals and the target data includes: Selecting a fourth vehicle-mounted terminal from the target vehicle-mounted terminals whose distance from the same target vehicle-mounted terminal to the content distribution server is less than or equal to the number of the vehicle-mounted 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 fourth vehicle terminal in sequence according to a third preset order; the third preset order is the order of the distance between the target vehicle terminal and the content distribution server from small to large.
6. The software upgrade method according to any one of claims 1 to 5, characterized in that: After determining the upgrade strategy of the software to be upgraded in the target vehicle terminal, the method further includes: Sending a request to the target vehicle terminal to download the software upgrade file; Receiving a response message sent by the target vehicle-mounted 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.
7. A software upgrade device, characterized in that: include: Get unit and determine unit; The acquisition unit is used to acquire the remaining bandwidth of the download channel for downloading the software upgrade file and the test data transmission rate of each vehicle-mounted terminal in at least one vehicle-mounted terminal connected to the download channel; The determining unit is used to determine the number of vehicle terminals that can be supported by the remaining bandwidth to simultaneously download the software upgrade file according to the remaining bandwidth and the test data transmission rate of each vehicle terminal; The acquisition unit is further used to select a target vehicle-mounted terminal that is in a running state and has installed the software to be upgraded corresponding to the software upgrade file 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: a driving speed of a vehicle to which the target vehicle-mounted terminal belongs, a network standard used by the target vehicle-mounted terminal, a test data transmission duration of the target vehicle-mounted terminal, and a distance between the target vehicle-mounted terminal and a content distribution server used to distribute the software upgrade file; An upgrade strategy for the software to be upgraded in the target vehicle terminal is determined according to the number of vehicle terminals and the target data.
8. The software upgrade device according to claim 7, characterized in that: When the target data includes: the driving speed of the vehicle to which the target vehicle-mounted terminal belongs, the determining unit is specifically configured to: Selecting a first vehicle-mounted terminal whose number is less than or equal to the number of the vehicle-mounted terminals from the target vehicle-mounted terminals; Determine the actual data transmission rate of the target vehicle terminal according to 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; The upgrade strategy for the software to be upgraded in the target vehicle terminal is determined as follows: sending the software upgrade file to the first vehicle terminal at an actual data transmission rate of the target vehicle terminal.
9. 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 through a bus; when the software upgrading device is running, the processor executes the computer execution instructions stored in the memory, so that the software upgrading device executes the software upgrading method as described in any one of claims 1-6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer is enabled to execute the software upgrading method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for remotely upgrading GPS vehicle-mounted terminals in batch mode
CN104811322A
Vehicle over-the-air OTA processing method and device
CN111726749A
Network node upgrading method and device and electronic equipment
CN112887146A
OTA upgrading method and device
CN113472884A
Updating method based on vehicle-mounted terminal program of Internet of Vehicles
CN115951912A