Domestic platform first power-up network wake-up method, system and device
Connect to the processor and controller through the MDIO interface of the Ethernet PHY chip, configure the WOL register and update the MAC address, which solves the problem that the computer cannot wake up remotely when shutdown, and realizes that the computer can wake up through the network after power is turned on. Power-on function.
Patent Information
- Application Number
- CN202411262990.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-06
AI Technical Summary
The prior art cannot realize that the computer is remotely awakened and turned on through the network while shutting down. The computer needs to turn on the power and then wake up the network. It is impossible to realize that the computer will be awakened immediately after turning on the power.
Connect to the processor and controller through the MDIO interface of the Ethernet PHY chip, configure WOL registers, obtain and update the MAC address, and use the communication serial port and GPIO interface to control the analog switch, and then receive the network wake-up packet to realize the computer's wake-up.
It realizes the remote wake-up and boot function of the computer through the network when shutdown. It only needs to power on once during the production process to achieve the first power-up WOL, supporting the network wake-up of the LAN.
Smart Images

Figure CN119088465A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of domestic computer circuit design, in particular to a method, system and device for first-time power-on network wake-up of a domestic platform. Background Art
[0002] Wake-on-LAN (WOL) is a technology that enables remote startup control via a local area network. Through network wake-up, a computer that has entered sleep (S3), hibernation (S4), or shutdown (S5) state can be restored to a normal startup state. Usually, network wake-up requires the computer to be powered on and then wake up from the network in the subsequent sleep, hibernation, or shutdown state. During this period, the computer cannot be powered off, that is, it is impossible to wake up and start the computer immediately after the power is turned on. Summary of the invention
[0003] The technical task of the present invention is to address the above deficiencies and provide a method, system and device for first-time network wake-up on a domestic platform, which can realize the remote wake-up and startup function through the network when the computer is powered on and in the off state.
[0004] The technical solution adopted by the present invention to solve its technical problem is:
[0005] A method for waking up a domestic platform from a network when it is powered on for the first time, the implementation of the method comprising:
[0006] The MDIO (Management Data Input / Output) of the Ethernet PHY chip is connected to the processor and the controller through an analog switch for path switching, and the GPIO port output by the controller switches the channel of the analog switch;
[0007] After the computer is powered on, use the two GPIO ports of the controller to simulate the MIDO interface and configure the WOL register of the Ethernet PHY chip;
[0008] The controller obtains the MAC address from the BIOS through the communication serial port and saves it to the internal storage space. The controller compares this MAC address with the address stored internally to see if they are consistent. If they are inconsistent, the controller automatically updates the MAC address stored in itself.
[0009] In the off state, according to the configuration of the WOL register of the PHY chip by the controller, after receiving the network wake-up packet, the PHY chip sends a signal to the controller to implement the power-on wake-up function.
[0010] By adopting this method, the computer only needs to be powered on once during the production process to realize the WOL power-on wake-up when it is powered on for the first time.
[0011] Furthermore, the controller is a single chip microcomputer.
[0012] Furthermore, the controller is CPLD or FPGA.
[0013] Furthermore, the processor is connected to the BIOS Flash via the SPI interface; and is connected to the network PHY chip via RGMII or SGIMII.
[0014] Furthermore, during the production and debugging of the computer, the controller obtains the MAC address from the BIOS through the communication serial port and stores it in the internal storage area of the controller;
[0015] When the computer user turns on the power, the controller starts working. The controller controls the analog switch through the GPIO interface to connect the controller's MDIO interface to the PHY chip, and configures the MAC address of the WOL register of the PHY chip. After the network cable is connected, the WOL wake-up tool sends a wake-up magic packet instruction. After receiving the wake-up instruction, the PHY chip sends an INT_WAKE signal change to the controller. After detecting INT_WAKE, the controller controls the computer to start up.
[0016] Furthermore, the network wake-up process for the first power-on of the computer is as follows:
[0017] 1) The computer is powered on;
[0018] 2) The controller controls the analog switch to switch, connects the path to the PHY chip, and configures the WOL register of the PHY chip;
[0019] 3) After receiving the network wake-up packet, the PHY chip sends a WOL_INT signal to the controller;
[0020] 4) The controller powers on after receiving WOL_INT.
[0021] The present invention also claims protection for a domestic platform first power-on network wake-up system, wherein the processor and controller of the domestic platform computer are connected to the MDIO (Management Data Input / Output) of the Ethernet PHY chip through a path switching analog switch, and the GPIO port output by the controller switches the channel of the analog switch;
[0022] After the computer is powered on, use the two GPIO ports of the controller to simulate the MIDO interface and configure the WOL register of the Ethernet PHY chip;
[0023] The controller obtains the MAC address from the BIOS through the communication serial port and saves it to the internal storage space. The controller compares this MAC address with the address stored internally to see if they are consistent. If they are inconsistent, the controller automatically updates the MAC address stored in itself.
[0024] In the off state, according to the configuration of the WOL register of the PHY chip by the controller, after receiving the network wake-up packet, the PHY chip sends a signal to the controller to implement the power-on wake-up function.
[0025] Furthermore, when the computer is produced and debugged, the controller obtains the MAC address from the BIOS through the communication serial port and stores it in the internal storage area of the controller;
[0026] When the computer user turns on the power, the controller starts working. The controller controls the analog switch through the GPIO interface to connect the controller's MDIO interface to the PHY chip, and configures the MAC address of the WOL register of the PHY chip. After the network cable is connected, the WOL wake-up tool sends a wake-up magic packet instruction. After receiving the wake-up instruction, the PHY chip sends an INT_WAKE signal change to the controller. After detecting INT_WAKE, the controller controls the computer to start up.
[0027] Furthermore, the network wake-up process for the first power-on of the computer is as follows:
[0028] 1) The computer is powered on;
[0029] 2) The controller controls the analog switch to switch, connects the path to the PHY chip, and configures the WOL register of the PHY chip;
[0030] 3) After receiving the network wake-up packet, the PHY chip sends a WOL_INT signal to the controller;
[0031] 4) The controller powers on after receiving WOL_INT.
[0032] The present invention also claims protection for a device for realizing network wake-up when a domestic platform is powered on for the first time, comprising a processor and a controller; the controller and the processor are connected to the MDIO (Management Data Input / Output) of an Ethernet PHY chip through an analog switch for path switching, thereby realizing the above-mentioned method for realizing network wake-up when a domestic platform is powered on for the first time.
[0033] Compared with the prior art, the method, system and device for waking up the network when the domestic platform is powered on for the first time of the present invention have the following beneficial effects:
[0034] This method can realize the remote wake-up and startup function through the network when the computer is powered on and in the off state, and it only needs to be powered on once during the production process to realize the first power-on WOL. As long as the computer is powered on, it can be woken up through the local area network. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1It is a structural diagram of a method for waking up a domestic platform when it is powered on for the first time provided by an embodiment of the present invention;
[0036] Figure 2 The present invention provides a flowchart of a method for waking up a domestic platform through network when it is powered on for the first time, provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0038] The embodiment of the present invention provides a method for waking up a domestic platform through a network when it is powered on for the first time. The implementation of the method includes:
[0039] The MDIO (Management Data Input / Output) of the Ethernet PHY chip is connected to the processor and the controller through an analog switch for path switching, and the GPIO port output by the controller switches the channel of the analog switch. The controller can be a single-chip microcomputer, a CPLD, or an FPGA. This embodiment is described by taking a single-chip microcomputer as an example.
[0040] After the computer is powered on, you need to use the two GPIO ports of the microcontroller to simulate the MIDO interface and configure the WOL register of the Ethernet PHY chip.
[0041] The MCU obtains the MAC address from the BIOS through the communication serial port and saves it to the internal storage space. The MCU compares this MAC address with the address stored inside the MCU to see if it is consistent. If they are inconsistent, the MAC address stored in itself is automatically updated;
[0042] In the off state, according to the configuration of the WOL register of the PHY chip by the MCU, after receiving the network wake-up packet, the PHY chip sends a WOL_INT signal change to the MCU to implement the power-on wake-up function.
[0043] By adopting this method, the computer only needs to be powered on once during the production process to realize the WOL power-on wake-up when it is powered on for the first time.
[0044] like Figure 1 The figure shows the architecture schematic diagram of the method. The processor is connected to the BIOS Flash through the SPI interface and connected to the network PHY chip through RGMII or SGIMII. The microcontroller starts working after the power is turned on to provide power on and off control for the computer.
[0045] When the computer is produced and debugged, the microcontroller obtains the MAC address from the BIOS through the communication serial port and stores it in the internal storage area of the microcontroller.
[0046] When the computer user turns on the power, the MCU starts working. The MCU controls the analog switch through the GPIO interface to connect the MDIO interface of the MCU to the PHY chip, and configures the MAC address of the WOL register of the PHY chip. After the network cable is connected, the WOL wake-up tool sends a wake-up magic packet command. After receiving the wake-up command, the PHY chip sends an INT_WAKE signal change to the MCU. After detecting INT_WAKE, the MCU controls the computer to start up.
[0047] like Figure 2 As shown in the figure, the network wake-up process for the first power-on of the computer is as follows:
[0048] 1. Turn on the computer power;
[0049] 2. The MCU controls the analog switch to switch, connects to the PHY chip, and configures the WOL register of the PHY chip;
[0050] 3. After receiving the network wake-up packet, the PHY chip sends a WOL_INT signal to the MCU;
[0051] 4) The MCU turns on after receiving WOL_INT.
[0052] The embodiment of the present invention also provides a domestic platform first power-on network wake-up system, wherein the processor and controller of the domestic platform computer are connected to the MDIO (Management Data Input / Output) of the Ethernet PHY chip through a path switching analog switch, and the GPIO port output by the controller switches the channel of the analog switch. The controller can be a single-chip microcomputer, a CPLD, or an FPGA, and this embodiment selects a single-chip microcomputer.
[0053] After the computer is powered on, the two GPIO ports of the microcontroller are used to simulate the MIDO interface to configure the WOL register of the Ethernet PHY chip.
[0054] The MCU obtains the MAC address from the BIOS through the communication serial port and saves it to the internal storage space. The MCU compares this MAC address with the address stored inside the MCU to see if it is consistent. If they are inconsistent, the MAC address stored in itself is automatically updated;
[0055] In the off state, according to the configuration of the WOL register of the PHY chip by the MCU, after receiving the network wake-up packet, the PHY chip sends a signal to the MCU to realize the power-on wake-up function.
[0056] The processor is connected to the BIOS Flash via the SPI interface, and is connected to the network PHY chip via RGMII or SGIMII. The single-chip microcomputer starts working after the power is turned on to provide power on and off control for the computer.
[0057] When the computer is being debugged, the microcontroller obtains the MAC address from the BIOS through the communication serial port and stores it in the controller's internal storage area;
[0058] When the computer user turns on the power, the MCU starts working. The MCU controls the analog switch through the GPIO interface to connect the MDIO interface of the controller to the PHY chip, and configures the MAC address of the WOL register of the PHY chip. After the network cable is connected, the WOL wake-up tool sends a wake-up magic packet command. After receiving the wake-up command, the PHY chip sends an INT_WAKE signal change to the MCU. After detecting INT_WAKE, the MCU controls the computer to start up.
[0059] The first time the computer is powered on, the network wake-up process is as follows:
[0060] 1. Connect the computer to the power supply;
[0061] 2. The MCU controls the analog switch to switch, connects to the PHY chip, and configures the WOL register of the PHY chip;
[0062] 3. After receiving the network wake-up packet, the PHY chip sends a WOL_INT signal to the MCU;
[0063] 4. The MCU turns on after receiving WOL_INT.
[0064] An embodiment of the present invention also provides a device for realizing network wake-up when a domestic platform is powered on for the first time, comprising a processor and a controller; the controller and the processor are connected to the MDIO (Management Data Input / Output) of the Ethernet PHY chip through an analog switch for path switching, thereby realizing the network wake-up method when a domestic platform is powered on for the first time described in the above embodiment.
[0065] Through the above specific implementations, those skilled in the art can easily implement the present invention. However, it should be understood that the present invention is not limited to the above specific implementations. On the basis of the disclosed implementations, those skilled in the art can arbitrarily combine different technical features to achieve different technical solutions.
[0066] Except for the technical features described in the specification, all other technical features are known technologies to those skilled in the art.
Claims
1. A method for waking up a domestic platform when it is powered on for the first time, characterized in that: The implementation of this method includes: The MDIO of the Ethernet PHY chip is connected to the processor and the controller through an analog switch for path switching, and the GPIO port output by the controller switches the channel of the analog switch; After the computer is powered on, use the two GPIO ports of the controller to simulate the MIDO interface and configure the WOL register of the Ethernet PHY chip; The controller obtains the MAC address from the BIOS through the communication serial port and saves it to the internal storage space. The controller compares this MAC address with the address stored internally to see if they are consistent. If they are inconsistent, the controller automatically updates the MAC address stored in itself. When the device is not powered on, after receiving the network wake-up packet, the PHY chip sends a signal to the controller to implement the power-on wake-up function.
2. According to claim 1, a method for waking up a domestic platform when it is powered on for the first time is characterized in that: The controller is a single chip microcomputer.
3. According to claim 1, a method for waking up a domestic platform when it is powered on for the first time is characterized in that: The controller is CPLD or FPGA.
4. According to claim 1, a method for waking up a domestic platform when it is powered on for the first time is characterized in that: The processor is connected to the BIOS Flash through the SPI interface and is connected to the network PHY chip through RGMII or SGIMII.
5. A method for waking up a domestic platform when it is powered on for the first time according to claim 1, 2 or 3, characterized in that: During computer production debugging, the controller obtains the MAC address from the BIOS through the communication serial port and stores it in the controller's internal storage area; When the computer user turns on the power, the controller starts working. The controller controls the analog switch through the GPIO interface to connect the controller's MDIO interface to the PHY chip, and configures the MAC address of the WOL register of the PHY chip. After the network cable is connected, the WOL wake-up tool sends a wake-up magic packet instruction. After receiving the wake-up instruction, the PHY chip sends an INT_WAKE signal change to the controller. After detecting INT_WAKE, the controller controls the computer to start up.
6. The method for waking up a domestic platform when it is powered on for the first time according to claim 1, characterized in that: The first time the computer is powered on, the network wake-up process is as follows: 1) The computer is powered on; 2) The controller controls the analog switch to switch, connects the path to the PHY chip, and configures the WOL register of the PHY chip; 3) After receiving the network wake-up packet, the PHY chip sends a WOL_INT signal to the controller; 4) The controller powers on after receiving WOL_INT.
7. A domestic platform first power-on network wake-up system, characterized in that: The processor and controller of the domestic platform computer are connected to the MDIO of the Ethernet PHY chip through the analog switch of the channel switching, and the GPIO port output by the controller switches the channel of the analog switch; After the computer is powered on, use the two GPIO ports of the controller to simulate the MIDO interface and configure the WOL register of the Ethernet PHY chip; The controller obtains the MAC address from the BIOS through the communication serial port and saves it to the internal storage space. The controller compares this MAC address with the address stored internally to see if they are consistent. If they are inconsistent, the controller automatically updates the MAC address stored in itself. When the device is not powered on, after receiving the network wake-up packet, the PHY chip sends a signal to the controller to implement the power-on wake-up function.
8. A domestic platform first power-on network wake-up system according to claim 7, characterized in that: When the computer is produced and debugged, the controller obtains the MAC address from the BIOS through the communication serial port and stores it in the internal storage area of the controller; When the computer user turns on the power, the controller starts working. The controller controls the analog switch through the GPIO interface to connect the controller's MDIO interface to the PHY chip, and configures the MAC address of the WOL register of the PHY chip. After the network cable is connected, the WOL wake-up tool sends a wake-up magic packet instruction. After receiving the wake-up instruction, the PHY chip sends an INT_WAKE signal change to the controller. After detecting INT_WAKE, the controller controls the computer to start up.
9. A domestic platform first power-on network wake-up system according to claim 7, characterized in that: The first time the computer is powered on, the network wake-up process is as follows: 1) The computer is powered on; 2) The controller controls the analog switch to switch, connects the path to the PHY chip, and configures the WOL register of the PHY chip; 3) After receiving the network wake-up packet, the PHY chip sends a WOL_INT signal to the controller; 4) The controller powers on after receiving WOL_INT.
10. A device for realizing network wake-up when a domestic platform is powered on for the first time, characterized in that: It includes a processor and a controller; the controller and the processor are connected to the MDIO of the Ethernet PHY chip through an analog switch for path switching, so as to implement the network wake-up method for the first power-on of a domestic platform as described in any one of claims 1 to 6.
