Summary of the invention
In view of this, the invention provides the control method of a kind of electronic control unit, electronic control unit, system and car
, it is possible to avoid being forced sleep from electronic control unit.
First aspect, it is provided that the control method of a kind of electronic control unit, described electronic control unit is applied to vehicle-mounted
Network, described method includes:
Main electronic control unit in described In-vehicle networking receives in described In-vehicle networking by described main electronic control unit
The indication signal sent from electronic control unit controlled, described indication signal is used for indicating and described meets from electronic control unit
Sleep condition;
Receiving all instruction letters each sent from electronic control unit controlled by described main electronic control unit
After number, described main electronic control unit sends SLEEP instruction, and described SLEEP instruction is used for indicating described main electronic control unit
Control is all from electronic control unit entrance sleep state;
Described main electronic control unit enters sleep state.
Alternatively, described main electronic control unit entrance sleep state includes:
The direct application program out of service of described main electronic control unit also closes sending function entrance sleep state;
Or described main electronic control unit first application program out of service, closes after waiting the first duration and sends merit
Can, and after waiting the second duration, enter sleep state.
Alternatively, described main electronic control unit first application program out of service, close after waiting the first duration and send out
Send function, and after waiting the second duration, enter sleep state, including:
Described main electronic control unit application program out of service, and enter wait sleep state;
In entering described first duration waited after sleep state, if described main electronic control unit is not monitored
To enabling signal, the most described main electronic control unit closes sending function, and enters pre-sleep state;
In entering described second duration after pre-sleep state, if described main electronic control unit does not monitor
Enabling signal, the most described main electronic control unit enters sleep state.
Alternatively, described method also includes:
In entering described first duration waited after sleep state, if described main electronic control unit monitors open
Dynamic signal, the most described main electronic control unit brings into operation application program corresponding to described enabling signal, and from waiting sleep shape
State enters normal operating conditions.
Alternatively, described method also includes:
In entering described second duration after pre-sleep state, if described main electronic control unit monitors startup
Signal, the most described main electronic control unit unlatching sending function, the application program that the described enabling signal that brings into operation is corresponding, and from
Pre-sleep state enters normal operating conditions.
Alternatively, all each sent from electronic control unit by what described main electronic control unit controlled receiving
After indication signal, also include:
Described main electronic control unit determines whether self meets sleep condition;
In the case of determining that self meets sleep condition, described main electronic control unit performs to send described sleep and refers to
Order.
Alternatively, the one during described enabling signal is power on signal, local wake-up signal and Remote Wake Up signal.
Second aspect, it is provided that the control method of a kind of electronic control unit, described electronic control unit is applied to vehicle-mounted
Network, described method includes:
From electronic control unit, described In-vehicle networking determines whether self meets sleep condition;
In the case of determining that self meets sleep condition, described from electronic control unit to described In-vehicle networking with institute
Stating and send indication signal from main electronic control unit corresponding to electronic control unit, described indication signal is used for indicating described from electricity
Sub-control unit meets sleep condition;
Described from electronic control unit receive SLEEP instruction, and according to described SLEEP instruction enter sleep state, described in sleep
Instruction of sleeping is to send with the described main electronic control unit corresponding from electronic control unit in described In-vehicle networking.
Alternatively, described from electronic control unit according to described SLEEP instruction enter sleep state include:
Described according to the direct application program out of service of described SLEEP instruction and close sending function from electronic control unit
Enter sleep state;
Or described from electronic control unit according to described SLEEP instruction first application program out of service, when waiting first
Close sending function after length, and after waiting the second duration, enter sleep state.
Alternatively, described from electronic control unit according to described SLEEP instruction first application program out of service, waiting the
Close sending function after one duration, and after waiting the second duration, enter sleep state, including:
Described from electronic control unit according to described SLEEP instruction application program out of service, and enter wait sleep shape
State;
In entering described first duration waited after sleep state, do not monitor from electronic control unit if described
To enabling signal, then described from electronic control unit closedown sending function, and enter pre-sleep state;
In entering described second duration after pre-sleep state, do not monitor from electronic control unit if described
Enabling signal, then described from electronic control unit entrance sleep state.
Alternatively, described method also includes:
In entering described first duration waited after sleep state, if described monitoring from electronic control unit is opened
Dynamic signal, then described bring into operation application program corresponding to described enabling signal from electronic control unit, and from waiting sleep shape
State enters normal operating conditions.
Alternatively, described method also includes:
In entering described second duration after pre-sleep state, if described monitor from electronic control unit described
Enabling signal, then described open sending function from electronic control unit, the application program that the described enabling signal that brings into operation is corresponding,
And enter normal operating conditions from pre-sleep state.
Alternatively, the one during described enabling signal is power on signal, local wake-up signal and Remote Wake Up signal.
The third aspect, it is provided that a kind of electronic control unit, described electronic control unit is applied to In-vehicle networking, described electricity
Sub-control unit is the main electronic control unit in described In-vehicle networking, and described electronic control unit includes:
Receive unit, for receive in described In-vehicle networking by described electronic control unit control from electronic control unit
The indication signal sent, described indication signal is used for indicating and described meets sleep condition from electronic control unit;
Transmitting element, for described reception unit receive by described electronic control unit control all from electronics control
After the indication signal that unit processed each sends, sending SLEEP instruction, described SLEEP instruction is used for indicating described Electronic Control list
It is all from electronic control unit entrance sleep state that unit controls;
Described processing unit, is used for making described electronic control unit enter sleep state.
Alternatively, described processing unit specifically for: direct application program out of service also closes sending function, makes described
Electronic control unit enters sleep state;
Or first application program out of service, closes sending function after waiting the first duration, and when waiting second
Described electronic control unit is made to enter sleep state after length.
Alternatively, described processing unit specifically for:
Within entering described first duration waited after sleep state, if described monitoring means does not monitor institute
State enabling signal, then close sending function, and make described electronic control unit enter pre-sleep state;
In described second duration after described electronic control unit enters pre-sleep state, if described monitoring means
Do not monitor enabling signal, then make described electronic control unit enter sleep state.
Alternatively, described processing unit is additionally operable to:
Within described electronic control unit enters described first duration waited after sleep state, if described monitoring
Unit monitors described enabling signal, then the application program that the described enabling signal that brings into operation is corresponding, and makes described Electronic Control
Unit is from waiting that sleep state enters normal operating conditions.
Alternatively, described processing unit is additionally operable to:
In described second duration after described electronic control unit enters pre-sleep state, if described monitoring means
Monitor described enabling signal, then open sending function, the application program that the described enabling signal that brings into operation is corresponding, and make described
Electronic control unit enters normal operating conditions from pre-sleep state.
Alternatively, described processing unit is additionally operable to determine whether self meets sleep condition;
Described transmitting element specifically for, in the case of described processing unit determines and self meets sleep condition, send
Described SLEEP instruction.
Fourth aspect, it is provided that a kind of electronic control unit, described electronic control unit is applied to In-vehicle networking, described electricity
Sub-control unit be in described In-vehicle networking from electronic control unit, described electronic control unit includes:
Processing unit, is used for determining whether self meets sleep condition;
Transmitting element, in the case of described processing unit determines and self meets sleep condition, to described vehicle-mounted net
Main electronic control unit corresponding with described electronic control unit in network sends indication signal, and described indication signal is used for indicating institute
State and meet sleep condition from electronic control unit;
Receive unit, be used for receiving SLEEP instruction, described SLEEP instruction be in described In-vehicle networking with described from electronics control
The main electronic control unit that unit processed is corresponding sends;
Described processing unit is additionally operable to the described SLEEP instruction received according to described reception unit, makes described Electronic Control
Unit enters sleep state.
Alternatively, described processing unit specifically for:
According to the direct application program out of service of described SLEEP instruction and close sending function, make described electronic control unit
Enter sleep state;
Or according to described SLEEP instruction first application program out of service, close after waiting the first duration and send merit
Can, and make described electronic control unit enter sleep state after waiting the second duration.
Alternatively, described electronic control unit also includes:
Monitoring means, for monitoring the enabling signal in described In-vehicle networking, described enabling signal is used for triggering described electricity
Sub-control unit enters normal operating conditions.
Alternatively, described processing unit specifically for:
In entering described first duration waited after sleep state, if described monitoring means does not monitor startup
Signal, then close sending function, and make described electronic control unit enter pre-sleep state;
In described second duration after described electronic control unit enters pre-sleep state, if described monitoring means
Do not monitor enabling signal, then described from electronic control unit entrance sleep state.
Alternatively, described processing unit is additionally operable to:
In described electronic control unit enters described first duration waited after sleep state, if described monitoring is single
Unit monitors described enabling signal, then the application program that the described enabling signal that brings into operation is corresponding, and makes described Electronic Control list
Unit is from waiting that sleep state enters normal operating conditions.
Alternatively, described processing unit is additionally operable to:
In entering described second duration after pre-sleep state, if described monitoring means monitors described startup and believes
Number, then open sending function, the application program that the described enabling signal that brings into operation is corresponding, and make described electronic control unit from advance
Sleep state enters normal operating conditions.
5th aspect, it is provided that a kind of system, described system includes:
Main electronic control unit described in the third aspect;And,
Described in fourth aspect from electronic control unit.
6th aspect, it is provided that a kind of vehicle, described vehicle includes: the system described in the 5th aspect.
7th aspect, it is provided that a kind of computer-readable recording medium, this computer-readable recording medium has program stored therein,
Running this program makes electronic control unit perform the method described in above-mentioned first aspect or second aspect.
Based on technique scheme, the main ECU in the present invention is receiving its all use each sent from ECU controlled
After instruction meets the indication signal of sleep condition from ECU, all send sleep instruction from ECU to what it controlled, indicate this
A bit enter sleep state from ECU, so enable to all in the case of meeting sleep condition, enter sleep state from ECU,
Thus avoid and be forced sleep from ECU.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiment wholely.Based on this
Embodiment in bright, other realities all that those of ordinary skill in the art are obtained on the premise of not making creative work
Execute example, all should belong to the scope of protection of the invention.
Should be understood that the term " first ", " second " and " the 3rd " in the description and claims of this application and accompanying drawing
Etc. being for distinguishing different object rather than for describing particular order.
ECU in In-vehicle networking can use controller local area network (Controller Area Network, CAN) total
Line technology realizes data exchange, it is also possible to use other bussing techniques to realize data exchange, such as local internet (Local
Interconnect Network, LIN) bus, multimedia orientation system transmission (Media Oriented System
Transport, MOST) bus and FlexRay bus etc..
Firing key according to vehicle closes the duty of (such as firing key is positioned at OFF) ECU afterwards, can be by
ECU in the In-vehicle networking of vehicle is divided into two classes: I class ECU and II class ECU.
I class ECU: such ECU can when firing key is switched to ACC position or ON position by OFF lead to
Letter, non-OFF stop communication at once after being switched to OFF or time delay communicate a period of time.
II class ECU: such ECU can communicate when firing key is positioned at OFF.
In other words, I class ECU cannot utilize In-vehicle networking to communicate after firing key is positioned at OFF, II class
ECU can utilize In-vehicle networking to communicate after firing key is positioned at OFF.
When the firing key of vehicle is positioned at OFF, the ECU in partial devices in vehicle can communicate, such as
ECU in the device such as anti-theft device, car door lock can communicate.
When the firing key of vehicle is positioned at ACC position, vehicle can carry out low pressure and power on, i.e. low-tension supply gives some adnexa system
System, ancillary apparatus etc. are powered, and such as electricity adjusts seat, sound system, windscreen wiper water injection system, cigar lighter, power sunroof etc..
When the firing key of vehicle is positioned at ON position, vehicle can carry out high pressure and power on, and opens full car power supply.
Should be understood that in the embodiment of the present invention, In-vehicle networking can include main ECU and from ECU.Master in the embodiment of the present invention
ECU and can be II class ECU from ECU.
Should also be understood that in the embodiment of the present invention that In-vehicle networking can include a main ECU and multiple from ECU, but the present invention
This is not limited by embodiment, when the quantity of the ECU in In-vehicle networking is more, it is also possible to arrange two or more master
ECU, the most each main ECU corresponding at least one from ECU.
Each ECU in In-vehicle networking can include micro-control unit (Microcontroller Unit, MCU) and transmitting-receiving
Device (transceiver).
Fig. 1 is the indicative flowchart of the control method of ECU according to embodiments of the present invention.Shown in Fig. 1, method is applied to
In-vehicle networking, as it is shown in figure 1, the control method of ECU includes following content.
110, the indication signal sent from ECU controlled by main ECU during main ECU receives In-vehicle networking, indication signal is used for
Instruction meets sleep condition from ECU.
120, receive by main ECU control all after the indication signal that ECU each sends, main ECU send sleep
Sleeping and instruct, SLEEP instruction is all from ECU entrance sleep state for indicate main ECU to control.
It is all after this indication signal that ECU sends that main ECU receives that it controls, would know that it controls all from
ECU has met sleep condition the most.Now, main ECU sends SLEEP instruction, it is possible to avoid being unsatisfactory for sleep condition from ECU by by force
System sleep.
In certain embodiments, main ECU can broadcast this SLEEP instruction in In-vehicle networking.
130, main ECU enters sleep state.
In the embodiment of the present invention, main ECU receive its control all from ECU each send for instruction from ECU
After meeting the indication signal of sleep condition, to its control all from ECU send sleep instruction, indicate these from ECU enter
Sleep state, so enables to all ECU and enters sleep state in the case of meeting sleep condition, thus avoid discontented
Foot sleep condition from ECU be forced sleep.
Alternatively, in step 120, main ECU sends SLEEP instruction, including:
Main ECU determines whether self meets sleep condition;
In the case of determining that self meets sleep condition, main ECU sends SLEEP instruction.
In the embodiment of the present invention, main ECU both can determine its all transmissions after ECU meets sleep condition controlled
SLEEP instruction, it is also possible to all send SLEEP instruction from ECU with after self all meeting sleep condition determine that it controls.
Alternatively, in step 140, main ECU enters sleep state and includes: the direct application program out of service of main ECU also closes
Close sending function and enter sleep state.So, main ECU all send after SLEEP instruction and can enter from ECU control to it
Sleep state.
Alternatively, in step 140, main ECU enters sleep state and includes: main ECU first application program out of service, is waiting
Close sending function after first duration, and after waiting the second duration, enter sleep state.It is to say, main ECU is entering
First wait for a period of time before entering sleep state, then step into sleep state.So, if main ECU is entering sleep shape
Enabling signal is monitored, it is possible to timely enter normal operating conditions before state.
Alternatively, main ECU first application program out of service, after waiting the first duration, close sending function, and waiting
Sleep state is entered after treating the second duration, including:
Main ECU application program out of service, and enter wait sleep state;
Within entering the first duration waited after sleep state, if main ECU does not monitor enabling signal, then 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, the most main ECU enters
Enter sleep state.
In the embodiment of the present invention, when ECU is in wait sleep state, application program out of service, it is possible to receive and send
Message;When ECU is in pre-sleep state, transceiver is able to receive that message, it is impossible to enough send message, and other functional modules are the most just
Often run, be in normal-power mode;When ECU is in sleep state, transceiver is able to receive that message, and other functional modules are closed
Close, be 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 application message, but network management message can only be identified, it is impossible to identify application report
Literary composition.
Therefore, ECU is from waiting that sleep state, pre-sleep state and sleep state enter the time that normal operating conditions needs
Different.Such as, the time that ECU enters normal operating conditions needs from sleep state enters normal work more than from pre-sleep state
The time that state needs, the time that ECU enters normal operating conditions from pre-sleep state and needs enters more than from wait sleep state
Enter the time that normal operating conditions needs.
In the embodiment of the present invention, ECU sequentially passes through wait sleep state and pre-sleep state before entering sleep state, when
Normal operating conditions can be timely entered when ECU is unsatisfactory for sleep condition.
Alternatively, shown in Fig. 1, method also includes:
Within entering the first duration after waiting sleep state, if main ECU monitors enabling signal, the most main ECU opens
Begin to run the application program that enabling signal is corresponding, and from waiting that sleep state enters normal operating conditions.
Alternatively, shown in Fig. 1, method also includes:
In the second duration after entering pre-sleep state, if main ECU monitors enabling signal, the most main ECU opens and sends out
Send function, the application program that the enabling signal that brings into operation is corresponding, and enter normal operating conditions from pre-sleep state.
Alternatively, shown in Fig. 1, method also includes:
Upon entering the sleep state, if main ECU monitors enabling signal, the most main ECU completes to initialize, and enables and is 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 sum, when main ECU is in wait sleep state, pre-sleep state and sleep state, if monitoring startup
Signal, the most main ECU enters normal operating conditions, as shown in Figure 2.
In certain embodiments, when main ECU is in wait sleep state, pre-sleep state and sleep state, if monitoring
To enabling signal, the most main ECU can also in In-vehicle networking broadcast network management message, with wake up up its control from ECU.
Alternatively, the one during enabling signal is power on signal, local wake-up signal and Remote Wake Up signal.
In certain embodiments, power on signal can be the power on signal of main ECU place vehicle.
In certain embodiments, local wake-up signal can be car door opening signal, charging gun insertion signal or start key
Spoon inserts signal etc..
In certain embodiments, Remote Wake Up signal can be the CAN message that monitors of main ECU or CAN swashs
Signal alive.Such as, Remote Wake Up signal can be arbitrary network management report sent by CAN from ECU that main ECU controls
Literary composition.
In certain embodiments, the event of powering on triggering power on signal can be ignition switch, such as firing key
ON position is switched to from OFF.
The In-vehicle networking of vehicle can be divided into multiple system.In certain embodiments, In-vehicle networking can include power
Transmission system, body control system, security system and information system etc., wherein, dynamic transfer system can include electromotor, prevent
Antilock brake system (Antilock Brake System, ABS) and automatic transmission;Body control system includes central authorities' control
Unit and door control unit;Security system includes that air bag starts system;Information system includes the multimedia such as video, audio frequency
Unit.Should be understood that In-vehicle networking can also use other model split to be multiple system, this is not limited by the embodiment of the present invention
Fixed.
In certain embodiments, the local wake events triggering local wake-up signal can be from ECU said system
Wake events.Such as, for the ECU in being arranged on different device, local wake events can be car door opening, charging gun
Insertion or initiation key insertion etc..
In certain embodiments, trigger Remote Wake Up signal Remote Wake Up event can be from ECU said system it
The wake events of outer other system.
Fig. 3 is the indicative flowchart of the control method of ECU according to another embodiment of the present invention.Method shown in Fig. 3 should
For In-vehicle networking, as it is shown on figure 3, the control method of ECU includes following content.
310, determine whether self meets sleep condition from ECU.
320, in the case of determining that self meets sleep condition, from ECU to master corresponding with from ECU In-vehicle networking
ECU sends indication signal, and indication signal meets sleep condition for instruction from ECU.
330, receiving SLEEP instruction from ECU, and make ECU enter sleep state according to SLEEP instruction, this SLEEP instruction is car
Main ECU corresponding with from ECU in contained network network sends.
In certain embodiments, its institute was being received with this from main ECU corresponding for ECU during this SLEEP instruction is In-vehicle networking
Control all from ECU send indication signal after send.Or, this SLEEP instruction is in In-vehicle networking and should be from ECU
Corresponding main ECU all sends know that it is controlled after ECU is satisfied by sleep condition.
In the embodiment of the present invention, refer to determining to send to corresponding main ECU in the case of self meets sleep condition from ECU
Show signal, to inform that main ECU has met sleep condition, then after receiving the SLEEP instruction that main ECU sends, according to sleep
Instruction enter sleep state, so it can be avoided that be unsatisfactory for sleep condition from ECU be forced sleep.
Alternatively, in step 330, enter sleep state from ECU according to SLEEP instruction and include:
According to the direct application program out of service of SLEEP instruction and sending function entrance sleep state is closed from ECU.
Alternatively, in step 330, enter sleep state from ECU according to SLEEP instruction and include:
From ECU according to SLEEP instruction first application program out of service, after waiting the first duration, close sending function, and
Sleep state is entered after waiting the second duration.
Correspondingly, from ECU according to SLEEP instruction first application program out of service, close after waiting the first duration and send
Function, and after waiting the second duration, enter sleep state, including:
From ECU according to SLEEP instruction application program out of service, and enter wait sleep state;
In entering the first duration waited after sleep state, if do not monitor enabling signal from ECU, then from
ECU closes sending function, and enters pre-sleep state;
In entering the second duration after pre-sleep state, if not monitoring enabling signal from ECU, then from ECU
Enter sleep state.
Alternatively, after ECU sends indication signal to main ECU corresponding with from ECU In-vehicle networking, side shown in Fig. 3
Method also includes: from electronic unit application program out of service, enters and waits sleep state.Correspondingly, in step 330, from ECU root
Sleep state is entered according to SLEEP instruction, including: directly close sending function from ECU according to SLEEP instruction and enter sleep state;Or
Person, closes sending function from ECU according to SLEEP instruction, enters pre-sleep state, and enters sleep after waiting the second duration
State.Such as, from ECU in entering the second duration after pre-sleep state, without monitoring enabling signal, then from
ECU enters sleep state from pre-sleep state.
Alternatively, shown in Fig. 3, method also includes:
In entering the first duration waited after sleep state, if monitoring enabling signal from ECU, then open from ECU
Begin to run the application program that enabling signal is corresponding, and from waiting that sleep state enters normal operating conditions.
Alternatively, shown in Fig. 3, method also includes:
In entering the second duration after pre-sleep state, if monitoring enabling signal from ECU, then open from ECU
Sending function, the application program that the enabling signal that brings into operation is corresponding, and enter normal operating conditions from pre-sleep state.
In sum, when ECU is in wait sleep state, pre-sleep state and sleep state, if monitoring startup
Signal, then enter normal operating conditions from ECU, as shown in Figure 4.
In certain embodiments, when ECU is in wait sleep state, pre-sleep state and sleep state, if monitoring
To enabling signal, then from ECU can also to broadcast network management message In-vehicle networking, with wake up up its correspondence main ECU and
Other of this main ECU control are from ECU.
Alternatively, the one during enabling signal is power on signal, local wake-up signal and Remote Wake Up signal.
Illustratively, power on signal can be the power on signal from ECU place vehicle, and local wake-up signal can be that car door is opened
Open signal, charging gun inserts signal or initiation key and inserts signal, Remote Wake Up signal can be CAN message or CAN total
Line activation signal.Such as, Remote Wake Up signal can be main ECU or other network management reports sent by CAN from ECU
Literary composition.
Control method below in conjunction with object lesson description ECU according to embodiments of the present invention.
Assume that the In-vehicle networking of vehicle includes a main ECU and multiple from ECU.Main ECU and multiple arbitrary from ECU
As follows from the workflow of ECU:
1) after network startup, main ECU and normally send from ECU and receive CAN message;
2) judge whether to meet sleep condition according to the network information monitored from ECU;When judging to meet sleep condition,
Sending signal SleepConditionsReady=0x1, this signal currently meets sleep condition for indicating from ECU, and enters
Wait sleep state;
3) receiving all after the signal SleepConditionsReady=0x1 that ECU sends as main ECU, main ECU sentences
Break and self whether meet sleep condition, and in the case of self also meets sleep condition, send sleep commands signal
SleepCommand=0x1;
4), after main ECU sends sleep commands signal SleepCommand=0x1, enter and wait sleep
5) if main ECU does not monitors other from ECU in entering the preset duration (such as 5s) after waiting sleep state
The NM message sent, and self meet sleep condition, the most main ECU stops sending message, enters pre-sleep state;If main ECU
Monitoring arbitrary NM message sent from ECU in waiting sleep state or find that self is unsatisfactory for sleep condition, the most main ECU enters
Enter normal operating conditions;
6) if not monitoring other in main ECU preset duration (such as 5s) after entering pre-sleep state and sending out from ECU
The NM message sent, and self currently meet sleep condition, the most main ECU enters sleep state;If main ECU is in pre-sleep state
Monitoring arbitrary NM message sent from ECU or find that self is unsatisfactory for sleep condition, the most main ECU enters normal operating conditions;
7) if main ECU monitors arbitrary NM message sent from ECU or finds that self is unsatisfactory for after entering sleep state
Sleep condition, the most main ECU enters normal operating conditions;
8) if receiving, when ECU is in and waits sleep state, the sleep commands signal that main ECU sends
SleepCommand=0x1, then stop sending message from ECU, from waiting that sleep state enters pre-sleep state;If from ECU
Find that self is unsatisfactory for sleep condition when being in wait sleep state, then enter normal operating conditions from ECU;
9) if not monitoring main ECU in ECU preset duration (such as 3s) after entering pre-sleep state and sending
NM message, and self meet sleep condition, then enter sleep state from ECU;If monitored when ECU is in sleep state
The signal SleepCommand=0x0 that main ECU sends, or monitor self and be unsatisfactory for sleep condition, then enter normal from ECU
Duty;
10) if monitoring other NM messages sent from ECU or main ECU after ECU enters sleep state, or monitoring
It is unsatisfactory for sleep condition to self, then enters normal operating conditions from ECU.
Main ECU and entering after sleep state from ECU, network is closed.
Should be understood that in the above example, main ECU or monitor from ECU self be unsatisfactory for sleep condition include main ECU or from
ECU monitors local wake-up signal.
In certain embodiments, when as main ECU or monitoring local wake-up signal or Remote Wake Up signal from ECU, permissible
Send NM message, and perform network startup flow process.
Described above is the control method of ECU according to embodiments of the present invention, describe basis below in conjunction with Fig. 5 to Fig. 8
The ECU of the embodiment of the present invention.
Fig. 5 is the structural representation of ECU according to embodiments of the present invention.ECU shown in Fig. 5 is the main ECU in In-vehicle networking.
As it is shown in figure 5, ECU 500 includes receiving unit 510, transmitting element 520 and processing unit 530.
Receive unit 510 for receiving the indication signal sent from ECU controlled in In-vehicle networking, indication signal by ECU
Sleep condition is met from ECU for instruction.
Transmitting element 520 is for receiving, at reception unit, all indication signals each sent from ECU controlled by ECU
Afterwards, sending SLEEP instruction, SLEEP instruction is all from ECU entrance sleep state for indicate ECU to control.
Processing unit 530 is used for making ECU enter sleep state.
In the embodiment of the present invention, main ECU receive its control all from ECU each send for instruction from ECU
After meeting the indication signal of sleep condition, to its control all from ECU send sleep instruction, indicate these from ECU enter
Sleep state, so enables to all ECU and enters sleep state in the case of meeting sleep condition, thus avoid discontented
Foot sleep condition from ECU be forced sleep.
Alternatively, processing unit 530 specifically for: direct application program out of service also closes sending function, makes ECU enter
Enter sleep state;
Or first application program out of service, closes sending function after waiting the first duration, and when waiting second
ECU is made to enter sleep state after length.
Alternatively, as shown in Figure 6, ECU 500 can also include:
Monitoring means 540, for monitoring the enabling signal in In-vehicle networking, enabling signal is used for triggering ECU and enters normal
Duty.
Alternatively, processing unit 530 specifically for:
Application program out of service, and make ECU enter wait sleep state;
Within ECU enters the first duration waited after sleep state, if monitoring means 540 does not monitor startup
Signal, then close sending function, and make ECU enter pre-sleep state;
In the second duration after ECU enters pre-sleep state, if monitoring means 540 does not monitor startup letter
Number, then make ECU enter sleep state.
Alternatively, processing unit 530 is additionally operable to after transmitting element 510 sends indication signal, makes ECU enter wait and sleeps
Dormancy state.Correspondingly, processing unit 530 is specifically for, after receiving unit 520 and receiving SLEEP instruction, referring to according to this sleep
Sending function is closed in order, makes ECU enter pre-sleep state, and after waiting the second duration, makes ECU enter sleep state.
Alternatively, processing unit 530 is additionally operable to:
Within ECU enters the first duration waited after sleep state, if monitoring means 540 monitors startup letter
Number, then the application program that the enabling signal that brings into operation is corresponding, and make ECU from waiting that sleep state enters normal operating conditions.
Alternatively, processing unit 530 is additionally operable to:
In the second duration after ECU enters pre-sleep state, if monitoring means 540 monitors enabling signal, then
Open sending function, the application program that the enabling signal that brings into operation is corresponding, and make ECU enter, from pre-sleep state, the shape that normally works
State.
Alternatively, processing unit 530 is additionally operable to determine whether self meets sleep condition;
Transmitting element 510 specifically for, in the case of processing unit 530 determines and self meets sleep condition, transmission is slept
Sleep and instruct.
Should be understood that in the control method that ECU 500 shown in Fig. 5 and Fig. 6 may correspond to ECU according to embodiments of the present invention
Above and other operation of the unit in main ECU, and ECU 500 shown in Fig. 5 and Fig. 6 and/or function are respectively for reality
The corresponding flow process of method shown in existing Fig. 1, for sake of simplicity, do not repeat them here.
Should also be understood that transmitting element 510, reception unit 520 and monitoring means 540 can be realized by transceiver, process single
Unit 530 can be realized by processor.
Fig. 7 shows the structural representation of ECU according to another embodiment of the present invention.As it is shown in fig. 7, ECU 700 is permissible
Including processor 710 and transceiver 720, processor 710 is connected with transceiver 720.
Specifically, processor 710 may be used for realizing the function of processing unit 530, transceiver in ECU shown in Fig. 5 and Fig. 6
720 may be used for realizing transmitting element 510 in ECU shown in Fig. 5 and Fig. 6, receiving unit 520 and the function of monitoring means 540.
Should be understood that in embodiments of the present invention, this processor 710 can be CPU (Central
Processing Unit, CPU), this processor 710 can also is that other general processors, digital signal processor (Digital
Signal Processing, DSP), special IC (Application Specific Integrated Circuit,
ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
Reason device can also be the processor etc. of any routine.
Alternatively, ECU 700 shown in Fig. 7 can also include memorizer, this memorizer can include read only memory and with
Machine access memorizer, and provide instruction and data to processor 710, make processor 710 realize in ECU 500 shown in Fig. 5 and Fig. 6
The function of processing unit 530.A part for memorizer can also include nonvolatile RAM.
During realizing, each step of said method can be by the integrated logic circuit of the hardware in processor 710
Or the instruction of software form completes.Step in conjunction with the method disclosed in the embodiment of the present invention can be embodied directly at hardware
Reason device has performed, or completes with the hardware in processor and software module combination execution.Software module may be located at random
The abilities such as memorizer, flash memory, read only memory, programmable read only memory or electrically erasable programmable memorizer, depositor
In the storage medium that territory is ripe.This storage medium is positioned at memorizer, and processor 710 reads the information in memorizer, hard in conjunction with it
Part completes the step of said method.For avoiding repeating, it is not detailed herein.
Should be understood that ECU 700 according to embodiments of the present invention may correspond to the controlling party of ECU according to embodiments of the present invention
Main ECU in method and ECU according to embodiments 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 process of method shown in Fig. 1, for sake of simplicity, do not repeat them here.
Fig. 8 is the structural representation of ECU according to another embodiment of the present invention, the structural representation in this embodiment be from
The structural representation of ECU.As shown in Figure 8, ECU 800 can include processing unit 810, transmitting element 820 and receive unit
830。
Processing unit 810 is used for determining whether self meets sleep condition.
Transmitting element 820 is in the case of processing unit 810 determines and self meets sleep condition, in In-vehicle networking
The main ECU corresponding with ECU sends indication signal, and indication signal meets sleep condition for instruction from ECU.
Receiving unit 830 and be used for receiving SLEEP instruction, the main ECU that SLEEP instruction is corresponding with from ECU in In-vehicle networking sends out
Send;
Processing unit 810 is additionally operable to, according to receiving the SLEEP instruction that unit 830 receives, make ECU enter sleep state.
In the embodiment of the present invention, refer to determining to send to corresponding main ECU in the case of self meets sleep condition from ECU
Show signal, to inform that main ECU has met sleep condition, then after receiving the SLEEP instruction that main ECU sends, according to sleep
Instruction enter sleep state, so it can be avoided that be unsatisfactory for sleep condition from ECU be forced sleep.
Alternatively, processing unit 810 specifically for:
According to the direct application program out of service of SLEEP instruction and close sending function, ECU is made to enter sleep state;
Or according to SLEEP instruction first application program out of service, after waiting the first duration, close sending function, and
ECU is made to enter sleep state after waiting the second duration.
Alternatively, as it is shown in figure 9, ECU 800 can also include:
Monitoring means 840, for monitoring the enabling signal in In-vehicle networking, enabling signal is used for triggering ECU and enters normal
Duty.
Alternatively, processing unit 810 specifically for:
According to SLEEP instruction application program out of service, and enter wait sleep state;
In ECU enters the first duration waited after sleep state, if monitoring means 840 does not monitor startup letter
Number, then close sending function, and make ECU enter pre-sleep state;
In the second duration after ECU enters pre-sleep state, if monitoring means 840 does not monitor startup letter
Number, then enter sleep state from ECU.
Alternatively, processing unit 810 is additionally operable to:
In ECU enters the first duration waited after sleep state, if monitoring means 840 monitors enabling signal,
The application program that the enabling signal that then brings into operation is corresponding, and make ECU from waiting that sleep state enters normal operating conditions.
Alternatively, processing unit 810 is additionally operable to:
In entering the second duration after pre-sleep state, if monitoring means 840 monitors enabling signal, then open
Sending function, the application program that the enabling signal that brings into operation is corresponding, and make ECU enter normal operating conditions from pre-sleep state.
Should be understood that in the control method that ECU 800 shown in Fig. 8 and Fig. 9 may correspond to ECU according to embodiments of the present invention
Above and other operation of the unit from ECU, and ECU 800 shown in Fig. 8 and Fig. 9 and/or function are respectively for reality
The corresponding flow process of method shown in existing Fig. 2, for sake of simplicity, do not repeat them here.
Should also be understood that processing unit 810 can be realized by processor, transmitting element 820, reception unit 830 and monitoring are single
Unit 840 can be realized by transceiver.
Figure 10 shows the structural representation 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 may be used for realizing the function of processing unit 810 in ECU 800 shown in Fig. 8 and Fig. 9,
Transceiver 1020 may be used for realizing transmitting element 820 in ECU 800 shown in Fig. 8 and Fig. 9, receiving unit 830 and monitoring means
The function of 840.
Should be understood that in embodiments of the present invention, this processor 1010 can be CPU, and this processor 1010 can also is that it
His general processor, DSP, ASIC, FPGA or other PLDs, discrete gate or transistor logic, point
Vertical nextport hardware component NextPort etc..The processor etc. that general processor can be microprocessor or this processor can also be any routine.
Alternatively, ECU shown in Figure 10 can also include memorizer, and this memorizer can include read only memory and deposit at random
Access to memory, and provide instruction and data to processor 1010, make processor 1010 realize the processing unit 810 in ECU 800
Function.A part for memorizer can also include nonvolatile RAM.
During realizing, each step of said method can be by the integrated logic circuit of the hardware in processor 810
Or the instruction of software form completes.Step in conjunction with the method disclosed in the embodiment of the present invention can be embodied directly at hardware
Reason device has performed, or completes with the hardware in processor and software module combination execution.Software module may be located at random
The abilities such as memorizer, flash memory, read only memory, programmable read only memory or electrically erasable programmable memorizer, depositor
In the storage medium that territory is ripe.This storage medium is positioned at memorizer, and processor 1010 reads the information in memorizer, hard in conjunction with it
Part completes the step of said method.For avoiding repeating, it is not detailed herein.
Should be understood that ECU 1000 according to embodiments of the present invention may correspond to the control of ECU according to embodiments of the present invention
In method from ECU and ECU according to embodiments of the present invention 800, and the modules in ECU1000 above-mentioned and its
Its operation and/or function are respectively in order to realize the corresponding flow process of method shown in Fig. 2, for sake of simplicity, do not repeat them here.
The embodiment of the present invention this provide a kind of system, this system includes: main electronic control unit as described above;With
And it is as above from electronic control unit.About main electronic control unit and the associated description from electronic control unit, permissible
With reference to the specific descriptions of relevant process sections, the embodiment of the present invention will not be described in great detail herein.
Embodiments providing a kind of vehicle, described vehicle includes: system as above.About in this system
The description of related content, is referred to the associated description of components of system as directed, and the embodiment of the present invention will not be described in great detail herein.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to be that two or more unit are integrated in a unit.Above-mentioned integrated
Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit
Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part in other words prior art contributed, or this technical scheme completely or partially can be with the form of software product
Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer
Equipment (can be personal computer, server, or the network equipment etc.) performs the complete of method described in each embodiment of the present invention
Portion or part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, 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, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art, in the technical scope that the invention discloses, can readily occur in the amendment of various equivalence or replace
Changing, these amendments or replacement all should be contained within protection scope of the present invention.Therefore, protection scope of the present invention should be with right
The protection domain required is as the criterion.