CN115842689B - Awakening method, electronic control unit and terminal equipment - Google Patents

Awakening method, electronic control unit and terminal equipment Download PDF

Info

Publication number
CN115842689B
CN115842689B CN202211544946.5A CN202211544946A CN115842689B CN 115842689 B CN115842689 B CN 115842689B CN 202211544946 A CN202211544946 A CN 202211544946A CN 115842689 B CN115842689 B CN 115842689B
Authority
CN
China
Prior art keywords
control unit
wake
message
micro control
electronic control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211544946.5A
Other languages
Chinese (zh)
Other versions
CN115842689A (en
Inventor
胡涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Asensing Technology Co Ltd
Original Assignee
Guangzhou Asensing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Asensing Technology Co Ltd filed Critical Guangzhou Asensing Technology Co Ltd
Priority to CN202211544946.5A priority Critical patent/CN115842689B/en
Publication of CN115842689A publication Critical patent/CN115842689A/en
Application granted granted Critical
Publication of CN115842689B publication Critical patent/CN115842689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application provides a wake-up method, an electronic control unit and terminal equipment, comprising the following steps: when the electronic control unit in the dormant state receives a network management message sent by a wake-up source, waking up a micro control unit in the electronic control unit; the micro control unit performs CAN communication initialization; monitoring CAN bus messages through a CAN transceiver; when the upgrading instruction message is not monitored in a preset window period, determining whether a wake-up message is monitored before the window period is finished; if the wake-up message is monitored, the micro control unit stores the wake-up message to a target address interval; the micro control unit starts an application program after the window period is over; the micro control unit reads the target address interval and determines whether a wake-up message is read; when the wake-up message is read, the electronic control unit is waken up. Under the condition that no wake-up message exists on the bus, the wake-up message can be read from the target address interval, and the wake-up work of the electronic control unit is completed.

Description

Awakening method, electronic control unit and terminal equipment
Technical Field
The application relates to the technical field of controllers, in particular to a wake-up method, an electronic control unit and terminal equipment.
Background
With the trend of continuously shortening the development period of automobile software, the test and verification period of software of each ECU is also shortened, so that some bugs need to be repaired through OTA upgrading after mass production, more and more ECUs need to support OTA functions, and more ECUs need to have Bootloader software to support the OTA functions.
The Bootloader function is used for loading an application program, is a section of program running before the application program is started, and when OTA upgrading is needed, the ECU can jump to the Bootloader program by sending a session mode switching instruction through the brushing tool, and erasing and reprogramming of the APP are realized in the Bootloader program, so that the purpose of upgrading is achieved. However, in the actual application process, the Bootloader loads the wrong application program, so that the application program enters an exception when being started, cannot communicate, and cannot be switched to the Bootloader for re-upgrading: 1. the application program which is not subjected to the sufficient test verification is brushed; 2. valid applications are written but the application memory is tampered with due to electromagnetic interference, or software running errors, etc.
How to overcome the above problems becomes a problem of concern to those skilled in the art.
Disclosure of Invention
The application aims to provide a wake-up method, an electronic control unit and terminal equipment, so as to at least partially improve the problems.
In order to achieve the above object, the technical scheme adopted by the embodiment of the application is as follows:
In a first aspect, an embodiment of the present application provides a wake-up method, applied to an electronic control unit, where the method includes:
When the electronic control unit in the dormant state receives a network management message sent by a wake-up source, waking up a micro control unit in the electronic control unit;
The micro control unit performs CAN communication initialization;
The micro control unit monitors CAN bus messages through a CAN transceiver;
when the upgrading instruction message is not monitored in a preset window period, the micro control unit determines whether a wake-up message is monitored before the window period is finished;
If the wake-up message is monitored, the micro control unit stores the wake-up message to a target address interval;
the micro control unit starts an application program after the window period is over;
The micro control unit reads the target address interval and determines whether the wake-up message is read or not;
And waking up the electronic control unit when the wake-up message is read.
Optionally, when the wake-up message is monitored, the method further comprises:
and the electronic control unit feeds back an ACK response message to the awakening source so as to enable the awakening source to stop sending the awakening message.
Optionally, the method further comprises: if the wake-up message is not monitored, the micro control unit starts an application program after the window period is ended;
The micro control unit reads the target address interval and determines whether the wake-up message is read or not;
When the wake-up message is not read, determining whether the CAN bus has the wake-up message or not;
if not, the electronic control unit enters a dormant state.
Optionally, the method further comprises: if the CAN bus has a wake-up message, the electronic control unit is waken up.
Optionally, when the wake-up message is read, the method further includes:
And the micro control unit erases the wake-up message in the target address interval.
Optionally, when the upgrade instruction message is monitored within a preset window period, the method further includes:
And the micro control unit completes upgrading based on the upgrading instruction message.
Optionally, after the application is started, the method further comprises:
The micro control unit starts an application program to initialize CAN communication.
Optionally, when the wake-up message is read, the method further includes:
and the micro control unit checks the awakening message.
Optionally, when the micro control unit is initially woken up, the micro control unit runs BootLoader.
Optionally, when the micro control unit jumps to the application program by BootLoader, the content in the target address interval is unchanged.
Optionally, the target address interval belongs to Ram memory.
In a second aspect, an embodiment of the present application provides an electronic control unit, including: the micro control unit, the CAN transceiver and the memory provided with a target address interval;
when the electronic control unit in the dormant state receives a network management message sent by a wake-up source, the CAN transceiver is used for waking up a micro control unit in the electronic control unit;
the micro control unit is used for carrying out CAN communication initialization;
The micro control unit is also used for monitoring the CAN bus message through the CAN transceiver;
when the upgrade instruction message is not monitored in a preset window period, the micro control unit is further used for determining whether a wake-up message is monitored before the window period is finished;
if the wake-up message is monitored, the micro control unit is further used for storing the wake-up message to a target address interval;
the micro control unit is also used for starting an application program after the window period is over;
The micro control unit is further used for reading the target address interval and determining whether the wake-up message is read or not; and waking up the electronic control unit when the wake-up message is read.
Optionally, the electronic control unit is further configured to feed back an ACK response message to the wake-up source, so that the wake-up source stops sending the wake-up message.
In a third aspect, an embodiment of the present application provides a terminal device, including: the electronic control unit described above.
Compared with the prior art, the wake-up method, the electronic control unit and the terminal equipment provided by the embodiment of the application comprise the following steps: when the electronic control unit in the dormant state receives a network management message sent by a wake-up source, waking up a micro control unit in the electronic control unit; the micro control unit performs CAN communication initialization; the micro control unit monitors the CAN bus message through the CAN transceiver; when the upgrading instruction message is not monitored in a preset window period, the micro control unit determines whether the wake-up message is monitored before the window period is finished; if the wake-up message is monitored, the micro control unit stores the wake-up message to a target address interval; the micro control unit starts an application program after the window period is over; the micro control unit reads the target address interval and determines whether a wake-up message is read; when the wake-up message is read, the electronic control unit is waken up. By storing the wake-up message to the target address interval, the wake-up message can be read from the target address interval under the condition that the bus is not provided with the wake-up message, thereby completing the wake-up work of the electronic control unit.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic control unit according to an embodiment of the present application;
FIG. 2 is a flowchart of a wake-up method according to an embodiment of the present application;
FIG. 3 is a second flowchart of a wake-up method according to an embodiment of the present application.
In the figure: 10-a micro control unit; 11-memory; a 12-CAN transceiver.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the description of the present application, it should be noted that, directions or positional relationships indicated by terms such as "upper", "lower", "inner", "outer", etc., are directions or positional relationships based on those shown in the drawings, or those conventionally put in use in the application, are merely for convenience of description and simplification of the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present application.
In the description of the present application, it should also be noted that, unless explicitly specified and limited otherwise, the terms "disposed", "connected" and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
In one possible scenario, when an Electronic Control Unit (ECU) uses a Bootloader without delay (Bootloader), the ECU starts the Bootloader after powering up, and the Bootloader jumps directly to the application without a window for waiting for an upgrade instruction with delay. The disadvantage is that the application program is wrong or the flash area of the application program is tampered, and the jump to the application program can be directly jammed, so that the brick is written and changed, and the firmware can be updated only by other modes. Often, the burning can be performed only by disassembling the parts and using a burner, however, the parts on the vehicle are very complex to install, and some ECUs are very difficult to disassemble.
In one possible scenario, the electronic control unit uses a boot loader without a delay waiting for an upgrade instruction window, and during the window period, the Bootloader opens the CAN transceiver, monitors the bus message, and if there is an upgrade instruction, executes the upgrade process without jumping to the application. Therefore, the problem that the application program in error cannot be rewritten after being jumped to can be avoided, and the diagnosis instruction can be sent for updating again through a window period after the error occurs, so that the disassembly is avoided. However, this also presents another problem, in that the network management message needs to be sent multiple times in succession to wake up the ECU, for reasons of analysis: the sending logic of the CAN is that if no receiving party returns ACK, the sending end CAN repeatedly send (hardware implementation) until receiving ACK, when the wake-up source sends the first frame of network management message, the wake-up party ECU wakes up the MCU first, the MCU still does not initialize CAN communication, so before the CAN of the wake-up party is initialized, the network management message of the sending party is not received ACK, the sending party continuously repeatedly sends the network management message until the Bootloader starts, the CAN transceiver is initialized, the ECU responds to the ACK of the network management message at this time, the sending party stops sending the wake-up message, the Bootloader recognizes that the wake-up message is not an upgrading instruction, the application program is started directly, however, the application program finds that the network management wake-up message is not available on the network after starting, and the Bootloader continues to enter a dormant state after overtime, in a simple way, the Bootloader responds to the ACK of the network management message, and the application program cannot receive the network management message.
It should be understood that, in order to implement the function of re-upgrading the application program when the Bootloader loads the wrong application program, a window period needs to be reserved before the Bootloader starts the application program to receive the upgrade request, and the upper computer for brushing may send the upgrade request in this window period, so that the Bootloader does not start the application program, but stays in the Bootloader and waits for brushing. However, since Bootloader has this window period, another problem is caused, and when the network management message wakes up, the problem of waking up the ECU occurs.
In order to overcome the above problems, the embodiments of the present application provide an electronic control unit, which may be, but not limited to, a driving computer. Referring to fig. 1, a schematic structure of an electronic device is shown. The electronic device comprises a micro control unit 10, a memory 11 and a CAN transceiver 12, wherein the micro control unit 10 is in communication connection with the memory 11 and the CAN transceiver 12, respectively. The micro control unit 10 may be, but not limited to, an MCU, a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), or the like; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application Specific Integrated Circuit (ASIC), field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
The memory 11 may comprise a high-speed random access memory (RAM: random Access Memory) or may further comprise a non-volatile memory (non-volatile memory), such as at least one disk memory.
The memory 11 is used for storing programs, such as application programs that need to be run hereinafter.
It should be understood that the structure shown in fig. 1 is only a schematic structural diagram of a portion of an electronic control unit, which may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The wake-up method provided by the embodiment of the application can be applied to, but not limited to, the electronic control unit shown in fig. 1, and referring to fig. 2, the wake-up method includes: s101, S102, S103, S104, S105, S106, S108, S109, S111, S112, and S113 are specifically described below.
S101, when the electronic control unit in the dormant state receives a network management message sent by a wake-up source, waking up a micro control unit in the electronic control unit.
Alternatively, the wake source may be other ECU, or an external device, without limitation.
In an alternative embodiment, the CAN transceiver 12 is constantly monitoring the CAN bus, and the CAN transceiver 12 is able to identify whether a network management message is present on the CAN bus, but is not aware of the specific content of the network management message. When the CAN transceiver 12 in the electronic control unit in the sleep state recognizes the network management message transmitted by the wake-up source, the CAN transceiver 12 may wake-up the micro control unit 10 in the electronic control unit.
S102, the micro control unit performs CAN communication initialization.
S103, the micro control unit monitors the CAN bus message through the CAN transceiver.
S104, determining whether an upgrade instruction message is monitored in a preset window period. If yes, executing S113; if not, S105 is performed.
It should be appreciated that the problems associated with the Bootloader loading the wrong application can be avoided by setting the window period. Optionally, if the upgrade instruction packet is monitored within a preset window period, the execution S113 micro control unit completes the upgrade based on the upgrade instruction packet. Otherwise, S105 is performed.
S105, the micro control unit determines whether a wake-up message is monitored before the window period is finished. If yes, executing S106; if not, S108 is performed.
It should be appreciated that if a wake-up message is monitored before the end of the window period, this indicates that there is a current need to wake up the ECU. In order to avoid the above-mentioned problem of "the application program is started and found that there is no network management wake-up message on the network, and then the application program continues to enter the sleep state after timeout", S106 may be executed. If not, S108 is performed.
And S106, if the wake-up message is monitored, the micro control unit stores the wake-up message to the target address interval.
It should be appreciated that by storing the wake-up messages to the target address intervals, it is possible to complete the wake-up operation of the electronic control unit, either in case there is no wake-up message on the bus or by reading the wake-up message from the target address intervals.
S108, the micro control unit starts the application program after the window period is over.
Alternatively, the micro control unit 10 loads an application program.
And S109, the micro control unit reads the target address interval and determines whether the wake-up message is read. If yes, executing S112; if not, S111 is performed.
It should be understood that if the wake-up message is read, the electronic control unit may be woken up to execute S112; otherwise, the electronic control unit enters a sleep state, and S111 is executed.
S111, the electronic control unit enters a dormant state.
S112, when the wake-up message is read, the electronic control unit is waken up.
S113, the micro control unit completes upgrading based on the upgrading instruction message.
On the basis of fig. 2, regarding how to feed back to the wake-up source to stop the wake-up source from sending the wake-up message, the embodiment of the present application further provides a possible implementation, please refer to fig. 3, and after S106, the wake-up method further includes: s107 is specifically described below.
S107, the electronic control unit feeds back an ACK response message to the wake-up source so that the wake-up source stops sending the wake-up message.
Optionally, after the CAN communication initialization is completed, the CAN transceiver 12 may receive a network management message on the CAN bus, and may identify specific content therein, and when identifying the wake-up message, the CAN transceiver 12 may feed back an ACK response message to the wake-up source, so that the wake-up source stops sending the wake-up message.
With reference to fig. 3, regarding how to further guarantee the successful execution of the wake-up operation, as shown in fig. 3, the embodiments of the present application further provide a possible implementation manner, where S108 and S109 are also executed when the wake-up message is not monitored, the micro control unit starts the application program after the window period is ended, and the micro control unit reads the target address interval to determine whether the wake-up message is read. After S109, the wake-up method further includes: s110 is specifically described below.
S110, when the wake-up message is not read, determining whether the CAN bus has the wake-up message. If yes, executing S112; if not, S111 is performed.
It should be understood that when the wake-up message is not read, it is determined whether the wake-up message exists on the CAN bus, i.e., S110 is performed. If the CAN bus has a wake-up message, executing S112; otherwise, S111 is executed.
Optionally, in order to ensure that the ECU is not repeatedly awakened based on the same wake-up message on the basis of fig. 2, so that an incorrect operation occurs, the embodiment of the present application further provides a possible implementation manner, which is referred to below. After S109, the wake-up method further includes: the micro control unit erases the wake-up message in the target address interval.
Optionally, after S112 is performed, the wake-up packet in the target address interval may be erased.
In an alternative embodiment, after the application is started, the method further includes: the micro control unit starts an application program to initialize CAN communication.
So that the micro control unit 10 loaded with the application program CAN obtain information on the CAN bus through the CAN transceiver 12.
In order to further avoid the situation of false wake-up, the embodiment of the present application further provides a possible implementation manner, please refer to the following. When the wake-up message is read, the wake-up method further comprises the following steps: and the micro control unit checks the wake-up message.
And when the verification is successful, waking up the electronic control unit, otherwise, keeping the sleep state.
In an alternative embodiment, the micro-control unit runs BootLoader when it is initially woken up.
In an alternative embodiment, the content in the target address interval is unchanged when the micro control unit jumps from BootLoader to the application program.
It should be appreciated that at least a portion of the memory may be shared when the micro control unit 10 runs BootLoader or an application, i.e. the memory 11 comprises a shared memory, which is provided with a target address interval.
Alternatively, nvm or Ram, nvm may be used in the common memory, which generally has a limitation on the erasing times, and if the memory is repeatedly awakened for a long time, the erasing times of the memory are increased, which has an influence on the service life of the memory. When Ram is used as the shared memory, the following points need to be noted: the section of memory is an area which can be accessed by both Bootloader and application program; ensuring that the segment of memory is not modified when the Bootloader jumps to the application program (the segment of memory can be declared through a link file, avoiding that a compiler automatically marks the segment of memory as a stack or uses global variables); the stored data needs to be checked, so that invalid data is prevented from being triggered and awakened by mistake.
Optionally, the target address interval belongs to Ram memory.
In summary, the embodiment of the application provides a wake-up method applied to an electronic control unit, including: when the electronic control unit in the dormant state receives a network management message sent by a wake-up source, waking up a micro control unit in the electronic control unit; the micro control unit performs CAN communication initialization; the micro control unit monitors the CAN bus message through the CAN transceiver; when the upgrading instruction message is not monitored in a preset window period, the micro control unit determines whether the wake-up message is monitored before the window period is finished; if the wake-up message is monitored, the micro control unit stores the wake-up message to a target address interval; the micro control unit starts an application program after the window period is over; the micro control unit reads the target address interval and determines whether a wake-up message is read; when the wake-up message is read, the electronic control unit is waken up. By storing the wake-up message to the target address interval, the wake-up message can be read from the target address interval under the condition that the bus is not provided with the wake-up message, thereby completing the wake-up work of the electronic control unit.
An electronic control unit, which may be a car computer, is provided below, and as shown in fig. 1, the above-mentioned wake-up method may be implemented.
Optionally, the electronic control unit comprises: a micro control unit 10, a CAN transceiver 12 and a memory 11 provided with a target address range.
When the electronic control unit in the sleep state receives the network management message sent by the wake-up source, the CAN transceiver 12 is used for waking up the micro control unit 10 in the electronic control unit;
the micro control unit 10 is used for carrying out CAN communication initialization;
The micro control unit 10 is further configured to monitor the CAN bus message through the CAN transceiver 12;
When the upgrade instruction message is not monitored in the preset window period, the micro control unit 10 is further configured to determine whether the wake-up message is monitored before the window period ends;
If the wake-up message is monitored, the micro control unit 10 is further configured to store the wake-up message to the target address interval;
the micro control unit 10 is further used for starting an application program after the window period is over;
The micro control unit 10 is further configured to read the target address interval, and determine whether a wake-up message is read; when the wake-up message is read, the electronic control unit is waken up.
Optionally, the electronic control unit is further configured to feed back an ACK response message to the wake-up source, so that the wake-up source stops sending the wake-up message.
It should be noted that, the electronic control unit provided in this embodiment may execute the method flow shown in the method flow embodiment to achieve the corresponding technical effects. For a brief description, reference is made to the corresponding parts of the above embodiments, where this embodiment is not mentioned.
Optionally, the embodiment of the application further provides a terminal device, which can be an automobile, an agricultural machine or other terminal devices, and the terminal device comprises the electronic control unit.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (13)

1. A wake-up method, applied to an electronic control unit, comprising:
When the electronic control unit in the dormant state receives a network management message sent by a wake-up source, waking up a micro control unit in the electronic control unit;
The micro control unit performs CAN communication initialization;
The micro control unit monitors CAN bus messages through a CAN transceiver;
The micro control unit determines whether an upgrade instruction message is monitored in a preset window period;
when an upgrade instruction message is monitored in a preset window period, the micro control unit finishes upgrading based on the upgrade instruction message;
when the upgrading instruction message is not monitored in a preset window period, the micro control unit determines whether a wake-up message is monitored before the window period is finished;
If the wake-up message is monitored, the micro control unit stores the wake-up message to a target address interval;
the micro control unit starts an application program after the window period is over;
The micro control unit reads the target address interval and determines whether the wake-up message is read or not;
And waking up the electronic control unit when the wake-up message is read.
2. The wake-up method of claim 1, wherein when a wake-up message is heard, the method further comprises:
and the electronic control unit feeds back an ACK response message to the awakening source so as to enable the awakening source to stop sending the awakening message.
3. The wake-up method of claim 1, wherein the method further comprises:
If the wake-up message is not monitored, the micro control unit starts an application program after the window period is ended;
The micro control unit reads the target address interval and determines whether the wake-up message is read or not;
When the wake-up message is not read, determining whether the CAN bus has the wake-up message or not;
if not, the electronic control unit enters a dormant state.
4. The wake-up method of claim 3, wherein the method further comprises:
If the CAN bus has a wake-up message, the electronic control unit is waken up.
5. The wake-up method of claim 1, wherein upon reading the wake-up message, the method further comprises:
And the micro control unit erases the wake-up message in the target address interval.
6. The wake-up method of claim 1, wherein after launching the application, the method further comprises:
The micro control unit starts an application program to initialize CAN communication.
7. The wake-up method of claim 1, wherein upon reading the wake-up message, the method further comprises:
and the micro control unit checks the awakening message.
8. The wake-up method of claim 1 wherein the micro-control unit runs BootLoader when the micro-control unit is initially woken up.
9. The wake-up method of claim 8 wherein the contents of the target address interval are unchanged when the micro-control unit jumps to an application by BootLoader.
10. The wake-up method of claim 1, wherein the target address interval belongs to Ram memory.
11. An electronic control unit, characterized in that it comprises: the micro control unit, the CAN transceiver and the memory provided with a target address interval;
when the electronic control unit in the dormant state receives a network management message sent by a wake-up source, the CAN transceiver is used for waking up a micro control unit in the electronic control unit;
the micro control unit is used for carrying out CAN communication initialization;
The micro control unit is also used for monitoring the CAN bus message through the CAN transceiver;
The micro control unit is also used for determining whether an upgrade instruction message is monitored in a preset window period;
When the upgrade instruction message is monitored in a preset window period, the micro control unit is further used for finishing upgrade based on the upgrade instruction message;
when the upgrade instruction message is not monitored in a preset window period, the micro control unit is further used for determining whether a wake-up message is monitored before the window period is finished;
if the wake-up message is monitored, the micro control unit is further used for storing the wake-up message to a target address interval;
the micro control unit is also used for starting an application program after the window period is over;
The micro control unit is further used for reading the target address interval and determining whether the wake-up message is read or not; and waking up the electronic control unit when the wake-up message is read.
12. The electronic control unit of claim 11, wherein,
The electronic control unit is further configured to feed back an ACK response message to the wake-up source, so that the wake-up source stops sending the wake-up message.
13. A terminal device, comprising: the electronic control unit of claim 11.
CN202211544946.5A 2022-12-02 2022-12-02 Awakening method, electronic control unit and terminal equipment Active CN115842689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211544946.5A CN115842689B (en) 2022-12-02 2022-12-02 Awakening method, electronic control unit and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211544946.5A CN115842689B (en) 2022-12-02 2022-12-02 Awakening method, electronic control unit and terminal equipment

Publications (2)

Publication Number Publication Date
CN115842689A CN115842689A (en) 2023-03-24
CN115842689B true CN115842689B (en) 2024-06-21

Family

ID=85577979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211544946.5A Active CN115842689B (en) 2022-12-02 2022-12-02 Awakening method, electronic control unit and terminal equipment

Country Status (1)

Country Link
CN (1) CN115842689B (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6172754B2 (en) * 2014-03-10 2017-08-02 トヨタ自動車株式会社 Communication apparatus and communication method
KR101792046B1 (en) * 2015-10-29 2017-11-20 현대자동차주식회사 Terminal apparatus, vehicle and method for controlling the same
JP7183984B2 (en) * 2018-08-10 2022-12-06 株式会社デンソー Center device, vehicle information communication system, distribution package transmission method and distribution package transmission program
CN112199102A (en) * 2020-09-09 2021-01-08 北汽福田汽车股份有限公司 Software updating method and device for vehicle-mounted electronic control unit, vehicle and system
JP7307116B2 (en) * 2021-04-07 2023-07-11 矢崎総業株式会社 IN-VEHICLE SOFTWARE UPDATE METHOD AND IN-VEHICLE SYSTEM
CN113721946A (en) * 2021-07-14 2021-11-30 江铃汽车股份有限公司 OTA (over the air) upgrading method, OTA upgrading system, readable storage medium and vehicle
CN113590157B (en) * 2021-07-31 2024-04-30 重庆长安汽车股份有限公司 Vehicle-mounted embedded OTA (over the air) refreshing file, refreshing device and refreshing method
CN114691177A (en) * 2022-04-24 2022-07-01 东风汽车集团股份有限公司 Upgrading method and device for vehicle-mounted remote monitoring system
CN115309462A (en) * 2022-08-08 2022-11-08 中国第一汽车股份有限公司 Equipment awakening method, device, system, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A vehicle electric control unit over-the-air reprogramming system;Guoyong Shi等;《2015 International Conference on Connected Vehicles and Expo (ICCVE)》;20160407;全文 *
基于Android的车载移动终端系统的研究与开发;方胜;《中国优秀硕士学位论文全文数据库》;20121015;全文 *

Also Published As

Publication number Publication date
CN115842689A (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN110231952B (en) ECU program backup and cyclic upgrade control method and device
CN109933348B (en) Method and device for updating Bootloader in electronic control unit
US9424022B2 (en) Method for updating firmware of an electronic device within a computer
WO2008104117A1 (en) An electronic equipment, a starting method thereof and a method and device for upgrading bios
JP2010195111A (en) Onboard computer system
CN112667265B (en) Method and device for updating bootstrap program
CN107567629A (en) Dynamic firmware module loader in credible performing environment container
CN112181455B (en) Online upgrading method of microcontroller, microcontroller and storage medium
CN112433769A (en) BMC starting method and device, computer equipment and storage medium
CN114661368B (en) Chip and starting method thereof
US12039322B2 (en) OTA master, center, system, update method, non-transitory storage medium, and vehicle
CN115842689B (en) Awakening method, electronic control unit and terminal equipment
CN110704076A (en) Data processing method and device, vehicle-mounted controller and computer-readable storage medium
CN112306536B (en) Main board, chip thereof and chip upgrading method
CN116431186A (en) Upgrading method, device and medium of vehicle-mounted ECU
JP2000357093A (en) Computer system and reloading method for non-volatile memory
CN116149906A (en) Backup method and device for vehicle mileage information, vehicle and storage medium
CN106444730B (en) Diagnosis method of electronic control unit for preventing software from being dead
CN114047715A (en) Control method of peripheral device during software update of ECU application layer and storage medium
CN108280034A (en) A kind of Android system USB-HID apparatus self-adaptation method and devices
CN110442387B (en) Parameter self-adaption method and device of vehicle-mounted system and vehicle
US20030177147A1 (en) Method for updating a keyboard controller in a notebook computer
CN112667444A (en) System upgrading method, storage medium and terminal equipment
WO2023141832A1 (en) Program updating method and program updating apparatus
CN110457072A (en) Method, device, equipment and computer readable medium for preventing system hang-up

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant