CN115065420A - Power supply control method, access device and network device - Google Patents

Power supply control method, access device and network device Download PDF

Info

Publication number
CN115065420A
CN115065420A CN202210605186.8A CN202210605186A CN115065420A CN 115065420 A CN115065420 A CN 115065420A CN 202210605186 A CN202210605186 A CN 202210605186A CN 115065420 A CN115065420 A CN 115065420A
Authority
CN
China
Prior art keywords
power
code stream
command code
network equipment
preset
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.)
Withdrawn
Application number
CN202210605186.8A
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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202210605186.8A priority Critical patent/CN115065420A/en
Publication of CN115065420A publication Critical patent/CN115065420A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/80Optical aspects relating to the use of optical transmission for specific applications, not provided for in groups H04B10/03 - H04B10/70, e.g. optical power feeding or optical transmission through water
    • H04B10/806Arrangements for feeding power
    • H04B10/807Optical power feeding, i.e. transmitting power using an optical signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Power Sources (AREA)
  • Optical Communication System (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the application provides a power supply control method, access equipment and network equipment, which are applied to the access equipment, and the method comprises the following steps: a CPU of the access equipment determines network equipment to be powered on and powered off; setting a power-on and power-off register bit corresponding to the network equipment as a preset power-on and power-off value; after detecting that the position of the power-on and power-off register is set as a preset power-on and power-off value, the logic module sends a power-on and power-off control command code stream corresponding to the preset power-on and power-off value to an optical module of the access device by controlling an optical enable signal of the optical module; the optical module sends an electric control command code stream to the network equipment through the optical path; the logic module of the network equipment puts the command code stream into a power-down control register based on the optical loss signal; and when detecting that the command code stream stored in the power-down control register is the power-control command code stream, the logic module turns on or turns off a main power supply of the network equipment. By applying the technical scheme provided by the embodiment of the application, the environmental protection and the energy saving can be realized, and the maintenance cost of the network equipment is reduced.

Description

Power supply control method, access device and network device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a power supply control method, an access device, and a network device.
Background
In network architectures where light enters and exits, more and more scenes of network devices use light to transmit away. In this case, part of the network devices use centralized power supply, and part of the network devices use local power supply. However, for the network device with local power supply, a way of remotely controlling the power on and power off of the network device is needed for realizing the design of environmental protection and energy saving and reducing the maintenance cost when the network device is halted.
Disclosure of Invention
An object of the embodiments of the present application is to provide a power supply control method, an access device, and a network device, so as to implement remote control of power on and power off of the network device, implement environmental protection and energy saving, and reduce the maintenance cost of the network device. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a power supply control method, which is applied to an access device, and the method includes:
a CPU of the access equipment determines network equipment to be powered on and powered off; setting a power-on and power-off register bit corresponding to the network equipment as a preset power-on and power-off value, wherein the preset power-on and power-off value indicates that the network equipment needs to be powered on and powered off;
after detecting that the position of the power-on/power-off register is set to the preset power-on/power-off value, the logic module of the access equipment sends a power-on control command code stream corresponding to the preset power-on/power-off value to the optical module of the access equipment through a light enabling signal of the control optical module;
and the optical module sends the electric control command code stream to the network equipment through an optical circuit, so that the network equipment opens or closes a main power supply of the network equipment according to the electric control command code stream.
In some embodiments, the preset power-on and power-off value includes a first preset value and a second preset value, the first preset value indicates that the network device needs to be powered off, and the second preset value indicates that the network device does not need to be powered off; the control command code stream corresponding to the first preset value is a power-off command code stream, and the power-off command code stream indicates the network device to turn off a main power supply of the network device, and the method further comprises the following steps:
and after the logic module sends the power-off command code stream to the optical module, the logic module sets the position of the power-on/off register to the second preset value.
In some embodiments, the preset power-on and power-off value includes a first preset value, the first preset value indicates that the network device needs to be powered off, a power-off command code stream corresponding to the first preset value is a power-off command code stream, and the power-off command code stream indicates that the network device turns off a main power supply of the network device; the method further comprises the following steps:
the CPU sets a power-on/power-off enabling register bit corresponding to the network equipment to be a third preset value, and the third preset value indicates that the access equipment is allowed to control the power-on/power-off of the network equipment;
the method comprises the following steps that after a logic module of the access equipment detects that the position of the power-on/power-off register is set to the preset power-on/power-off value, a power control command code stream corresponding to the preset power-on/power-off value is sent to an optical module of the access equipment through a light enabling signal of the control optical module, and the steps comprise:
and after detecting that the position of the power-on and power-off enabling register is set to be the third preset value and the position of the power-on and power-off register is set to be the first preset value, the logic module of the access equipment sends the power-off command code stream to the optical module of the access equipment by controlling an optical enabling signal of the optical module.
In some embodiments, the method further comprises:
and after the logic module sends the power-off command code stream to the optical module, setting the power-on/off enable register bit to be a fourth preset value, wherein the fourth preset value indicates that the access equipment is not allowed to control the power-on/off of the network equipment.
In some embodiments, the preset power-on and power-off values further include a second preset value, the second preset value indicates that the network device needs to be powered on, a power control command code stream corresponding to the second preset value is a power-on command code stream, and the power-on command code stream indicates that the network device turns on a main power supply; the method further comprises the following steps:
after the logic module sends the power-off command code stream to the optical module, when the power-on condition of the network equipment is met, setting the power-on and power-off register bit to be the second preset value;
and after detecting that the position of the power-on and power-off enabling register is set to be the third preset value and the position of the power-on and power-off enabling register is set to be the second preset value, the logic module sends the power-on command code stream to the optical module of the access device by controlling an optical enabling signal of the optical module.
In some embodiments, the holding time of a single bit of the control electrical command code stream is greater than twice the sum of the durations of the rising edge and the falling edge of the signal on the optical path.
In a second aspect, an embodiment of the present application provides a power supply control method, which is applied to a network device, and the method includes:
an optical module of the network equipment sends an optical loss signal to a logic module of the network equipment based on an optical signal of a command code stream sent by access equipment, and the logic module and the optical module are powered by a standby power supply;
the logic module samples the optical signal based on the optical loss signal to obtain the command code stream; putting the command code stream into a power-down control register;
the logic module turns on or off a main power supply of the network equipment when detecting that a command code stream stored in the power-down control register is a power-control command code stream, wherein the power-control command code stream is a command code stream sent to the network equipment by the access equipment after detecting that the position of the power-up and power-down register is a preset power-up and power-down value, and the preset power-up and power-down value indicates that the network equipment needs to be powered on and powered off.
In some embodiments, the step of, by the logic module, sampling the optical signal based on the optical loss signal to obtain the command code stream includes:
and the logic module samples the optical signal in a preset period time after the optical loss signal is monitored for the first time to obtain the command code stream, wherein the preset period time is the time when the access equipment sends the power-off command code stream.
In some embodiments, the power-on command code stream is a power-off command code stream, and the power-off command code stream instructs the network device to turn off a main power supply of the network device;
the step that the logic module opens or closes the main power supply of the network equipment when detecting that the command code stream stored in the power-off control register is the power-off command code stream comprises the following steps:
the logic module closes a main power supply of the network equipment when detecting that the command code stream stored in the power-down control register is the power-down command code stream;
the logic module monitors the main power supply; when the power-off of the main power supply is monitored, after a preset time, covering a command code stream stored in the power-off control register with a preset command code stream;
and the logic module turns on a main power supply of the network equipment when detecting that the command code stream stored in the power-down control register is a preset electric command code stream.
In some embodiments, the power control command code stream includes a power-down command code stream and a power-up command code stream, the power-down command code stream instructs the network device to turn off a main power supply of the network device, and the power-up command code stream instructs the network device to turn on the main power supply; the method further comprises the following steps:
the step of turning on or off the main power supply of the network equipment by the logic module when detecting that the command code stream stored in the power-down control register is a power-control command code stream includes:
the logic module closes a main power supply of the network equipment when detecting that the command code stream stored in the power-down control register is the power-down command code stream;
and the logic module turns on a main power supply of the network equipment when detecting that the command code stream stored in the power-off control register is the power-on command code stream.
In a third aspect, an embodiment of the present application provides an access device, where the access device includes: the system comprises a CPU, a logic module and an optical module;
the CPU is used for determining network equipment to be powered on and powered off; setting a power-on and power-off register bit corresponding to the network equipment as a preset power-on and power-off value, wherein the preset power-on and power-off value indicates that the network equipment needs to be powered on and powered off;
the logic module is used for sending a control power command code stream corresponding to the preset power-up and power-down value to the optical module by controlling an optical enable signal of the optical module after detecting that the position of the power-up and power-down register is set to the preset power-up and power-down value;
and the optical module is used for sending the electric control command code stream to the network equipment through an optical path so that the network equipment opens or closes a main power supply of the network equipment according to the electric control command code stream.
In some embodiments, the preset power-on and power-off value includes a first preset value and a second preset value, the first preset value indicates that the network device needs to be powered off, and the second preset value indicates that the network device does not need to be powered off; the power control command code stream corresponding to the first preset value is a power-off command code stream, and the power-off command code stream indicates the network equipment to close a main power supply of the network equipment;
and the logic module is further configured to set the power-up and power-down register bit to the second preset value after the power-down command code stream is sent to the optical module.
In some embodiments, the preset power-on and power-off value includes a first preset value, the first preset value indicates that the network device needs to be powered off, a control command code stream corresponding to the first preset value is a power-off command code stream, and the power-off command code stream indicates that the network device turns off a main power supply of the network device;
the CPU is further used for setting a power-on and power-off enabling register bit corresponding to the network equipment to be a third preset value, and the third preset value indicates that the access equipment is allowed to control the power-on and power-off of the network equipment;
the logic module is specifically configured to send the power-off command code stream to the optical module by controlling a light enable signal of the optical module after detecting that the power-on/power-off enable register is set to the third preset value and the power-on/power-off register is set to the first preset value.
In some embodiments, the logic module is further configured to set the power-up/down enable register bit to a fourth preset value after the power-down command code stream is sent to the optical module, where the fourth preset value indicates that the access device is not allowed to control power-up/down of the network device.
In some embodiments, the preset power-on and power-off values further include a second preset value, the second preset value indicates that the network device needs to be powered on, a power control command code stream corresponding to the second preset value is a power-on command code stream, and the power-on command code stream indicates that the network device turns on a main power supply;
the logic module is further configured to set the power-up and power-down register bit to the second preset value when a power-up condition of the network device is met after the power-down command code stream is sent to the optical module; and after detecting that the position of the power-on and power-off enabling register is set to be the third preset value and the position of the power-on and power-off enabling register is set to be the second preset value, sending the power-on command code stream to the optical module by controlling an optical enabling signal of the optical module.
In some embodiments, the holding time of a single bit of the lower electrical command code stream is greater than twice the sum of the durations of the rising edge and the falling edge of the signal on the optical path.
In a fourth aspect, an embodiment of the present application provides a network device, where the network device includes: an optical module and a logic module;
the optical module is used for sending an optical loss signal to the logic module based on an optical signal of a command code stream sent by access equipment, and the logic module and the optical module are powered by a standby power supply;
the logic module is used for sampling the optical signal based on the optical loss signal to obtain the command code stream; putting the command code stream into a power-down control register;
the logic module is further configured to turn on or turn off a main power supply of the network device when detecting that the command code stream stored in the power-down control register is a power-control command code stream, where the power-control command code stream is a command code stream sent to the network device by the access device after detecting that the power-up and power-down register position is a preset power-up and power-down value, and the preset power-up and power-down value indicates that the network device needs to power up and power down.
In some embodiments, the logic module is specifically configured to:
sampling the optical signal in a preset period duration after the optical loss signal is monitored for the first time to obtain the command code stream, wherein the preset period duration is the duration of the power-off command code stream sent by the access equipment.
In some embodiments, the power-on command code stream is a power-off command code stream, and the power-off command code stream instructs the network device to turn off a main power supply of the network device;
the logic module is specifically configured to:
when detecting that the command code stream stored in the power-off control register is the power-off command code stream, closing a main power supply of the network equipment;
monitoring the primary power source; when the power-off of the main power supply is monitored, after a preset time, covering a command code stream stored in the power-off control register with a preset command code stream;
and when detecting that the command code stream stored in the power-down control register is a preset electric command code stream, turning on a main power supply of the network equipment.
In some embodiments, the power control command code stream includes a power-down command code stream and a power-up command code stream, the power-down command code stream instructs the network device to turn off a main power supply of the network device, and the power-up command code stream instructs the network device to turn on the main power supply;
the logic module is specifically configured to:
when the command code stream stored in the power-off control register is detected to be the power-off command code stream, closing a main power supply of the network equipment;
and when detecting that the command code stream stored in the power-off control register is the power-on command code stream, turning on a main power supply of the network equipment.
The embodiment of the application has the following beneficial effects:
in the technical scheme provided by the embodiment of the application, when the network equipment needs to be powered on and powered off, the access equipment controls the optical enable signal of the optical module, and sends the power-on and power-off command information to the optical module of the network equipment through the optical path; the network equipment acquires corresponding power-on and power-off command information through the identification of the RLOS signal of the optical module, and then controls the main power supply of the network equipment to be turned on or off, so that the power-on and power-off of the network equipment are remotely controlled, the network equipment can be powered on or powered off as required, and the environmental protection and energy saving are realized.
In addition, the remote network equipment is halted, and by adopting the technical scheme provided by the embodiment of the application, the power on and power off of the network equipment can be remotely controlled, no maintenance personnel need to go to the location of the network equipment to carry out power on and power off operation on the network equipment, and the maintenance cost of the network equipment is reduced.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and it is also obvious for a person skilled in the art to obtain other embodiments according to the drawings.
Fig. 1 is a schematic structural diagram of a power supply control system according to an embodiment of the present disclosure;
fig. 2 is a first flowchart of a power supply control method according to an embodiment of the present disclosure;
fig. 3 is a second flowchart of a power supply control method according to an embodiment of the present application;
fig. 4 is a third schematic flow chart of a power supply control method according to an embodiment of the present application;
fig. 5 is a fourth flowchart illustrating a power supply control method according to an embodiment of the present application;
fig. 6 is a fifth flowchart illustrating a power supply control method according to an embodiment of the present application;
fig. 7 is a sixth flowchart illustrating a power supply control method according to an embodiment of the present application;
fig. 8 is a seventh flowchart illustrating a power supply control method according to an embodiment of the present application;
fig. 9 is an eighth flowchart of a power supply control method according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an access device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a network 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 only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the description herein are intended to be within the scope of the present disclosure.
The construction idea of the network architecture for the optical copper feeding and the optical copper withdrawing is as follows: optical fibers are added, and cables are reduced. Therefore, the network devices are mainly interconnected by optical fibers, and further, partial network devices cannot be supplied with power in a centralized manner, and the partial network devices need to be supplied with power by local power supply equipment. Under the circumstances, a way of remotely controlling the network equipment to power on and power off is needed, so that the network equipment can be powered on and powered off as required, and environmental protection and energy saving are realized. In addition, for the network device with local power supply, if the network device is in a dead halt state, the access device cannot remotely power on or power off the network device, and thus the network device cannot be remotely maintained.
In order to implement environmental protection and energy saving and reduce the maintenance cost of a network device, an embodiment of the present application provides a power supply control system, as shown in fig. 1, including an access device 11 located at an access side and a network device 12 located at a terminal side, where the access device 11 includes a CPU1101, a logic module 1102 and an optical module 1103, and the network device 12 includes a logic module 1201, an optical module 1202, a standby power 1203 and a main power supply 1204. In the embodiment of the present application, the remote control system may include a plurality of network devices, and only one network device is shown in fig. 1, which is not limiting. The Logic module 1102 and the Logic module 1201 can be implemented by a CPLD (Complex Programmable Logic Device) or an NP (Network Processor chip).
In the embodiment of the present application, the CPU1101 determines the network device 12 to be powered on and powered off; setting a power-on and power-off register bit corresponding to the network device 12 as a preset power-on and power-off value, wherein the preset power-on and power-off value indicates that the network device 12 needs to be powered on and powered off; after detecting that the power-on/off register position is a preset power-on/off value, the logic module 1102 sends a power control command stream to the optical module 1103 of the access device 11 through a TXDIS (Transmitter Disable, optical enable signal) signal of the control optical module; the optical module 1103 sends a stream of the power control command code to the network device 12.
The optical module 1202 sends an RLOS (Receive Lose) signal to the logic module 1201 based on an optical signal of a command code stream sent by the access device 11, and the logic module 1201 and the optical module 1202 are powered by the standby power 1203; the logic module 1201 samples the optical signal based on the RLOS signal to obtain a command code stream; putting the command code stream into a power-down control register; when detecting that the command code stream stored in the power-down control register is a power-control command code stream, the logic module 1201 turns on or off the main power supply 1204 of the network device.
In the technical scheme provided by the embodiment of the application, when the network equipment needs to be powered on and powered off, the access equipment controls the optical enable signal of the optical module, and sends the power-on and power-off command information to the optical module of the network equipment through the optical path; the network equipment acquires corresponding power-on and power-off command information through the identification of the RLOS signal of the optical module, and then controls the main power supply of the network equipment to be turned on or off, so that the power-on and power-off of the network equipment are remotely controlled, the network equipment can be powered on or powered off as required, and the environmental protection and energy saving are realized.
In addition, the remote network equipment is halted, and by adopting the technical scheme provided by the embodiment of the application, the power on and power off of the network equipment can be remotely controlled, no maintenance personnel need to go to the location of the network equipment to carry out power on and power off operation on the network equipment, and the maintenance cost of the network equipment is reduced.
The following describes in detail the power supply control method provided in the embodiments of the present application with specific embodiments.
As shown in fig. 2, a power supply control method is provided, which is applied to the access device shown in fig. 1, and includes the following steps:
in step S21, the CPU of the access device determines the network device to be powered on and off.
In the embodiment of the application, the user can input the identifier of the network equipment needing power-on and power-off to the access equipment. The CPU of the access equipment determines the network equipment to be powered on and powered off based on the identification input by the user, namely, the network equipment corresponding to the identification input by the user is determined as the network equipment to be powered on and powered off.
The access device may also provide a UI (User Interface) on which the network devices accessing the access device are displayed. The user selects a network device that requires power up and power down based on the network device displayed by the UI. And the CPU of the access equipment determines the network equipment to be powered on and powered off based on the selection of the user, namely, the network equipment selected by the user is determined as the network equipment to be powered on and powered off.
In this embodiment of the application, the CPU of the access device may also determine the network device to be powered on or powered off in other manners, which is not limited herein.
Step S22, the CPU of the access device sets the power-on/power-off register bit corresponding to the network device to a preset power-on/power-off value, which indicates that the network device needs to power on/off.
In the embodiment of the present application, an up/down register is preset in an access device, each bit (i.e., an up/down register bit) of the up/down register corresponds to one optical port, and one optical port is connected to one network device. Thus, each bit of the power-up and power-down register corresponds to a network device. The preset power-on/power-off value indicates that the network device needs to be powered on or powered off, and the preset power-on/power-off value may be 0 or 1, and the like, which is not limited.
After the CPU of the access equipment determines that the network equipment needs to be powered on and powered off, the position of a power-on and power-off register corresponding to the network equipment is a preset power-on and power-off value.
Step S23, after detecting that the power-on/off register is set to a preset power-on/off value, the logic module of the access device sends the power control command code stream to the optical module of the access device by controlling the optical enable signal of the optical module.
In the embodiment of the application, the access device and the network device negotiate the control electric command code stream in advance. The bit width of the electric control command code stream and the retention time of a single bit can be set according to actual requirements. For example, in order to improve the transmission efficiency of the code stream and reduce the power-on and power-off delay, the bit width of the power control command code stream may be set to a smaller value; in order to ensure the accuracy of power up and power down, the bit width of the power control command code stream can be set to a larger value. For example, the bit width of the control power command code stream may be 8, 10, 16, or the like. Taking the bit width of the electrical control command code stream as 8 as an example, the electrical control command code stream may be "01010101" or "10101010", or "11110000", etc.
For example, in order to improve the transmission efficiency of the code stream and reduce the power-on and power-off delay, the retention time of a single bit of the power control command code stream may be set to a smaller value; in order to ensure the accuracy of power-on and power-off, the retention time of a single bit of the power control command code stream can be set to a larger value.
In one example, the holding time of a single bit of the electric control command code stream is more than twice the sum of the durations of the rising edge and the falling edge of the signal on the optical path. For example, the rising edge of the TXDIS/LOS signal output by an OC (Open Collector) gate is about 10ns (nanoseconds), and the falling edge of the TXDIS/LOS signal is about 10 mus (microseconds), so that the holding time of a single bit is greater than 20 mus.
In order to control the time delay, the holding time of a single bit of the electric control command code stream is less than five times of the sum of the time lengths of the rising edge and the falling edge of the signal on the optical path. For example, the rising edge of the TXDIS/LOS signal output by an OC (Open Collector) gate is about 10ns (nanoseconds), and the falling edge of the TXDIS/LOS signal is about 10 mus (microseconds), so that the holding time of a single bit is less than 100 mus.
In this embodiment of the application, the holding time of a single bit of the electrical control command code stream may also be 1 time, 1.5 times, or 1.8 times the sum of the durations of the rising edge and the falling edge of the signal on the optical path, and the like, which is not limited herein.
The logic module of the access device can monitor the power-on and power-off registers in real time. When the position of a power-on/power-off register is monitored to be a preset power-on/power-off value, the logic module of the access equipment sends a power control command code stream to the optical module of the access equipment through the TXDIS signal.
Step S24, the optical module of the access device sends a power control command code stream to the network device through the optical path, so that the network device turns on or off a main power supply of the network device according to the power control command code stream.
The optical path may be implemented by an optical fiber or an optical cable. And the optical module of the access equipment sends an electric control command code stream to the network equipment through the optical path. The power control command code stream may include a power-down command code stream instructing the network device to turn off a main power source of the network device and a power-up command code stream instructing the network device to turn on the main power source. And after the network equipment receives the electric control command code stream, the main power supply of the network equipment is turned on or turned off according to the electric control command code stream.
In the embodiment of the present application, the Optical module of the access device may include a Driver sub-module (Driver) and a TOSA (Transmitter Optical Subassembly). And the logic module of the access equipment transmits the electric control command code stream to the driving submodule of the optical module of the access equipment through the TXDIS signal based on the optical coupling isolating device. The drive submodule transmits the electric control command code stream to the TOSA, and the TOSA sends the electric control command code stream to the network equipment through signals on the optical path.
In the technical scheme provided by the embodiment of the application, when the network equipment needs to be powered on and powered off, the access equipment sends a power control command code stream to the network equipment through setting the power on and power off register bit and controlling the optical enable signal of the optical module; the network equipment collects the power control command code stream, and then controls the main power supply of the network equipment to be turned on or off, so that the power on and off of the network equipment are remotely controlled, the network equipment can be powered on and off as required, and the environmental protection and energy saving are realized.
In addition, the remote network equipment is halted, and by adopting the technical scheme provided by the embodiment of the application, the power on and power off of the network equipment can be remotely controlled, no maintenance personnel need to go to the location of the network equipment to carry out power on and power off operation on the network equipment, and the maintenance cost of the network equipment is reduced.
In some embodiments, as shown in fig. 3, a power supply control method is further provided and applied to an access device. In the method, the preset power-on and power-off value comprises a first preset value and a second preset value, wherein the first preset value indicates that the network equipment needs to be powered off, and the second preset value indicates that the network equipment does not need to be powered off; the control electric command code stream corresponding to the first preset value is a power-off command code stream. In the embodiment of the application, the first preset value and the second preset value can be set according to actual requirements, as long as the second preset value is different from the first preset value. For example, the first preset value is 0, and the second preset value is 1.
The above power supply control method may include steps S31-S35.
In step S31, the CPU of the access device determines the network device to be powered on and powered off.
Step S32, the CPU of the access device sets the power-on/power-off register bit corresponding to the network device to a first preset value.
Step S33, after detecting that the location of the power-on/off register is set to the first preset value, the logic module of the access device sends the power-off command code stream to the optical module of the access device by controlling the optical enable signal of the optical module.
Step S34, the optical module of the access device sends a power-off command code stream to the network device through the optical path, so that the network device turns off the main power supply of the network device according to the power-off command code stream.
Steps S31-S34 are similar to steps S21-S24 described above and will not be described herein.
In step S35, the logic module of the access device sets the power-on/power-off register bit to a second preset value.
After the logic module of the access device sends the power-off command code stream to the optical module of the access device, the logic module of the access device sets the position of the power-on/off register to be a second preset value. In this case, the logic module of the access device determines that the network device no longer needs to be powered down, and the logic module of the access device does not perform other processing.
In the technical scheme provided by the embodiment of the application, after the logic module of the access device sends the power-off command code stream to the optical module of the access device, the power-off register bit is set to be the second preset value, so that the logic module of the access device can be effectively prevented from continuously sending the power-off command code stream to the optical module of the access device, further, the optical module of the access device is prevented from continuously sending the power-off command code stream to the network device to control the power-off of the main power supply of the network device, and the computing resource of the device is saved.
In some embodiments, as shown in fig. 4, a power supply control method is further provided, and is applied to an access device. In the method, the preset power-on and power-off values comprise a first preset value, the first preset value indicates that the network equipment needs to be powered off, a control electric command code stream corresponding to the first preset value is a power-off command code stream, and the power-off command code stream indicates that the network equipment closes a main power supply of the network equipment. Steps S41-S45 may be included.
In step S41, the CPU of the access device determines the network device to be powered on and off.
Step S42, the CPU of the access device sets the power-on/power-off register bit corresponding to the network device to a first preset value.
In step S43, the CPU of the access device sets the power-up/down enable register bit corresponding to the network device to a third preset value, where the third preset value indicates that the access device is allowed to control the power-up/down of the network device.
In this embodiment of the application, the third preset value may be set according to actual requirements, for example, the third preset value may be 0 or 1. The network device and the power-up and power-down enabling register bit may be in a one-to-one correspondence, for example, one network device corresponds to one power-up and power-down enabling register bit; the network equipment and the power-on and power-off enabling register bit can also be in a many-to-one corresponding relation; for example, the plurality of network devices correspond to one power-up/down enable register bit, which is not limited.
In the embodiment of the present application, the execution sequence of the steps S42 and S43 is not limited.
Step S44, after detecting that the power-on/off enable register is set to the third preset value and the power-on/off enable register is set to the first preset value, the logic module of the access device sends the power-off command code stream to the optical module of the access device by controlling the optical enable signal of the optical module.
Step S45, the optical module of the access device sends a power-off command code stream to the network device through the optical path, so that the network device turns off the main power supply of the network device according to the power-off command code stream.
Steps S41-S42 and steps S44-S45 are similar to steps S31-S34, and are not repeated herein.
According to the technical scheme provided by the embodiment of the application, the access equipment is provided with two registers, namely the power-on/power-off enabling register and the power-on/power-off register, and the power-on/power-off control of the network equipment is completed through the two registers, so that the flexibility of power-on/power-off control is improved.
In some embodiments, as shown in fig. 5, a power supply control method is further provided, and is applied to an access device. The method may include steps S51-S56, wherein steps S51-S55 are the same as steps S41-S45, and are not described herein again.
Step S56, after the logic module of the access device sends the power-down command code stream to the optical module, the logic module sets the power-up/down enable register bit to a fourth preset value, where the fourth preset value indicates that the access device is not allowed to control the network device to power up/down.
After the logic module of the access device sets the power-on/off enabling register bit to be a fourth preset value, it is determined that the access device is not allowed to control the network device to power on/off currently, therefore, the logic module of the access device does not send a power control command code stream to the network device, that is, the access device does not perform remote power-on control on the network device any more, and the original controlled state of the TXDIS signal is maintained. The network device may then turn on the main power supply in a cold start mode.
According to the technical scheme provided by the embodiment of the application, the access equipment is provided with two registers, namely the power-on/power-off enabling register and the power-on/power-off register, and the power-on/power-off control of the network equipment is completed through the two registers, so that the flexibility of power-on/power-off control is improved.
In some embodiments, as shown in fig. 6, a power supply control method is further provided, and is applied to an access device. In the method, the preset power-on and power-off values can also comprise a second preset value, the second preset value indicates that the network equipment needs to be powered on, a power-on command code stream corresponding to the second preset value is a power-on command code stream, and the power-on command code stream indicates that the network equipment turns on a main power supply. The power supply control method may include steps S61-S68, wherein steps S61-S65 are the same as steps S41-S45, and are not described herein again.
Step S66, after the logic module of the access device sends the power-off command code stream to the optical module, when the power-on condition of the network device is satisfied, the power-on/off register bit is set to a second preset value.
The power-on condition can be set according to actual requirements. For example, the power-up condition may be: the main power supply is turned off for a specified time, and the current time is specified time and the like. The specified time period may be 1 hour, 10 hours, 12 hours, or the like, and the specified time may be 5 points, 8 points, 10 points, or the like, without limitation.
After the logic module of the access device sends the power-off command code stream to the optical module, whether the power-on condition of the network device is met can be monitored in real time. And when the condition that the power-on condition of the network equipment is met is monitored, the logic module of the access equipment sets the power-on and power-off register bit to be a second preset value.
Step S67, after detecting that the power-on/off enable register is set to the third preset value and the power-on/off enable register is set to the second preset value, the logic module of the access device sends the power-on command code stream to the optical module of the access device by controlling the optical enable signal of the optical module.
After detecting that the position of the power-on/power-off enable register is set to a third preset value and the position of the power-on/power-off register is set to a second preset value, the logic module of the access device can determine that power-on control needs to be performed on the network device, that is, the logic module sends a power-on command code stream to the optical module of the access device by controlling an optical enable signal of the optical module.
Step S68, the optical module of the access device sends a power-on command code stream to the network device through the optical path, so that the network device turns on the main power source of the network device according to the power-on command code stream.
According to the technical scheme provided by the embodiment of the application, the access equipment is provided with two registers, namely the power-on/power-off enabling register and the power-on/power-off register, and the power-on/power-off control of the network equipment is completed through the two registers, so that the flexibility of power-on/power-off control is improved.
In addition, the access equipment can control the time length for the network equipment to turn off the power supply according to actual requirements, and the electric power energy is effectively saved.
Corresponding to the above power supply control method applied to the access device, an embodiment of the present application further provides a power supply control method, as shown in fig. 7, applied to a network device, including the following steps:
step S71, the optical module of the network device sends an optical loss signal to the logic module of the network device based on the optical signal of the command code stream sent by the access device, and the logic module and the optical module of the network device are powered by the standby power supply.
In the embodiment of the application, the command code stream sent by the access device includes a power-on command code stream, a power-off command code stream, a control code stream and the like. The logic module and the optical module of the network equipment are powered by a standby power supply. The standby power supply can not be powered on and powered off, so that the normal work of the logic module and the optical module of the network equipment is ensured.
The access device sends the command code stream to the network device step by step. When the access device sends partial information of the command code stream to the network device, the optical module of the network device receives the optical signal, and no RLOS signal is generated, that is, the LOS signal is maintained at 0. When the access device does not send the information of the command code stream to the network device, the optical module of the network device does not receive the optical signal, and an RLOS signal is generated, that is, the LOS signal is changed from 0 to 1. After the optical module of the network device generates the RLOS signal, the RLOS signal is sent to the logic module of the network device except for reporting that the optical signal is lost.
In the embodiment of the present application, the Optical module of the network device may include a ROSA (Receiver Optical Subassembly) and an MA (Management Architecture). A ROSA in an optical module of the network equipment receives a command code stream sent by the access equipment and generates an RLOS signal based on an optical signal from the access equipment. And the ROSA sends the RLOS signal and the received command code stream to a logic module of the network equipment through the MA based on the optical coupling isolation device.
Step S72, the logic module of the network device samples the optical signal based on the optical loss signal to obtain the command code stream; and putting the command code stream into a power-down control register.
Based on the optical loss signal, a logic module of the network device samples the optical signal to obtain a command code stream carried in the optical signal, and the command code stream obtained by sampling is put into a power-down control register.
In some embodiments, a period duration, that is, a preset period duration is preset in the network device, where the preset period duration is a duration for the access device to send the power control command code stream. For example, if the bit width of the control electrical command code stream is 8, and the retention time of a single bit is 100 μ s, the duration that the access device sends the control electrical command code stream is 8 × 100 — 800 μ s, and the duration of the preset period in the network device is 800 μ s.
Based on the preset period duration, the step S72 may be: and a logic module of the network equipment samples the optical signal within a preset period duration after the optical loss number is monitored for the first time to obtain a command code stream.
For example, the RLOS signal is generated when the predetermined period duration is 800 μ s and the LOS signal is 1. The logic module starts counting after monitoring that the LOS signal is changed from 0 to 1 for the first time, samples the optical signal within 800 mu s to obtain a command code stream, and puts the command code stream into a power-off control register.
Step S73, when detecting that the command code stream stored in the power-down control register is a power-control command code stream, the logic module of the network device turns on or off a main power supply of the network device, where the power-control command code stream is a command code stream sent to the network device by the access device after detecting that the power-up and power-down register position is a preset power-up and power-down value, and the preset power-up and power-down value indicates that the network device needs to power up and power down.
For the transmission of the power control command stream, reference may be made to the related description of fig. 2.
In the embodiment of the application, the logic module of the network device can monitor information stored in the power-down control register in real time, and when it is monitored that the information stored in the power-down control register is the same as the power-control command code stream, that is, the command code stream stored in the power-down control register is the power-control command code stream, the logic module of the network device controls an enable signal of a power supply through an enable pin (that is, an EN pin), and opens or closes a main power supply of the network device.
In the technical scheme provided by the embodiment of the application, when the network equipment needs to be powered on and powered off, the access equipment sends a power-off command code stream to the network equipment through setting of the power-on and power-off register; the network equipment collects the power control command code stream based on the RLOS signal, and then controls the main power supply of the network equipment to be turned on or off, so that the network equipment is remotely controlled to be powered off, the network equipment can be powered on or powered off as required, and the environmental protection and energy saving are realized.
In addition, the remote network equipment is halted, and by adopting the technical scheme provided by the embodiment of the application, the power on and power off of the network equipment can be remotely controlled, no maintenance personnel need to go to the location of the network equipment to carry out power on and power off operation on the network equipment, and the maintenance cost of the network equipment is reduced.
In some embodiments, as shown in fig. 8, a power supply control method is further provided, which is applied to a network device. In the method, the power control command code stream is a power-off command code stream, and the power-off command code stream instructs the network equipment to close a main power supply of the network equipment. The power supply control method may include steps S81-S85, wherein steps S81-S82 are the same as steps S71-S72, and thus are not described herein again.
Step S83, when the logic module of the network device detects that the command code stream stored in the power-down control register is a power-down command code stream, the logic module turns off the main power supply of the network device.
In step S84, the logic module of the network device monitors the main power of the network device.
In the embodiment of the application, the logic module of the network equipment is connected with the main power supply of the network equipment through the monitoring pin, and then the main power supply of the network equipment is monitored through the monitoring pin so as to confirm whether the main power supply really powers off or not.
Step S85, when the main power supply is monitored to be powered off, after a preset duration, the logic module of the network device uses a preset command code stream to cover the command code stream stored in the power-off control register.
When the power-off of the main power supply is monitored, after the logic module of the network equipment waits for the preset time, the preset command code stream is used for covering the command code stream stored in the power-off control register.
The preset command code stream may be set according to actual requirements, for example, "00000000", "11111111", and the like. When the preset command code stream is "00000000", the logic module of the network device uses the preset command code stream to cover the command code stream stored in the power-down control register, which is actually: the power down control register is cleared.
Step S86, when the logic module of the network device detects that the command code stream stored in the power-down control register is the preset electrical command code stream, the logic module turns on the main power supply of the network device.
In the embodiment of the application, the logic module of the network equipment uses the preset command code stream to cover the command code stream stored in the power-off control register, at this time, the power-off command code stream is no longer stored in the power-off control register, the logic module confirms that the power-off main power supply is no longer needed, the main power supply of the network equipment is turned on, and the power-on and power-off process of the network equipment is completed after power-off and power-on.
In addition, in the embodiment of the application, when the main power supply is monitored to be powered off, the logic module of the network equipment waits for the preset time period and then turns on the main power supply of the network equipment, so that the function recovery in the network equipment can be effectively ensured.
In some embodiments, as shown in fig. 9, a power supply control method is further provided, and is applied to a network device. In the method, the electric control command code stream comprises a power-off command code stream and a power-on command code stream, wherein the power-off command code stream indicates the network equipment to close a main power supply of the network equipment, and the power-on command code stream indicates the network equipment to open the main power supply. The power supply control method may include steps S91-S94, wherein steps S91-S92 are the same as steps S71-S72, and thus are not described herein again.
Step S93, when the logic module of the network device detects that the command code stream stored in the power-down control register is a power-down command code stream, the logic module turns off the main power supply of the network device.
Step S94, when the logic module of the network device detects that the command code stream stored in the power-down control register is the power-on command code stream, the logic module turns on the main power supply of the network device.
In the embodiment of the application, a logic module of the network equipment can monitor information stored in a power-down control register in real time, and when the information stored in the power-down control register is the same as a power-down command code stream, namely the command code stream stored in the power-down control register is monitored to be the power-down command code stream, the logic module of the network equipment controls an enabling signal of a power supply through an EN pin and closes a main power supply of the network equipment; when the information stored in the power-off control register is monitored to be the same as the power-on command code stream, namely the command code stream stored in the power-off control register is monitored to be the power-on command code stream, the logic module of the network equipment controls an enabling signal of the power supply through the EN pin, and the main power supply of the network equipment is turned on.
In the technical scheme provided by the embodiment of the application, when the network equipment needs to be powered on and powered off, the access equipment sends a power-off command code stream to the network equipment through setting of the power-on and power-off register; the network equipment collects the power-off command code stream and the power-on command code stream based on the RLOS signal, and then controls the main power supply of the network equipment to be turned on or off, so that the power-on of the network equipment is remotely controlled, the network equipment can be powered on or powered off as required, and the environmental protection and energy saving are realized.
In addition, the remote network equipment is halted, and by adopting the technical scheme provided by the embodiment of the application, the power on and power off of the network equipment can be remotely controlled, no maintenance personnel need to go to the location of the network equipment to carry out power on and power off operation on the network equipment, and the maintenance cost of the network equipment is reduced.
In the technical scheme provided by the embodiment of the application, a new optical module is not required to be customized, based on an optical module which currently supports a Digital Diagnostic Monitoring (DDM), the condition that the light emission of the access equipment side is controllable and the RXLOS for receiving light at the network equipment side can be detected is utilized, and the power-on and power-off commands are acquired and analyzed based on the RLOS signals through controlling the TXDIS signals, so that the power-on and power-off of the network equipment with local power supply can be simply realized, the maintenance efficiency is improved, and the maintenance cost is reduced.
Taking 10G optical module as an example, the inventors found that: from setting the TXDIS signal high to the real turn-off output of the optical module, the TXDIS signal is approximately 50 mu s; the TXDIS signal is set low to the real on output of the light module, which is also approximately 50 μ s or so. A command code stream is transmitted at the switching frequency of the TXDIS signal, and the delay of receiving the command code stream by a receiving end (namely network equipment) is within 100 mu s and not more than ms (millisecond).
Therefore, in the technical scheme provided by the embodiment of the application, the power-up and power-down command code stream is sent based on the switching frequency of the TXDIS signal, the power-up and power-down of the network equipment are remotely controlled, and the maintenance efficiency is high.
Corresponding to the above power supply control method applied to the access device, an embodiment of the present application further provides an access device, as shown in fig. 10, where the access device includes: a CPU 101, a logic module 102, and an optical module 103.
The CPU 101 is used for determining network equipment to be powered on and powered off; setting a power-on and power-off register bit corresponding to the network equipment as a preset power-on and power-off value, wherein the preset power-on and power-off value is used for indicating that the network equipment needs to be powered on and powered off;
the logic module 102 is configured to send a power control command code stream corresponding to a preset power up and down value to the optical module 103 by controlling an optical enable signal of the optical module after detecting that the power up and down register position is set to the preset power up and down value;
the optical module 103 is configured to send a power control command code stream to the network device through the optical path, so that the network device turns on or off a main power supply of the network device according to the power control command code stream.
In some embodiments, the preset power-on and power-off values include a first preset value and a second preset value, the first preset value indicates that the network device needs to be powered off, and the second preset value indicates that the network device does not need to be powered off; the power control command code stream corresponding to the first preset value is a power-off command code stream, and the power-off command code stream indicates the network equipment to close a main power supply of the network equipment;
the logic module 102 may further be configured to set the power-down register bit to a second preset value after the power-down command code stream is sent to the optical module.
In some embodiments, the preset power-on and power-off value includes a first preset value, the first preset value indicates that the network device needs to be powered off, a control command code stream corresponding to the first preset value is a power-off command code stream, and the power-off command code stream indicates that the network device turns off a main power supply of the network device;
the CPU 101 may further be configured to set a power-up/down enable register bit corresponding to the network device to a third preset value, where the third preset value indicates that the access device is allowed to control power-up/down of the network device;
the logic module 102 may be specifically configured to send a power-off command code stream to the optical module 103 by controlling a light enable signal of the optical module after detecting that the position of the power-on/power-off enable register is set to a third preset value and the position of the power-on/power-off register is set to a first preset value.
In some embodiments, the logic module 102 may be further configured to set a power-up/power-down enable register bit to a fourth preset value after the power-down command code stream is sent to the optical module, where the fourth preset value indicates that the access device is not allowed to control the network device to power up or power down.
In some embodiments, the preset up-down power value further includes a second preset value, the second preset value indicates that the network device needs to be powered on, a control power command code stream corresponding to the second preset value is a power-on command code stream, and the power-on command code stream indicates that the network device turns on a main power supply;
the logic module 102 may be further configured to set the power-on/power-off register bit to a second preset value when a power-on condition of the network device is met after the power-off command code stream is sent to the optical module 103; after detecting that the position of the power-on/power-off enable register is set to the third preset value and the position of the power-on/power-off enable register is set to the second preset value, the power-on command code stream is sent to the optical module 103 by controlling the optical enable signal of the optical module.
In some embodiments, the retention time of a single bit of the down-current command code stream is greater than twice the sum of the durations of the rising edge and the falling edge of the signal on the optical path.
In the technical scheme provided by the embodiment of the application, when the network equipment needs to be powered on and powered off, the access equipment controls the optical enable signal of the optical module, and sends the power-on and power-off command information to the optical module of the network equipment through the optical path; the network equipment acquires corresponding power-on and power-off command information through the identification of the RLOS signal of the optical module, and then controls the main power supply of the network equipment to be turned on or off, so that the power-on and power-off of the network equipment are remotely controlled, the network equipment can be powered on or powered off as required, and the environmental protection and energy saving are realized.
In addition, the remote network equipment is halted, and by adopting the technical scheme provided by the embodiment of the application, the power on and power off of the network equipment can be remotely controlled, no maintenance personnel need to go to the location of the network equipment to carry out power on and power off operation on the network equipment, and the maintenance cost of the network equipment is reduced.
Corresponding to the above power supply control method applied to the network device, an embodiment of the present application further provides a network device, as shown in fig. 11, where the network device includes: an optical module 111 and a logic module 112.
The optical module 111 is configured to send an optical loss signal to the logic module 112 based on an optical signal of a command code stream sent by the access device, where the logic module 112 and the optical module 111 are powered by a standby power supply;
a logic module 112, configured to sample an optical signal based on the optical loss signal to obtain a command code stream; putting the command code stream into a power-down control register;
the logic module 112 is further configured to turn on or turn off a main power supply of the network device when detecting that the command code stream stored in the power-down control register is a power-control command code stream, where the power-control command code stream is a command code stream sent to the network device by the access device after detecting that the power-up and power-down register position is a preset power-up and power-down value, and the preset power-up and power-down value indicates that the network device needs to power up and power down.
In some embodiments, the logic module 112 may be specifically configured to:
sampling the optical signal in a preset period duration after the optical loss signal is monitored for the first time to obtain a command code stream, wherein the preset period duration is the duration of sending a power-off command code stream by the access equipment.
In some embodiments, the power-on command code stream is a power-off command code stream, and the power-off command code stream instructs the network device to turn off a main power supply of the network device;
the logic module 112 may be specifically configured to:
when detecting that the command code stream stored in the power-off control register is a power-off command code stream, closing a main power supply of the network equipment;
monitoring a main power supply; when the power-off of the main power supply is monitored, after a preset time, covering a command code stream stored in a power-off control register by using a preset command code stream;
and when the command code stream stored in the power-down control register is detected to be the preset electric command code stream, the main power supply of the network equipment is turned on.
In some embodiments, the logic module 112 may be specifically configured to:
when detecting that the command code stream stored in the power-off control register is a power-off command code stream, closing a main power supply of the network equipment;
and when the command code stream stored in the power-off control register is detected to be the power-on command code stream, the main power supply of the network equipment is turned on.
In the technical scheme provided by the embodiment of the application, when the network equipment needs to be powered on and powered off, the access equipment controls the optical enable signal of the optical module, and sends the power-on and power-off command information to the optical module of the network equipment through the optical path; the network equipment acquires corresponding power-on and power-off command information through the identification of the RLOS signal of the optical module, and then controls the main power supply of the network equipment to be turned on or off, so that the power-on and power-off of the network equipment are remotely controlled, the network equipment can be powered on or powered off as required, and the environmental protection and energy saving are realized.
In addition, the remote network equipment is halted, and by adopting the technical scheme provided by the embodiment of the application, the power on and power off of the network equipment can be remotely controlled, no maintenance personnel need to go to the location of the network equipment to carry out power on and power off operation on the network equipment, and the maintenance cost of the network equipment is reduced.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the access device and the network device, since they are basically similar to the embodiments of the method, the description is simple, and for the relevant points, reference may be made to the partial description of the embodiments of the method.
The above description is only for the preferred embodiment of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (14)

1. A power supply control method is applied to access equipment, and the method comprises the following steps:
the CPU of the access equipment determines the network equipment to be powered on and powered off; setting a power-on and power-off register bit corresponding to the network equipment as a preset power-on and power-off value, wherein the preset power-on and power-off value indicates that the network equipment needs to be powered on and powered off;
after detecting that the position of the power-up and power-down register is set to the preset power-up and power-down value, the logic module of the access equipment sends a power control command code stream corresponding to the preset power-up and power-down value to the optical module of the access equipment through a light enabling signal of the control optical module;
and the optical module sends the control electric command code stream to the network equipment through an optical path, so that the network equipment opens or closes a main power supply of the network equipment according to the control electric command code stream.
2. The method of claim 1, wherein the preset power-up and power-down values comprise a first preset value and a second preset value, the first preset value indicates that the network device needs to be powered down, and the second preset value indicates that the network device does not need to be powered down; the control command code stream corresponding to the first preset value is a power-off command code stream, and the power-off command code stream indicates the network device to turn off a main power supply of the network device, and the method further comprises the following steps:
and after the logic module sends the power-off command code stream to the optical module, the logic module sets the power-on/off register bit to be the second preset value.
3. The method according to claim 1, wherein the preset power-on and power-off value comprises a first preset value, the first preset value indicates that the network device needs to be powered off, a control command code stream corresponding to the first preset value is a power-off command code stream, and the power-off command code stream indicates that the network device turns off a main power supply of the network device; the method further comprises the following steps:
the CPU sets a power-on and power-off enabling register bit corresponding to the network equipment to be a third preset value, and the third preset value indicates that the access equipment is allowed to control the power-on and power-off of the network equipment;
the method comprises the following steps that after a logic module of the access equipment detects that the position of the power-on/power-off register is set to the preset power-on/power-off value, a power control command code stream corresponding to the preset power-on/power-off value is sent to an optical module of the access equipment through a light enabling signal of the control optical module, and the steps comprise:
and after detecting that the position of the power-on and power-off enabling register is set to be the third preset value and the position of the power-on and power-off register is set to be the first preset value, the logic module of the access equipment sends the power-off command code stream to the optical module of the access equipment by controlling an optical enabling signal of the optical module.
4. The method of claim 3, further comprising:
and after the logic module sends the power-off command code stream to the optical module, setting the power-on/off enable register bit to be a fourth preset value, wherein the fourth preset value indicates that the access equipment is not allowed to control the power-on/off of the network equipment.
5. The method according to claim 3, wherein the preset power-on and power-off values further include a second preset value, the second preset value indicates that the network device needs to be powered on, a control power command code stream corresponding to the second preset value is a power-on command code stream, and the power-on command code stream indicates that the network device turns on a main power supply; the method further comprises the following steps:
after the logic module sends the power-off command code stream to the optical module, when the power-on condition of the network equipment is met, setting the power-on and power-off register bit to be the second preset value;
and after detecting that the position of the power-on and power-off enabling register is set to be the third preset value and the position of the power-on and power-off enabling register is set to be the second preset value, the logic module sends the power-on command code stream to the optical module of the access device by controlling an optical enabling signal of the optical module.
6. The method according to any one of claims 1 to 5, wherein the retention time of a single bit of the control electrical command stream is greater than twice the sum of the durations of the rising edge and the falling edge of the signal on the optical path.
7. A power supply control method is applied to network equipment, and the method comprises the following steps:
an optical module of the network equipment sends an optical loss signal to a logic module of the network equipment based on an optical signal of a command code stream sent by access equipment, and the logic module and the optical module are powered by a standby power supply;
the logic module samples the optical signal based on the optical loss signal to obtain the command code stream; putting the command code stream into a power-down control register;
the logic module turns on or off a main power supply of the network equipment when detecting that a command code stream stored in the power-down control register is a power-control command code stream, wherein the power-control command code stream is a command code stream sent to the network equipment by the access equipment after detecting that the position of the power-up and power-down register is a preset power-up and power-down value, and the preset power-up and power-down value indicates that the network equipment needs to be powered on and powered off.
8. The method of claim 7, wherein the step of the logic module sampling the optical signal based on the optical loss signal to obtain the command code stream comprises:
and the logic module samples the optical signal in a preset period time after the optical loss signal is monitored for the first time to obtain the command code stream, wherein the preset period time is the time when the access equipment sends the power-off command code stream.
9. The method according to claim 7 or 8, wherein the control command code stream is a power-down command code stream, and the power-down command code stream instructs the network device to turn off a main power supply of the network device;
the step that the logic module opens or closes the main power supply of the network equipment when detecting that the command code stream stored in the power-off control register is the power-off command code stream comprises the following steps:
the logic module closes a main power supply of the network equipment when detecting that the command code stream stored in the power-down control register is the power-down command code stream;
the logic module monitors the main power supply; when the power-off of the main power supply is monitored, after a preset time, covering a command code stream stored in the power-off control register with a preset command code stream;
and the logic module turns on a main power supply of the network equipment when detecting that the command code stream stored in the power-down control register is a preset electric command code stream.
10. The method according to claim 7 or 8, wherein the control electric command code stream comprises a power-down command code stream and a power-up command code stream, the power-down command code stream instructs the network device to turn off a main power supply of the network device, and the power-up command code stream instructs the network device to turn on the main power supply; the method further comprises the following steps:
the step of turning on or off the main power supply of the network equipment by the logic module when detecting that the command code stream stored in the power-down control register is a power-control command code stream includes:
the logic module closes a main power supply of the network equipment when detecting that the command code stream stored in the power-down control register is the power-down command code stream;
and the logic module turns on a main power supply of the network equipment when detecting that the command code stream stored in the power-off control register is the power-on command code stream.
11. An access device, comprising: the system comprises a CPU, a logic module and an optical module;
the CPU is used for determining network equipment to be powered on and powered off; setting a power-on and power-off register bit corresponding to the network equipment as a preset power-on and power-off value, wherein the preset power-on and power-off value indicates that the network equipment needs to be powered on and powered off;
the logic module is used for sending a control power command code stream corresponding to the preset power-up and power-down value to the optical module by controlling an optical enable signal of the optical module after detecting that the position of the power-up and power-down register is set to the preset power-up and power-down value;
and the optical module is used for sending the electric control command code stream to the network equipment through an optical path so that the network equipment opens or closes a main power supply of the network equipment according to the electric control command code stream.
12. The access device of claim 11, wherein the preset power-up and power-down value comprises a first preset value, the first preset value indicates that the network device needs to be powered up, a control power command code stream corresponding to the first preset value is a power-down command code stream, and the power-down command code stream indicates that the network device turns off a main power supply of the network device;
the CPU is further used for setting a power-on and power-off enabling register bit corresponding to the network equipment to be a third preset value, and the third preset value indicates that the access equipment is allowed to control the power-on and power-off of the network equipment;
the logic module is specifically configured to send the power-off command code stream to the optical module of the access device by controlling an optical enable signal of the optical module after detecting that the power-on/power-off enable register is set to the third preset value and the power-on/power-off register is set to the first preset value.
13. A network device, characterized in that the network device comprises: an optical module and a logic module;
the optical module is used for sending an optical loss signal to the logic module based on an optical signal of a command code stream sent by access equipment, and the logic module and the optical module are powered by a standby power supply;
the logic module is used for sampling the optical signal based on the optical loss signal to obtain the command code stream; putting the command code stream into a power-down control register;
the logic module is further configured to turn on or turn off a main power source of the network device when detecting that the command code stream stored in the power-down control register is a power-control command code stream, where the power-control command code stream is a command code stream sent to the network device by the access device after detecting that the power-up and power-down register is set to a preset power-up and power-down value, and the preset power-up and power-down value indicates that the network device needs to power up and power down.
14. The network device of claim 13, wherein the control command code stream comprises a power-down command code stream and a power-up command code stream, the power-down command code stream instructing the network device to turn off a main power supply of the network device, the power-up command code stream instructing the network device to turn on the main power supply;
the logic module is specifically configured to:
when detecting that the command code stream stored in the power-off control register is the power-off command code stream, closing a main power supply of the network equipment;
and when detecting that the command code stream stored in the power-off control register is the power-on command code stream, turning on a main power supply of the network equipment.
CN202210605186.8A 2022-05-30 2022-05-30 Power supply control method, access device and network device Withdrawn CN115065420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210605186.8A CN115065420A (en) 2022-05-30 2022-05-30 Power supply control method, access device and network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210605186.8A CN115065420A (en) 2022-05-30 2022-05-30 Power supply control method, access device and network device

Publications (1)

Publication Number Publication Date
CN115065420A true CN115065420A (en) 2022-09-16

Family

ID=83197620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210605186.8A Withdrawn CN115065420A (en) 2022-05-30 2022-05-30 Power supply control method, access device and network device

Country Status (1)

Country Link
CN (1) CN115065420A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116896417A (en) * 2023-09-11 2023-10-17 新华三技术有限公司 Power supply control method and network equipment
CN117155466A (en) * 2023-10-27 2023-12-01 北京航天晨信科技有限责任公司 Control method, system, medium and equipment of optical fiber communication equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996018934A1 (en) * 1994-12-14 1996-06-20 Green Logic Inc. A further improved system logic controller for digital computers
CN101977078A (en) * 2010-10-22 2011-02-16 中兴通讯股份有限公司 Method and system for processing remote failure device in optical transfer network
CN109450530A (en) * 2018-12-21 2019-03-08 安徽皖兴通信息技术有限公司 A kind of optical module received optical power overload protective device and guard method
CN112825011A (en) * 2019-11-20 2021-05-21 中兴通讯股份有限公司 Power-on and power-off control method and system of PCIe device
CN113098596A (en) * 2021-03-31 2021-07-09 青岛海信宽带多媒体技术有限公司 Optical module and method for acquiring remote monitoring data based on double-MCU optical module
WO2021169463A1 (en) * 2020-02-24 2021-09-02 青岛海信宽带多媒体技术有限公司 Data sending method, data receiving method, and optical module

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996018934A1 (en) * 1994-12-14 1996-06-20 Green Logic Inc. A further improved system logic controller for digital computers
CN101977078A (en) * 2010-10-22 2011-02-16 中兴通讯股份有限公司 Method and system for processing remote failure device in optical transfer network
CN109450530A (en) * 2018-12-21 2019-03-08 安徽皖兴通信息技术有限公司 A kind of optical module received optical power overload protective device and guard method
CN112825011A (en) * 2019-11-20 2021-05-21 中兴通讯股份有限公司 Power-on and power-off control method and system of PCIe device
WO2021169463A1 (en) * 2020-02-24 2021-09-02 青岛海信宽带多媒体技术有限公司 Data sending method, data receiving method, and optical module
CN113098596A (en) * 2021-03-31 2021-07-09 青岛海信宽带多媒体技术有限公司 Optical module and method for acquiring remote monitoring data based on double-MCU optical module

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116896417A (en) * 2023-09-11 2023-10-17 新华三技术有限公司 Power supply control method and network equipment
CN116896417B (en) * 2023-09-11 2023-12-22 新华三技术有限公司 Power supply control method and network equipment
CN117155466A (en) * 2023-10-27 2023-12-01 北京航天晨信科技有限责任公司 Control method, system, medium and equipment of optical fiber communication equipment
CN117155466B (en) * 2023-10-27 2024-02-02 北京航天晨信科技有限责任公司 Control method, system, medium and equipment of optical fiber communication equipment

Similar Documents

Publication Publication Date Title
CN115065420A (en) Power supply control method, access device and network device
US20090103915A1 (en) Protocol-Less All-Optical 1+1 Bidirectional Revertive Linear Protection System
US10177857B2 (en) Optical module and method for controlling optical module
CN101387877A (en) Optical fibre auto switching device and method thereof
CN101916959A (en) Laser switching-off device and switching-off method thereof
CN106911419A (en) The wavelength configuration method and apparatus of optical module
CN108762159A (en) A kind of industrial personal computer rebooting device, system and method
US7457645B2 (en) Power supply apparatus of mobile terminal
CN103795458A (en) Optical fiber switching protection system and control method thereof
CN103207592A (en) Program control hand brake device for medical X-ray machine, program control method and special parts
CN106788866A (en) The harmonic method of optical module
CN210802852U (en) Multi-core optical fiber automatic alignment and optical fiber performance tester
CN103699019B (en) Learning type intellectual power-supply management system and management method thereof
CN114537146B (en) Vehicle control method and device, electronic equipment and storage medium
CN108614490A (en) A kind of device that restarting industrial personal computer, system and method
CN101420309A (en) Ethernet power supply energy-saving device and control method thereof
CN209746402U (en) sensor power management module for optical cable cross-connecting box monitoring equipment
EP3694119B1 (en) Optical module
CN108028704A (en) Communication equipment, information processing equipment and communication means
CN109665078B (en) Remote-controlled submersible
US7047449B2 (en) Method for providing cable isolation in a fibre channel test environment using a software driven PCI device
CN210016471U (en) Frame equipment
CN105406910A (en) Light path backup and MIMO (Multiple Input Multiple Output) transmission system, near-end device and far-end device
CN215731498U (en) Switch controller and system
CN216391065U (en) RS485 communication-based multi-path-to-one-path data routing device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220916