CN113517061A - Sleep mode control method and electronic equipment - Google Patents

Sleep mode control method and electronic equipment Download PDF

Info

Publication number
CN113517061A
CN113517061A CN202110767847.2A CN202110767847A CN113517061A CN 113517061 A CN113517061 A CN 113517061A CN 202110767847 A CN202110767847 A CN 202110767847A CN 113517061 A CN113517061 A CN 113517061A
Authority
CN
China
Prior art keywords
mcu
board
sleep
key
drive board
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.)
Pending
Application number
CN202110767847.2A
Other languages
Chinese (zh)
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 MEDSOFT SYSTEM Ltd
Original Assignee
GUANGZHOU MEDSOFT SYSTEM 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 MEDSOFT SYSTEM Ltd filed Critical GUANGZHOU MEDSOFT SYSTEM Ltd
Priority to CN202110767847.2A priority Critical patent/CN113517061A/en
Publication of CN113517061A publication Critical patent/CN113517061A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/60ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices
    • G16H40/63ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices for local operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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/325Power saving in peripheral device
    • G06F1/3278Power saving in modem or I/O interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1456Hardware arrangements for backup

Abstract

The application discloses control method and electronic equipment of sleep mode, be applied to the electronic equipment who has drive plate, well accuse board and keypad, the MCU of drive plate, the MCU of well accuse board and the MCU of keypad all mount on the CAN bus, this method includes following step: when the drive board does not receive a heartbeat data packet or a key data packet within a first preset time length, the drive board sends a sleep instruction packet to each MCU on the CAN bus, writes sleep flag data into a backup register of the drive board, and resets the MCU of the drive board; after the MCU in the drive board is reset, the drive board reads the backup register through the MCU, and if the sleep mark data is read, the function of an IO port of the MCU is configured according to a sleep mode; when CAN line interruption occurs, the drive board writes non-sleep flag data into a backup register of the drive board, and resets an MCU of the drive board; after the MCU in the driving board is reset, the driving board initializes the non-sleep mode through the MCU.

Description

Sleep mode control method and electronic equipment
Technical Field
The application belongs to the technical field of computers, and particularly relates to a sleep mode control method and electronic equipment.
Background
Currently, there are two main methods for sleep mode control of medical device products: one is that the user manually sets the sleep mode, which requires manual operation, is inconvenient and may forget to operate and cause uncomfortable feeling; the other mode is to judge whether to enter sleep control by detecting the external environment, and the mode obviously causes inevitable misjudgment due to weather reasons or room shading effect, and cannot enter a sleep mode in time, so that the power consumption of the equipment is greatly increased.
Content of application
The embodiment of the application aims to provide a sleep mode control method and electronic equipment, and the problem that in the prior art, the power consumption of the equipment is increased due to the fact that the equipment cannot enter the sleep mode in time can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, a method for controlling a sleep mode is provided, which is applied to an electronic device having a driver board, a console board and a keypad, where a microcontroller MCU of the driver board, an MCU of the console board and an MCU of the keypad are all mounted on a controller area network CAN bus, and the method includes the following steps:
when the drive board does not receive a heartbeat data packet or a key data packet within a first preset time length, the drive board sends a sleep instruction packet to each MCU on the CAN bus, writes sleep flag data into a backup register of the drive board, and resets the MCU of the drive board;
after the MCU in the drive board is reset, the drive board reads a backup register through the MCU, and if the sleep mark data is read, the function of an IO port of the MCU is configured according to a sleep mode;
when CAN line interruption occurs, the drive board writes non-sleep flag data into a backup register of the drive board and resets an MCU of the drive board;
after the MCU in the driving board is reset, the driving board initializes a non-sleep mode through the MCU.
The second aspect provides electronic equipment which comprises a driving board, a central control board and a key board, wherein a microcontroller MCU of the driving board, an MCU of the central control board and an MCU of the key board are all mounted on a controller area network CAN bus;
wherein the drive plate is configured to:
when the drive board does not receive a heartbeat data packet or a key data packet within a first preset time, sending a sleep instruction packet to each MCU on the CAN bus, writing sleep flag data into a backup register of the drive board, and resetting the MCU of the drive board;
after the MCU in the driving board is reset, reading a backup register through the MCU, and if reading sleep mark data, configuring the function of an IO port of the MCU according to a sleep mode;
when CAN line interruption occurs, writing non-sleep flag data into a backup register of the controller, and resetting an MCU of the controller;
and after the MCU in the driving board is reset, initializing a non-sleep mode through the MCU.
In a third aspect, an electronic device is provided, which comprises a processor, a memory and a program stored on the memory and being executable on the processor, which program, when executed by the processor, performs the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the method according to the first aspect.
According to the embodiment of the application, the MCU is switched to the sleep mode by writing the sleep mark data into the backup register, and the function of the IO port of the MCU is configured according to the sleep mode, so that the power consumption of the MCU in the sleep mode can be reduced, the power consumption of electronic equipment is reduced, and the energy is saved.
Drawings
Fig. 1 is a flowchart of a sleep mode control method provided in an embodiment of the present application;
fig. 2 is a flowchart of a specific implementation manner of a sleep mode control method provided in an embodiment of the present application;
fig. 3 is a flowchart of another specific implementation manner of a control method of a sleep mode according to an embodiment of the present application;
fig. 4 is a flowchart of another specific implementation manner of a control method of a sleep mode provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following describes in detail a control method of a sleep mode according to an embodiment of the present application with reference to the accompanying drawings.
As shown in fig. 1, a flowchart of a sleep mode control method provided in an embodiment of the present application is applied to an electronic device having a driving board, a center control board, and a keypad, where an MCU (Micro controller unit) of the driving board, an MCU (Micro controller unit) of the center control board, and an MCU (Micro controller area network) of the keypad are all mounted on a CAN (controller area network) bus, and the method includes the following steps:
step 101, when the driver board does not receive the heartbeat data packet or the key data packet within a first preset time period, the driver board sends a sleep instruction packet to each MCU on the CAN bus, writes sleep flag data into a backup register of the driver board, and resets the MCU of the driver board.
And step 102, after the MCU in the drive board is reset, the drive board reads the backup register through the MCU, and if the sleep mark data is read, the function of the IO port of the MCU is configured according to the sleep mode.
And 103, when the CAN line is interrupted, the driving board writes the non-sleep flag data into the backup register of the driving board, and resets the MCU of the driving board.
And step 104, after the MCU in the drive board is reset, the drive board initializes the non-sleep mode through the MCU.
According to the embodiment of the application, the MCU is switched to the sleep mode by writing the sleep mark data into the backup register, and the function of the IO port of the MCU is configured according to the sleep mode, so that the power consumption of the MCU in the sleep mode can be reduced, the power consumption of electronic equipment is reduced, and the energy is saved.
As shown in fig. 2, a flowchart of a specific implementation manner of a sleep mode control method provided in an embodiment of the present application is applied to an electronic device having a driving board, a center control board, and a keypad, and the method includes the following steps:
step 201, the driver board judges whether a heartbeat data packet or a key data packet is received within a first preset time period, if so, step 202 is executed; otherwise, step 203 is executed.
Wherein, the first preset time period may be 2 minutes.
In step 202, the driver board sends device status information.
Specifically, when the drive board receives a heartbeat data packet or a key data packet from the central control board within a preset time, the drive board sends equipment state information to the central control board; when the drive board receives the heartbeat data packet or the key data packet from the key board within the preset time, the drive board sends the equipment state information to the key board.
The device state information includes a locking state, an AC/DC power supply mode, angle information, altitude information, and the like.
It should be noted that, for an electronic device with a central control board, the driving board may send device status information under the driving of the heartbeat data packet or the key data packet; for electronic devices without a central control board, the driver board may also actively transmit status data information.
And step 203, the driving board sends a sleep instruction packet to each MCU on the CAN bus, writes sleep flag data into a backup register of the driving board, and resets the MCU of the driving board.
The MCU of the driving board, the MCU of the central control board and the MCU of the key board are all mounted on the CAN bus.
And step 204, after the MCU in the drive board is reset, the drive board reads the backup register through the MCU, and if the sleep mark data is read, the function of the IO port of the MCU is configured according to the sleep mode.
Specifically, when the MCU of the drive board reads the sleep mark data from the backup register, the drive board closes the CAN data transmission function of the MCU, so that the MCU is only in a data receiving state, and the power consumption of the MCU in a sleep mode is reduced; the drive board also configures a pin in the MCU, which is responsible for receiving the CAN signal, into a line interruption mode, and the MCU CAN be awakened when data exists on the CAN bus. In this embodiment, the driver board may set a pin in the MCU responsible for receiving the CAN signal as an IO port interrupt function of the general MCU; accordingly, the MCU CAN respond to IO port line interrupts but cannot respond to CAN receive interrupts while in sleep mode.
Step 205, when the CAN line is interrupted, the driver board writes the non-sleep flag data into its own backup register, and resets its own MCU.
And step 206, after the MCU in the drive board is reset, the drive board rapidly initializes the non-sleep mode through the MCU.
According to the embodiment of the application, the MCU is switched to the sleep mode by writing the sleep mark data into the backup register, and the function of the IO port of the MCU is configured according to the sleep mode, so that the power consumption of the MCU in the sleep mode can be reduced, the power consumption of electronic equipment is reduced, and the energy is saved.
As shown in fig. 3, a flowchart of another specific implementation manner of the sleep mode control method provided in the embodiment of the present application is applied to an electronic device having a driving board, a center control board, and a keypad, and the method includes the following steps:
step 301, the central control board sends heartbeat data packets to the drive board every second preset time period, and sends key data packets to the drive board when detecting that a user operates a key on the central control board.
The second preset time period may be 1 second.
Step 302, when the central control board receives the sleep instruction packet from the drive board, or the central control board does not receive the device state information from the drive board within a third preset time period, writing the sleep flag data into the backup register of the central control board, and resetting the MCU of the central control board.
The third preset time period may be 3 seconds, and the device state information includes a locking state, an AC/DC power supply mode, angle information, altitude information, and the like.
Step 303, after the MCU in the central control board is reset, the central control board reads the backup register through the MCU, and if the sleep flag data is read, configures the function of the IO port of the MCU according to the sleep mode.
Specifically, when the MCU of the central control board reads the sleep flag data from the backup register, the central control board closes the CAN data transmission function of the MCU, so that the MCU is only in a data receiving state, thereby reducing power consumption when the MCU is in the sleep mode; the central control board also configures a pin responsible for receiving CAN signals and a pin responsible for key input in the MCU into a line interruption mode, and the MCU CAN be awakened when data exists on the CAN bus. In this embodiment, the central control board may set the pin responsible for receiving the CAN signal and the pin responsible for the key input in the MCU as the IO port interrupt function of the common MCU; accordingly, the MCU CAN respond to IO port line interrupts but cannot respond to CAN receive interrupts while in sleep mode.
And step 304, when the CAN line interruption or the key line interruption occurs, the central control board writes the non-sleep flag data into the backup register of the central control board, and resets the MCU of the central control board.
And 305, after the MCU in the central control board is reset, the central control board rapidly initializes a non-sleep mode through the MCU, sends an invalid data packet to the CAN bus, and sends a key data packet to the drive board when detecting the operation of a user on a key on the central control board.
The invalid data packet sent to the CAN bus is used for triggering the MCU which is mounted on the CAN bus and is in a sleep mode in a broadcast mode, and the MCU CAN be awakened by line interruption.
According to the embodiment of the application, the MCU is switched to the sleep mode by writing the sleep mark data into the backup register, and the function of the IO port of the MCU is configured according to the sleep mode, so that the power consumption of the MCU in the sleep mode can be reduced, the power consumption of electronic equipment is reduced, and the energy is saved.
As shown in fig. 4, a flowchart of another specific implementation manner of the sleep mode control method provided in the embodiment of the present application is applied to an electronic device having a driving board, a center control board, and a keypad, and the method includes the following steps:
step 401, when the keypad detects that a user operates a key on the keypad, sending a key data packet to the driver board.
And 402, when the key board receives a sleep instruction packet from the driving board or the key board does not receive the device state information from the driving board within a third preset time, writing sleep flag data into a backup register of the key board, and resetting an MCU of the key board.
The third preset time period may be 3 seconds, and the device state information includes a locking state, an AC/DC power supply mode, angle information, altitude information, and the like.
And step 403, after the MCU in the keypad is reset, the keypad reads the backup register through the MCU, and if the sleep flag data is read, configures the function of the IO port of the MCU according to the sleep mode.
Specifically, when the MCU of the keypad reads the sleep flag data from the backup register, the keypad closes the CAN data transmission function of the MCU, so that the MCU is only in a data receiving state, thereby reducing power consumption when the MCU is in a sleep mode; the key board also configures the pin responsible for receiving CAN signals and the pin responsible for key input in the MCU into a line interruption mode, and the MCU CAN be awakened when data exists on the CAN bus. In this embodiment, the keypad may set the pin responsible for receiving the CAN signal and the pin responsible for key input in the MCU as the IO port interrupt function of the general MCU; accordingly, the MCU CAN respond to IO port line interrupts but cannot respond to CAN receive interrupts while in sleep mode.
And step 404, when the CAN line interruption or the key line interruption occurs, the key board writes the non-sleep flag data into the backup register of the key board, and resets the MCU of the key board.
And 405, after the MCU in the key board is reset, the key board rapidly initializes the non-sleep mode through the MCU, sends an invalid data packet to the CAN bus, and sends a key data packet to the drive board when detecting the operation of a user on the key board.
The invalid data packet sent to the CAN bus is used for triggering the MCU which is mounted on the CAN bus and is in a sleep mode in a broadcast mode, and the MCU CAN be awakened by line interruption.
According to the embodiment of the application, the MCU is switched to the sleep mode by writing the sleep mark data into the backup register, and the function of the IO port of the MCU is configured according to the sleep mode, so that the power consumption of the MCU in the sleep mode can be reduced, the power consumption of electronic equipment is reduced, and the energy is saved.
The scope of embodiments of the present application is not limited to the performance of functions in the order shown or discussed, but may include the performance of functions in a substantially simultaneous manner or in an inverted order depending on the functionality involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
As shown in fig. 5, a schematic structural diagram of an electronic device provided in the embodiment of the present application includes a driving board 510, a console board 520, and a keypad board 530, where an MCU of the driving board 510, an MCU of the console board 520, and an MCU of the keypad board 530 are all mounted on a CAN bus;
wherein the drive plate 510 is configured to:
when the drive board 510 does not receive a heartbeat data packet or a key data packet within a first preset time period, sending a sleep instruction packet to each MCU on the CAN bus, writing sleep flag data into a backup register of the drive board, and resetting the MCU of the drive board;
after the MCU in the drive board 510 is reset, reading the backup register through the MCU, and if the sleep mark data is read, configuring the function of an IO port of the MCU according to a sleep mode;
when CAN line interruption occurs, writing non-sleep flag data into a backup register of the controller, and resetting an MCU of the controller;
after the MCU in the driver board 510 is reset, the non-sleep mode is initialized by the MCU.
In addition, the drive board 510 is also used to:
when the drive board 510 receives the heartbeat data packet or the key data packet within the first preset time period, the device status information is sent.
Wherein the device state information includes a lock state, an Alternating Current (AC)/Direct Current (DC) power supply mode, angle information, and altitude information.
The center control board 520 is configured to:
after receiving the sleep instruction packet from the driver board 510, writing the sleep flag data into the backup register of the driver board, and resetting the MCU of the driver board;
after the MCU in the central control board 520 is reset, reading the backup register through the MCU, and if reading the sleep mark data, configuring the function of an IO port of the MCU according to the sleep mode;
when CAN line interruption or key line interruption occurs, writing non-sleep flag data into a backup register of the MCU, and resetting the MCU of the MCU;
after the MCU in the central control board 520 is reset, an invalid data packet is sent to the CAN bus, and when the operation of a user on a key on the central control board 520 is detected, a key data packet is sent to the drive board 510.
The key sheet 530 is configured to:
after receiving the sleep instruction packet from the driver board 510, writing the sleep flag data into the backup register of the driver board, and resetting the MCU of the driver board;
after the MCU in the key board 530 is reset, the backup register is read by the MCU, and if the sleep flag data is read, the function of the IO port of the MCU is configured according to the sleep mode;
when CAN line interruption or key line interruption occurs, writing non-sleep flag data into a backup register of the MCU, and resetting the MCU of the MCU;
after the MCU in the key board 530 is reset, an invalid data packet is sent to the CAN bus, and when an operation of a user on a key on the key board 530 is detected, a key data packet is sent to the driver board 510.
According to the embodiment of the application, the MCU is switched to the sleep mode by writing the sleep mark data into the backup register, and the function of the IO port of the MCU is configured according to the sleep mode, so that the power consumption of the MCU in the sleep mode can be reduced, the power consumption of electronic equipment is reduced, and the energy is saved.
The electronic device in the embodiment of the present application may be a terminal, or may be a component or a chip in the terminal. The electronic device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The electronic device in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The electronic device provided in the embodiment of the present application can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 3, and is not described here again to avoid repetition.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program stored in the memory and capable of running on the processor, where the program, when executed by the processor, implements each process of the foregoing sleep mode control method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the control method embodiment of the sleep mode, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A control method of a sleep mode is characterized in that the control method is applied to electronic equipment with a driving board, a central control board and a key board, a microcontroller MCU of the driving board, an MCU of the central control board and an MCU of the key board are all mounted on a Controller Area Network (CAN) bus, and the method comprises the following steps:
when the drive board does not receive a heartbeat data packet or a key data packet within a first preset time length, the drive board sends a sleep instruction packet to each MCU on the CAN bus, writes sleep flag data into a backup register of the drive board, and resets the MCU of the drive board;
after the MCU in the drive board is reset, the drive board reads a backup register through the MCU, and if the sleep mark data is read, the function of an IO port of the MCU is configured according to a sleep mode;
when CAN line interruption occurs, the drive board writes non-sleep flag data into a backup register of the drive board and resets an MCU of the drive board;
after the MCU in the driving board is reset, the driving board initializes a non-sleep mode through the MCU.
2. The method of claim 1, further comprising:
when the drive board receives a heartbeat data packet or a key data packet within a first preset time period, the drive board sends equipment state information.
3. The method of claim 2, wherein the device status information includes lock status, AC/DC power mode, angle information, and altitude information.
4. The method of claim 1, wherein after the driver board sends a sleep command packet to each MCU on the CAN bus, further comprising:
the central control board writes the sleep mark data into a backup register of the central control board and resets an MCU of the central control board;
after the MCU in the central control board is reset, the central control board reads the backup register through the MCU, and if the sleep mark data is read, the function of an IO port of the MCU is configured according to a sleep mode;
when CAN line interruption or key line interruption occurs, the central control board writes non-sleep mark data into a self backup register and resets a self MCU;
after the MCU in the central control board is reset, the central control board sends an invalid data packet to the CAN bus, and sends a key data packet to the drive board when detecting the operation of a user on a key on the central control board.
5. The method of claim 1, wherein after the driver board sends a sleep command packet to each MCU on the CAN bus, further comprising:
the key board writes the sleep mark data into a backup register of the key board, and resets an MCU of the key board;
after the MCU in the key board is reset, the key board reads a backup register through the MCU, and if the sleep mark data is read, the function of an IO port of the MCU is configured according to a sleep mode;
when CAN line interruption or key line interruption occurs, the key board writes non-sleep flag data into a backup register of the key board, and resets an MCU of the key board;
and after the MCU in the key board is reset, the key board sends an invalid data packet to the CAN bus, and sends a key data packet to the drive board when the operation of a user on the keys on the key board is detected.
6. An electronic device is characterized by comprising a driving board, a central control board and a key board, wherein an MCU (microprogrammed control unit) of the driving board, an MCU of the central control board and an MCU of the key board are all mounted on a CAN (controller area network) bus;
wherein the drive plate is configured to:
when the drive board does not receive a heartbeat data packet or a key data packet within a first preset time, sending a sleep instruction packet to each MCU on the CAN bus, writing sleep flag data into a backup register of the drive board, and resetting the MCU of the drive board;
after the MCU in the driving board is reset, reading a backup register through the MCU, and if reading sleep mark data, configuring the function of an IO port of the MCU according to a sleep mode;
when CAN line interruption occurs, writing non-sleep flag data into a backup register of the controller, and resetting an MCU of the controller;
and after the MCU in the driving board is reset, initializing a non-sleep mode through the MCU.
7. The electronic device of claim 6, wherein the driver board is further configured to:
and when the drive board receives a heartbeat data packet or a key data packet within a first preset time length, sending equipment state information.
8. The electronic device of claim 7, wherein the device state information includes a lock-out state, an AC/DC power mode, angle information, and altitude information.
9. The electronic device of claim 6, wherein the center control panel is configured to:
after receiving a sleep instruction packet from the drive board, writing sleep flag data into a backup register of the drive board, and resetting an MCU of the drive board;
after the MCU in the central control board is reset, reading a backup register through the MCU, and if reading sleep mark data, configuring the function of an IO port of the MCU according to a sleep mode;
when CAN line interruption or key line interruption occurs, writing non-sleep flag data into a backup register of the MCU, and resetting the MCU of the MCU;
and after the MCU in the central control board is reset, an invalid data packet is sent to the CAN bus, and when the operation of a user on a key on the central control board is detected, a key data packet is sent to the drive board.
10. The electronic device of claim 6, wherein the keypad is configured to:
after receiving a sleep instruction packet from the drive board, writing sleep flag data into a backup register of the drive board, and resetting an MCU of the drive board;
after the MCU in the key board is reset, reading a backup register through the MCU, and if reading sleep mark data, configuring the function of an IO port of the MCU according to a sleep mode;
when CAN line interruption or key line interruption occurs, writing non-sleep flag data into a backup register of the MCU, and resetting the MCU of the MCU;
and after the MCU in the key board is reset, an invalid data packet is sent to the CAN bus, and when the operation of a user on the keys on the key board is detected, a key data packet is sent to the drive board.
CN202110767847.2A 2021-07-07 2021-07-07 Sleep mode control method and electronic equipment Pending CN113517061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110767847.2A CN113517061A (en) 2021-07-07 2021-07-07 Sleep mode control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110767847.2A CN113517061A (en) 2021-07-07 2021-07-07 Sleep mode control method and electronic equipment

Publications (1)

Publication Number Publication Date
CN113517061A true CN113517061A (en) 2021-10-19

Family

ID=78066965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110767847.2A Pending CN113517061A (en) 2021-07-07 2021-07-07 Sleep mode control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113517061A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6943667B1 (en) * 2002-02-25 2005-09-13 Palm, Inc. Method for waking a device in response to a wireless network activity
CN202049609U (en) * 2011-03-17 2011-11-23 冠捷投资有限公司 Remote control device enabling display equipment to enter resting state
CN107340847A (en) * 2017-06-12 2017-11-10 苏州贝艾尔净化科技有限公司 Hand-held new trend controller low-power consumption control method
CN108446010A (en) * 2018-03-30 2018-08-24 联想(北京)有限公司 Information processing method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6943667B1 (en) * 2002-02-25 2005-09-13 Palm, Inc. Method for waking a device in response to a wireless network activity
CN202049609U (en) * 2011-03-17 2011-11-23 冠捷投资有限公司 Remote control device enabling display equipment to enter resting state
CN107340847A (en) * 2017-06-12 2017-11-10 苏州贝艾尔净化科技有限公司 Hand-held new trend controller low-power consumption control method
CN108446010A (en) * 2018-03-30 2018-08-24 联想(北京)有限公司 Information processing method and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
苗斌 等: "具有OSEK功能汽车仪表的睡眠及唤醒管理研究", 汽车电器, no. 02, 20 February 2014 (2014-02-20), pages 15 - 18 *

Similar Documents

Publication Publication Date Title
US10585637B2 (en) Information processing method and electronic device
JP4404828B2 (en) Automatic activation and deactivation of wireless network adapters
CN108319390B (en) Control method of flexible screen and mobile terminal
US20080189652A1 (en) System and computer program for controlling screen focus for files and applications during presentations
CN110769319B (en) Standby wakeup interaction method and device
CN104038803A (en) Modularized smart television and interactive method applied to same
US20070159558A1 (en) Power control method used with tv module of portable electronic apparatus
CN110134216B (en) Power supply control device and method and terminal equipment
WO2016053908A1 (en) Hostless mdns-sd responder with authenticated host wake service
EP1338947A1 (en) A power state sub-system and a method of changing the power state of a selected computer system
US9652254B2 (en) System status control method and portable terminal
CN103986844A (en) Mobile terminal and quick-start power-saving achieving method thereof
CN113517061A (en) Sleep mode control method and electronic equipment
US20230378767A1 (en) Charging control method and apparatus, electronic device, and charger
CN113411875A (en) Wireless communication method, device, electronic equipment and readable storage medium
CN112929254A (en) Message processing method and device and electronic equipment
CN109688393B (en) Screen projection control method and first electronic device
US7493501B2 (en) Apparatus and method for controlling system operation based on battery state
CN112948297B (en) Screen control method and device, double-screen terminal equipment and storage medium
US20140040520A1 (en) Method and program for selective suspension of usb device
CN108287755B (en) Application program control method and mobile terminal
CN109992943B (en) Screen display method and terminal equipment
CN114327647A (en) Server startup method, system, equipment and computer readable storage medium
CN113747228B (en) Method for realizing intelligent rotary television dynamic screen protection
CN113589724B (en) Key processing method and electronic equipment

Legal Events

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