Invention content
In view of this, the present invention provides a kind of control method of electronic control unit, electronic control unit, system and vehicles
, it can avoid being forced to sleep from electronic control unit.
In a first aspect, providing a kind of control method of electronic control unit, the electronic control unit is applied to vehicle-mounted
Network, the method includes:
Main electronic control unit in the In-vehicle networking receives in the In-vehicle networking by the main electronic control unit
The indication signal that the slave electronic control unit of control is sent, the indication signal are used to indicate described from electronic control unit satisfaction
Sleep condition;
Receiving all instruction letters respectively sent from electronic control unit controlled by the main electronic control unit
After number, the main electronic control unit sends SLEEP instruction, and the SLEEP instruction is used to indicate the main electronic control unit
The all of control enter sleep state from electronic control unit;
The main electronic control unit enters sleep state.
Optionally, the main electronic control unit enters sleep state and includes:
Main electronic control unit application program directly out of service simultaneously closes sending function and enters sleep state;
Or the first application program out of service of the main electronic control unit, it is closed after waiting for the first duration and sends work(
Can, and enter sleep state after waiting for the second duration.
Optionally, the first application program out of service of the main electronic control unit closes hair after waiting for the first duration
Function is sent, and enters sleep state after waiting for the second duration, including:
The main electronic control unit application program out of service, and enter and wait for sleep state;
In first duration entered after waiting for sleep state, if the main electronic control unit does not monitor
To enabling signal, then the main electronic control unit closes sending function, and enters pre- sleep state;
In second duration after entering pre- sleep state, if the main electronic control unit does not monitor
Enabling signal, then the main electronic control unit enter sleep state.
Optionally, the method further includes:
In first duration entered after waiting for sleep state, if the main electronic control unit monitors to open
Dynamic signal, then the main electronic control unit bring into operation the corresponding application program of the enabling signal, and from waiting for shape of sleeping
State enters normal operating conditions.
Optionally, the method further includes:
In second duration after entering pre- sleep state, if the main electronic control unit monitors to start
Signal, then the main electronic control unit open sending function, the corresponding application program of the enabling signal that brings into operation, and from
Pre- sleep state enters normal operating conditions.
Optionally, it all is respectively sent from electronic control unit by what the main electronic control unit controlled receiving
After indication signal, further include:
The main electronic control unit determines whether itself meets sleep condition;
In the case where determining that itself meets sleep condition, the main electronic control unit executes the transmission sleep and refers to
It enables.
Optionally, the enabling signal is one kind in power on signal, local wake-up signal and Remote Wake Up signal.
Second aspect, provides a kind of control method of electronic control unit, and the electronic control unit is applied to vehicle-mounted
Network, the method includes:
Slave electronic control unit in the In-vehicle networking determines whether itself meets sleep condition;
In the case where determining that itself meets sleep condition, it is described from electronic control unit into the In-vehicle networking with institute
It states from the corresponding main electronic control unit of electronic control unit and sends indication signal, the indication signal is used to indicate described from electricity
Sub-control unit meets sleep condition;
It is described to receive SLEEP instruction from electronic control unit, and sleep state is entered according to the SLEEP instruction, it is described to sleep
Instruction of sleeping is to be sent from the corresponding main electronic control unit of electronic control unit with described in the In-vehicle networking.
Optionally, described sleep state is entered according to the SLEEP instruction from electronic control unit to include:
It is described according to SLEEP instruction application program directly out of service and to close sending function from electronic control unit
Into sleep state;
Or it is described from electronic control unit according to the first application program out of service of the SLEEP instruction, when waiting for first
Sending function is closed after long, and enters sleep state after waiting for the second duration.
Optionally, it is described from electronic control unit according to the first application program out of service of the SLEEP instruction, waiting for the
Sending function is closed after one duration, and enters sleep state after waiting for the second duration, including:
It is described from electronic control unit according to SLEEP instruction application program out of service, and enter and wait for sleep shape
State;
In first duration entered after waiting for sleep state, if described do not monitor from electronic control unit
It is to enabling signal, then described to close sending function from electronic control unit, and enter pre- sleep state;
In second duration after entering pre- sleep state, if described do not monitor from electronic control unit
Enabling signal, then it is described to enter sleep state from electronic control unit.
Optionally, the method further includes:
In first duration entered after waiting for sleep state, if described monitor to open from electronic control unit
Dynamic signal, then it is described to bring into operation the corresponding application program of the enabling signal from electronic control unit, and from waiting for shape of sleeping
State enters normal operating conditions.
Optionally, the method further includes:
In second duration after entering pre- sleep state, if it is described monitored from electronic control unit it is described
Enabling signal, then described to open sending function from electronic control unit, the corresponding application program of the enabling signal that brings into operation,
And enter normal operating conditions from pre- sleep state.
Optionally, the enabling signal is one kind in power on signal, local wake-up signal and Remote Wake Up signal.
The third aspect, provides a kind of electronic control unit, and the electronic control unit is applied to In-vehicle networking, the electricity
Sub-control unit is the main electronic control unit in the In-vehicle networking, and the electronic control unit includes:
Receiving unit, for receiving the slave electronic control unit controlled by the electronic control unit in the In-vehicle networking
The indication signal of transmission, the indication signal is used to indicate described meets sleep condition from electronic control unit;
Transmission unit, for the receiving unit receive controlled by the electronic control unit it is all from electronics control
After the indication signal that unit processed is respectively sent, SLEEP instruction is sent, it is single that the SLEEP instruction is used to indicate the electronic control
The all of member control enter sleep state from electronic control unit;
The processing unit, for making the electronic control unit enter sleep state.
Optionally, the processing unit is specifically used for:Direct application program out of service simultaneously closes sending function, makes described
Electronic control unit enters sleep state;
Or first application program out of service, sending function is closed after waiting for the first duration, and when waiting for second
The electronic control unit is set to enter sleep state after long.
Optionally, the processing unit is specifically used for:
Within first duration entered after waiting for sleep state, if the monitoring unit does not monitor institute
Enabling signal is stated, then closes sending function, and the electronic control unit is made to enter pre- sleep state;
In second duration after the electronic control unit enters pre- sleep state, if the monitoring unit
It does not monitor enabling signal, then the electronic control unit is made to enter sleep state.
Optionally, the processing unit is additionally operable to:
Enter within first duration after waiting for sleep state in the electronic control unit, if the monitoring
Unit monitors the enabling signal, then the corresponding application program of the enabling signal that brings into operation, and makes the electronic control
Unit enters normal operating conditions from waiting sleep state.
Optionally, the processing unit is additionally operable to:
In second duration after the electronic control unit enters pre- sleep state, if the monitoring unit
It monitors the enabling signal, then opens sending function, the corresponding application program of the enabling signal that brings into operation, and make described
Electronic control unit enters normal operating conditions from pre- sleep state.
Optionally, the processing unit is additionally operable to determine whether itself meets sleep condition;
The transmission unit is specifically used for, and in the case where the processing unit determines that itself meets sleep condition, sends
The SLEEP instruction.
Fourth aspect, provides a kind of electronic control unit, and the electronic control unit is applied to In-vehicle networking, the electricity
Sub-control unit is the slave electronic control unit in the In-vehicle networking, and the electronic control unit includes:
Processing unit, for determining whether itself meets sleep condition;
Transmission unit, in the case where the processing unit determines that itself meets sleep condition, to the vehicle-mounted net
Main electronic control unit corresponding with the electronic control unit sends indication signal in network, and the indication signal is used to indicate institute
It states from electronic control unit and meets sleep condition;
Receiving unit, for receiving SLEEP instruction, the SLEEP instruction is with described in the In-vehicle networking from electronics control
The corresponding main electronic control unit of unit processed is sent;
The processing unit is additionally operable to the SLEEP instruction received according to the receiving unit, makes the electronic control
Unit enters sleep state.
Optionally, the processing unit is specifically used for:
According to SLEEP instruction application program directly out of service and sending function is closed, makes the electronic control unit
Into sleep state;
Or according to the first application program out of service of the SLEEP instruction, is closed after waiting for the first duration and send work(
Can, and so that the electronic control unit is entered sleep state after waiting for the second duration.
Optionally, the electronic control unit further includes:
Monitoring unit, for monitoring the enabling signal in the In-vehicle networking, the enabling signal is for triggering the electricity
Sub-control unit enters normal operating conditions.
Optionally, the processing unit is specifically used for:
In first duration entered after waiting for sleep state, if the monitoring unit does not monitor to start
Signal then closes sending function, and the electronic control unit is made to enter pre- sleep state;
In second duration after the electronic control unit enters pre- sleep state, if the monitoring unit
Do not monitor enabling signal, then it is described to enter sleep state from electronic control unit.
Optionally, the processing unit is additionally operable to:
Enter in first duration after waiting for sleep state in the electronic control unit, if the monitoring is single
Member monitors the enabling signal, then the corresponding application program of the enabling signal that brings into operation, and keeps the electronic control single
Member enters normal operating conditions from waiting sleep state.
Optionally, the processing unit is additionally operable to:
In second duration after entering pre- sleep state, if the monitoring unit monitors the startup letter
Number, then sending function is opened, the corresponding application program of the enabling signal that brings into operation, and make the electronic control unit from pre-
Sleep state enters normal operating conditions.
5th aspect, there is provided a system comprising:
Main electronic control unit described in the third aspect;And
Slave electronic control unit described in fourth aspect.
6th aspect, provides a kind of vehicle, the vehicle includes:System described in 5th aspect.
7th aspect, provides a kind of computer readable storage medium, which has program,
Running the program makes electronic control unit execute the method described in above-mentioned first aspect or second aspect.
Based on the above-mentioned technical proposal, the main ECU in the present invention is in all use respectively sent from ECU for receiving its control
After instruction meets the indication signal of sleep condition from ECU, what is controlled to it is all from ECU transmission sleep instructions, indicates this
Enter sleep state from ECU a bit, enable in this way it is all from ECU in the case where meeting sleep condition enter sleep state,
It is forced to sleep so as to avoid from ECU.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiment is a part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, all other reality that those of ordinary skill in the art are obtained without making creative work
Example is applied, the scope of protection of the invention should be all belonged to.
It should be understood that the term " first ", " second " and " third " in the description and claims of this application and attached drawing
Etc. being for distinguishing different objects, rather than for describing particular order.
It is total that controller local area network (Controller Area Network, CAN) may be used in ECU in In-vehicle networking
Line technology realizes data exchange, other bussing techniques can also be used to realize data exchange, such as local internet (Local
Interconnect Network, LIN) bus, multimedia orientation system transmit (Media Oriented System
Transport, MOST) bus and FlexRay buses etc..
The working condition of (such as firing key is located at OFF position) ECU afterwards is closed according to the firing key of vehicle, it can general
It is two classes that ECU in the In-vehicle networking of vehicle, which is divided to,:I class ECU and II classes ECU.
I classes ECU:Such ECU can lead to when firing key is switched to ACC position or the positions ON by OFF position
Letter is switched to after OFF position by non-OFF position and stops the communication a period of time that communicates or be delayed at once.
II classes ECU:Such ECU can be communicated when firing key is located at OFF position.
In other words, I classes ECU can not be communicated after firing key is located at OFF position using In-vehicle networking, II classes
ECU can be communicated after firing key is located at OFF position using In-vehicle networking.
When the firing key of vehicle is located at OFF position, the ECU in partial devices in vehicle can be communicated, such as
ECU in the devices such as anti-theft device, car door lock can be communicated.
When the firing key of vehicle is located at ACC position, vehicle can carry out low pressure and power on, i.e., low-tension supply gives certain attachment systems
The power supplies such as system, ancillary apparatus, such as electricity adjust seat, sound system, windscreen wiper water injection system, cigar lighter, power sunroof etc..
When the firing key of vehicle is located at the positions ON, vehicle can be powered on into horizontal high voltage, and open full vehicle power supply.
It should be understood that In-vehicle networking may include main ECU and from ECU in the embodiment of the present invention.Master in the embodiment of the present invention
ECU and from ECU can be II classes ECU.
It should also be understood that In-vehicle networking may include a main ECU and multiple from ECU in the embodiment of the present invention, but the present invention
Embodiment does not limit this, and when the quantity of the ECU in In-vehicle networking is more, two or more masters can also be arranged
ECU, wherein each main ECU correspond to it is at least one from ECU.
Each ECU in In-vehicle networking may include micro-control unit (Microcontroller Unit, MCU) and transmitting-receiving
Device (transceiver).
Fig. 1 is the schematic flow chart of the control method of ECU according to the ... of the embodiment of the present invention.Method shown in Fig. 1 is applied to
In-vehicle networking, as shown in Figure 1, the control method of ECU includes following content.
110, main ECU receives the indication signal sent by the slave ECU that main ECU is controlled in In-vehicle networking, and indication signal is used for
Instruction meets sleep condition from ECU.
120, after receiving all indication signals respectively sent from ECU controlled by main ECU, main ECU transmissions are slept
It sleeps and instructs, SLEEP instruction is used to indicate main all of ECU controls and enters sleep state from ECU.
Main ECU receive its control all indication signals sent from ECU after, would know that its control it is all from
ECU has met sleep condition.At this point, main ECU sends SLEEP instruction, the slave ECU for being unsatisfactory for sleep condition can be avoided strong
System sleep.
In some embodiments, main ECU can broadcast the SLEEP instruction in In-vehicle networking.
130, main ECU enters sleep state.
In the embodiment of the present invention, main ECU receive its control it is all respectively sent from ECU be used to indicate from ECU
After meeting the indication signal of sleep condition, what is controlled to it is all from ECU transmission sleep instructions, indicates that these enter from ECU
Sleep state enables to all ECU to enter sleep state in the case where meeting sleep condition in this way, so as to avoid discontented
The slave ECU of sufficient sleep condition is forced to sleep.
Optionally, in step 120, main ECU sends SLEEP instruction, including:
Main ECU determines whether itself meets sleep condition;
In the case where determining that itself meets sleep condition, main ECU sends SLEEP instruction.
In the embodiment of the present invention, main ECU both can determine its control it is all meet sleep condition from ECU after send
SLEEP instruction can also send SLEEP instruction determining all of its control from ECU and after itself all meeting sleep condition.
Optionally, in step 140, main ECU enters sleep state and includes:Main ECU application programs directly out of service are simultaneously closed
It closes sending function and enters sleep state.In this way, main ECU can enter after all transmission SLEEP instructions from ECU controlled to it
Sleep state.
Optionally, in step 140, main ECU enters sleep state and includes:The first application programs out of service of main ECU, are waiting for
Sending function is closed after first duration, and enters sleep state after waiting for the second duration.That is, main ECU into
It first waits for a period of time before entering sleep state, then steps into sleep state.In this way, if main ECU is entering shape of sleeping
Enabling signal is monitored before state, can timely enter normal operating conditions.
Optionally, the first application programs out of service of main ECU, close sending function, and waiting after waiting for the first duration
It waits for entering sleep state after the second duration, including:
Main ECU application programs out of service, and enter and wait for sleep state;
Within the first duration entered after waiting for sleep state, if main ECU does not monitor enabling signal, lead
ECU closes sending function, and enters pre- sleep state;
In the second duration after entering pre- sleep state, if main ECU does not monitor enabling signal, main ECU into
Enter sleep state.
In the embodiment of the present invention, when ECU is in waiting sleep state, application program out of service can send and receive
Message;When ECU is in pre- sleep state, transceiver can receive message, can not send message, other function modules are still just
Often operation is in normal-power mode;When ECU is in sleep state, transceiver can receive message, other function modules are closed
It closes, is in low-power consumption mode.It should be noted that ECU can receiving network managing when being in sleep state and pre- sleep state
(Network Managemnt, NM) message and message is applied, but can only identify network management message, None- identified application report
Text.
Therefore, ECU enters the time that normal operating conditions needs from waiting sleep state, pre- sleep state and sleep state
It is different.It is more than for example, ECU enters the time that normal operating conditions needs from sleep state and from pre- sleep state enters normal work
State need time, ECU from pre- sleep state enter normal operating conditions need time be more than from wait for sleep state into
Enter the time of normal operating conditions needs.
In the embodiment of the present invention, ECU passes through successively before entering sleep state waits for sleep state and pre- sleep state, when
ECU can timely enter normal operating conditions when being unsatisfactory for sleep condition.
Optionally, method shown in Fig. 1 further includes:
Within the first duration entered after waiting for sleep state, if main ECU monitors that enabling signal, main ECU are opened
The corresponding application program of the operation enabling signal that begins, and enter normal operating conditions from waiting sleep state.
Optionally, method shown in Fig. 1 further includes:
In the second duration after entering pre- sleep state, if main ECU monitors that enabling signal, main ECU open hair
Function is sent, the corresponding application program of the enabling signal that brings into operation, and enter normal operating conditions from pre- sleep state.
Optionally, method shown in Fig. 1 further includes:
Upon entering the sleep state, it if main ECU monitors that enabling signal, main ECU complete initialization, enables in taboo
The only function of state, and enter normal operating conditions.
Wherein, initialization includes bus initialization and/or the hardware initialization of main ECU.
Specifically, main ECU can complete to initialize in scheduled time slot.
In conclusion main ECU is in when waiting for sleep state, pre- sleep state and sleep state, if monitoring to start
Signal, then main ECU enter normal operating conditions, as shown in Figure 2.
In some embodiments, when main ECU is in waiting sleep state, pre- sleep state and sleep state, if monitoring
To enabling signal, then main ECU can also into In-vehicle networking broadcast network management message, to wake up the slave ECU of its control.
Optionally, enabling signal is one kind in power on signal, local wake-up signal and Remote Wake Up signal.
In some embodiments, power on signal can vehicle where the ECU based on power on signal.
In some embodiments, local wake-up signal can be car door opening signal, charging gun insertion signal or start key
Spoon is inserted into signal etc..
In some embodiments, Remote Wake Up signal can the CAN bus messages that monitor of the ECU based on or CAN bus swash
Signal living.For example, Remote Wake Up signal can the ECU based on control any network management report sent from ECU by CAN bus
Text.
In some embodiments, the event that powers on for triggering power on signal can be ignition switch, such as firing key
The positions ON are switched to from OFF position.
The In-vehicle networking of vehicle can be divided into multiple systems.In some embodiments, In-vehicle networking may include power
Transmission system, body control system, security system and information system etc., wherein dynamic transfer system may include engine, prevent
Antilock brake system (Antilock Brake System, ABS) and automatic transmission;Body control system includes that center controls
Unit and door control unit;Security system includes air bag activation system;Information system includes the multimedias such as video, audio
Unit.It should be understood that In-vehicle networking can also be divided into multiple systems using other modes, the embodiment of the present invention to this and it is unlimited
It is fixed.
In some embodiments, the local wake events for triggering local wake-up signal can be from ECU said systems
Wake events.For example, for the ECU being arranged in different device, local wake events can be car door opening, charging gun
Insertion or initiation key insertion etc..
In some embodiments, triggering Remote Wake Up signal Remote Wake Up event can be from ECU said systems it
The wake events of outer other systems.
Fig. 3 is the schematic flow chart of the control method of ECU according to another embodiment of the present invention.Method shown in Fig. 3 is answered
For In-vehicle networking, as shown in figure 3, the control method of ECU includes following content.
310, determine whether itself meets sleep condition from ECU.
320, in the case where determining that itself meets sleep condition, from ECU into In-vehicle networking with from the corresponding masters of ECU
ECU sends indication signal, and indication signal, which is used to indicate from ECU, meets sleep condition.
330, SLEEP instruction is received from ECU, and so that ECU is entered sleep state according to SLEEP instruction, which is vehicle
In contained network network with send from the corresponding main ECU of ECU.
In some embodiments, the SLEEP instruction in In-vehicle networking with should receive its institute from the corresponding main ECU of ECU
The all of control send after the indication signal that ECU is sent.Alternatively, the SLEEP instruction is in In-vehicle networking and should be from ECU
Corresponding main ECU know that it is controlled it is all be satisfied by sleep condition from ECU after send.
In the embodiment of the present invention, refer to from ECU to corresponding main ECU transmissions in the case where determining that itself meets sleep condition
Show signal, to inform that main ECU has met sleep condition, then after receiving the SLEEP instruction that main ECU is sent, according to sleep
Instruction enters sleep state, and the slave ECU for being unsatisfactory for sleep condition can be avoided to be forced to sleep in this way.
Optionally, in step 330, entering sleep state according to SLEEP instruction from ECU includes:
It according to SLEEP instruction application program directly out of service and closes sending function from ECU and enters sleep state.
Optionally, in step 330, entering sleep state according to SLEEP instruction from ECU includes:
From ECU according to the first application program out of service of SLEEP instruction, sending function is closed after waiting for the first duration, and
Enter sleep state after waiting for the second duration.
Correspondingly, it from ECU according to the first application program out of service of SLEEP instruction, closes and sends after waiting for the first duration
Function, and enter sleep state after waiting for the second duration, including:
From ECU according to SLEEP instruction application program out of service, and enters and wait for sleep state;
In the first duration entered after waiting for sleep state, if not monitoring enabling signal from ECU, from
ECU closes sending function, and enters pre- sleep state;
In the second duration after entering pre- sleep state, if not monitoring enabling signal from ECU, from ECU
Into sleep state.
Optionally, from ECU into In-vehicle networking with send indication signal from the corresponding main ECU of ECU after, side shown in Fig. 3
Method further includes:From electronic unit application program out of service, into waiting sleep state.Correspondingly, in step 330, from ECU roots
Enter sleep state according to SLEEP instruction, including:Sending function is directly closed according to SLEEP instruction from ECU and enters sleep state;Or
Person closes sending function from ECU according to SLEEP instruction, into pre- sleep state, and enters sleep after waiting for the second duration
State.For example, from ECU in the second duration after entering pre- sleep state, if not monitoring enabling signal, from
ECU enters sleep state from pre- sleep state.
Optionally, method shown in Fig. 3 further includes:
In the first duration entered after waiting for sleep state, if monitoring enabling signal from ECU, opened from ECU
The corresponding application program of the operation enabling signal that begins, and enter normal operating conditions from waiting sleep state.
Optionally, method shown in Fig. 3 further includes:
In the second duration after entering pre- sleep state, if monitoring enabling signal from ECU, opened from ECU
Sending function, the corresponding application program of the enabling signal that brings into operation, and enter normal operating conditions from pre- sleep state.
In conclusion when being in waiting sleep state, pre- sleep state and sleep state from ECU, if monitoring to start
Signal then enters normal operating conditions, as shown in Figure 4 from ECU.
In some embodiments, when being in waiting sleep state, pre- sleep state and sleep state from ECU, if monitoring
To enabling signal, then from ECU can also into In-vehicle networking broadcast network management message, with wake up its corresponding main ECU and
Other of main ECU control are from ECU.
Optionally, enabling signal is one kind in power on signal, local wake-up signal and Remote Wake Up signal.
Illustratively, power on signal can be from the power on signal of vehicle where ECU, and local wake-up signal can be opened for car door
Open signal, charging gun is inserted into signal or initiation key insertion signal, Remote Wake Up signal can be total for CAN bus message or CAN
Line activation signal.For example, Remote Wake Up signal can the ECU based on or other network management reports sent from ECU by CAN bus
Text.
The control method of ECU according to the ... of the embodiment of the present invention is described below in conjunction with specific example.
Assuming that the In-vehicle networking of vehicle includes a main ECU and multiple from ECU.Main ECU and multiple any from ECU
It is as follows from the workflow of ECU:
1) after network startup, main ECU and CAN message is normally sent and received from ECU;
2) judge whether to meet sleep condition from ECU according to the network information monitored;When judging to meet sleep condition,
Signal SleepConditionsReady=0x1 is sent, which, which is used to indicate from ECU, currently meets sleep condition, and enters
Wait for sleep state;
3) after main ECU receives all signal SleepConditionsReady=0x1 sent from ECU, main ECU sentences
It is disconnected itself whether to meet sleep condition, and in the case where itself also meets sleep condition, send sleep commands signal
SleepCommand=0x1;
4) it after main ECU sends sleep commands signal SleepCommand=0x1, sleeps into waiting for
5) if main ECU does not monitor other from ECU in the preset duration (such as 5s) entered after waiting for sleep state
The NM messages of transmission, and itself meet sleep condition, then main ECU stops sending message, into pre- sleep state;If main ECU
Monitor any NM messages sent from ECU in waiting for sleep state or find itself to be unsatisfactory for sleep condition, then main ECU into
Enter normal operating conditions;
6) if main ECU does not monitor that other send out from ECU in the preset duration (such as 5s) after entering pre- sleep state
The NM messages sent, and itself currently meets sleep condition, then main ECU enters sleep state;If main ECU is in pre- sleep state
It monitors any NM messages sent from ECU or finds itself to be unsatisfactory for sleep condition, then main ECU enters normal operating conditions;
7) if main ECU monitors any NM messages sent from ECU after entering sleep state or finds that itself is unsatisfactory for
Sleep condition, then main ECU enter normal operating conditions;
If the sleep commands signal that main ECU is sent is received when 8) being in waiting sleep state from ECU
SleepCommand=0x1 then stops sending message from ECU, enters pre- sleep state from sleep state is waited for;If from ECU
It finds itself to be unsatisfactory for sleep condition when in waiting sleep state, then enters normal operating conditions from ECU;
If 9) do not monitor that main ECU is sent in the preset duration (such as 3s) after entering pre- sleep state from ECU
NM messages, and itself meet sleep condition, then enter sleep state from ECU;It is monitored when if being in sleep state from ECU
The signal SleepCommand=0x0 that main ECU is sent, or monitor itself to be unsatisfactory for sleep condition, then enter from ECU normal
Working condition;
If 10) monitor other NM messages sent from ECU or main ECU after entering sleep state from ECU, or monitoring
It is unsatisfactory for sleep condition to itself, then enters normal operating conditions from ECU.
Main ECU and after ECU enters sleep state, network are closed.
It should be understood that in the above example, main ECU or from ECU monitor itself to be unsatisfactory for sleep condition include main ECU or from
ECU monitors local wake-up signal.
It in some embodiments, can be with as main ECU or when monitoring local wake-up signal or Remote Wake Up signal from ECU
NM messages are sent, and execute network startup flow.
Described above is the control methods of ECU according to the ... of the embodiment of the present invention, and basis is described below in conjunction with Fig. 5 to Fig. 8
The ECU of the embodiment of the present invention.
Fig. 5 is the structural schematic diagram of ECU according to the ... of the embodiment of the present invention.ECU shown in Fig. 5 is the main ECU in In-vehicle networking.
As shown in figure 5, ECU 500 includes receiving unit 510, transmission unit 520 and processing unit 530.
Receiving unit 510 is used to receive the indication signal sent by the slave ECU that ECU is controlled in In-vehicle networking, indication signal
It is used to indicate from ECU and meets sleep condition.
Transmission unit 520 is used to receive all indication signals respectively sent from ECU controlled by ECU in receiving unit
Later, SLEEP instruction is sent, SLEEP instruction is used to indicate all of ECU controls and enters sleep state from ECU.
Processing unit 530 is for making ECU enter sleep state.
In the embodiment of the present invention, main ECU receive its control it is all respectively sent from ECU be used to indicate from ECU
After meeting the indication signal of sleep condition, what is controlled to it is all from ECU transmission sleep instructions, indicates that these enter from ECU
Sleep state enables to all ECU to enter sleep state in the case where meeting sleep condition in this way, so as to avoid discontented
The slave ECU of sufficient sleep condition is forced to sleep.
Optionally, processing unit 530 is specifically used for:Direct application program out of service simultaneously closes sending function, make ECU into
Enter sleep state;
Or first application program out of service, sending function is closed after waiting for the first duration, and when waiting for second
ECU is set to enter sleep state after long.
Optionally, as shown in fig. 6, ECU 500 can also include:
Monitoring unit 540, for monitoring the enabling signal in In-vehicle networking, enabling signal enters normally for triggering ECU
Working condition.
Optionally, processing unit 530 is specifically used for:
Application program out of service, and ECU is made to enter waiting sleep state;
Enter within the first duration after waiting for sleep state in ECU, if monitoring unit 540 does not monitor to start
Signal then closes sending function, and ECU is made to enter pre- sleep state;
In the second duration after ECU enters pre- sleep state, if monitoring unit 540 does not monitor to start letter
Number, then so that ECU is entered sleep state.
Optionally, processing unit 530 is additionally operable to after transmission unit 510 sends indication signal, so that ECU is entered waiting and is slept
Dormancy state.Correspondingly, processing unit 530 is specifically used for after receiving unit 520 receives SLEEP instruction, is referred to according to the sleep
It enables and closes sending function, so that ECU is entered pre- sleep state, and after waiting for the second duration, ECU is made to enter sleep state.
Optionally, processing unit 530 is additionally operable to:
Enter within the first duration after waiting for sleep state in ECU, if monitoring unit 540 monitors to start letter
Number, then the corresponding application program of the enabling signal that brings into operation, and ECU is made to enter normal operating conditions from waiting sleep state.
Optionally, processing unit 530 is additionally operable to:
In the second duration after ECU enters pre- sleep state, if monitoring unit 540 monitors enabling signal,
Sending function, the corresponding application program of the enabling signal that brings into operation are opened, and ECU is made to enter normal work shape from pre- sleep state
State.
Optionally, processing unit 530 is additionally operable to determine whether itself meets sleep condition;
Transmission unit 510 is specifically used for, and in the case where the determination of processing unit 530 itself meets sleep condition, transmission is slept
It sleeps and instructs.
It should be understood that ECU 500 shown in Fig. 5 and Fig. 6 can correspond in the control method of ECU according to the ... of the embodiment of the present invention
Main ECU, and above and other operation and/or function of each unit in ECU 500 shown in Fig. 5 and Fig. 6 is respectively for reality
The corresponding flow of method shown in existing Fig. 1, for sake of simplicity, details are not described herein.
It should also be understood that transmission unit 510, receiving unit 520 and monitoring unit 540 can be realized by transceiver, processing is single
Member 530 can be realized by processor.
Fig. 7 shows the structural schematic diagram of ECU according to another embodiment of the present invention.As shown in fig. 7, ECU 700 can be with
Including processor 710 and transceiver 720, processor 710 is connected with transceiver 720.
Specifically, processor 710 can be used to implement the function of processing unit 530 in ECU shown in Fig. 5 and Fig. 6, transceiver
720 can be used to implement the function of transmission unit 510, receiving unit 520 and monitoring unit 540 in ECU shown in Fig. 5 and Fig. 6.
It should be understood that in embodiments of the present invention, which can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processing, DSP), application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Optionally, ECU 700 shown in Fig. 7 can also include memory, the memory may include read-only memory and with
Machine accesses memory, and provides instruction and data to processor 710, and processor 710 is made to realize in ECU 500 shown in Fig. 5 and Fig. 6
Processing unit 530 function.The a part of of memory can also include nonvolatile RAM.
During realization, each step of the above method can pass through the integrated logic circuit of the hardware in processor 710
Or the instruction of software form is completed.The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly at hardware
Reason device executes completion, or in processor hardware and software module combine and execute completion.Software module can be located at random
The abilities such as memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register
In the storage medium of domain maturation.The storage medium is located at memory, and processor 710 reads the information in memory, hard in conjunction with it
Part completes the step of above method.To avoid repeating, it is not detailed herein.
It should be understood that ECU 700 according to the ... of the embodiment of the present invention can correspond to the controlling party of ECU according to the ... of the embodiment of the present invention
Main ECU in method and ECU according to the ... of the embodiment of the present invention 500, and above and other behaviour of the modules in ECU700
Make and/or function is respectively in order to realize the corresponding flow of method shown in Fig. 1, for sake of simplicity, details are not described herein.
Fig. 8 is the structural schematic diagram of ECU according to another embodiment of the present invention, the structural schematic diagram in the embodiment be from
The structural schematic diagram of ECU.As shown in figure 8, ECU 800 may include processing unit 810, transmission unit 820 and receiving unit
830。
Processing unit 810 is for determining whether itself meets sleep condition.
Transmission unit 820 is used in the case where the determination of processing unit 810 itself meets sleep condition, into In-vehicle networking
Main ECU corresponding with ECU sends indication signal, and indication signal, which is used to indicate from ECU, meets sleep condition.
Receiving unit 830 for receiving SLEEP instruction, SLEEP instruction be in In-vehicle networking with from the corresponding main ECU hairs of ECU
It send;
Processing unit 810 is additionally operable to the SLEEP instruction received according to receiving unit 830, and ECU is made to enter sleep state.
In the embodiment of the present invention, refer to from ECU to corresponding main ECU transmissions in the case where determining that itself meets sleep condition
Show signal, to inform that main ECU has met sleep condition, then after receiving the SLEEP instruction that main ECU is sent, according to sleep
Instruction enters sleep state, and the slave ECU for being unsatisfactory for sleep condition can be avoided to be forced to sleep in this way.
Optionally, processing unit 810 is specifically used for:
According to SLEEP instruction application program directly out of service and sending function is closed, ECU is made to enter sleep state;
Or according to the first application program out of service of SLEEP instruction, sending function is closed after waiting for the first duration, and
ECU is set to enter sleep state after waiting for the second duration.
Optionally, as shown in figure 9, ECU 800 can also include:
Monitoring unit 840, for monitoring the enabling signal in In-vehicle networking, enabling signal enters normally for triggering ECU
Working condition.
Optionally, processing unit 810 is specifically used for:
According to SLEEP instruction application program out of service, and enters and wait for sleep state;
Enter in the first duration after waiting for sleep state in ECU, if monitoring unit 840 does not monitor to start letter
Number, then sending function is closed, and ECU is made to enter pre- sleep state;
In the second duration after ECU enters pre- sleep state, if monitoring unit 840 does not monitor to start letter
Number, then enter sleep state from ECU.
Optionally, processing unit 810 is additionally operable to:
Enter in the first duration after waiting for sleep state in ECU, if monitoring unit 840 monitors enabling signal,
The corresponding application program of the enabling signal that then brings into operation, and ECU is made to enter normal operating conditions from waiting sleep state.
Optionally, processing unit 810 is additionally operable to:
In the second duration after entering pre- sleep state, if monitoring unit 840 monitors enabling signal, open
Sending function, the corresponding application program of the enabling signal that brings into operation, and ECU is made to enter normal operating conditions from pre- sleep state.
It should be understood that ECU 800 shown in Fig. 8 and Fig. 9 can correspond in the control method of ECU according to the ... of the embodiment of the present invention
From ECU, and above and other operation and/or function of each unit in ECU 800 shown in Fig. 8 and Fig. 9 is respectively for reality
The corresponding flow of method shown in existing Fig. 2, for sake of simplicity, details are not described herein.
It should also be understood that processing unit 810 can be realized by processor, transmission unit 820, receiving unit 830 and monitoring are single
Member 840 can be realized by transceiver.
Figure 10 shows the structural schematic diagram of ECU according to another embodiment of the present invention.As shown in Figure 10, ECU 1000 can
To include processor 1010 and transceiver 1020, processor 1010 is connected with transceiver 1020.
Specifically, processor 1010 can be used to implement the function of processing unit 810 in ECU 800 shown in Fig. 8 and Fig. 9,
Transceiver 1020 can be used to implement transmission unit 820 in ECU 800 shown in Fig. 8 and Fig. 9, receiving unit 830 and monitoring unit
840 function.
It should be understood that in embodiments of the present invention, which can be CPU, which can also be it
His general processor, DSP, ASIC, FPGA either other programmable logic device, discrete gate or transistor logic, point
Vertical hardware component etc..General processor can be microprocessor or the processor can also be any conventional processor etc..
Optionally, ECU shown in Figure 10 can also include memory, which may include read-only memory and deposit at random
Access to memory, and instruction and data is provided to processor 1010, so that processor 1010 is realized the processing unit 810 in ECU 800
Function.The a part of of memory can also include nonvolatile RAM.
During realization, each step of the above method can pass through the integrated logic circuit of the hardware in processor 810
Or the instruction of software form is completed.The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly at hardware
Reason device executes completion, or in processor hardware and software module combine and execute completion.Software module can be located at random
The abilities such as memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register
In the storage medium of domain maturation.The storage medium is located at memory, and processor 1010 reads the information in memory, hard in conjunction with it
Part completes the step of above method.To avoid repeating, it is not detailed herein.
It should be understood that ECU 1000 according to the ... of the embodiment of the present invention can correspond to the control of ECU according to the ... of the embodiment of the present invention
Slave ECU in method and ECU according to the ... of the embodiment of the present invention 800, and the modules in ECU1000 above-mentioned and its
Its operation and/or function is respectively in order to realize the corresponding flow of method shown in Fig. 2, for sake of simplicity, details are not described herein.
This provides a kind of system to the embodiment of the present invention, which includes:Main electronic control unit as described above;With
And as described above from electronic control unit.Associated description about main electronic control unit and from electronic control unit, can be with
With reference to the specific descriptions of relevant process sections, the embodiment of the present invention will not be described in great detail herein.
An embodiment of the present invention provides a kind of vehicle, the vehicle includes:System as described above.About in the system
The description of related content can herein will not be described in great detail with the associated description of frame of reference part, the embodiment of the present invention.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, can also be during two or more units are integrated in one unit.It is above-mentioned integrated
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain subject to.