Vehicle software upgrading method and device, equipment and storage medium
By determining the number of wake-ups based on the maximum number of concurrent upgrades that can be accommodated by cloud devices and the number of vehicles upgraded at the current time, the number of vehicles that can be upgraded in chronological order, the poor user experience and cost waste caused by high concurrency are solved, and stable and reliable are achieved upgrade process and resource optimization.
Patent Information
- Application Number
- CN202411196821.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-03
AI Technical Summary
When the vehicle software is upgraded, the server cannot effectively respond to the high concurrency situation, resulting in poor user experience and the server is idle during the low concurrency period, resulting in waste of costs.
According to the maximum number of concurrent upgrades that can be accommodated by cloud devices and the number of vehicles upgraded at the current moment, determine the number of wake-ups, and wake up vehicles that meet the preset conditions in the list of vehicles to be upgraded in chronological order to perform OTA upgrades to ensure that the concurrent processing volume does not exceed the number of concurrent processing Maximum load-bearing capacity to avoid service latency and performance degradation.
By reasonably controlling the concurrency, ensure the stability and reliability of the upgrade process, reduce failures caused by concurrent conflicts, improve overall upgrade efficiency, optimize resource utilization, reduce network pressure, and reduce operational costs.
Smart Images

Figure CN119065691A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a vehicle software upgrade method, device, equipment and storage medium. Background Art
[0002] With the advancement of technology, cars are becoming more and more intelligent, and the software upgrades for vehicles are also becoming more intelligent. Over-the-Air Technology (OTA) remote download has gradually become a popular technology for vehicles. It is a technology that remotely manages mobile terminal devices and subscriber identity modules (SIM) data through the air interface of mobile communications. OTA can detect the upgrade of new vehicle systems online and complete the upgrade by downloading system upgrade packages through wireless networks or mobile networks.
[0003] In the prior art, when it is detected that the vehicle has an update or upgrade task, the user makes an appointment to set the upgrade time, or the user authorizes the immediate upgrade.
[0004] However, if the upgrade time selected by the user is relatively concentrated, the server cannot effectively cope with high concurrency, and immediate updates will also affect the user's use of the car, resulting in a poor user experience. Summary of the invention
[0005] The present application provides a vehicle software upgrade method, device, equipment and storage medium to solve the problem of how to achieve efficient vehicle software upgrade.
[0006] In a first aspect, the present application provides a vehicle software upgrade method, which is applied to a cloud device, and the method comprises:
[0007] Determine the number of vehicles that can be awakened at the current moment according to the maximum number of concurrent upgrades that the cloud device can accommodate and the number of vehicles that have been determined to be upgraded at the current moment, where the number of vehicles that can be awakened represents the number of concurrent upgrades that the cloud device can accommodate remaining at the current moment;
[0008] According to the wake-up quantity, vehicles meeting preset upgrade conditions in the list of vehicles to be upgraded are woken up in chronological order for OTA upgrade.
[0009] In combination with the first aspect, in some embodiments, before waking up the vehicles that meet the preset upgrade conditions in the list of vehicles to be upgraded in chronological order according to the number of vehicles that can be woken up for OTA upgrade, the method further includes:
[0010] According to the awakenable number, a target vehicle set is determined in the list of vehicles to be upgraded, wherein the target vehicle set includes vehicles to be upgraded whose number is equal to or less than the awakenable number, and the upgrade time corresponding to each vehicle to be upgraded is the current time;
[0011] Acquire vehicle information of each to-be-upgraded vehicle in the target vehicle set, wherein the vehicle information includes a vehicle status, and the vehicle status is used to indicate whether the vehicle is in use at the current moment;
[0012] For each vehicle to be upgraded in the target vehicle set, if the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not in use at the current moment, it is determined that the vehicle to be upgraded meets the preset upgrade condition.
[0013] In combination with the first aspect, in some embodiments, the vehicle information may further include an estimated vehicle usage time, and the method may further include:
[0014] For each to-be-upgraded vehicle in the target vehicle set, determining whether the estimated usage time of the vehicle is after the upgrade according to the upgrade duration of the to-be-upgraded vehicle;
[0015] Correspondingly, if the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not in use at the current moment, determining that the vehicle to be upgraded meets the preset upgrade condition includes:
[0016] If the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not used at the current moment and the estimated use time of the vehicle is after the upgrade, it is determined that the vehicle to be upgraded meets the preset upgrade condition.
[0017] In combination with the first aspect, in some embodiments, the method further includes:
[0018] If the number of vehicles to be upgraded in the target vehicle set is less than the number that can be awakened, then the vehicles to be upgraded are selected from the list of vehicles to be upgraded in chronological order and added to the target vehicle set until the number of vehicles to be upgraded in the target vehicle set is equal to the number that can be awakened, thereby obtaining a new target vehicle set.
[0019] In combination with the first aspect, in some embodiments, the method further includes:
[0020] For each vehicle to be upgraded in the target vehicle set, if the vehicle to be upgraded does not meet the preset upgrade condition, the upgrade time of the vehicle to be upgraded is postponed for a preset time period, and the list of vehicles to be upgraded is updated.
[0021] In combination with the first aspect, in some embodiments, the method further includes:
[0022] For each vehicle to be upgraded in the target vehicle set, if the vehicle to be upgraded is not upgraded within the upgrade period authorized by the user, the upgrade time of the vehicle to be upgraded is postponed to the upgrade period authorized by the user in the next upgrade cycle.
[0023] In combination with the first aspect, in some embodiments, determining the number of vehicles that can be awakened at the current moment according to the maximum number of concurrent upgrades that can be accommodated by the cloud device and the number of vehicles that have been determined to be upgraded at the current moment includes:
[0024] The difference between the maximum number of concurrent upgrades that can be accommodated and the number of vehicles is determined as the number that can be awakened at the current moment.
[0025] In a second aspect, the present application provides a vehicle software upgrade device, comprising:
[0026] A first determination module is used to determine the number of vehicles that can be awakened at the current moment according to the maximum number of concurrent upgrades that can be accommodated by the cloud device and the number of vehicles that have been determined to be upgraded at the current moment, wherein the number of vehicles that can be awakened represents the number of concurrent upgrades that can be accommodated by the cloud device at the current moment;
[0027] The upgrade module is used to wake up the vehicles that meet the preset upgrade conditions in the list of vehicles to be upgraded according to the wake-up quantity and in chronological order for OTA upgrade.
[0028] In conjunction with the second aspect, in some embodiments, the device further includes:
[0029] A second determination module is used to determine a target vehicle set in the list of vehicles to be upgraded according to the wakeable number, wherein the target vehicle set includes vehicles to be upgraded whose number is equal to or less than the wakeable number, and the upgrade time corresponding to each vehicle to be upgraded is the current time;
[0030] An acquisition module, used for acquiring vehicle information of each vehicle to be upgraded in the target vehicle set, wherein the vehicle information includes a vehicle status, and the vehicle status is used to indicate whether the vehicle is in use at the current moment;
[0031] The third determination module is used for, for each vehicle to be upgraded in the target vehicle set, if the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not in use at the current moment, determining that the vehicle to be upgraded meets the preset upgrade condition.
[0032] In conjunction with the second aspect, in some embodiments, the vehicle information may further include an estimated vehicle usage time, and the device may further include:
[0033] A fourth determination module is used to determine, for each to-be-upgraded vehicle in the target vehicle set, whether the estimated use time of the vehicle is after the upgrade according to the upgrade duration of the to-be-upgraded vehicle;
[0034] Accordingly, the third determination module includes:
[0035] The determination unit is configured to determine that the vehicle to be upgraded meets the preset upgrade condition if the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not used at the current moment and the estimated use time of the vehicle is after the upgrade.
[0036] In conjunction with the second aspect, in some embodiments, the apparatus further includes:
[0037] The updating module is used for selecting vehicles to be upgraded from the list of vehicles to be upgraded and adding them to the target vehicle set in chronological order if the number of vehicles to be upgraded in the target vehicle set is less than the number of vehicles that can be awakened, so as to obtain a new target vehicle set.
[0038] In conjunction with the second aspect, in some embodiments, the apparatus further includes:
[0039] The first postponement module is used for, for each vehicle to be upgraded in the target vehicle set, if the vehicle to be upgraded does not meet the preset upgrade condition, to postpone the upgrade time of the vehicle to be upgraded by a preset time length and update the list of vehicles to be upgraded.
[0040] In conjunction with the second aspect, in some embodiments, the apparatus further includes:
[0041] The second postponement module is used for, for each vehicle to be upgraded in the target vehicle set, if the vehicle to be upgraded is not upgraded within the upgrade period authorized by the user, to postpone the upgrade time of the vehicle to be upgraded to the upgrade period authorized by the user in the next upgrade cycle.
[0042] In conjunction with the second aspect, in some embodiments, the first determining module includes:
[0043] The determination unit is used to determine the difference between the maximum number of concurrent upgrades that can be accommodated and the number of vehicles as the number that can be awakened at the current moment.
[0044] In a third aspect, the present application provides a cloud device, comprising: a processor, and a memory and a communication interface communicatively connected to the processor;
[0045] The memory stores computer-executable instructions;
[0046] The processor executes the computer-executable instructions stored in the memory to implement the vehicle software upgrade method described in any one of the first aspects.
[0047] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the vehicle software upgrade method described in any one of the first aspects.
[0048] In a fifth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the vehicle software upgrade method described in any one of the first aspects.
[0049] The vehicle software upgrade method, device, equipment and storage medium provided by the present application determine the number of vehicles that can be awakened at the current moment according to the maximum number of concurrent upgrades that can be accommodated by the cloud device and the number of vehicles that have been determined to be upgraded at the current moment. According to the number of vehicles that can be awakened, the vehicles that meet the preset upgrade conditions are awakened in the list of vehicles to be upgraded in chronological order for OTA upgrade. By calculating and limiting the number of vehicles that can be set for automatic upgrades, it is ensured that the concurrent processing volume of the cloud service does not exceed its maximum carrying capacity at any given time. It helps to avoid service delays, interruptions or performance degradation caused by overload, ensures the stability and reliability of the upgrade process, and wakes up the vehicles to be upgraded in chronological order for upgrading, which helps to maintain an orderly upgrade queue. It can not only reduce upgrade failures caused by concurrent conflicts, but also ensure the orderly progress of the upgrade process, which is easy to track and manage. By reasonably controlling the concurrency, the pressure on the network can be effectively reduced, and the upgrade failures or delays caused by network congestion can be reduced. Improve the overall upgrade efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0051] Figure 1 A schematic diagram of the application system architecture of the vehicle software upgrade method provided in the embodiment of the present application;
[0052] Figure 2 A flowchart of a first embodiment of a vehicle software upgrade method provided in an embodiment of the present application;
[0053] Figure 3 A flowchart of a second embodiment of a vehicle software upgrade method provided in an embodiment of the present application;
[0054] Figure 4 A flowchart of a third embodiment of a vehicle software upgrade method provided in an embodiment of the present application;
[0055] Figure 5 A schematic diagram of the structure of a first embodiment of a vehicle software upgrade device provided in an embodiment of the present application;
[0056] Figure 6 A schematic diagram of the structure of a second embodiment of a vehicle software upgrade device provided in an embodiment of the present application;
[0057] Figure 7 A schematic diagram of the structure of a third embodiment of a vehicle software upgrade device provided in an embodiment of the present application;
[0058] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0059] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0061] With the advancement of technology, cars are becoming more and more intelligent, and the software upgrades for vehicles are also gradually becoming intelligent. OTA remote download has gradually become a popular technology for vehicles. It is a technology that remotely manages mobile terminal devices and SIM data through the air interface of mobile communications. OTA can detect the upgrade of the new system of the vehicle online and complete the upgrade by downloading the system upgrade package through a wireless network or a mobile network. In the prior art, when it is detected that the vehicle has an update and upgrade task, the user sets the upgrade time by appointment, or the user authorizes the immediate upgrade. However, during the OTA upgrade process, the upgraded vehicle will establish and maintain communication with the cloud, and continue to exchange information. For example, the cloud sends control instructions to the vehicle side, and the vehicle side reports the upgrade status, results, abnormalities and other data. If the upgrade time is concentrated at a certain moment, there will be a large number of uplink / downlink interaction instructions and server analysis work at that moment. To ensure the smooth upgrade of all vehicles, the server must have sufficient performance to receive and send all instructions, and complete the necessary analysis work in a very short time. However, the performance of the server is limited. In order to cope with high concurrency, additional servers need to be purchased / leased, resulting in increased operating costs. However, during low-concurrency periods, the server is idle, resulting in cost waste and poor user experience.
[0062] In view of the above problems, the present application provides a vehicle software upgrade method, device, equipment and storage medium, which realizes full utilization of the resources of cloud devices to complete efficient vehicle software upgrades. Specifically, the existing method for vehicle software upgrades can be to notify the user after the update is detected in the cloud, and the user can choose to upgrade immediately. The user cannot use the vehicle during the upgrade period, so the immediate upgrade method may cause inconvenience to the user. The user can also make an appointment for the upgrade, and make an appointment for an upgrade time with the vehicle computer. The upgrade will be carried out when the user's appointment time is reached. At that time, this method may cause the upgrade time of multiple vehicles to be at the same time, which will lead to a large number of uplink / downlink interaction instructions and server analysis work at this time, but the performance of the server is limited. In order to cope with high concurrency, additional servers need to be purchased / leased, resulting in increased operating costs. However, in the low concurrency period, the server is idle again, resulting in cost waste. Taking these issues into consideration, the inventor studied whether it is possible to determine the number of vehicles that can be awakened based on the maximum number of concurrent upgrades that the cloud device can accommodate and the number of vehicles that have been determined to be upgraded, and wake up the vehicles that can be upgraded in the list of vehicles to be upgraded according to the number of vehicles that can be awakened for upgrading, thereby ensuring the balance of resources and not affecting the user's vehicle use time. Based on this, the technical solution of this application is proposed.
[0063] Figure 1 A schematic diagram of the vehicle software upgrade method application system architecture provided in the embodiment of the present application, such as Figure 1As shown, the system includes a cloud-side OTA management module, a vehicle-side task download module, a vehicle-side user interaction module, a vehicle-side countdown module and a vehicle-side upgrade module, wherein the cloud-side OTA management module is used to create tasks, solve single-vehicle tasks, distribute tasks, and save vehicle-side main controller data; the vehicle-side task download module is used to request tasks and download software packages; the vehicle-side user interaction module is used to display task details, support user command input, and display installation status and results; the vehicle-side countdown module is used to receive the target upgrade time, and notify the upgrade module to start the upgrade when the countdown time is up; the vehicle-side upgrade module is used to control the vehicle main controller software flashing process.
[0064] Optionally, the cloud-based OTA management module pushes the upgrade task to the vehicle-side task download module, and the vehicle-side task download module automatically downloads the software package. After the download is complete, the vehicle-side user interaction module is notified to prompt the user that there is an updateable task, and guide the user to authorize the upgrade. The cloud-based OTA management module will compile a list of vehicles to be upgraded and group the vehicles to be upgraded by time periods. The cloud-based OTA management module calculates the maximum number of concurrent upgrades that can be accommodated based on the performance of the cloud device itself, and determines the number of vehicles that can be awakened based on the number of vehicles that are upgraded immediately and the number of vehicles that are scheduled to be upgraded set by the user. Then, the cloud-based OTA management module wakes up the vehicles in the list of vehicles to be upgraded that the user has set for free upgrades and that meet the upgrade conditions according to the number of vehicles that can be awakened.
[0065] This application does not specifically limit the form and type of the physical devices mentioned above.
[0066] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0067] Figure 2 A flow chart of a first embodiment of a vehicle software upgrade method provided in an embodiment of the present application, such as Figure 2 As shown, the method is applied to a cloud device and specifically includes:
[0068] S201: Determine the number of vehicles that can be awakened at the current moment according to the maximum number of concurrent upgrades that can be accommodated by the cloud device and the number of vehicles that have been determined to be upgraded at the current moment.
[0069] In this step, since the vehicle software upgrade can be set by the user as immediate upgrade, scheduled upgrade, and automatic upgrade, and the immediate upgrade and scheduled upgrade are upgrade times determined by the user, they have a higher priority. When the cloud device allocates upgrade time for vehicles that are automatically upgraded, it needs to be determined in combination with the number of vehicles that have been determined to be upgraded at each moment.
[0070] Specifically, in order to balance the cloud device resources and avoid network congestion during upgrades, the maximum number of concurrent upgrades that can be accommodated is calculated based on the performance of the cloud devices, and the list of vehicles to be upgraded is analyzed to obtain the number of vehicles in the list that have been determined to be upgraded at the current moment, where the vehicles that have been determined to be upgraded refer to the vehicles that the user has set to be upgraded immediately and scheduled to be upgraded at the current moment, so that the difference between the maximum number of concurrent upgrades that can be accommodated and the number of vehicles is determined as the number that can be woken up at the current moment.
[0071] It should be noted that the number of wake-up calls refers to the number of concurrent upgrades that the cloud device can accommodate at the current moment, that is, the number of vehicles that can be allocated for automatic upgrades.
[0072] S202: According to the number of vehicles that can be awakened, vehicles that meet preset upgrade conditions are awakened in the list of vehicles to be upgraded in chronological order for OTA upgrade.
[0073] In this step, after the number of vehicles that can be awakened is obtained by calculation, a corresponding number of vehicles in the list of vehicles to be upgraded can be awakened in chronological order for OTA upgrade.
[0074] Optionally, waking up the vehicle needs to meet preset upgrade conditions, that is, the vehicle is not in use and there is no plan to use the vehicle soon.
[0075] The vehicle software upgrade method provided in this embodiment determines the number of vehicles that can be awakened at the current moment according to the maximum number of concurrent upgrades that can be accommodated by the cloud device and the number of vehicles that have been determined to be upgraded at the current moment. According to the number of vehicles that can be awakened, the vehicles that meet the preset upgrade conditions are awakened in the list of vehicles to be upgraded in chronological order for OTA upgrade. By calculating and limiting the number of vehicles that can be set for automatic upgrades, it is ensured that the concurrent processing volume of the cloud service does not exceed its maximum carrying capacity at any given time. It helps to avoid service delays, interruptions or performance degradation caused by overload, ensures the stability and reliability of the upgrade process, and wakes up the vehicles to be upgraded in chronological order for upgrading, which helps to maintain an orderly upgrade queue. It can not only reduce upgrade failures caused by concurrent conflicts, but also ensure the orderly progress of the upgrade process, which is easy to track and manage. By reasonably controlling the concurrency, the pressure on the network can be effectively reduced, and the upgrade failures or delays caused by network congestion can be reduced. Improve the overall upgrade efficiency.
[0076] Figure 3 A flow chart of a second embodiment of the vehicle software upgrade method provided in the present application is shown in FIG. Figure 3 As shown, based on the above embodiment, before step S202, the method further includes:
[0077] S301: Determine a target vehicle set in the list of vehicles to be upgraded according to the number of vehicles that can be awakened.
[0078] S302: Obtain vehicle information of each vehicle to be upgraded in the target vehicle set.
[0079] S303: For each vehicle to be upgraded in the target vehicle set, if the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not in use at the current moment, it is determined that the vehicle to be upgraded meets the preset upgrade condition.
[0080] After determining the number of vehicles that can be awakened, it is necessary to determine whether the vehicles to be upgraded meet the upgrade conditions. Then, the vehicles that can be awakened are selected from the list of vehicles to be upgraded in chronological order to form a target vehicle set, and then the vehicle information of each vehicle in the target vehicle set is obtained. The vehicle information includes the vehicle status, which is used to indicate whether the vehicle is in use at the current moment. For each vehicle to be upgraded, if the vehicle status of the vehicle indicates that the vehicle is not in use at the current moment, it can be determined that the vehicle meets the preset upgrade conditions.
[0081] Optionally, the vehicle status obtained may be in any one or more of the following forms:
[0082] Vehicle driving status, vehicle speed, vehicle gear, charging status, vehicle high voltage status, door lock status, seat sensor status, etc.
[0083] 1. Vehicle driving status: If the vehicle is in a driving state (such as "driving" or "drive mode"), then it is obvious that the vehicle is being used.
[0084] 2. Vehicle speed: If the vehicle speed is greater than zero (within a certain error range), it indicates that the vehicle is moving and is likely to be in use. However, it is also necessary to pay attention to the situation when the engine is idling or coasting at low speed when it is stationary. At this time, although the speed is close to zero, the vehicle may still be in use.
[0085] 3. Vehicle gear position: Gear position information is also an important reference for determining whether the vehicle is in use. If the gear position is not in "park" (P) or "neutral" (N), but in "forward" (D), "reverse" (R) or other driving gear positions, then the vehicle is likely to be driven.
[0086] 4. Charging status: If the vehicle is charging and is in other non-use states (such as doors closed, engine off, etc.), it may indicate that the vehicle is not currently in use.
[0087] 5. Vehicle high voltage status: If the high voltage system is activated, the vehicle is charging, driving, or preparing to drive.
[0088] 6. Door lock status: The door lock status can indirectly reflect the vehicle usage. If all doors are locked and not opened for a long time, it may indicate that the vehicle is not currently in use. However, this also needs to take into account that the owner may have only left the vehicle for a short time without turning off the engine, so this status needs to be judged in conjunction with other statuses.
[0089] 7. Seat sensor status: The seat sensor can detect whether there is a passenger in the seat. If the seat sensor shows that there is a passenger and other vehicle systems are also active (such as engine running, audio playing, etc.), the vehicle is being used.
[0090] The above data can be obtained in the following ways:
[0091] 1. Vehicle driving status: obtained through the on-board diagnostics (OBD) system, vehicle application or third-party management platform.
[0092] 2. Vehicle speed: obtained through the OBD system, vehicle application or vehicle dashboard display.
[0093] 3. Vehicle gear position: obtained through the OBD system, vehicle application or vehicle dashboard display.
[0094] 4. Charging status: obtained through the in-vehicle application, charging pile display or charging gun indicator light.
[0095] 5. Vehicle high-voltage status: usually needs to be obtained through professional diagnostic tools or systems.
[0096] 6. Door lock status: obtained through the vehicle's central control system, remote control key or physical inspection.
[0097] 7. Seat sensor status: obtained through the vehicle application (if supported) or physical inspection. Optionally, the vehicle information may also include the estimated vehicle usage time, and the method may further include:
[0098] S304: For each to-be-upgraded vehicle in the target vehicle set, determine whether the estimated use time of the vehicle is after the upgrade according to the upgrade duration of the to-be-upgraded vehicle.
[0099] When determining whether the vehicle to be upgraded meets the preset upgrade conditions, it is also possible to determine whether the vehicle is scheduled to be used soon, that is, to determine whether the estimated use time of the vehicle is after the upgrade.
[0100] Specifically, to determine whether a vehicle is scheduled to be used soon, one or more of the following methods can be used:
[0101] 1. The user turns on the air conditioning scheduled operation: If the user turns on the air conditioning scheduled operation function and sets a time point in the future, it can be inferred that the user plans to use the vehicle before or after that time point.
[0102] 2. The user turns on the travel reservation function: Turning on the travel reservation function means that the user has planned the future itinerary and hopes that the vehicle can run according to the predetermined plan, which clearly indicates that the vehicle is scheduled to be used soon.
[0103] 3. The user turns on the scheduled charging function: If the user turns on the scheduled charging function, this usually means that the user expects to need to use the vehicle at a certain time in the future and wants to ensure that the vehicle has sufficient power to meet driving needs.
[0104] After determining that the vehicle is about to be used through any of the above methods, the specific time when the user uses the vehicle is estimated based on the time point set by the user in the above method, and the time required for the vehicle to be upgraded is calculated, and then the estimated use time of the vehicle is determined by comparison to determine whether it is after the upgrade.
[0105] Optionally, if it is determined that the estimated usage time of the vehicle is after the upgrade, it means that future travel will not affect the vehicle upgrade this time, so it is determined that the vehicle to be upgraded meets the preset upgrade conditions.
[0106] It should be noted that whether the vehicle to be upgraded meets the preset upgrade condition may be that the vehicle to be upgraded is not in use or is not planned to be used soon, or that the vehicle to be upgraded is not in use and is not planned to be used soon. This embodiment of the application does not make specific limitations.
[0107] Optionally, the time required for the vehicle to be upgraded can be calculated based on the size of the task package and the writing rate of the upgrade. The specific calculation process is a common technical means in this field and will not be repeated here.
[0108] The vehicle software upgrade method provided in this embodiment determines a target vehicle set in the list of vehicles to be upgraded according to the number of wake-up devices, obtains vehicle information of each vehicle to be upgraded in the target vehicle set, and for each vehicle to be upgraded in the target vehicle set, if the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not in use at the current moment, then it is determined that the vehicle to be upgraded meets the preset upgrade conditions, and for each vehicle to be upgraded in the target vehicle set, according to the duration of the upgrade of the vehicle to be upgraded, it is determined whether the estimated use time of the vehicle is after the upgrade, and if the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not in use at the current moment and the estimated use time of the vehicle is after the upgrade, then it is determined that the vehicle to be upgraded meets the preset upgrade conditions. Through the above method, user interference is reduced, upgrade efficiency is improved, driving safety is guaranteed, resource utilization is optimized, and user trust and satisfaction are enhanced.
[0109] Figure 4 A flow chart of a third embodiment of the vehicle software upgrade method provided in the present application is shown in FIG. Figure 4 As shown, based on the above embodiments, the method further includes:
[0110] S401: If the number of vehicles to be upgraded in the target vehicle set is less than the number of vehicles that can be awakened, then select vehicles to be upgraded from the list of vehicles to be upgraded in chronological order and add them to the target vehicle set until the number of vehicles to be upgraded in the target vehicle set is equal to the number of vehicles that can be awakened, thereby obtaining a new target vehicle set.
[0111] In order to balance the resources of cloud devices, the number of vehicles to be upgraded and the number of vehicles that can be awakened in the target vehicle set are compared. If the number of vehicles to be upgraded in the target vehicle set is less than the number that can be awakened, it means that there are fewer vehicles to be automatically upgraded at the current moment and there are surplus resources in the cloud device. In order not to waste cloud device resources, vehicles to be upgraded are continuously selected from the vehicles to be upgraded and added to the target vehicle set for upgrading until the number of vehicles to be upgraded in the target vehicle set is equal to the number that can be awakened, and a new target vehicle set is obtained, and then it is judged whether each vehicle to be upgraded in the new target vehicle set meets the preset upgrade conditions.
[0112] S402: For each vehicle to be upgraded in the target vehicle set, if the vehicle to be upgraded does not meet the preset upgrade conditions, the upgrade time of the vehicle to be upgraded is postponed by a preset time, and the list of vehicles to be upgraded is updated.
[0113] For each vehicle to be upgraded in the target vehicle set, it is determined whether the vehicle to be upgraded meets the preset upgrade conditions. If the vehicle to be upgraded does not meet the preset upgrade conditions, it means that the vehicle cannot be upgraded at the current moment, and the upgrade time of the vehicle is postponed. The preset time can be postponed, such as 30 minutes, 40 minutes, etc., which is not specifically limited in the embodiment of the present application. Then the postponed vehicle is updated in the upgrade vehicle list.
[0114] S403: For each vehicle to be upgraded in the target vehicle set, if the vehicle to be upgraded is not upgraded within the upgrade period authorized by the user, the upgrade time of the vehicle to be upgraded is postponed to the upgrade period authorized by the user in the next upgrade cycle.
[0115] By judging whether the vehicle to be upgraded meets the preset upgrade conditions, if the preset upgrade conditions are not met, the upgrade will be postponed. If the upgrade is postponed all the time and exceeds the end time of the user's authorized upgrade period, the upgrade of the vehicle will be directly postponed to other authorized time periods for upgrading, such as the authorized time period on the second day, the authorized time period on the third day, etc., which is not specifically limited in the embodiments of the present application.
[0116] Optionally, when there is a vehicle to be upgraded in the target vehicle set that does not meet the preset upgrade conditions, there will be a vacant position that can be awakened at the current moment. Therefore, a vehicle to be upgraded can be added to the target vehicle set in the list of vehicles to be upgraded in chronological order. This process is carried out in real time until it is determined that the number of vehicles to be upgraded that can be awakened meets the preset upgrade conditions, and then the vehicles that meet the conditions are awakened and upgraded.
[0117] In one possible implementation, the number of vehicles to be upgraded and the number of vehicles that can be awakened in the target vehicle set are compared. If the number of vehicles to be upgraded in the target vehicle set is greater than the number that can be awakened, it means that the number of vehicles that need to be updated at the current moment has exceeded the maximum concurrency that the cloud device can accommodate. Since the immediate upgrade and scheduled upgrade priorities set by the user are higher, the number of automatically upgraded vehicles in the list of vehicles to be upgraded at the current moment will be reduced, thereby postponing the upgrade.
[0118] The vehicle software upgrade method provided by this embodiment is that if the number of vehicles to be upgraded in the target vehicle set is less than the number that can be awakened, then the vehicles to be upgraded are selected from the list of vehicles to be upgraded in chronological order and added to the target vehicle set until the number of vehicles to be upgraded in the target vehicle set is equal to the number that can be awakened, and a new target vehicle set is obtained. For each vehicle to be upgraded in the target vehicle set, if the vehicle to be upgraded does not meet the preset upgrade conditions, the upgrade time of the vehicle to be upgraded is postponed by a preset time, and the list of vehicles to be upgraded is updated. For each vehicle to be upgraded in the target vehicle set, if the vehicle to be upgraded is not upgraded within the upgrade period authorized by the user, the upgrade time of the vehicle to be upgraded is postponed to the upgrade period authorized by the user in the next upgrade cycle. Through the above method, efficient use of resources is achieved, and user waiting time is reduced, and system burden is reduced.
[0119] Figure 5 This is a structural diagram of a first embodiment of a vehicle software upgrade device provided in an embodiment of the present application, such as Figure 5 As shown, the vehicle software upgrade device 500 includes:
[0120] The first determination module 501 is used to determine the number of vehicles that can be awakened at the current moment according to the maximum number of concurrent upgrades that can be accommodated by the cloud device and the number of vehicles that have been determined to be upgraded at the current moment. The number of vehicles that can be awakened represents the number of concurrent upgrades that can be accommodated by the cloud device at the current moment.
[0121] Optionally, the first determining module 501 includes:
[0122] The determination unit is used to determine the difference between the maximum number of concurrent upgrades that can be accommodated and the number of vehicles as the number that can be awakened at the current moment.
[0123] The upgrade module 502 is used to wake up the vehicles that meet the preset upgrade conditions in the list of vehicles to be upgraded according to the number of wakeable vehicles and in chronological order for OTA upgrade.
[0124] Figure 6 This is a structural diagram of a second embodiment of a vehicle software upgrade device provided in an embodiment of the present application, such as Figure 6 As shown, based on the above embodiment, the vehicle software upgrade device 500 further includes:
[0125] The second determination module 601 is used to determine a target vehicle set in the list of vehicles to be upgraded according to the number of vehicles that can be awakened, wherein the target vehicle set includes vehicles to be upgraded whose number is equal to or less than the number of vehicles that can be awakened, and the upgrade time corresponding to each vehicle to be upgraded is the current time.
[0126] The acquisition module 602 is used to acquire vehicle information of each vehicle to be upgraded in the target vehicle set, wherein the vehicle information includes a vehicle status, and the vehicle status is used to indicate whether the vehicle is in use at the current moment.
[0127] The third determination module 603 is used for determining, for each to-be-upgraded vehicle in the target vehicle set, that the to-be-upgraded vehicle meets a preset upgrade condition if the vehicle status corresponding to the to-be-upgraded vehicle indicates that the to-be-upgraded vehicle is not in use at the current moment.
[0128] Optionally, the vehicle information may further include an estimated use time of the vehicle, and the vehicle software upgrade device 500 may further include:
[0129] The fourth determination module 604 is used to determine, for each to-be-upgraded vehicle in the target vehicle set, whether the estimated use time of the vehicle is after the upgrade according to the upgrade time of the to-be-upgraded vehicle.
[0130] Accordingly, the third determining module 603 includes:
[0131] The determination unit is used to determine that the vehicle to be upgraded meets the preset upgrade condition if the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not used at the current moment and the vehicle is expected to be used after the upgrade.
[0132] Figure 7 The structural diagram of the third embodiment of the vehicle software upgrade device provided in the embodiment of the present application is shown in FIG7. On the basis of the above embodiment, the vehicle software upgrade device 500 further includes:
[0133] The updating module 701 is used to select vehicles to be upgraded from the list of vehicles to be upgraded and add them to the target vehicle set in chronological order if the number of vehicles to be upgraded in the target vehicle set is less than the number that can be awakened, so as to obtain a new target vehicle set.
[0134] The first postponement module 702 is used for, for each to-be-upgraded vehicle in the target vehicle set, if the to-be-upgraded vehicle does not meet the preset upgrade condition, to postpone the upgrade time of the to-be-upgraded vehicle by a preset time length, and to update the to-be-upgraded vehicle list.
[0135] The second postponement module 703 is used for postponing the upgrade time of each to-be-upgraded vehicle in the target vehicle set to the upgrade time period authorized by the user in the next upgrade cycle if the to-be-upgraded vehicle has not been upgraded within the upgrade time period authorized by the user.
[0136] The vehicle software upgrade device provided in the above embodiment is used to execute the vehicle software upgrade method in any of the above method embodiments. Its implementation principle and technical effect are similar and will not be repeated here.
[0137] Figure 8 A schematic diagram of the structure of the cloud device provided in the embodiment of the present application, such as Figure 8 As shown, the electronic device 800 includes: a processor 802, a memory 801 and a communication interface 803 which are communicatively connected to the processor 802;
[0138] Memory 801 stores computer-executable instructions.
[0139] The processor 802 executes the computer-executable instructions stored in the memory 801 to implement the vehicle software upgrade method in any of the aforementioned embodiments.
[0140] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the vehicle software upgrade method in any one of the embodiments.
[0141] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0142] Optionally, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0143] An embodiment of the present application also provides a computer program product, which includes a computer program. The computer program is stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, the technical solution provided by any of the above method embodiments can be implemented.
[0144] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0145] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A vehicle software upgrade method, characterized in that: Applied to a cloud device, the method includes: Determine the number of vehicles that can be awakened at the current moment according to the maximum number of concurrent upgrades that the cloud device can accommodate and the number of vehicles that have been determined to be upgraded at the current moment, where the number of vehicles that can be awakened represents the number of concurrent upgrades that the cloud device can accommodate remaining at the current moment; According to the wake-up quantity, vehicles meeting preset upgrade conditions in the list of vehicles to be upgraded are woken up in chronological order to perform over-the-air OTA upgrade.
2. The method according to claim 1, characterized in that: Before waking up the vehicles that meet the preset upgrade conditions in the list of vehicles to be upgraded in chronological order according to the number of vehicles that can be woken up for OTA upgrade, the method further includes: According to the awakenable number, a target vehicle set is determined in the list of vehicles to be upgraded, wherein the target vehicle set includes vehicles to be upgraded whose number is equal to or less than the awakenable number, and the upgrade time corresponding to each vehicle to be upgraded is the current time; Acquire vehicle information of each to-be-upgraded vehicle in the target vehicle set, wherein the vehicle information includes a vehicle status, and the vehicle status is used to indicate whether the vehicle is in use at the current moment; For each vehicle to be upgraded in the target vehicle set, if the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not in use at the current moment, it is determined that the vehicle to be upgraded meets the preset upgrade condition.
3. The method according to claim 2, characterized in that The vehicle information may also include an estimated vehicle usage time, and the method may further include: For each to-be-upgraded vehicle in the target vehicle set, determining whether the estimated usage time of the vehicle is after the upgrade according to the upgrade duration of the to-be-upgraded vehicle; Correspondingly, if the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not in use at the current moment, determining that the vehicle to be upgraded meets the preset upgrade condition includes: If the vehicle status corresponding to the vehicle to be upgraded indicates that the vehicle to be upgraded is not used at the current moment and the estimated use time of the vehicle is after the upgrade, it is determined that the vehicle to be upgraded meets the preset upgrade condition.
4. The method according to claim 2, characterized in that: The method further comprises: If the number of vehicles to be upgraded in the target vehicle set is less than the number that can be awakened, then the vehicles to be upgraded are selected from the list of vehicles to be upgraded in chronological order and added to the target vehicle set until the number of vehicles to be upgraded in the target vehicle set is equal to the number that can be awakened, thereby obtaining a new target vehicle set.
5. The method according to claim 2, characterized in that: The method further comprises: For each vehicle to be upgraded in the target vehicle set, if the vehicle to be upgraded does not meet the preset upgrade condition, the upgrade time of the vehicle to be upgraded is postponed for a preset time period, and the list of vehicles to be upgraded is updated.
6. The method according to claim 5, characterized in that The method further comprises: For each vehicle to be upgraded in the target vehicle set, if the vehicle to be upgraded is not upgraded within the upgrade period authorized by the user, the upgrade time of the vehicle to be upgraded is postponed to the upgrade period authorized by the user in the next upgrade cycle.
7. The method according to any one of claims 1 to 6, characterized in that: The determining the number of vehicles that can be awakened at the current moment according to the maximum number of concurrent upgrades that can be accommodated by the cloud device and the number of vehicles that have been determined to be upgraded at the current moment includes: The difference between the maximum number of concurrent upgrades that can be accommodated and the number of vehicles is determined as the number that can be awakened at the current moment.
8. A vehicle software upgrade device, characterized in that: include: A first determination module is used to determine the number of vehicles that can be awakened at the current moment according to the maximum number of concurrent upgrades that can be accommodated by the cloud device and the number of vehicles that have been determined to be upgraded at the current moment, wherein the number of vehicles that can be awakened represents the number of concurrent upgrades that can be accommodated by the cloud device at the current moment; The upgrade module is used to wake up the vehicles that meet the preset upgrade conditions in the list of vehicles to be upgraded according to the wake-up quantity and in chronological order to perform over-the-air download OTA upgrade.
9. A cloud device, characterized in that: include: A processor, a memory and a communication interface connected to the processor in communication; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the vehicle software upgrade method as described in any one of claims 1 to 7 above.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the vehicle software upgrade method according to any one of claims 1 to 7.
Citation Information
Cited By
Vehicle software upgrade method, system and device, and storage medium
WO2026045725A1
