WO2018095348A1 - 一种车身控制器唤醒控制方法及装置 - Google Patents

一种车身控制器唤醒控制方法及装置 Download PDF

Info

Publication number
WO2018095348A1
WO2018095348A1 PCT/CN2017/112535 CN2017112535W WO2018095348A1 WO 2018095348 A1 WO2018095348 A1 WO 2018095348A1 CN 2017112535 W CN2017112535 W CN 2017112535W WO 2018095348 A1 WO2018095348 A1 WO 2018095348A1
Authority
WO
WIPO (PCT)
Prior art keywords
wake
pin
mcu
level information
control method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2017/112535
Other languages
English (en)
French (fr)
Inventor
张文龙
黄少堂
张志德
冉光伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to US16/326,379 priority Critical patent/US11474585B2/en
Publication of WO2018095348A1 publication Critical patent/WO2018095348A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/03Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for supply of electrical power to vehicle subsystems or for
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/124Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • B60R16/0231Circuits relating to the driving or the functioning of the vehicle
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/80Technologies aiming to reduce greenhouse gasses emissions common to all road transportation technologies
    • Y02T10/92Energy efficient charging or discharging systems for batteries, ultracapacitors, supercapacitors or double-layer capacitors specially adapted for vehicles

Definitions

  • the invention relates to the technical field of automobiles, and in particular to a vehicle body controller wake-up control method and device.
  • BCM Body Control Module
  • the external input wake-up source is generally implemented in hardware mode. That is, some pins are designed to support the external input wake-up function when the MCU is designed. Before the system sleeps, the related pin with the wake-up function must be set to the wake-up function mode.
  • the general MCU has a limited number of pins with wake-up function.
  • the number of wake-up sources external to the system is more than the number of pins with the wake-up function of the MCU, the demand cannot be met. Only the chip can be replaced.
  • the wake-up source The power supply to the pin must be powered during sleep, and the output state of the pin cannot be flexibly controlled during sleep.
  • the technical problem to be solved by the present invention is to provide a vehicle body controller wake-up control method and device, which can more flexibly allocate hardware pins as a wake-up source and reduce the chip selection requirements of the MCU.
  • the present invention provides a body controller wake-up control method, including:
  • Step S1 all MCU pin ID and wake-up level of the microcontroller as an external wake-up source Information writing can maintain the memory area;
  • Step S2 setting a wake-up detection timer to trigger the system to enter a low power mode
  • Step S3 after the wake-up detection time set by the wake-up detection timer expires, all MCU pins are powered on, and then according to the pin ID information written in step S1, the corresponding MCU pin is set as an input pin, and the Input pin level information;
  • Step S4 comparing the input pin level information with the wake-up level information written in step S1, if they are consistent, writing the input pin ID to the holdable memory area as a wake-up source, triggering the system to enter Normal operating mode; if not, turn off the MCU pin power supply.
  • the wake-up level information includes a high level, a low level, and an edge change information of the pin.
  • step S4 if the power supply of the MCU pin is turned off, the steps S2-S4 are restarted.
  • the step S3 further includes: setting an output level of a pin that is not a wake-up source of the external input after powering on all the MCU pins.
  • the time set by the wakeup detection timer is on the order of ten milliseconds.
  • the invention also provides a vehicle body controller wake-up control device, comprising:
  • a write unit for writing all MCU pin ID and wake-up level information of the microcontroller as an external wake-up source to the holdable memory area;
  • Wake-up detection timer used to set the time of wake-up detection, and trigger the system to enter low-power mode
  • control unit configured to enable all MCU pins to supply power after the wake-up detection time set by the wake-up detection timer expires, and then set a corresponding MCU pin as an input tube according to the pin ID information written by the write unit And acquiring the input pin level information, and comparing the input pin level information with the wake-up level information written by the writing unit, and if they are consistent, the input pin is
  • the ID write can keep the memory area as the wake-up source, triggering the system to enter the normal working mode; if not, turn off the MCU pin power supply.
  • the wake-up level information includes a high level, a low level, and an edge change information of the pin.
  • the wakeup detection timer resets the time of the wakeup detection, and the control unit performs its corresponding function after the reset wakeup detection time expires.
  • the control unit is further configured to set an output level of a pin that is not an external input wake-up source after powering on all the MCU pins.
  • the wake-up detection time set by the wake-up detection timer is on the order of ten milliseconds.
  • a vehicle body controller wake-up control method including:
  • Step S1 writing all MCU pin ID and wake-up level information of the microcontroller as an external wake-up source to the holdable memory area, the wake-up level information including the high-level, low-level, and edge change information of the pin ;
  • Step S2 setting a wake-up detection timer to trigger the system to enter a low power mode
  • Step S3 after the wake-up detection time set by the wake-up detection timer expires, all MCU pins are powered on, and then according to the pin ID information written in step S1, the corresponding MCU pin is set as an input pin, and the Input pin level information;
  • Step S4 comparing the input pin level information with the wake-up level information written in step S1, if they are consistent, writing the input pin ID to the holdable memory area as a wake-up source, triggering the system to enter Normal working mode; if not, turn off the MCU pin power supply;
  • step S4 if the power supply of the MCU pin is turned off, the steps S2-S4 are restarted afterwards.
  • the step S3 further includes: setting an output level of a pin that is not a wake-up source of the external input after powering on all the MCU pins.
  • the time set by the wakeup detection timer is on the order of ten milliseconds.
  • the normal input pin can be used, so the number of external input wake-up sources that the MCU can support is up to the total number of pins of the MCU, and the number is larger than the MCU.
  • the number of wake-up function pins is much larger. Therefore, the chip selection requirements for the MCU for the wake-up function are greatly reduced.
  • the hardware pin assignment for the wake-up source is more flexible, and can support multiple wake-up sources.
  • the design of the wake-up source is more flexible. Can correspond more quickly;
  • the wake-up source pin can be powered during the sleep process, it can only supply power when the wake-up detection condition is triggered. In the low-power process, the output level of the pin can be flexibly controlled, and even the external input wake-up source corresponding pin can be turned off. Power supply.
  • FIG. 1 is a schematic flow chart of a vehicle body controller wake-up control method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart showing a method for wake-up control of a vehicle body controller according to an embodiment of the present invention.
  • a first embodiment of the present invention provides a vehicle body controller wake-up control method, including:
  • Step S1 writing all MCU pin ID and wake-up level information of the microcontroller as an external wake-up source to the holdable memory area;
  • Step S2 setting a wake-up detection timer to trigger the system to enter a low power mode
  • Step S3 after the wake-up detection time set by the wake-up detection timer expires, all MCU pins are powered on, and then according to the pin ID information written in step S1, the corresponding MCU pin is set as an input pin, and the Input pin level information;
  • Step S4 comparing the input pin level information with the wake-up level information written in step S1, if they are consistent, writing the input pin ID to the holdable memory area as a wake-up source, triggering the system to enter Normal operating mode; if not, turn off the MCU pin power supply.
  • Step S1 is a pre-hibernation preparation step.
  • the ID and wake-up level information of all the wake-up source pins as external inputs are written into the Retention RAM.
  • the wake-up level information includes a high level, a low level, and an edge change information of the pin, and is used as a judgment condition for subsequent wake-up detection.
  • Step S2 sets and starts the timer, triggers the system to enter the low power mode, and the purpose is to let the hardware work intermittently to check whether the pin level state satisfies the wake condition, that is, whether it is consistent with the setting condition of step S1, and the description indicates that there is a wakeup. The event happened.
  • a hardware timer that can work in a low power mode can be provided on the MCU, or can be replaced with other functional modules that can set a certain time interval to wake up the system.
  • the wake-up detection time set by the timer is on the order of ten milliseconds, usually several tens of milliseconds.
  • step S3 the triggering timing of the wakeup detection is the wakeup detection time set by the timer.
  • the pin ID information written in step S1 is obtained from the holdable memory area, the corresponding MCU pin is set as the input pin, and the level information of the input pin is obtained. Since the pin ID written in step S1 corresponds to the pin as the external wake-up source, the input pin here is also the pin of the external wake-up source.
  • step S4 the level information of the input pin acquired in step S3 is compared with the wake-up level information written in step S1. If they match, it indicates that an external wake-up event has occurred in the current input pin, and the input pin ID is generated.
  • Write can maintain the memory area as the wake-up source, trigger the system to enter the normal working mode, that is, complete the system wake-up; because there are multiple input pins, if the level information of each input pin and the corresponding wake-up level information written in step S1 All are inconsistent, that is, without any matching pin level information, the MCU pin is powered off.
  • step S2 it should return to step S2 to reset and start the timer.
  • the trigger system enters sleep mode, which is in the loop of sleep and detection.
  • step S3 of this embodiment further includes the step of setting an output level of a pin that is not a wake-up source of the external input after powering on all the MCU pins.
  • a pin assumeded to be GJ1
  • the control pin GJ1 is turned on to turn on the corresponding power supply DY1.
  • the second embodiment of the present invention provides a body controller wake-up control Devices, including:
  • a write unit for writing all MCU pin ID and wake-up level information of the microcontroller as an external wake-up source to the holdable memory area;
  • Wake-up detection timer used to set the time of wake-up detection, and trigger the system to enter low-power mode
  • control unit configured to enable all MCU pins to supply power after the wake-up detection time set by the wake-up detection timer expires, and then set a corresponding MCU pin as an input tube according to the pin ID information written by the write unit And acquiring the input pin level information, and comparing the input pin level information with the wake-up level information written by the writing unit, and if they are consistent, the input pin is
  • the ID write can keep the memory area as the wake-up source, triggering the system to enter the normal working mode; if not, turn off the MCU pin power supply.
  • the wake-up level information includes a high level, a low level, and an edge change information of the pin.
  • the wakeup detection timer resets the time of the wakeup detection, and the control unit performs its corresponding function after the reset wakeup detection time expires.
  • the control unit is further configured to set an output level of a pin that is not an external input wake-up source after powering on all the MCU pins.
  • the wake-up detection time set by the wake-up detection timer is on the order of ten milliseconds.
  • the normal input pin can be used, so the number of external input wake-up sources that the MCU can support is up to the total number of pins of the MCU, and the number is larger than the MCU.
  • the number of wake-up function pins is much larger. Therefore, the chip selection requirements for the MCU for the wake-up function are greatly reduced.
  • the hardware pin assignment for the wake-up source is more flexible, and can support multiple wake-up sources.
  • the design of the wake-up source is more flexible. Can correspond more quickly;
  • the wake-up source pin can be powered during the sleep process, it can only supply power when the wake-up detection condition is triggered. In the low-power process, the output level of the pin can be flexibly controlled, and even the external input wake-up source corresponding pin can be turned off. Power supply.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Mechanical Engineering (AREA)
  • Computing Systems (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Automation & Control Theory (AREA)
  • Power Sources (AREA)

Abstract

一种车身控制器唤醒控制方法,包括:步骤S1,将所有作为外部唤醒源的微控制器MCU管脚ID和唤醒电平信息写入可保持内存区;步骤S2,设置唤醒检测定时器,触发系统进入低功耗模式;步骤S3,在唤醒检测定时器设定的唤醒检测时间超时后,开启所有MCU管脚供电,然后根据步骤S1写入的管脚ID信息,设置对应的MCU管脚为输入管脚,并获取所述输入管脚电平信息;步骤S4,将所述输入管脚电平信息与步骤S1写入的唤醒电平信息进行比较,如果相一致,则将所述输入管脚ID写入可保持内存区作为唤醒源,触发系统进入正常工作模式;如果不一致,则关闭MCU管脚供电。还提供了一种车身控制器唤醒控制装置。该车身控制器唤醒控制方法和车身控制器唤醒控制装置降低了对MCU的芯片选型要求,对于唤醒源的硬件管脚分配和唤醒源的设计更加灵活。

Description

一种车身控制器唤醒控制方法及装置
本申请要求于2016年11月24日提交中国专利局、申请号为201611041248.8、发明名称为“一种车身控制器唤醒控制方法及装置”的中国专利申请的优先权,上述专利的全部内容通过引用结合在本申请中。
技术领域
本发明汽车技术领域,尤其涉及一种车身控制器唤醒控制方法及装置。
背景技术
BCM(Body Control Module,车身控制器)是车身系统上与用户交互相关最多的控制器,例如车门,雨刮,灯等器件功能均由BCM来控制,所以BCM本身需要很多路的外部输入唤醒源。
外部输入唤醒源一般使用硬件方式实现,即MCU设计时将某些管脚设计为支持外部输入唤醒功能,系统休眠前,必须需要设置相关带有唤醒管功能的管脚为唤醒功能模式。
但是,一般MCU带唤醒功能的管脚有限,而当系统外部输入唤醒源数量多于MCU带有唤醒功能的管脚数量时,则无法满足需求,只能更换芯片;另一方面,作为唤醒源管脚的供电必须在休眠的时候也供电,且在休眠过程中无法灵活地控制管脚的输出状态。
发明内容
本发明所要解决的技术问题在于,提供一种车身控制器唤醒控制方法及装置,以更加灵活地分配作为唤醒源的硬件管脚,降低MCU的芯片选型要求。
为了解决上述技术问题,本发明提供一种车身控制器唤醒控制方法,包括:
步骤S1,将所有作为外部唤醒源的微控制器MCU管脚ID和唤醒电平 信息写入可保持内存区;
步骤S2,设置唤醒检测定时器,触发系统进入低功耗模式;
步骤S3,在唤醒检测定时器设定的唤醒检测时间超时后,开启所有MCU管脚供电,然后根据步骤S1写入的管脚ID信息,设置对应的MCU管脚为输入管脚,并获取所述输入管脚电平信息;
步骤S4,将所述输入管脚电平信息与步骤S1写入的唤醒电平信息进行比较,如果相一致,则将所述输入管脚ID写入可保持内存区作为唤醒源,触发系统进入正常工作模式;如果不一致,则关闭MCU管脚供电。
其中,所述唤醒电平信息包括管脚的高电平、低电平以及边沿变化信息。
其中,所述步骤S4中,如果关闭MCU管脚供电,则之后重新开始执行所述步骤S2-S4。
其中,所述步骤S3还包括:在开启所有MCU管脚供电后,设置非作为外部输入唤醒源的管脚的输出电平。
其中,所述唤醒检测定时器设定的时间为十毫秒数量级。
本发明还提供一种车身控制器唤醒控制装置,包括:
写入单元,用于将所有作为外部唤醒源的微控制器MCU管脚ID和唤醒电平信息写入可保持内存区;
唤醒检测定时器,用于设定唤醒检测的时间,并触发系统进入低功耗模式;
控制单元,用于在所述唤醒检测定时器设定的唤醒检测时间超时后,开启所有MCU管脚供电,然后根据写入单元写入的管脚ID信息,设置对应的MCU管脚为输入管脚,并获取所述输入管脚电平信息,再将所述输入管脚电平信息与所述写入单元写入的唤醒电平信息进行比较,如果相一致,则将所述输入管脚ID写入可保持内存区作为唤醒源,触发系统进入正常工作模式;如果不一致,则关闭MCU管脚供电。
其中,所述唤醒电平信息包括管脚的高电平、低电平以及边沿变化信息。
其中,所述控制单元如果关闭MCU管脚供电,则之后所述唤醒检测定时器重新设定唤醒检测的时间,所述控制单元在重新设定的唤醒检测时间超时后,执行其相应功能。
其中,所述控制单元还用于在开启所有MCU管脚供电后,设置非作为外部输入唤醒源的管脚的输出电平。
其中,所述唤醒检测定时器设定的唤醒检测时间为十毫秒数量级。
相应地,本发明实施例的再一方面,还提供一种车身控制器唤醒控制方法,包括:
步骤S1,将所有作为外部唤醒源的微控制器MCU管脚ID和唤醒电平信息写入可保持内存区,所述唤醒电平信息包括管脚的高电平、低电平以及边沿变化信息;
步骤S2,设置唤醒检测定时器,触发系统进入低功耗模式;
步骤S3,在唤醒检测定时器设定的唤醒检测时间超时后,开启所有MCU管脚供电,然后根据步骤S1写入的管脚ID信息,设置对应的MCU管脚为输入管脚,并获取所述输入管脚电平信息;
步骤S4,将所述输入管脚电平信息与步骤S1写入的唤醒电平信息进行比较,如果相一致,则将所述输入管脚ID写入可保持内存区作为唤醒源,触发系统进入正常工作模式;如果不一致,则关闭MCU管脚供电;
其中,在所述步骤S4中,如果关闭MCU管脚供电,则之后重新开始执行所述步骤S2-S4。
其中,,所述步骤S3还包括:在开启所有MCU管脚供电后,设置非作为外部输入唤醒源的管脚的输出电平。
其中,所述唤醒检测定时器设定的时间为十毫秒数量级。
本发明实施例的有益效果在于:
对作为外部输入唤醒源的管脚,没有必须支持唤醒源功能的要求,普通输入管脚即可,所以MCU可以支持的外部输入唤醒源数量,最多为MCU的总管脚数,数量比MCU支持唤醒功能管脚数量要多很多,因此针对唤醒功能对MCU的芯片选型要求大大降低,对于唤醒源的硬件管脚分配更加灵活,可以支持多路的唤醒源,对于唤醒源的设计更加灵活,可以更快速对应;
作为唤醒源管脚在休眠的过程中可以不供电,仅在唤醒检测条件触发时供电,在低功耗过程中可以灵活的控制管脚的输出电平,甚至可以关闭外部输入唤醒源对应管脚的供电。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例一一种车身控制器唤醒控制方法的流程示意图。
图2是本发明实施例一一种车身控制器唤醒控制方法的具体流程示意图。
具体实施方式
以下各实施例的说明是参考附图,用以示例本发明可以用以实施的特定实施例。
请参照图1所示,本发明实施例一提供一种车身控制器唤醒控制方法,包括:
步骤S1,将所有作为外部唤醒源的微控制器MCU管脚ID和唤醒电平信息写入可保持内存区;
步骤S2,设置唤醒检测定时器,触发系统进入低功耗模式;
步骤S3,在唤醒检测定时器设定的唤醒检测时间超时后,开启所有MCU管脚供电,然后根据步骤S1写入的管脚ID信息,设置对应的MCU管脚为输入管脚,并获取所述输入管脚电平信息;
步骤S4,将所述输入管脚电平信息与步骤S1写入的唤醒电平信息进行比较,如果相一致,则将所述输入管脚ID写入可保持内存区作为唤醒源,触发系统进入正常工作模式;如果不一致,则关闭MCU管脚供电。
下面结合图2对本实施例进行具体说明。
步骤S1为休眠前准备步骤,系统在休眠前,将所有作为外部输入唤醒源管脚的ID和唤醒电平信息写入可保持内存区(Retention RAM)。其中唤醒电平信息包括管脚的高电平、低电平以及边沿变化信息,用作后续唤醒检测的判断条件。
步骤S2设置、启动定时器,触发系统进入低功耗模式,目的在于让硬件间歇性工作,来查询管脚电平状态是否满足唤醒条件,即是否与步骤S1设置条件一致,是则说明有唤醒事件发生。在实现方式上,可以在MCU上提供一个低功耗模式下可以工作的硬件定时器,也可以替换为其他具有可设置一定时间间隔以将系统唤醒的功能模块。本实施例中,定时器设定的唤醒检测时间为十毫秒数量级,通常为几十毫秒。
步骤S3中,唤醒检测的触发时机为定时器设定的唤醒检测时间超时。超时后则开启所有MCU管脚供电,从可保持内存区获取步骤S1写入的管脚ID信息,设置对应的MCU管脚为输入管脚,并获取输入管脚的电平信息。由于步骤S1写入的管脚ID对应的是作为外部唤醒源的管脚,因此此处输入管脚也即作为外部唤醒源的管脚。
步骤S4中,将步骤S3中获取的输入管脚的电平信息与步骤S1写入的唤醒电平信息比较,如果一致,则表明当前输入管脚有外部唤醒事件发生,将该输入管脚ID写入可保持内存区作为唤醒源,触发系统进入正常工作模式,即完成系统唤醒;由于输入管脚有多个,如果各输入管脚的电平信息与步骤S1写入的对应唤醒电平信息均不一致,即没有任何匹配的管脚电平信息,则关闭MCU管脚供电。
需要说明的是,如果各输入管脚的电平信息与步骤S1写入的对应唤醒电平信息均不一致,表明当前没有任何外部唤醒事件,则应该回到步骤S2,重新设置、启动定时器,触发系统进入休眠模式,即处于休眠和检测的循环中。
此外,本实施例步骤S3还包括步骤:在开启所有MCU管脚供电后,设置非作为外部输入唤醒源的管脚的输出电平。举例来说,可以设计某些外设或者芯片部分电路的供电通过某个管脚(假设为GJ1)来控制是否该路电源供电(假设为DY1),则可以在休眠前控制该管脚来关闭没必要的电源,而在定时器超时进行唤醒检测时,才去控制管脚GJ1来开启相应电源DY1。而一般系统在休眠过程中,是不能主动控制管脚的电平变化的,除非是外部事件触发。
相应于本发明实施例一,本发明实施例二提供一种车身控制器唤醒控制 装置,包括:
写入单元,用于将所有作为外部唤醒源的微控制器MCU管脚ID和唤醒电平信息写入可保持内存区;
唤醒检测定时器,用于设定唤醒检测的时间,并触发系统进入低功耗模式;
控制单元,用于在所述唤醒检测定时器设定的唤醒检测时间超时后,开启所有MCU管脚供电,然后根据写入单元写入的管脚ID信息,设置对应的MCU管脚为输入管脚,并获取所述输入管脚电平信息,再将所述输入管脚电平信息与所述写入单元写入的唤醒电平信息进行比较,如果相一致,则将所述输入管脚ID写入可保持内存区作为唤醒源,触发系统进入正常工作模式;如果不一致,则关闭MCU管脚供电。
其中,所述唤醒电平信息包括管脚的高电平、低电平以及边沿变化信息。
其中,所述控制单元如果关闭MCU管脚供电,则之后所述唤醒检测定时器重新设定唤醒检测的时间,所述控制单元在重新设定的唤醒检测时间超时后,执行其相应功能。
其中,所述控制单元还用于在开启所有MCU管脚供电后,设置非作为外部输入唤醒源的管脚的输出电平。
其中,所述唤醒检测定时器设定的唤醒检测时间为十毫秒数量级。
通过上述说明可知,实施本发明带来的有益效果在于:
对作为外部输入唤醒源的管脚,没有必须支持唤醒源功能的要求,普通输入管脚即可,所以MCU可以支持的外部输入唤醒源数量,最多为MCU的总管脚数,数量比MCU支持唤醒功能管脚数量要多很多,因此针对唤醒功能对MCU的芯片选型要求大大降低,对于唤醒源的硬件管脚分配更加灵活,可以支持多路的唤醒源,对于唤醒源的设计更加灵活,可以更快速对应;
作为唤醒源管脚在休眠的过程中可以不供电,仅在唤醒检测条件触发时供电,在低功耗过程中可以灵活的控制管脚的输出电平,甚至可以关闭外部输入唤醒源对应管脚的供电。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的 范围。

Claims (19)

  1. 一种车身控制器唤醒控制方法,包括:
    步骤S1,将所有作为外部唤醒源的微控制器MCU管脚ID和唤醒电平信息写入可保持内存区;
    步骤S2,设置唤醒检测定时器,触发系统进入低功耗模式;
    步骤S3,在唤醒检测定时器设定的唤醒检测时间超时后,开启所有MCU管脚供电,然后根据步骤S1写入的管脚ID信息,设置对应的MCU管脚为输入管脚,并获取所述输入管脚电平信息;
    步骤S4,将所述输入管脚电平信息与步骤S1写入的唤醒电平信息进行比较,如果相一致,则将所述输入管脚ID写入可保持内存区作为唤醒源,触发系统进入正常工作模式;如果不一致,则关闭MCU管脚供电。
  2. 根据权利要求1所述的控制方法,其特征在于,所述唤醒电平信息包括管脚的高电平、低电平以及边沿变化信息。
  3. 根据权利要求1所述的控制方法,其特征在于,所述步骤S4中,如果关闭MCU管脚供电,则之后重新开始执行所述步骤S2-S4。
  4. 根据权利要求1所述的控制方法,其特征在于,所述步骤S3还包括:在开启所有MCU管脚供电后,设置非作为外部输入唤醒源的管脚的输出电平。
  5. 根据权利要求1所述的控制方法,其特征在于,所述唤醒检测定时器设定的时间为十毫秒数量级。
  6. 如权利要求2所述的控制方法,其特征在于,所述唤醒检测定时器设定的时间为十毫秒数量级。
  7. 如权利要求3所述的控制方法,其特征在于,所述的控制方法,其特征在于,所述唤醒检测定时器设定的时间为十毫秒数量级。
  8. 如权利要求4所述的控制方法,其特征在于,所述的控制方法,其特征在于,所述唤醒检测定时器设定的时间为十毫秒数量级。
  9. 一种车身控制器唤醒控制装置,其特征在于,包括:
    写入单元,用于将所有作为外部唤醒源的微控制器MCU管脚ID和唤醒电平信息写入可保持内存区;
    唤醒检测定时器,用于设定唤醒检测的时间,并触发系统进入低功耗模式;
    控制单元,用于在所述唤醒检测定时器设定的唤醒检测时间超时后,开启所有MCU管脚供电,然后根据写入单元写入的管脚ID信息,设置对应的MCU管脚为输入管脚,并获取所述输入管脚电平信息,再将所述输入管脚电平信息与所述写入单元写入的唤醒电平信息进行比较,如果相一致,则将所述输入管脚ID写入可保持内存区作为唤醒源,触发系统进入正常工作模式;如果不一致,则关闭MCU管脚供电。
  10. 根据权利要求9所述的控制装置,其特征在于,所述唤醒电平信息包括管脚的高电平、低电平以及边沿变化信息。
  11. 根据权利要求9所述的控制装置,其特征在于,所述控制单元如果关闭MCU管脚供电,则之后所述唤醒检测定时器重新设定唤醒检测的时间,所述控制单元在重新设定的唤醒检测时间超时后,执行其相应功能。
  12. 根据权利要求9所述的控制装置,其特征在于,所述控制单元还用于在开启所有MCU管脚供电后,设置非作为外部输入唤醒源的管脚的输出电平。
  13. 根据权利要求9所述的控制装置,其特征在于,所述唤醒检测定时器设定的唤醒检测时间为十毫秒数量级。
  14. 根据权利要求10所述的控制装置,其特征在于,所述唤醒检测定时器设定的唤醒检测时间为十毫秒数量级。
  15. 根据权利要求11所述的控制装置,其特征在于,所述唤醒检测定时器设定的唤醒检测时间为十毫秒数量级。
  16. 根据权利要求12所述的控制装置,其特征在于,所述唤醒检测定时器设定的唤醒检测时间为十毫秒数量级。
  17. 一种车身控制器唤醒控制方法,包括:
    步骤S1,将所有作为外部唤醒源的微控制器MCU管脚ID和唤醒电平信息写入可保持内存区,所述唤醒电平信息包括管脚的高电平、低电平以及边沿变化信息;
    步骤S2,设置唤醒检测定时器,触发系统进入低功耗模式;
    步骤S3,在唤醒检测定时器设定的唤醒检测时间超时后,开启所有MCU管脚供电,然后根据步骤S1写入的管脚ID信息,设置对应的MCU管脚为输入管脚,并获取所述输入管脚电平信息;
    步骤S4,将所述输入管脚电平信息与步骤S1写入的唤醒电平信息进行比较,如果相一致,则将所述输入管脚ID写入可保持内存区作为唤醒源,触发系统进入正常工作模式;如果不一致,则关闭MCU管脚供电;
    其中,在所述步骤S4中,如果关闭MCU管脚供电,则之后重新开始执行所述步骤S2-S4。
  18. 根据权利要求17所述的控制方法,其特征在于,所述步骤S3还包括:在开启所有MCU管脚供电后,设置非作为外部输入唤醒源的管脚的输出电平。
  19. 根据权利要求18所述的控制方法,其特征在于,所述唤醒检测定时器设定的时间为十毫秒数量级。
PCT/CN2017/112535 2016-11-24 2017-11-23 一种车身控制器唤醒控制方法及装置 Ceased WO2018095348A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/326,379 US11474585B2 (en) 2016-11-24 2017-11-23 Wake-up control method and device for body control module

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611041248.8A CN106585531B (zh) 2016-11-24 2016-11-24 一种车身控制器唤醒控制方法及装置
CN201611041248.8 2016-11-24

Publications (1)

Publication Number Publication Date
WO2018095348A1 true WO2018095348A1 (zh) 2018-05-31

Family

ID=58592887

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/112535 Ceased WO2018095348A1 (zh) 2016-11-24 2017-11-23 一种车身控制器唤醒控制方法及装置

Country Status (3)

Country Link
US (1) US11474585B2 (zh)
CN (1) CN106585531B (zh)
WO (1) WO2018095348A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116853143A (zh) * 2023-07-21 2023-10-10 扬州航盛科技有限公司 一种实现车载中控str模式低静态电流的系统及其方法
TWI880144B (zh) * 2022-12-16 2025-04-11 公信電子股份有限公司 具實體開關之車身控制系統及其方法

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106585531B (zh) * 2016-11-24 2019-04-19 广州汽车集团股份有限公司 一种车身控制器唤醒控制方法及装置
CN109104760B (zh) * 2018-09-14 2020-05-08 上海重塑能源科技有限公司 车载网关控制器及其应用的工作模式转换方法与系统
CN109747569B (zh) * 2019-01-25 2022-05-06 深圳市元征科技股份有限公司 一种ecu线束控制方法、系统、设备及计算机可读存储介质
CN112078603B (zh) * 2019-06-14 2022-04-29 株洲中车时代电气股份有限公司 一种机车唤醒方法、装置、设备、系统及可读存储介质
CN111328131B (zh) * 2020-02-24 2023-02-07 重庆物奇科技有限公司 一种NB-IoT寻呼处理方法及系统
EP3974948A1 (en) * 2020-09-23 2022-03-30 Kiekert AG Electronic control unit for a vehicle
CN114780166A (zh) * 2022-03-26 2022-07-22 深圳市广通远驰科技有限公司 引脚配置的方法、相关装置、设备以及可读存储介质
CN115534838B (zh) * 2022-10-13 2024-06-14 中国第一汽车股份有限公司 目标车辆的控制方法、装置及云服务器
CN116729281B (zh) * 2023-06-16 2025-09-23 上海伟世通汽车电子系统有限公司 汽车仪表芯片电源控制方法、装置、电子设备及存储介质
CN119261554B (zh) * 2024-10-10 2025-10-17 岚图汽车科技有限公司 一种车辆供电管理方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110080269A1 (en) * 2009-10-06 2011-04-07 Nxp B.V. Transceiver
CN102673421A (zh) * 2012-05-16 2012-09-19 奇瑞汽车股份有限公司 一种实现电动车整车控制器休眠和唤醒模式切换的方法及其实现电路
CN104859565A (zh) * 2014-07-28 2015-08-26 北汽福田汽车股份有限公司 一种电源管理电路、方法及系统
CN106585531A (zh) * 2016-11-24 2017-04-26 广州汽车集团股份有限公司 一种车身控制器唤醒控制方法及装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5421027A (en) * 1991-08-12 1995-05-30 Motorola, Inc. Method and apparatus for generating a pin interrupt request in a digital data processor using a dual function data direction register
US6058443A (en) * 1997-02-18 2000-05-02 Advanced Micro Devices, Inc. System for partitioning PC chipset functions into logic and port integrated circuits
US6826701B1 (en) * 2000-04-20 2004-11-30 Microsoft Corporation Re-running general purpose event control methods in a computer system
US7171542B1 (en) * 2000-06-19 2007-01-30 Silicon Labs Cp, Inc. Reconfigurable interface for coupling functional input/output blocks to limited number of i/o pins
US8327173B2 (en) * 2007-12-17 2012-12-04 Nvidia Corporation Integrated circuit device core power down independent of peripheral device operation
US20090204834A1 (en) * 2008-02-11 2009-08-13 Nvidia Corporation System and method for using inputs as wake signals
CN102152766B (zh) * 2011-03-30 2012-08-29 北京经纬恒润科技有限公司 汽车电子门窗控制器及其控制方法、汽车电子门窗系统
US9250690B2 (en) * 2012-09-10 2016-02-02 Atmel Corporation Low-power modes of microcontroller operation with access to configurable input/output connectors

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110080269A1 (en) * 2009-10-06 2011-04-07 Nxp B.V. Transceiver
CN102673421A (zh) * 2012-05-16 2012-09-19 奇瑞汽车股份有限公司 一种实现电动车整车控制器休眠和唤醒模式切换的方法及其实现电路
CN104859565A (zh) * 2014-07-28 2015-08-26 北汽福田汽车股份有限公司 一种电源管理电路、方法及系统
CN106585531A (zh) * 2016-11-24 2017-04-26 广州汽车集团股份有限公司 一种车身控制器唤醒控制方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHANG, WENLONG: "A Design of BCM and ECU Multi Channel Wake-up Source", SCIENCE & TECHNOLOGY VISION., 15 August 2016 (2016-08-15), pages 81 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI880144B (zh) * 2022-12-16 2025-04-11 公信電子股份有限公司 具實體開關之車身控制系統及其方法
CN116853143A (zh) * 2023-07-21 2023-10-10 扬州航盛科技有限公司 一种实现车载中控str模式低静态电流的系统及其方法

Also Published As

Publication number Publication date
CN106585531A (zh) 2017-04-26
US20190272014A1 (en) 2019-09-05
US11474585B2 (en) 2022-10-18
CN106585531B (zh) 2019-04-19

Similar Documents

Publication Publication Date Title
WO2018095348A1 (zh) 一种车身控制器唤醒控制方法及装置
TWI494857B (zh) 喚醒事件管理方法、喚醒事件管理裝置以及喚醒事件管理電腦程式產品
CN104850214B (zh) 一种通过预测用户唤醒意图缩短移动终端唤醒时间的方法
US8108704B2 (en) Method for automatically switching power states
CN103914295B (zh) 唤醒事件管理方法、唤醒事件管理装置
US8645729B2 (en) External device power control during low power sleep mode without central processing unit intervention
US20150208124A1 (en) Smart television system and turn-on and turn-off method thereof
CN101013340A (zh) 一种降低无线网卡功耗的方法
KR20090026895A (ko) 시스템 온 칩에서 전력 소모를 감소시키기 위한 장치 및방법
CN105353864A (zh) 电子设备静态功耗管理方法和系统
CN101739305A (zh) 操作系统内核级实时看门狗监控装置及其监控方法
CN106547335A (zh) 能耗降低方法和移动终端
TWI431515B (zh) 電子書
CN115718626A (zh) 一种快速唤醒的soc系统及快速唤醒方法
CN111225434B (zh) 一种应用程序响应方法、系统、存储介质及通信模块
CN111176408A (zh) 一种SoC的低功耗处理方法和装置
CN107168798A (zh) 一种设备休眠方法及装置、设备休眠唤醒方法及装置
US20120278542A1 (en) Computer system and sleep control method thereof
CN101968678A (zh) 一种嵌入式Linux设备低功耗电源管理设备
CN104102503B (zh) 在预定时间自动启动的计算机及其方法
CN105988554A (zh) 单片机周期定时进入低功耗模式的实现方法
CN107015847A (zh) 电子装置及其工作模式切换方法
TWI526817B (zh) 電腦系統、可適性休眠控制模組及其控制方法
CN103150191A (zh) 一种终端设备
CN106445668A (zh) 定时器的计时方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17874495

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17874495

Country of ref document: EP

Kind code of ref document: A1