Method and device for maintaining power gear during vehicle OTA upgrade
By receiving and processing power hold request messages during the vehicle OTA upgrade process, judging and switching power gears, the error problem caused by the change in power gears during the upgrade process is solved, and the stable maintenance of power gears is achieved and the user experience is improved.
Patent Information
- Application Number
- CN202211511203.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2042-11-29
AI Technical Summary
During the vehicle OTA software upgrade process, the power gear may change due to unexpected factors, resulting in upgrade errors. How to keep the power gear in a stable or specified state to solve the error problem during the upgrade process.
By receiving the power hold request message sent by the OTA upgrade master, it is determined whether the current power gear meets the switching conditions, and switch to the target power gear when the conditions are met, and continue to maintain the target power gear until periodic power hold information is received.
It realizes the stability of the power gear during the OTA upgrade process, avoids upgrade errors caused by unexpected factors, and improves the user experience.
Smart Images

Figure CN115842728B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method and device for maintaining a power level during an OTA upgrade of a vehicle. Background Art
[0002] With the rapid development of automotive electronics, more and more new functions need to be updated on the original vehicle hardware. At the same time, software development inevitably has bugs that are not detected in the early tests. The functional upgrades and problem repairs of application software require that the vehicle's electronic devices themselves have the ability to apply software. The emergence of vehicle OTA (Over-the-Air Technology) remote upgrade function perfectly solves these problems.
[0003] In the related technology, the implementation of OTA upgrade technology is simply divided into three steps: first, the update software is uploaded to the OTA center, secondly, the OTA center wirelessly transmits the update software to the vehicle end, and finally the vehicle end automatically updates the software.
[0004] However, when the vehicle is undergoing an OTA software upgrade, the power level may change during the upgrade due to certain unexpected factors, resulting in upgrade errors. How to keep the power level in a stable or specified state during the vehicle OTA upgrade process needs to be solved urgently. Summary of the invention
[0005] The present application provides a method and device for maintaining the power level during a vehicle OTA upgrade, so as to solve the problem that the power level changes due to unexpected factors during the upgrade, resulting in upgrade errors, thereby improving the user experience.
[0006] The first aspect of the present application provides a method for maintaining a power level during an OTA upgrade of a vehicle, comprising the following steps:
[0007] Receiving a power hold request message sent by an over-the-air download technology OTA upgrade master terminal, wherein the power hold request message includes a target power level;
[0008] Based on the power hold request message, determine whether the current power level meets the power level switching condition, and when the power level switching condition is met, switch the current power level to the target power level, and send the switching result to the OTA upgrade master control terminal through a power hold feedback message; and
[0009] Determine whether the periodic power retention information sent by the OTA upgrade master based on the power retention feedback message is received, and when the periodic power retention information is received, continue to maintain the target power level.
[0010] According to the above technical means, the method for maintaining the power gear during the OTA upgrade of the present application: The function of maintaining the power state can be realized only by the information interaction between two frames of CAN messages, and the method is simple; there is data verification during message communication, and both communication parties have error tolerance processes, so the security is high.
[0011] Further, after determining whether to receive the periodic power hold information sent by the OTA upgrade master control end based on the power hold feedback message, it further includes:
[0012] Obtain the duration of not receiving the periodic power hold information;
[0013] If the duration is greater than the preset timeout duration, control the power gear control end to exit the power hold, and switch the target power gear to the original power gear.
[0014] According to the above technical means, through duration comparison, the power gear can be easily switched, so that the target power gear does not have to be in the gear required for work all the time, reducing energy loss.
[0015] Further, before switching the current power gear to the target power gear, it further includes:
[0016] Save the original power gear information, where the original gear information includes the original power gear.
[0017] According to the above technical means, it is convenient to directly switch the target power gear back to the original power gear during the operation process.
[0018] Further, judging whether the current power gear meets the power gear switching condition based on the power hold request message includes:
[0019] Extract the gear switching request field, power hold field, message count field and cyclic redundancy check code CRC (Cyclic Redundancy Check) check field from the power hold request message;
[0020] Judge whether the gear switching request field is a first preset value, whether the power hold field is a second preset value, judge whether there is a missing frame in the power hold request message according to the message count field, and judge whether the power hold request message passes the verification according to the CRC check field;
[0021] If the gear switching request field is the first preset value, the power hold field is the second preset value, there is no missing frame in the power hold request message, and the power hold request message passes the verification, it is determined that the current power gear meets the power gear switching condition.
[0022] According to the above technical means, it is possible to easily determine whether the current power supply gear meets the power supply gear switching condition, and the method is simple.
[0023] Further, after determining whether the current power supply gear meets the power supply gear switching condition, it further includes:
[0024] If the current power supply gear does not meet the power supply gear switching condition, then fill the failure reason into the switching failure code, where the switching failure code is set in the third field of the power supply hold feedback message.
[0025] According to the above technical means, it is convenient for technicians to timely understand the reason for the failure of the power supply gear switching, and improve the test accuracy.
[0026] An embodiment of the second aspect of the present application provides a device for maintaining the power supply gear during the vehicle OTA upgrade, including:
[0027] A receiving module, configured to receive a power supply hold request message sent by the OTA upgrade master control end, where the power supply hold request message includes a target power supply gear;
[0028] A processing module, configured to determine, based on the power supply hold request message, whether the current power supply gear meets the power supply gear switching condition, and when the power supply gear switching condition is met, switch the current power supply gear to the target power supply gear, and send the switching result to the OTA upgrade master control end through a power supply hold feedback message; and
[0029] A control module, configured to determine whether to receive periodic power supply hold information sent by the OTA upgrade master control end based on the power supply hold feedback message, and when the periodic power supply hold information is received, continuously maintain the target power supply gear.
[0030] Further, after determining whether to receive the periodic power supply hold information sent by the OTA upgrade master control end based on the power supply hold feedback message, the control module is further configured to:
[0031] Obtain the duration of not receiving the periodic power supply hold information;
[0032] If the duration is greater than a preset timeout duration, control the power supply gear control end to exit the power supply hold, and switch the target power supply gear to the original power supply gear.
[0033] Further, in some embodiments, before switching the current power supply gear to the target power supply gear, the processing module is further configured to:
[0034] Save the original power level information, where the original level information includes the original power level.
[0035] Further, based on the power hold request message, determine whether the current power level meets the power level switching condition. The processing module is specifically configured to:
[0036] Extract the gear shift request field, power hold field, message count field, and cyclic redundancy check CRC check field from the power hold request message;
[0037] Judge whether the gear shift request field is a first preset value, whether the power hold field is a second preset value, judge whether there is a missing frame in the power hold request message according to the message count field, and judge whether the power hold request message passes the verification according to the CRC check field;
[0038] If the gear shift request field is the first preset value, the power hold field is the second preset value, the power hold request message does not have a missing frame, and the power hold request message passes the verification, it is determined that the current power level meets the power level switching condition.
[0039] Further, after determining whether the current power level meets the power level switching condition, the processing module is further configured to:
[0040] If the current power level does not meet the power level switching condition, fill the failure reason into the switching failure code, where the switching failure code is set in the third field of the power hold feedback message.
[0041] An embodiment of the third aspect of the present application provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor executes the program to implement the method for maintaining the power level during vehicle OTA upgrade as described in the above embodiment.
[0042] An embodiment of the fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, and the program is executed by a processor to implement the method for maintaining the power level during vehicle OTA upgrade as described in the above embodiment.
[0043] Therefore, the present application has at least the following beneficial effects: The method is simple, and the function of maintaining the power state can be achieved only by the information interaction between two CAN (Controller Area Network) messages; the security is high, there is data verification during message communication, and both communication parties have error tolerance processes. Thus, the problem that the power gear changes due to unexpected factors during the upgrade process, resulting in errors in the upgrade, is solved, thereby improving the user experience.
[0044] Additional aspects and advantages of the present application will be given in part in the following description, will become apparent in part from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0046] Figure 1 FIG. 12 is a schematic flowchart of a method for maintaining a power gear during a vehicle OTA upgrade according to an embodiment of the present application;
[0047] Figure 2 FIG. 16 is a schematic diagram of the structure of a power hold request message according to an embodiment of the present application;
[0048] Figure 3 FIG. 20 is a schematic diagram of the structure of a power hold feedback message according to an embodiment of the present application;
[0049] Figure 4 FIG. 24 is a schematic flowchart of the OTA upgrade master control end according to an embodiment of the present application;
[0050] Figure 5 FIG. 28 is a schematic flowchart of the power gear control end according to an embodiment of the present application;
[0051] Figure 6 FIG. 32 is a block schematic diagram of a device for maintaining a power gear during a vehicle OTA upgrade according to an embodiment of the present application;
[0052] Figure 7 FIG. 36 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application.
[0053] DESCRIPTION OF THE REFERENCE NUMERALS: 10 - device for maintaining a power gear during a vehicle OTA upgrade, 100 - receiving module, 200 - processing module, 300 - control module, 701 - processor, 702 - memory, 703 - communication interface. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0054] Embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present application, and should not be construed as a limitation to the present application.
[0055] The method and device for maintaining the power gear during vehicle OTA upgrade according to the embodiments of the present application will be described below with reference to the accompanying drawings. In view of the problem that the power gear changes due to accidental factors during the upgrade in the above-mentioned background technology, resulting in upgrade errors, the present application provides a method for maintaining the power gear during vehicle OTA upgrade. In this method, a power hold request message sent by the OTA upgrade master control end is received, and when the current power gear meets the power gear switching condition, the current power gear is switched to the target power gear, and when it is determined that periodic power hold information sent by the OTA upgrade master control end based on the power hold feedback message is received, the target power gear is continuously maintained. Thereby, the problem that the power gear changes due to accidental factors during the upgrade, resulting in upgrade errors, is solved, thus improving the user experience.
[0056] Specifically, Figure 1 is a schematic flow chart of a method for maintaining the power gear during vehicle OTA upgrade provided by an embodiment of the present application.
[0057] Before introducing the method for maintaining the power gear during vehicle OTA upgrade proposed by the embodiments of the present application, the principle thereof will be briefly introduced:
[0058] Specifically, the embodiments of the present application mainly use two periodic messages, namely a power hold request message and a power hold feedback message, to enable the OTA upgrade master control end to send a power hold request to the power gear control end. After receiving the request, the power gear control end determines whether the gear switching condition is met, and when the switching condition is met, performs a power switching action and feeds back the switching result to the OTA upgrade master control end.
[0059] As Figure 1 shown, the method for maintaining the power gear during vehicle OTA upgrade includes the following steps:
[0060] In step S101, a power hold request message sent by the over-the-air (OTA) upgrade master control end is received, where the power hold request message includes the target power gear.
[0061] Among them, the power hold request message defines the format of the message sent by the OTA upgrade master control end, including the gear shift request PowerReq field, the power hold PowerHold field, the message count RollingCounter field, the CRC check CRCCheck field, and the reserved field. This message is a periodic message with a sending period of 500 ms, sent by the OTA upgrade master control end and received by the power gear control end.
[0062] Specifically, when the OTA upgrade master control end needs to hold the upgrade power gear, it needs to send a power hold request to the power gear control end through the power hold request message.
[0063] In step S102, based on the power hold request message, it is determined whether the current power gear meets the power gear shift condition. When the power gear shift condition is met, the current power gear is switched to the target power gear, and the switching result is sent to the OTA upgrade master control end through the power hold feedback message.
[0064] Among them, the power hold feedback message defines the format of the message sent by the power gear control end, including: the switching state ChangeState field, the switching failure code ErrorCode, the message count RollingCounter field, and the reserved field. This message is a periodic message with a sending period of 500 ms, sent by the power gear control end and received by the OTA upgrade master control end.
[0065] Further, in some embodiments, determining whether the current power gear meets the power gear shift condition based on the power hold request message includes: extracting the gear shift request field, the power hold field, the message count field, and the cyclic redundancy check CRC check field from the power hold request message; determining whether the gear shift request field is the first preset value, whether the power hold field is the second preset value, and determining whether there is a missing frame in the power hold request message according to the message count field, and determining whether the power hold request message passes the CRC check according to the CRC check field; if the gear shift request field is the first preset value, the power hold field is the second preset value, there is no missing frame in the power hold request message, and the power hold request message passes the CRC check, it is determined that the current power gear meets the power gear shift condition.
[0066] Among them, both the first preset value and the second preset value can be thresholds preset by the user, can be thresholds obtained through a limited number of experiments, or can be thresholds obtained through a limited number of computer simulations, and are not specifically limited herein.
[0067] Specifically, as shown in 2, Figure 2 It is a schematic diagram of the power hold request message structure according to an embodiment of the present application.
[0068] Among them, Byte0 is the power request PowerReq field for gear shift request. When the value is assigned as 1, this field is valid, indicating that the OTA upgrade master requests the power gear control end to switch to the power ON gear;
[0069] Byte1 is the power hold PowerHold field. When the value is assigned as 1, this field is valid, indicating that the OTA upgrade master requests the power gear control end to hold the power ON gear;
[0070] Byte6 is the message count RollingCounter field. This field counts cyclically and is used for the receiving end of this message to judge whether frames are missed during the receiving process;
[0071] Byte7 is the CRC check CRCCheck field. This field performs CRC check on the first seven bytes and is used for the receiving end of this message to judge whether the message is tampered with during the receiving process; The remaining bytes are reserved fields and are undefined.
[0072] Furthermore, in some embodiments, after judging whether the current power gear meets the power gear shift condition, it further includes: if the current power gear does not meet the power gear shift condition, then fill the failure reason into the shift failure code, where the shift failure code is set in the third field of the power hold feedback message.
[0073] Specifically, as Figure 3 shown, Figure 3 is a schematic diagram of the power hold feedback message structure according to an embodiment of the present application.
[0074] Among them, Byte0 is the change state ChangeState field, with a default value of 0. When the value is assigned as 1, it indicates that the gear shift is successful; when the value is assigned as 2, it indicates that the gear shift fails;
[0075] Byte1 is the error code ErrorCode for shift failure, which is valid when Byte0 is assigned as 2 and indicates the reason for the shift failure;
[0076] Byte6 is the message count RollingCounter field. This field counts cyclically and is used for the receiving end of this message to judge whether frames are missed during the receiving process;
[0077] Byte7 is the CRC check CRCCheck field. This field performs CRC check on the first seven bytes and is used for the receiving end of this message to judge whether the message is tampered with during the receiving process; The remaining bytes are reserved fields and are undefined.
[0078] Further, when the current power supply gear does not meet the power supply gear switching condition, the ChangeState field in the power supply hold feedback message is assigned a value of 2, indicating that the gear switching fails, and the error cause is filled into the switching failure code ErrorCode, and then the process ends.
[0079] Thus, the embodiment of the present application can perform power supply gear switching when the power supply switching condition is met, and then feedback the switching result to the OTA upgrade master control end through the power supply hold feedback message.
[0080] Further, in some embodiments, before switching the current power supply gear to the target power supply gear, it further includes: saving the original power supply gear information, where the original gear information includes the original power supply gear.
[0081] It should be understood that, in order to be able to restore the working condition before holding the power supply gear when it is not necessary to continuously hold the power supply gear, the embodiment of the present application can save the original power supply gear information before switching the current power supply gear to the target power supply gear, so that when it is not necessary to continuously hold the power supply gear, it can be restored based on the original power supply gear in the original power supply gear information.
[0082] In step S103, it is judged whether periodic power supply hold information sent by the OTA upgrade master control end based on the power supply hold feedback message is received, and when the periodic power supply hold information is received, the target power supply gear is continuously held.
[0083] Specifically, after receiving the request for successful switching, the OTA upgrade master control end periodically sends power supply hold information to the power supply gear control end through the power supply hold request message. The power supply gear control end cyclically judges whether the power supply hold information is received within the specified period. If the power supply hold information is received within the period, the power supply gear is continuously held, otherwise it returns to the original gear.
[0084] Further, in some embodiments, after judging whether periodic power supply hold information sent by the OTA upgrade master control end based on the power supply hold feedback message is received, it further includes: obtaining the continuous duration of not receiving the periodic power supply hold information; if the continuous duration is greater than the preset timeout duration, controlling the power supply gear control end to exit the power supply hold and switching the target power supply gear to the original power supply gear.
[0085] The preset timeout duration can be a duration preset by the user, a duration obtained through a limited number of experiments, or a duration obtained through a limited number of computer simulations, and is not specifically limited herein.
[0086] For example, after the power gear shift is successful, assign the value 1 to the ChangeState field of the switching state in the power hold feedback message, and then start a 2-second timer. When a power hold request message with the PowerHold field equal to 1 is received within 2 seconds, maintain the switched power gear, then reset the 2-second timer and make the next judgment until the value assigned to the ChangeState field in the received power hold feedback message is not 1. At this time, the power gear control terminal exits the power hold and returns to the original recorded power gear, ending the process.
[0087] To facilitate those skilled in the art to further understand the method of maintaining the power gear during the vehicle OTA upgrade in the embodiments of the present application, the following will be described in detail with reference to Figure 4 and Figure 5 For details.
[0088] As Figure 4 shown, Figure 4 is a schematic diagram of the OTA upgrade master control terminal process according to an embodiment of the present application, including the following steps:
[0089] S401, Start.
[0090] S402, Send an OTA upgrade gear shift request.
[0091] Specifically, during the OTA upgrade process, when it is necessary to maintain the power gear, assign the value 1 to the PowerReq field of the gear shift request in the power hold request message, indicating that an OTA upgrade gear shift request is sent to the power gear control terminal.
[0092] S403, Receive a message with a non-default value feedback for the field within 10s.
[0093] Specifically, determine whether a power hold feedback message with the switching state ChangeState field being a non-default value of 0 is received within 10s.
[0094] If not received, execute S404, consider that the power gear request times out and the gear shift fails.
[0095] S405, End.
[0096] If received, execute S406, the feedback message is that the switch is successful.
[0097] Specifically, determine whether the ChangeState field of the switching state is a successful gear shift.
[0098] If so, execute S407, send an OTA upgrade gear hold request until the OTA upgrade is completed.
[0099] Specifically, if the gear shift is successful, assign the PowerHold field in the power hold request message to 1 and keep it until the OTA upgrade is completed.
[0100] S408, end.
[0101] If not, execute S409, the gear shift fails, and record the reason for failure.
[0102] Specifically, if the ChangeState field in the switching state is not a successful gear shift, it is considered that the power gear shift fails, and record the switching failure code ErrorCode.
[0103] S410, end.
[0104] Furthermore, as Figure 5 shown, Figure 5 is a schematic diagram of the power gear control terminal process according to an embodiment of the present application, including the following steps:
[0105] S501, start.
[0106] S502, receive an upgrade gear shift request.
[0107] Specifically, when the PowerReq field in the received power hold request message is 1, it is considered that an upgrade gear shift request is received.
[0108] S503, determine whether the power switching condition is satisfied.
[0109] If not, execute S504, feedback that the power gear shift fails and fill in the reason for failure.
[0110] Specifically, if the power switching condition is not satisfied, assign the ChangeState field in the power hold feedback message to 2 and fill the error reason into the switching failure code ErrorCode.
[0111] S505, end.
[0112] If satisfied, execute S506, record the original power gear and perform the power switching action.
[0113] S507, start a 2s timer.
[0114] S508, receive an OTA upgrade gear hold request within 2s.
[0115] Specifically, determine whether a power hold request message with the PowerHold field assigned to 1 is received within 2 seconds.
[0116] If received, execute S509, hold the power gear.
[0117] S510 resets the 2s timer for loop judgment.
[0118] If no power hold request message with the PowerHold field assigned 1 is received, execute S511 to exit power hold and return to the original power level.
[0119] S512 ends.
[0120] According to the method for maintaining the power level during vehicle OTA upgrade proposed in the embodiments of the present application, a power hold request message sent by the OTA upgrade master control end is received, and when the current power level meets the power level switching condition, the current power level is switched to the target power level, and when it is determined that periodic power hold information sent by the OTA upgrade master control end based on the power hold feedback message is received, the target power level is continuously maintained. Thus, the problem that the power level changes due to unexpected factors during the upgrade, resulting in upgrade errors, is solved, thereby improving the user experience.
[0121] Next, a device for maintaining the power level during vehicle OTA upgrade proposed in the embodiments of the present application is described with reference to the accompanying drawings.
[0122] Figure 6 It is a block diagram of the device for maintaining the power level during vehicle OTA upgrade in the embodiments of the present application.
[0123] As Figure 6 shown, the device 10 for maintaining the power level during vehicle OTA upgrade includes: a receiving module 100, a processing module 200, and a control module 300.
[0124] Among them, the receiving module 100 is used to receive the power hold request message sent by the OTA upgrade master control end, where the power hold request message includes the target power level;
[0125] The processing module 200 is used to determine whether the current power level meets the power level switching condition based on the power hold request message, and when the power level switching condition is met, switch the current power level to the target power level and send the switching result to the OTA upgrade master control end through the power hold feedback message; and
[0126] The control module 300 is used to determine whether periodic power hold information sent by the OTA upgrade master control end based on the power hold feedback message is received, and when the periodic power hold information is received, continuously maintain the target power level.
[0127] Further, after determining whether periodic power hold information sent by the OTA upgrade master control end based on the power hold feedback message is received, the control module 300 is further used for:
[0128] Obtain the duration during which the periodic power holding information is not received;
[0129] If the duration is greater than the preset timeout duration, control the power gear control terminal to exit power holding, and switch the target power gear to the original power gear.
[0130] Further, in some embodiments, before switching the current power gear to the target power gear, the processing module 200 is further configured to:
[0131] Save the original power gear information, where the original gear information includes the original power gear.
[0132] Further, based on the power holding request message, determine whether the current power gear meets the power gear switching condition. Specifically, the processing module 200 is configured to:
[0133] Extract the gear switching request field, power holding field, message count field, and cyclic redundancy check code CRC check field from the power holding request message;
[0134] Determine whether the gear switching request field is the first preset value, whether the power holding field is the second preset value, determine whether there is a missing frame in the power holding request message according to the message count field, and determine whether the power holding request message passes the check according to the CRC check field;
[0135] If the gear switching request field is the first preset value, the power holding field is the second preset value, there is no missing frame in the power holding request message, and the power holding request message passes the check, it is determined that the current power gear meets the power gear switching condition.
[0136] Further, after determining whether the current power gear meets the power gear switching condition, the processing module 200 is further configured to:
[0137] If the current power gear does not meet the power gear switching condition, fill the failure reason into the switching failure code, where the switching failure code is set in the third field of the power holding feedback message.
[0138] It should be noted that the foregoing explanation of the method embodiment for maintaining the power gear during the vehicle OTA upgrade also applies to the device for maintaining the power gear during the vehicle OTA upgrade in this embodiment, and will not be elaborated here.
[0139] The device for maintaining the power gear during the vehicle OTA upgrade according to the embodiment of the present application receives a power hold request message sent by the OTA upgrade master control end of the over-the-air technology, and when the current power gear meets the power gear switching condition, switches the current power gear to the target power gear, and when it is determined that periodic power hold information sent by the OTA upgrade master control end based on the power hold feedback message is received, continuously maintains the target power gear. Thereby, the problem that the power gear changes due to unexpected factors during the upgrade, resulting in errors in the upgrade, is solved, thereby improving the user experience.
[0140] Figure 7 The structural schematic diagram of the electronic device provided by the embodiment of the present application. The electronic device may include:
[0141] A memory 701, a processor 702, and a computer program stored on the memory 701 and executable on the processor 702.
[0142] When the processor 702 executes the program, it implements the method for maintaining the power gear during the vehicle OTA upgrade provided in the above embodiment.
[0143] Further, the electronic device further includes:
[0144] A communication interface 703 for communication between the memory 701 and the processor 702.
[0145] The memory 701 is used to store a computer program executable on the processor 702.
[0146] The memory 701 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0147] If the memory 701, the processor 702, and the communication interface 703 are implemented independently, the communication interface 703, the memory 701, and the processor 702 can be interconnected through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 7 only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.
[0148] Optionally, in a specific implementation, if the memory 701, the processor 702, and the communication interface 703 are integrated on a single chip, the memory 701, the processor 702, and the communication interface 703 can communicate with each other through an internal interface.
[0149] The processor 702 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0150] The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for maintaining the power gear during vehicle OTA upgrade as described above is implemented.
[0151] In the description of this specification, the descriptions referring to terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or N embodiments or examples in a suitable manner. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0152] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "N" is at least two, such as two, three, etc., unless otherwise specifically defined.
[0153] Any process or method description shown in the flowchart or described in other ways herein can be understood as representing a module, segment, or part of code including one or more executable instructions for implementing a customized logic function or process. The scope of the preferred embodiments of the present application includes additional implementations, where the functions can be executed in a substantially simultaneous manner or in a reverse order according to the involved functions, rather than in the order shown or discussed, which should be understood by those skilled in the art of the embodiments of the present application.
[0154] It should be understood that each part of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one of the following techniques well known in the art or a combination thereof can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays, field programmable gate arrays, and the like.
[0155] Those of ordinary skill in the art can understand that all or part of the steps carried by the method of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
[0156] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.
Claims
1. A method for maintaining the power gear during vehicle OTA upgrade, characterized in that, it includes the following steps: Receive a power hold request message sent by the OTA upgrade master control end of the over-the-air technology, wherein the power hold request message includes a target power gear; Based on the power hold request message, judge whether the current power gear meets the power gear switching condition, and when the power gear switching condition is met, switch the current power gear to the target power gear, and send the switching result to the OTA upgrade master control end through a power hold feedback message; and Judge whether to receive the periodic power hold information sent by the OTA upgrade master control end based on the power hold feedback message, and when the periodic power hold information is received, continuously maintain the target power gear; judging whether the current power gear meets the power gear switching condition based on the power hold request message includes: Extract the gear switching request field, power hold field, message count field, and cyclic redundancy check code CRC check field from the power hold request message; Judge whether the gear switching request field is a first preset value, whether the power hold field is a second preset value, judge whether there is a missing frame in the power hold request message according to the message count field, and judge whether the power hold request message passes the check according to the CRC check field; If the gear switching request field is the first preset value, the power hold field is the second preset value, the power hold request message does not have a missing frame, and the power hold request message passes the check, it is determined that the current power gear meets the power gear switching condition.
2. The method according to claim 1, characterized in that, after judging whether to receive the periodic power hold information sent by the OTA upgrade master control end based on the power hold feedback message, it further includes: Obtain the continuous duration of not receiving the periodic power hold information; If the continuous duration is greater than a preset timeout duration, control the power gear control end to exit the power hold and switch the target power gear to the original power gear.
3. The method according to claim 2, characterized in that, before switching the current power gear to the target power gear, it further includes: Save the original power gear information, wherein the original power gear information includes the original power gear.
4. The method according to claim 1, characterized in that, after judging whether the current power gear meets the power gear switching condition, it further includes: If the current power gear does not meet the power gear switching condition, fill the failure reason into the switching failure code, wherein the switching failure code is set in the third field of the power hold feedback message.
5. A device for maintaining the power gear during vehicle OTA upgrade, characterized in that, it includes: A receiving module, configured to receive a power hold request message sent by the OTA upgrade master control end, wherein the power hold request message includes a target power gear; A processing module, configured to determine whether the current power level meets the power level switching condition based on the power hold request message, and when the power level switching condition is met, switch the current power level to the target power level, and send the switching result to the OTA upgrade master control end through a power hold feedback message; the determining whether the current power level meets the power level switching condition based on the power hold request message includes: Extracting a gear shifting request field, a power hold field, a message count field, and a cyclic redundancy check code CRC check field from the power hold request message; Determining whether the gear shifting request field is a first preset value, whether the power hold field is a second preset value, judging whether there is a missing frame in the power hold request message according to the message count field, and judging whether the power hold request message passes the verification according to the CRC check field; If the gear shifting request field is the first preset value, the power hold field is the second preset value, the power hold request message has no missing frame, and the power hold request message passes the verification, it is determined that the current power level meets the power level switching condition; and A control module, configured to determine whether to receive periodic power hold information sent by the OTA upgrade master control end based on the power hold feedback message, and when receiving the periodic power hold information, continuously hold the target power level.
6. The device according to claim 5, wherein, After determining whether to receive the periodic power hold information sent by the OTA upgrade master control end based on the power hold feedback message, the control module is further configured to: Obtain the duration of not receiving the periodic power hold information; If the duration is greater than a preset timeout duration, control the power level control end to exit the power hold, and switch the target power level to the original power level.
7. The device according to claim 6, wherein, Before switching the current power level to the target power level, the processing module is further configured to: Save the original power level information, where the original power level information includes the original power level.
8. An electronic device, wherein, including: A memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the program to implement the method for maintaining the power level during vehicle OTA upgrade according to any one of claims 1-4.
9. A computer-readable storage medium, on which a computer program is stored, wherein, The program is executed by a processor to be used to implement the method for maintaining the power level during vehicle OTA upgrade according to any one of claims 1-4.
Citation Information
Patent Citations
Vehicle remote upgrading method and device, electronic equipment, vehicle-mounted terminal and storage medium
CN113626056A
Software upgrading method and device applied to vehicle, equipment and medium
CN115129342A