CN104486089B - A kind of computer network awakening method and device - Google Patents

A kind of computer network awakening method and device Download PDF

Info

Publication number
CN104486089B
CN104486089B CN201410727084.9A CN201410727084A CN104486089B CN 104486089 B CN104486089 B CN 104486089B CN 201410727084 A CN201410727084 A CN 201410727084A CN 104486089 B CN104486089 B CN 104486089B
Authority
CN
China
Prior art keywords
network
wake
power supply
supply state
lan
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.)
Active
Application number
CN201410727084.9A
Other languages
Chinese (zh)
Other versions
CN104486089A (en
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.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information 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 Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN201410727084.9A priority Critical patent/CN104486089B/en
Publication of CN104486089A publication Critical patent/CN104486089A/en
Application granted granted Critical
Publication of CN104486089B publication Critical patent/CN104486089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a kind of computer network awakening method and devices, are related to computer technology, the method includes:Wake on LAN instruction of the network chip detection in real time from the network equipment, and Wake on LAN instruction is sent to embedded controller;After receiving the Wake on LAN instruction, the embedded controller obtains system power supply state, and according to the system power supply state, and Wake on LAN is carried out to computer.The present invention realizes a kind of new Wake on LAN mode, can reduce part use, reduce product cost.

Description

Computer network awakening method and device
Technical Field
The present invention relates to computer technologies, and in particular, to a computer network wake-up method and related apparatus.
Background
The function of computer network wake-up has at least the following requirements:
1. the computer is in a sleep mode, i.e. in state S3;
2. the computer is in an Alternating Current (AC) power supply state, and for the notebook computer, the computer needs to be connected with a power adapter.
Fig. 1 is a schematic diagram of a computer network Wake-up provided in the prior art, as shown in fig. 1, a network chip (LAN) sends a Wake-on-LAN signal Wake to a central processing unit MCP to Wake up the MCP. As can be seen from fig. 1, whether wake-up is supported in different states is achieved by turning on or off the power of the LAN.
This wake-on-LAN approach requires additional components and increases the cost of computer manufacture.
Disclosure of Invention
The invention aims to provide a computer network awakening method and a computer network awakening device, which realize a new network awakening mode so as to reduce additional parts and reduce cost.
According to one aspect of the invention, a computer network wake-up method is provided, which comprises the following steps:
the network chip detects a network awakening instruction from the network equipment in real time and sends the network awakening instruction to the embedded controller;
and after receiving the network awakening instruction, the embedded controller acquires a system power supply state and awakens the computer on the network according to the system power supply state.
Preferably, before the step of detecting, by the network chip, the wake-on-lan command from the network device in real time, the method further includes: the network chip sets the type of wake-on-LAN command that can be used to wake-on-LAN the terminal.
Preferably, the step of sending the wake-on-lan instruction to the embedded controller includes:
and the network chip compares the type of the detected network awakening instruction with the type of the previously set network awakening instruction, and if the type of the detected network awakening instruction is consistent with the type of the previously set network awakening instruction, the detected network awakening instruction is sent to the embedded controller.
Preferably, the step of acquiring the power supply state of the system by the embedded controller comprises:
the embedded controller detects whether the power adapter and the battery are connected to the system or not through the charging control chip;
when the power adapter is detected to be connected to the system, determining that the current power supply state of the terminal is an alternating current power supply state;
when the battery access system is detected, determining that the current power supply state of the terminal is a direct current power supply state;
preferably, the step of waking the computer comprises:
and when the embedded controller determines that the system power supply state is the alternating current power supply state, sending the network awakening instruction to a central processing unit, so as to awaken the computer in the sleep state.
According to another aspect of the present invention, there is provided a computer network wake-up apparatus comprising:
the network chip is used for detecting a network awakening instruction from the network equipment in real time and sending the detected network awakening instruction to the embedded controller;
and the embedded controller is used for acquiring the power supply state of the system after receiving the network awakening instruction, and performing network awakening on the computer according to the power supply state of the system.
Preferably, the network chip sets the type of the wake-on-lan command that can be used to wake-on-lan the terminal before detecting the wake-on-lan command from the network device in real time.
Preferably, the network chip compares the type of the detected wake-on-lan instruction with the type of the previously set wake-on-lan instruction, and if the detected wake-on-lan instruction is consistent with the type of the previously set wake-on-lan instruction, sends the detected wake-on-lan instruction to the embedded controller.
Preferably, the embedded controller detects whether the power adapter and the battery are connected to the system through the computer charging control chip, determines that the current power supply state of the terminal is an alternating current power supply state when detecting that the power adapter is connected to the system, and determines that the current power supply state of the terminal is a direct current power supply state when detecting that the battery is connected to the system.
Preferably, when determining that the system power supply state is an alternating current power supply state, the embedded controller sends the network wake-up instruction to a central processing unit, so as to wake up the computer in a sleep state.
Compared with the prior art, the invention has the beneficial effects that:
according to the invention, a new network awakening mode is realized, so that the use of product parts is reduced, and the manufacturing cost of the product is reduced.
Drawings
FIG. 1 is a prior art schematic diagram of a computer network wake-up;
FIG. 2 is a first schematic block diagram of a computer network wake-up method according to an embodiment of the present invention;
FIG. 3 is a second schematic block diagram of a computer network wake-up method according to an embodiment of the present invention;
FIG. 4 is a block diagram of a wake-up apparatus of a computer network according to an embodiment of the present invention;
FIG. 5 is a flow chart of a process of a network chip according to an embodiment of the invention;
fig. 6 is a flowchart of an embedded processor according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
Fig. 2 is a first schematic block diagram of a computer network wake-up method according to an embodiment of the present invention, as shown in fig. 2, including:
step S21: the network chip detects a network awakening instruction from the network equipment in real time and sends the network awakening instruction to the embedded controller.
After receiving a network awakening instruction of network equipment connected to the network of the network chip, the network chip directly forwards the network awakening instruction to the embedded controller.
Step S22: and after receiving the network awakening instruction, the embedded controller acquires a system power supply state and awakens the computer on the network according to the system power supply state.
The embedded controller acquires the power supply state of the computer currently in the sleep mode through the charging control chip, and if the power supply state of the computer currently in the sleep mode is the alternating current power supply state, the network awakening instruction is sent to the central processing unit, so that the computer is awakened.
Further, the charging control chip detects whether the power adapter and the battery are connected to the system or not, and transmits a detection result to the embedded controller through the SMBus.
Further, the embedded controller may read two signals of SLP _ S3# and SLP _ S4# of the central processor and confirm whether the computer is in the sleep mode, i.e., the S3 mode, through the two signals, for example, when SLP _ S3# is low and SLP _ S4# is high, confirm whether the computer is in the S3 mode.
Fig. 3 is a second schematic block diagram of a computer network wake-up method according to an embodiment of the present invention, as shown in fig. 3, the steps include:
step S31: the network chip sets the type of wake-on-LAN command that can be used to wake-on-LAN the terminal.
Step S32: the network chip detects the network awakening instruction of the network equipment connected with the network port in real time.
Step S33: the network chip compares the detected type of the wake-on-lan instruction with the type of the wake-on-lan instruction set in step S31.
Step S34: if the type of the detected network awakening instruction is consistent with that of the previously set network awakening instruction, the network awakening instruction is a legal awakening instruction, and the detected network awakening instruction is sent to the embedded controller.
Step S35: the embedded controller obtains the power supply state of the computer in the sleep mode through the charging control chip, wherein the power supply state can be an alternating current power supply state or a direct current power supply state powered by a battery.
Specifically, the embedded controller detects whether the power adapter and the battery are connected to the system through the charging control chip, determines that the current power supply state of the terminal is an alternating current power supply state when detecting that the power adapter is connected to the system, and determines that the current power supply state of the terminal is a direct current power supply state when detecting that the battery is connected to the system.
Step S36: and when the power supply state is the alternating current power supply state, performing network awakening on the computer.
Specifically, when the embedded controller determines that the system power supply state is an alternating current power supply state, the embedded controller sends the network wake-up instruction to the central processing unit, so that the computer in the sleep state is woken up.
Fig. 4 is a block diagram of a computer network wake-up apparatus according to an embodiment of the present invention, as shown in fig. 4, including a network device, a network chip LAN, an embedded controller EC, a central processing unit MCP, and a Charge control chip Charge IC.
The network chip is used for detecting the network awakening instruction from the network equipment in real time and sending the detected network awakening instruction to the embedded controller. Specifically, before detecting the wake-on-lan command from the network device in real time, the network chip sets the type of the wake-on-lan command that can be used to wake-on-lan the terminal, so that after detecting the wake-on-lan command, the type of the detected wake-on-lan command is compared with the type of the previously set wake-on-lan command, and when the detected wake-on-lan command is consistent with the type of the previously set wake-on-lan command, the detected wake-on-lan command is determined to be a legal command, and the detected wake-on-lan command is sent to the.
And the embedded controller is used for acquiring a power supply state after receiving the network awakening instruction and carrying out network awakening on the computer according to the system power supply state. Specifically, the embedded controller detects whether the power adapter and the battery are connected to the system through the computer charging control chip, determines that the current power supply state of the terminal is an alternating current power supply state when detecting that the power adapter is connected to the system, and determines that the current power supply state of the terminal is a direct current power supply state when detecting that the battery is connected to the system. And when the system power supply state is determined to be the alternating current power supply state, sending the network awakening instruction to a central processing unit, so as to awaken the computer in the sleep state.
Hereinafter, the computer battery power supply state is referred to as a DC state, the state of receiving AC power by connecting a power adapter is referred to as an AC state, and the sleep state is referred to as an S3 state. From the above, the computer does not support wake-on-LAN under DC S3 and supports wake-on-LAN under AC S3, but does not support wake-on-LAN after unplugging the power adapter.
Furthermore, after the network is awakened, the computer screen can be closed, so that the electric energy of the computer can be saved on one hand, and the display content of the computer screen can be prevented from being peeped on the other hand.
The Wake-on-LAN signal transmitted by the network chip is firstly transmitted to the EC, and the EC determines whether to transmit the Wake-on signal to the MCP according to the current system state, namely the EC controls Wake-on-LAN.
The working flow of the computer network awakening device is as follows:
step 1: the LAN receives a wake-on-LAN command from a network device connected to its portal.
Step 2: the LAN sends the received network control instructions to the EC.
Before the computer goes to sleep, the driver of the LAN will define the type of wake-on-LAN command, and if the previously defined wake-on-LAN command is received by the LAN while sleeping, the LAN will send the wake-on-LAN command to the EC.
And step 3: the EC determines that the system is in an AC state by reading an ACIN signal sent by the charge IC, and determines that the system is in an S3 state by reading SLP _ S3# and SLP _ S4# sent by the MCP, and in this embodiment, when SLP _ S3# is low and SLP _ S4# is high, it is determined whether the computer is in an S3 state.
Where S3 is defined in the advanced configuration and power interface.
Specifically, the charge IC will detect whether the power adapter and battery have been connected to the system, and then the EC will read the charge IC information through the SMBus to know whether AC or DC is supplying power.
And 4, step 4: step4, if EC judges that the system is in AC S3 state, then the received Wake signal is sent to MCP; otherwise, the EC will not forward the received Wake signal.
Fig. 5 is a processing flow chart of a network chip according to an embodiment of the present invention, and as shown in fig. 5, the steps include:
step S51: under the normal working state of the computer, the drive of the LAN sets the type of the network awakening instruction.
Step S52: the LAN determines whether a wake-on-LAN command from a network device connected to its port is detected, and if so, performs step S53, otherwise repeats the step.
Step S53: the LAN determines whether the detected type of the wake-on-LAN command is consistent with the type set in step S51, and if so, performs step S54, otherwise performs step S55.
Step S54: the LAN transmits the received network awakening instruction to the embedded controller.
Step S55: the LAN discards the received wake-on-LAN instruction.
Fig. 6 is a flowchart of processing of an embedded processor according to an embodiment of the present invention, and as shown in fig. 6, the steps include:
step S61: the embedded controller obtains the power supply state and the system state of the computer.
When the charge IC detects that the power adapter is accessed to the system, the information of AC access is transmitted to the EC, namely the power supply state is the AC state;
when the charge IC detects that the battery is accessed to the system, the DC access information is transmitted to the EC, namely the power supply state is the DC state;
when SLP _ S3# of the EC read MCP is low and SLP _ S4# is high, the system state is S3 state.
Step S62: EC judges whether AC S3 is satisfied, if AC S3 state is satisfied, step S63 is executed, otherwise step S64 is executed.
Step S63: the embedded controller sends the network awakening instruction to the central processing unit so as to awaken the computer.
Step S64: and the embedded controller discards the network awakening instruction. .
Although the present invention has been described in detail hereinabove, the present invention is not limited thereto, and various modifications can be made by those skilled in the art in light of the principle of the present invention. Thus, modifications made in accordance with the principles of the present invention should be understood to fall within the scope of the present invention.

Claims (8)

1. A method of waking up a computer network, comprising:
the network chip detects a network awakening instruction from the network equipment in real time and sends the network awakening instruction to the embedded controller;
after receiving the network awakening instruction, the embedded controller acquires a system power supply state and awakens the computer on the network according to the system power supply state; wherein,
the step of waking the computer on the network comprises the following steps: and when the embedded controller determines that the system power supply state is the alternating current power supply state, sending the network awakening instruction to a central processing unit, so as to awaken the computer in the sleep state.
2. The method of claim 1, prior to the step of the network chip detecting the wake-on-lan command from the network device in real time, further comprising:
the network chip sets the type of wake-on-LAN command that can be used to wake-on-LAN the terminal.
3. The method of claim 2, wherein the step of sending the wake-on-lan instruction to the embedded controller comprises:
and the network chip compares the type of the detected network awakening instruction with the type of the previously set network awakening instruction, and if the type of the detected network awakening instruction is consistent with the type of the previously set network awakening instruction, the detected network awakening instruction is sent to the embedded controller.
4. The method of claim 1, wherein the step of the embedded controller obtaining the system power state comprises:
the embedded controller detects whether the power adapter and the battery are connected to the system or not through the charging control chip;
when the power adapter is detected to be connected to the system, determining that the current power supply state of the terminal is an alternating current power supply state;
and when the battery access system is detected, determining that the current power supply state of the terminal is a direct current power supply state.
5. A computer network wake-up apparatus, comprising:
the network chip is used for detecting a network awakening instruction from the network equipment in real time and sending the detected network awakening instruction to the embedded controller;
the embedded controller is used for acquiring a system power supply state after receiving the network awakening instruction, and performing network awakening on the computer according to the system power supply state; wherein,
and when the embedded controller determines that the system power supply state is the alternating current power supply state, the embedded controller sends the network awakening instruction to a central processing unit, so that the computer in the sleep state is awakened.
6. The apparatus of claim 5, wherein the network chip sets a type of wake-on-LAN command that can be used to wake-on-LAN the terminal before detecting the wake-on-LAN command from the network device in real time.
7. The apparatus of claim 6, wherein the network chip compares the detected wake-on-LAN command type with a previously set wake-on-LAN command type, and if the detected wake-on-LAN command type is consistent with the previously set wake-on-LAN command type, sends the detected wake-on-LAN command to the embedded controller.
8. The device of claim 5, wherein the embedded controller detects whether the power adapter and the battery are connected to the system through the computer charging control chip, and determines that the current power supply state of the terminal is an AC power supply state when detecting that the power adapter is connected to the system, and determines that the current power supply state of the terminal is a DC power supply state when detecting that the battery is connected to the system.
CN201410727084.9A 2014-12-03 2014-12-03 A kind of computer network awakening method and device Active CN104486089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410727084.9A CN104486089B (en) 2014-12-03 2014-12-03 A kind of computer network awakening method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410727084.9A CN104486089B (en) 2014-12-03 2014-12-03 A kind of computer network awakening method and device

Publications (2)

Publication Number Publication Date
CN104486089A CN104486089A (en) 2015-04-01
CN104486089B true CN104486089B (en) 2018-09-14

Family

ID=52760597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410727084.9A Active CN104486089B (en) 2014-12-03 2014-12-03 A kind of computer network awakening method and device

Country Status (1)

Country Link
CN (1) CN104486089B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515750A (en) * 2017-08-18 2017-12-26 联想(北京)有限公司 Computer control method and computer
CN113055468B (en) * 2021-03-11 2023-04-07 新华三半导体技术有限公司 Chip management and control method, device and system
CN114237723A (en) * 2021-11-25 2022-03-25 深圳市吉方工控有限公司 Method and device for keeping network awakening effective in power-off incoming call state
CN115586926B (en) * 2022-10-13 2023-11-28 南京微智新科技有限公司 Remote wake-up circuit and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1245931A (en) * 1998-07-30 2000-03-01 三星电子株式会社 Method for waking up signal control computer system power supply by using local area network and its equipment
US6760850B1 (en) * 2000-07-31 2004-07-06 Hewlett-Packard Development Company, L.P. Method and apparatus executing power on self test code to enable a wakeup device for a computer system responsive to detecting an AC power source
CN1987737A (en) * 2005-12-22 2007-06-27 株式会社东芝 Information processing apparatus including network controller, and method of controlling application of power supply voltage to the network controller
CN101154255A (en) * 2006-09-29 2008-04-02 联想(北京)有限公司 Remote wakening system and terminal based on WAN module

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100561405C (en) * 2006-09-20 2009-11-18 联想(北京)有限公司 Method for managing power supply under the computer system electricity-saving state
CN101414762B (en) * 2007-10-16 2012-03-28 研祥智能科技股份有限公司 Method, apparatus and system for power-off protection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1245931A (en) * 1998-07-30 2000-03-01 三星电子株式会社 Method for waking up signal control computer system power supply by using local area network and its equipment
US6760850B1 (en) * 2000-07-31 2004-07-06 Hewlett-Packard Development Company, L.P. Method and apparatus executing power on self test code to enable a wakeup device for a computer system responsive to detecting an AC power source
CN1987737A (en) * 2005-12-22 2007-06-27 株式会社东芝 Information processing apparatus including network controller, and method of controlling application of power supply voltage to the network controller
CN101154255A (en) * 2006-09-29 2008-04-02 联想(北京)有限公司 Remote wakening system and terminal based on WAN module

Also Published As

Publication number Publication date
CN104486089A (en) 2015-04-01

Similar Documents

Publication Publication Date Title
US10491003B2 (en) Multiple input single inductor multiple output regulator
KR102564469B1 (en) Method and apparatus for protecting a battery
US9197075B2 (en) Charging port based on power state signal
US10042801B2 (en) System for detecting universal serial bus (USB) device and method thereof
WO2019104947A1 (en) System-on-chip, universal serial bus master device, system and awaking method
CN104486089B (en) A kind of computer network awakening method and device
EP2882067B1 (en) Battery-charging apparatus and method of electronic device
US20100060233A1 (en) Charger with USB detection
CN1920749B (en) Electricity-saving electronic device and electricity-saving method thereof
CN103760964B (en) A kind of method by the dormancy of infrared induction adjusting device and device thereof
US20140184518A1 (en) Variable touch screen scanning rate based on user presence detection
GB2543799A (en) Remote wake-up of mobile devices
US20180335830A1 (en) Power management system
TWI408541B (en) Power management device for a computer system and related power management method and computer system
WO2017112065A1 (en) State detection mechanism
US20130099569A1 (en) Charging control method
CN105744604A (en) WIFI module power consumption control device and method based on android system
US8115346B2 (en) Electronic device and external power supply device control method applicable thereto
TW201017393A (en) Embedded system with power-saving function and power-saving method thereof
US8661271B2 (en) Apparatus and method to control the state of a power supply when a trigger signal is received during a predetermined time period
CN104283289B (en) A kind of Bluetooth charging device and charge control method
CN105094295B (en) A kind of information processing method and electronic equipment
US9122479B2 (en) Network processor and energy saving method thereof
CN203458403U (en) Capacitive sensing type automatic dormancy wireless B-ultrasonic detection system
US20140115349A1 (en) Computer apparatus and wake-up method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant