CN110609713A - Implementation method for controlling battery to enter transportation power saving mode and electronic device - Google Patents

Implementation method for controlling battery to enter transportation power saving mode and electronic device Download PDF

Info

Publication number
CN110609713A
CN110609713A CN201910916659.4A CN201910916659A CN110609713A CN 110609713 A CN110609713 A CN 110609713A CN 201910916659 A CN201910916659 A CN 201910916659A CN 110609713 A CN110609713 A CN 110609713A
Authority
CN
China
Prior art keywords
battery
saving mode
power saving
enter
embedded controller
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
CN201910916659.4A
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.)
Guangdong Hongqin Communication Technology Co Ltd
Original Assignee
Guangdong Hongqin Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Hongqin Communication Technology Co Ltd filed Critical Guangdong Hongqin Communication Technology Co Ltd
Priority to CN201910916659.4A priority Critical patent/CN110609713A/en
Publication of CN110609713A publication Critical patent/CN110609713A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to the technical field of electronics, and discloses a method for controlling a battery to enter a transportation power-saving mode and an electronic device. The implementation method comprises the following steps: in the running stage of the BIOS, the embedded controller detects whether a specified shortcut key is input; if the input of the appointed shortcut key is detected, the embedded controller controls the battery to enter a transportation power saving mode through the battery control chip and simultaneously performs shutdown processing. In the embodiment of the invention, in the BIOS operation stage, a user can input a designated shortcut key at any time, and the embedded controller controls the battery to enter a ship mode through the battery control chip after detection; and when the user does not input, entering the operating system after the BIOS operation is finished according to the conventional flow. Compared with the existing mode of running a specific tool under an operating system and sending a trigger instruction to the battery control chip through the specific tool, the method and the device do not need to develop the specific tool, reduce development cost and simplify user operation.

Description

Implementation method for controlling battery to enter transportation power saving mode and electronic device
Technical Field
The invention relates to the technical field of electronics, in particular to a method for controlling a battery to enter a transportation power saving mode and an electronic device.
Background
Batteries are widely applied to mobile electronic devices, so that the mobile electronic devices are not limited by power lines, sockets and other equipment within a certain time, and application scenes and mobility of the electronic devices are improved. Most notebook computers are currently battery powered. Basically, the battery operating mode of a notebook computer can be divided into a general mode and a ship mode (transportation power saving mode), wherein the general mode refers to a mode in which the battery can enable the computer to normally operate and includes normal power on and off actions, and the ship mode refers to a mode in which the battery enters a storage and transportation mode.
After the production of the notebook computer is finished in a factory, the notebook computer usually needs to enter a ship mode to improve the storage and transportation safety of products, prevent the notebook computer from being started due to accidents in the storage and transportation processes, and reduce the loss of the battery power in the storage and transportation processes.
At present, a method for making a battery of a notebook computer enter a ship mode is as follows: by running a specific tool under an OS (operating system), a command is issued to the battery control chip through a specific port, thereby causing the battery to enter the ship mode. This approach requires developers to develop specific tools to run under the OS, is costly to develop, and is complex to operate because it needs to run under an operating system.
Disclosure of Invention
The invention aims to provide a method for controlling a battery to enter a transportation power-saving mode and an electronic device, and overcomes the defects of high development cost and high operation complexity in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for controlling a battery to enter a transportation power saving mode comprises the following steps:
in the running stage of the BIOS, the embedded controller detects whether a specified shortcut key is input;
and if the specified shortcut key is detected to be input, the embedded controller controls the battery to enter a transportation power saving mode through a battery control chip and simultaneously performs shutdown processing.
Optionally, the embedded controller controls the battery to enter a transportation power saving mode through the battery control chip, including: when the input of the appointed shortcut key is detected, the embedded controller sends a power saving mode trigger instruction to the battery control chip, and the battery control chip controls the battery to enter a transportation power saving mode.
Optionally, the embedded controller controls the battery to enter a transportation power saving mode through the battery control chip, including:
when the input of the appointed shortcut key is detected, setting a preset flag bit by the embedded controller;
the BIOS detects whether the flag bit is set in real time, prompts a user to determine whether the battery needs to be controlled to enter a transportation power saving mode when the flag bit is set, informs the embedded controller after receiving a confirmation instruction of the user, the embedded controller sends a power saving mode trigger instruction to the battery control chip, and the battery control chip controls the battery to enter the transportation power saving mode.
Optionally, the BIOS operating phase includes: a power-on self-test phase, an initialization phase and a boot start phase.
Optionally, the implementation method further includes: when the external power adapter is detected, the embedded controller controls the battery to exit the transportation power-saving mode through the battery control chip.
An electronic device comprises a BIOS, an embedded controller, a battery control chip and a battery, wherein the embedded controller is used for detecting whether a specified shortcut key is input or not in the running stage of the BIOS, controlling the battery to enter a transportation power saving mode through the battery control chip when the specified shortcut key is input, and simultaneously performing shutdown processing.
Optionally, the embedded controller is specifically configured to send a power saving mode trigger instruction to the battery control chip when detecting that the specified shortcut key is input;
the battery control chip is specifically configured to control the battery to enter a transportation power saving mode when the power saving mode trigger instruction is received.
Optionally, the embedded controller is specifically configured to set a preset flag bit when the specified shortcut key input is detected; the power saving module is also used for sending a power saving mode trigger instruction to the battery control chip when receiving the notification of the BIOS;
the BIOS is specifically used for detecting whether the flag bit is set in real time, prompting a user to determine whether the battery needs to be controlled to enter a transportation power saving mode when the flag bit is set, and notifying the embedded controller after receiving a confirmation instruction of the user;
the battery control chip is specifically configured to control the battery to enter a transportation power saving mode when the power saving mode trigger instruction is received.
Optionally, the embedded controller is further configured to control the battery to exit the transportation power saving mode through the battery control chip when detecting an external power adapter.
A storage medium storing a plurality of instructions, the instructions being suitable for being loaded by a processor to execute the steps of any one of the above implementation methods for controlling a battery to enter a transportation power saving mode.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, in the BIOS operation stage before the operation system is entered, a user can input a designated shortcut key at any time, and the embedded controller controls the battery to enter a ship mode through the battery control chip after detection; and when the user does not input the appointed shortcut key, directly entering the operating system after the BIOS operation is finished according to the conventional flow. Compared with the existing mode of running a specific tool under an operating system and sending a trigger instruction to the battery control chip through the specific tool, the method and the device do not need to develop the specific tool, reduce development cost and simplify user operation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for controlling a battery to enter a ship mode according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for controlling a battery to enter a ship mode according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
Example one
Referring to fig. 1, the method for controlling a battery to enter a ship mode according to the present embodiment includes:
step 101, in the BIOS operation stage, the embedded controller detects whether there is a shortcut key input.
The designated shortcut key may be arbitrarily designated in advance through the embedded controller, and may specifically be one key or a combination of multiple keys, which is not limited specifically.
Generally, the BIOS runs in the following three phases:
a first stage, Power On Self Test (POST for short) for detecting hardware when the electronic device is just powered On; the general complete power-on self-test includes testing CPU, 640K basic memory, more than 1M extended memory, ROM, mainboard, CMOS memory, serial-parallel port, display card, soft and hard disk system and keyboard, once the problem is found in the self-test, the system will give prompt message or alarm.
The second stage, initialization, including creating interrupt vector, setting register, initializing and detecting some external devices, etc., wherein the important part is BIOS setting, mainly setting some parameters for hardware, reading these parameters when the device is started, comparing with the actual hardware setting, if not, it will affect the system start.
And a third stage, a boot start stage, to boot the DOS or other operating system. The BIOS reads the boot record from the starting sector of the floppy or hard disk, if not found, it will display no boot device on the display, if found, it will transfer the control right of the computer to the boot record, the boot record will load the operating system into the computer, after the computer is successfully started, this part of the BIOS task is completed.
In practical application, a user can input a specified shortcut key at any stage in the running process of the BIOS, and the purpose of controlling the battery to enter the ship mode can be achieved.
102, if the input of a specified shortcut key is detected, the embedded controller sends a power saving mode trigger instruction to a battery control chip, and the battery control chip controls a battery to enter a ship mode after receiving the power saving mode trigger instruction; meanwhile, the embedded controller controls the electronic equipment to carry out shutdown processing.
After the electronic equipment is shut down, when the external power adapter is detected, the embedded controller can control the battery to exit the transportation power-saving mode through the battery control chip, and at the moment, the electronic equipment can be normally turned on and off.
And 103, if the input of the appointed shortcut key is not detected, controlling the electronic equipment to enter an operating system after the BIOS operation is finished.
In the process, before entering an operating system, a user can input a designated shortcut key at any time, and the embedded controller immediately sends a power saving mode triggering instruction to the battery control chip after detecting the shortcut key so as to trigger the battery to enter a ship mode; and when the user does not input the appointed shortcut key, directly entering the operating system after the BIOS operation is finished according to the conventional flow. Compared with the existing mode of running a specific tool under an operating system and sending a trigger instruction to the battery control chip through the specific tool, the method and the device do not need to develop the specific tool, reduce development cost and simplify user operation.
Example two
Referring to fig. 2, the method for controlling a battery to enter a transportation power saving mode according to the embodiment includes:
step 201, in the BIOS operation phase, the embedded controller detects whether a specified shortcut key is input, sets a preset flag bit if the specified shortcut key is detected, and does not process the flag bit if the specified shortcut key is not detected.
The flag bit is arranged at a specified position in a memory in the embedded controller, and the preset value of the flag bit is designated as a flag for triggering the battery to enter the ship mode.
Step 202, the BIOS detects whether the flag bit is set in real time, and if it is detected that the flag bit is set, continues to perform step 203; if the flag bit is not detected to be set, step 205 is executed after the BIOS operation is finished.
Step 203, the BIOS prompts the user to determine whether the battery needs to be controlled to enter the ship mode; if the user determines that the request is needed, continuing to execute step 204; if the user determines that it is not needed, step 205 is executed after the BIOS operation is finished.
For example, when the user selects to press the Enter key, the user is determined to determine that the battery needs to be controlled to Enter the ship mode; when the user selects to press the Esc key, the user is deemed to determine that the battery does not need to be controlled to enter the ship mode.
Step 204, the BIOS sends a power saving mode trigger instruction to the embedded controller, and the battery control chip controls the battery to enter a ship mode after receiving the power saving mode trigger instruction; meanwhile, the embedded controller controls the electronic equipment to carry out shutdown processing.
And step 205, after the running of the BIOS is finished, controlling the electronic equipment to enter an operating system.
Different from the manner in which the embedded controller immediately triggers the battery to enter the ship mode when detecting that the designated shortcut key is input, in the second embodiment, before triggering the battery to enter the ship mode, the embedded controller sets a flag bit in an internal memory thereof to notify the BIOS to prompt the user, and after the user confirms to continue the next step, the BIOS notifies the embedded controller to trigger the battery to enter the ship mode. Therefore, misoperation of a user can be avoided, and the control accuracy is improved.
EXAMPLE III
The third embodiment provides an electronic device, which includes a BIOS, an embedded controller, a battery control chip, and a battery.
To achieve higher processing speed, the embedded controller may directly control the battery to enter the ship mode according to the input of a designated shortcut key.
At the moment, the embedded controller is specifically used for sending a power saving mode triggering instruction to the battery control chip when the input of the appointed shortcut key is detected;
and the battery control chip is specifically used for controlling the battery to enter a transportation power saving mode when receiving the power saving mode trigger instruction.
In addition, in order to avoid misoperation, the embedded controller can also control the battery to enter the ship mode after obtaining the confirmation instruction of the user.
At this time, the embedded controller is specifically configured to set a preset flag bit when detecting that a specified shortcut key is input, and is further configured to send a power saving mode trigger instruction to the battery control chip when receiving a notification of the BIOS;
the BIOS is specifically used for detecting whether the flag bit is set in real time, prompting a user to determine whether the battery needs to be controlled to enter a transportation power saving mode when the flag bit is set, and informing the embedded controller after receiving a confirmation instruction of the user;
and the battery control chip is specifically used for controlling the battery to enter a transportation power saving mode when receiving the power saving mode trigger instruction.
It should be noted that the embedded controller is further configured to control the battery to exit the transportation power saving mode through the battery control chip when detecting the external power adapter, and at this time, the electronic device can be normally turned on and off.
In this embodiment, the electronic device may be various devices with a battery, such as a notebook computer and a PAD.
Example four
It will be understood by those skilled in the art that all or part of the steps in the methods of the first and second embodiments may be implemented by instructions or by instructions controlling associated hardware, and the instructions may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present invention further provide a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in the implementation method for controlling a battery to enter a transportation power saving mode provided in the first and second embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for controlling a battery to enter a transportation power saving mode is characterized by comprising the following steps:
in the running stage of the BIOS, the embedded controller detects whether a specified shortcut key is input;
and if the specified shortcut key is detected to be input, the embedded controller controls the battery to enter a transportation power saving mode through a battery control chip and simultaneously performs shutdown processing.
2. The method as claimed in claim 1, wherein the embedded controller controls the battery to enter the transportation power saving mode via a battery control chip, and the method includes: when the input of the appointed shortcut key is detected, the embedded controller sends a power saving mode trigger instruction to the battery control chip, and the battery control chip controls the battery to enter a transportation power saving mode.
3. The method as claimed in claim 1, wherein the embedded controller controls the battery to enter the transportation power saving mode via a battery control chip, and the method includes:
when the input of the appointed shortcut key is detected, setting a preset flag bit by the embedded controller;
the BIOS detects whether the flag bit is set in real time, prompts a user to determine whether the battery needs to be controlled to enter a transportation power saving mode when the flag bit is set, informs the embedded controller after receiving a confirmation instruction of the user, the embedded controller sends a power saving mode trigger instruction to the battery control chip, and the battery control chip controls the battery to enter the transportation power saving mode.
4. The method of claim 1, wherein the BIOS is configured to perform the following steps: a power-on self-test phase, an initialization phase and a boot start phase.
5. The method of claim 1, further comprising: when the external power adapter is detected, the embedded controller controls the battery to exit the transportation power-saving mode through the battery control chip.
6. The electronic equipment is characterized in that the embedded controller is used for detecting whether a specified shortcut key is input or not in the running stage of the BIOS, controlling the battery to enter a transportation power saving mode through the battery control chip when the specified shortcut key is detected to be input, and simultaneously carrying out shutdown processing.
7. The electronic device of claim 6,
the embedded controller is specifically configured to send a power saving mode trigger instruction to the battery control chip when the specified shortcut key input is detected;
the battery control chip is specifically configured to control the battery to enter a transportation power saving mode when the power saving mode trigger instruction is received.
8. The electronic device of claim 6,
the embedded controller is specifically used for setting a preset flag bit when the input of the specified shortcut key is detected; the power saving module is also used for sending a power saving mode trigger instruction to the battery control chip when receiving the notification of the BIOS;
the BIOS is specifically used for detecting whether the flag bit is set in real time, prompting a user to determine whether the battery needs to be controlled to enter a transportation power saving mode when the flag bit is set, and notifying the embedded controller after receiving a confirmation instruction of the user;
the battery control chip is specifically configured to control the battery to enter a transportation power saving mode when the power saving mode trigger instruction is received.
9. The electronic device of claim 6, wherein the embedded controller is further configured to control the battery to exit the transportation power saving mode through the battery control chip when an external power adapter is detected.
10. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the method for controlling a battery to enter a transportation power saving mode according to any one of claims 1 to 5.
CN201910916659.4A 2019-09-26 2019-09-26 Implementation method for controlling battery to enter transportation power saving mode and electronic device Pending CN110609713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910916659.4A CN110609713A (en) 2019-09-26 2019-09-26 Implementation method for controlling battery to enter transportation power saving mode and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910916659.4A CN110609713A (en) 2019-09-26 2019-09-26 Implementation method for controlling battery to enter transportation power saving mode and electronic device

Publications (1)

Publication Number Publication Date
CN110609713A true CN110609713A (en) 2019-12-24

Family

ID=68893488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910916659.4A Pending CN110609713A (en) 2019-09-26 2019-09-26 Implementation method for controlling battery to enter transportation power saving mode and electronic device

Country Status (1)

Country Link
CN (1) CN110609713A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112986738A (en) * 2021-03-01 2021-06-18 西安稳先半导体科技有限责任公司 Shipping mode setting method, electronic device, and computer-readable storage medium
CN113672070A (en) * 2021-08-26 2021-11-19 歌尔科技有限公司 Start-stop control method and device for transport mode and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288098A1 (en) * 2006-06-02 2007-12-13 An-Sheng Chang Computer and method for saving electricity consumed thereby
CN104216297A (en) * 2013-05-30 2014-12-17 英业达科技有限公司 False triggering prevention method and direct-current power supply unit applying same
CN108258757A (en) * 2018-01-02 2018-07-06 联想(北京)有限公司 A kind of control method and equipment
CN109904886A (en) * 2017-12-08 2019-06-18 神讯电脑(昆山)有限公司 Control circuit module and its control method
CN110245042A (en) * 2019-06-21 2019-09-17 广东虹勤通讯技术有限公司 A kind of laptop shipment mode capabilities automatic test approach and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288098A1 (en) * 2006-06-02 2007-12-13 An-Sheng Chang Computer and method for saving electricity consumed thereby
CN104216297A (en) * 2013-05-30 2014-12-17 英业达科技有限公司 False triggering prevention method and direct-current power supply unit applying same
CN109904886A (en) * 2017-12-08 2019-06-18 神讯电脑(昆山)有限公司 Control circuit module and its control method
CN108258757A (en) * 2018-01-02 2018-07-06 联想(北京)有限公司 A kind of control method and equipment
CN110245042A (en) * 2019-06-21 2019-09-17 广东虹勤通讯技术有限公司 A kind of laptop shipment mode capabilities automatic test approach and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112986738A (en) * 2021-03-01 2021-06-18 西安稳先半导体科技有限责任公司 Shipping mode setting method, electronic device, and computer-readable storage medium
CN113672070A (en) * 2021-08-26 2021-11-19 歌尔科技有限公司 Start-stop control method and device for transport mode and electronic equipment

Similar Documents

Publication Publication Date Title
US6832311B2 (en) Information processing system and resume processing method used in the system
US8301873B2 (en) Method and computer system for thermal throttling protection
US9098305B2 (en) Computer system and bootup and shutdown method thereof
TWI528165B (en) System for power management
CN104220958B (en) Computer device and method for converting working mode of universal serial bus connector of the computer device
KR102026217B1 (en) Techniques for switching between operating systems
CN105940375B (en) Dynamic reassignment for multiple operating system devices
TWI442321B (en) Method for speeding up the boot time of an electric device and the electric device
US11816220B2 (en) Phased boot process to dynamically initialize devices in a verified environment
US8151124B2 (en) Apparatus and method for forcibly shutting down system
US6895517B2 (en) Method of synchronizing operation frequencies of CPU and system RAM in power management process
CN110609713A (en) Implementation method for controlling battery to enter transportation power saving mode and electronic device
TWI534707B (en) Computer system, shutdown and boot method thereof
CN113703799A (en) Computing device and BIOS updating method and medium thereof
US5634132A (en) Operating system independent support for mixed voltage devices
EP3025230A1 (en) Operating system switching method and apparatus
CN103197933A (en) Computer and rapid starting method thereof
CN108228109B (en) Method and device for protecting data of electronic equipment and computer storage medium
CN101281416A (en) Method for ensuring system closedown completion
CN108197455B (en) Electronic device and safe starting method thereof
JP6698722B2 (en) Embedded controller chips, systems and devices
CN104462953A (en) Information processing method and electronic equipment
US7093142B2 (en) Method, apparatus and program for user-determined operational state of a portable computer prior to detachment
US8566575B2 (en) Computer apparatus and method for charging portable electronic device using the computer apparatus
KR101497706B1 (en) Apparatus and method for shutting down computer system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191224