CN109709858B - On-off control circuit, embedded equipment, method and system - Google Patents

On-off control circuit, embedded equipment, method and system Download PDF

Info

Publication number
CN109709858B
CN109709858B CN201811638464.XA CN201811638464A CN109709858B CN 109709858 B CN109709858 B CN 109709858B CN 201811638464 A CN201811638464 A CN 201811638464A CN 109709858 B CN109709858 B CN 109709858B
Authority
CN
China
Prior art keywords
switch
circuit
level signal
control circuit
resistor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811638464.XA
Other languages
Chinese (zh)
Other versions
CN109709858A (en
Inventor
薄伟国
杜天昊
王征
张潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Tricolor Technology Co ltd
Original Assignee
Beijing Tricolor Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Tricolor Technology Co ltd filed Critical Beijing Tricolor Technology Co ltd
Priority to CN201811638464.XA priority Critical patent/CN109709858B/en
Publication of CN109709858A publication Critical patent/CN109709858A/en
Application granted granted Critical
Publication of CN109709858B publication Critical patent/CN109709858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)
  • Electronic Switches (AREA)

Abstract

The invention provides a startup and shutdown control circuit, an embedded device, a method and a system, wherein the startup and shutdown control circuit is applied to a controlled device, the controlled device comprises an Ethernet physical layer transceiver, a main control module and a switching circuit, the startup and shutdown control circuit comprises a first switching control circuit and a second switching control circuit, the input end of the first switching control circuit is connected with the Ethernet physical layer transceiver, the input end of the second switching control circuit is connected with the main control module, and the output end of the first switching control circuit and the output end of the second switching control circuit are both connected with the control end of the switching circuit. Through the power on/off control circuit, the level signals output by the PHY and the main control module are utilized to dually control the switching circuit of the controlled equipment, and the equipment is powered off only when the PHY and the main control module send power-off signals, so that the operation of the controlled equipment is more stable.

Description

On-off control circuit, embedded equipment, method and system
Technical Field
The invention relates to the technical field of embedded equipment, in particular to a startup and shutdown control circuit, embedded equipment, a method and a system.
Background
Currently, for a remote power on/off technology of a controlled device, an ethernet Physical Layer transceiver (PHY) is configured in the controlled device to receive a remote power on/off control signal to control power on/off, and when the PHY is reset due to static electricity or other interference, or a Central Processing Unit (CPU) of the controlled device performs a fault operation on a register of the PHY, the entire controlled device is directly powered off, which causes irreparable loss to the device in actual operation.
Disclosure of Invention
The present invention is directed to a switch control circuit, an embedded device, a method and a system, so as to solve the above problems.
In a first aspect, the present invention provides a power on/off control circuit, which is applied to a controlled device, where the controlled device includes an ethernet physical layer transceiver, a main control module and a switch circuit, the power on/off control circuit includes a first switch control circuit and a second switch control circuit, an input end of the first switch control circuit is connected to the ethernet physical layer transceiver, an input end of the second switch control circuit is connected to the main control module, and an output end of the first switch control circuit and an output end of the second switch control circuit are both connected to a control end of the switch circuit;
the first switch control circuit is configured to output a first control signal according to a first level signal output by the ethernet physical layer transceiver, the second switch control circuit is configured to output a second control signal according to a second level signal output by the main control module, and both the first control signal and the second control signal are configured to control the switch circuit to be turned on or turned off, where at least one of the first level signal and the second level signal is maintained in a first state at the same time, and the switch circuit is in a closed state.
The switch control circuit determines the control signal output to the switch circuit by using the level signals output by the PHY and the main control module, and doubly controls the switch circuit of the controlled equipment to ensure the stability of the power supply of the controlled equipment.
In a possible design of the first aspect, the first switch control circuit includes a first resistor, a first switch tube, a second resistor, and a first power supply, a first end of the first resistor is connected to the ethernet physical layer transceiver, a second end of the first resistor is connected to the control end of the first switch tube, a first output end of the first switch tube is grounded, a second output end of the first switch tube is connected to the first end of the second resistor and to the control end of the switch circuit, respectively, and a second end of the second resistor is connected to the first power supply.
In a possible design of the first aspect, the second switch control circuit includes a third resistor, a second switch tube, a fourth resistor, and a second power supply, a first end of the third resistor is connected to the main control module, a second end of the third resistor is connected to a control end of the second switch tube, a first output end of the second switch tube is grounded, a second output end of the second switch tube is connected to a first end of the fourth resistor and to a control end of the switch circuit, respectively, and a second end of the fourth resistor is connected to the second power supply.
In a possible design of the first aspect, when the first switching tube is an NPN-type triode, an emitter of the first switching tube is grounded, and a collector of the first switching tube is connected to the first end of the second resistor and the control end of the switching circuit, respectively; or when the first switch tube is a PNP type triode, the collector of the first switch tube is grounded, and the emitter of the first switch tube is respectively connected with the first end of the second resistor and the control end of the switch circuit; or when the first switch tube is an NMOS tube, the source electrode of the first switch tube is grounded, and the drain electrode of the first switch tube is respectively connected with the first end of the second resistor and the control end of the switch circuit; or when the first switch tube is a PMOS tube, the drain electrode of the first switch tube is grounded, and the source electrode of the first switch tube is respectively connected with the first end of the second resistor and the control end of the switch circuit.
In a possible design of the first aspect, when the second switching tube is an NPN-type triode, an emitter of the second switching tube is grounded, and a collector of the second switching tube is connected to the second end of the fourth resistor and the control end of the switching circuit, respectively; or when the second switching tube is a PNP-type triode, the collector of the second switching tube is grounded, and the emitter of the second switching tube is connected with the second end of the fourth resistor and the control end of the switching circuit respectively; or when the second switch tube is an NMOS tube, the source of the second switch tube is grounded, and the drain of the second switch tube is connected to the second end of the fourth resistor and the control end of the switch circuit respectively; or when the second switch tube is a PMOS tube, the drain electrode of the second switch tube is grounded, and the source electrode of the second switch tube is respectively connected with the second end of the fourth resistor and the control end of the switch circuit.
The elements and types of the first switch tube and the second switch tube can be combined at will, and the two can be the same or different.
In a possible design of the first aspect, the power on/off control circuit further includes a filter circuit, and the filter circuit is disposed at an input end of the first switch control circuit and/or the filter circuit is disposed at an input end of the second switch control circuit; the filter circuit comprises a fifth resistor and a first capacitor, one end of the fifth resistor is connected with one end of the first capacitor, and the other end of the first capacitor is grounded.
The filter circuit is arranged at the signal input end and can be used for filtering ripples in level signals input by the PHY and the main control module, so that the input level signals are more stable, and the performance of the startup and shutdown control circuit is optimized.
In a second aspect, the present invention provides an embedded device, comprising: ethernet physical layer transceiver, host system module and as any one possible design of first aspect and first aspect switching control circuit, switching control circuit respectively with ethernet physical layer transceiver and host system module connects, just host system with ethernet physical layer transceiver connects, ethernet physical layer transceiver is used for obtaining outside remote switching signal.
The embedded device is provided with the on-off control circuit in the first aspect, and the on-off circuit is disconnected only when the PHY and the main control module send out a power-off instruction, so that the power stability of the device is improved.
In a third aspect, the present invention provides a power management method, applied to a master control module of a controlled device, where the controlled device further includes an ethernet physical layer transceiver, a switching control circuit and a switching circuit, where the switching control circuit is designed as any one of the first aspect and the first aspect, the master control module is connected to the ethernet physical layer transceiver, and the switching control circuit is connected to the switching circuit, where the method includes:
when the main control module is in a power-on state, sending a second level signal to a switching control circuit and controlling an Ethernet physical layer transceiver to send a first level signal to the switching control circuit, so that the switching control circuit controls the switching circuit to be switched on or switched off according to the first level signal and the second level signal, wherein when at least one of the first level signal and the second level signal is maintained in a first state at the same time, the switching circuit is in a closed state.
In one possible design of the third aspect, when the switch circuit is in the closed state and the first level signal and the second level signal are both in the first state, the method further includes: and responding to a lower electric signal transmitted from the outside, outputting a second level signal in a second state and controlling the Ethernet physical layer transceiver to output a first level signal in the second state, so that the switching-on/off control circuit controls the switching circuit to be switched off according to the first level signal and the second level signal.
In one possible design of the third aspect, when the switch circuit is in the closed state, the first level signal is in the first state, and the second level signal is in the second state, the method further includes: and responding to an externally transmitted down-signal, controlling the Ethernet physical layer transceiver to output a first level signal in a second state, so that the switch control circuit controls the switch circuit to be switched off according to the first level signal and the second level signal.
In one possible design of the third aspect, when the switch circuit is in the closed state, the first level signal is in the second state, and the second level signal is in the first state, the method further includes: and responding to a lower electric signal transmitted from the outside, and outputting a second level signal in a second state, so that the switch control circuit controls the switch circuit to be switched off according to the first level signal and the second level signal.
In a fourth aspect, the present invention provides a distributed system, comprising: the server is used for sending a remote power-on signal or a remote power-off signal to the embedded equipment.
Compared with the prior art, the switch circuit of the controlled equipment is dually controlled by the switch control circuit and the level signals output by the PHY and the main control module, and the equipment is powered off only when the PHY and the main control module send power-off signals, so that the equipment power-off caused by misoperation of the PHY or the main control module is avoided, the loss of the actual engineering caused by sudden power-off of the equipment is also avoided, and the operation of the controlled equipment is more stable.
In order to make the above objects, technical solutions and advantages of the present invention more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 illustrates a connection diagram of an embedded device provided by the present application;
fig. 2 is a schematic diagram of a switch control circuit provided in a first embodiment of the present application;
fig. 3 shows a circuit diagram of a switching circuit in the present application;
FIG. 4 shows a specific circuit diagram of the power-on/off control circuit of the present application;
FIG. 5 shows different connection modes of the switch tube in the switch machine control circuit of the present application;
FIG. 6 shows another specific circuit diagram of the power-on/off control circuit of the present application;
fig. 7 shows a specific architecture of an embedded device provided in the second embodiment of the present application;
FIG. 8 is a schematic flow chart illustrating a power management method in combination with a remote control signal response according to a third embodiment of the present application;
fig. 9 shows the structure of a distributed system in the present application.
Icon: PHY-10; a power on/off control circuit-11; a main control module-12; a switching circuit-13; a first switch control circuit-110; a second switch control circuit-112.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Also, in the description of the present invention, the terms "first", "second", and the like are used only to distinguish one entity or operation from another entity or operation, and are not to be construed as indicating or implying any relative importance or order between such entities or operations, nor are they to be construed as requiring or implying any such actual relationship or order between such entities or operations. 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.
For an electronic device, to implement remote booting, a network card supporting a remote Wake-on-LAN (WOL) technology, a power supply supporting the ATX2.01 standard, and a motherboard supporting PCI2.2 need to be configured. The network card works in the last two layers of the OSI model: the physical layer and the data link layer, the chip of the physical layer is called an ethernet physical layer transceiver and may be generally called PHY. In the remote control scheme at the present stage, the PHY is directly connected with the switch circuit, the PHY receives a remote control signal transmitted from a remote end through a network card interface, the PHY identifies the type of the control signal, and after the control signal is determined to be a power-on signal, the switch circuit of the device is closed through a level signal, so that the remote power-on of the electronic device is realized.
First embodiment
Fig. 1 shows an embedded device provided in this application, which includes a main control module 12, an ethernet physical layer transceiver (PHY)10, a switching control circuit 11, and a switch circuit 13, where inputs of the switching control circuit 11 are respectively connected to the PHY10 and the main control module 12, an output of the switching control circuit 11 is connected to the switch circuit 13, and the switch circuit 13 can be turned on or off according to a level signal output by the switching control circuit. Specifically, referring to fig. 2, the on/off control circuit 11 includes a first switch control circuit 110 and a second switch control circuit 112, an input terminal of the first switch control circuit 110 is connected to the PHY10, an input terminal of the second switch control circuit 112 is connected to the main control module 12, and an output terminal of the first switch control circuit 110 and an output terminal of the second switch control circuit 112 are both connected to a control terminal of the switch circuit 13. The first switch control circuit is used for outputting a first control signal according to a first level signal output by the PHY, the second switch control circuit is used for outputting a second control signal according to a second level signal output by the main control module, and the first control signal and the second control signal are both used for controlling the on/off of the switch circuit.
In an actual scenario, the PHY is always powered on by the normal power supply, and the master control module needs to be powered on after the controlled device is powered on, so that an embodiment of implementing the device powering on and powering off based on the powering on and powering off control circuit is as follows: when the PHY is in a power-on state and the main control module is not powered on, because the main control module cannot output a second level signal to the switch machine control circuit at the moment, the switch machine control circuit determines a control signal output to the switch circuit only by a first level signal output by the PHY, and at the moment, the switch circuit is only controlled by a first control signal output by the first switch control circuit; another embodiment is that when the PHY and the main control module are both in the power-on state, the first switch control circuit outputs a first control signal according to a first level signal output by the PHY, and similarly, the second switch control circuit outputs a second control signal according to a second level signal transmitted by the main control module, and at this time, the power on/off control circuit determines the control signal output to the switch circuit by using the level signals output by the PHY and the main control module, thereby doubly controlling the switch circuit of the controlled device.
The first level signal, the second level signal, the first control signal, and the second control signal may be specifically understood as a level state, for example: for convenience of illustration, a signal for making the switch circuit in a closed state is defined as a level signal in a first state, and a signal for making the switch circuit in an open state is defined as a level signal in a second state.
In this embodiment, when at least one of the first level signal and the second level signal is maintained in the first state at the same time, that is, at least one path of input level state is in the first state, the switching control circuit outputs a signal in the power-on state to the switching circuit to close the switching circuit, so that the power supply of the controlled device is connected to the functional load, and the power-on state of the device is maintained.
The switching circuit may be a circuit shown in fig. 3, taking chip TPS2421 as an example, where VIN is a power input terminal and is always connected to an external power source, VOUT is a power output terminal, and may actually supply power to a circuit board (a functional load of a controlled device) on which the switching circuit of the controlled device is located after communicating with VIN, an output terminal signal of the on-off control circuit is connected to pin 2 (i.e., a control terminal of the switching circuit) of TPS2421, and when the on-off control circuit inputs a high level to the switching circuit, the switching circuit is turned off, i.e., VOUT is not communicating with VIN, and there is no power voltage at VOUT, i.e., the controlled device is powered off; when the input of the on-off control circuit to the switching circuit is low level, the switching circuit is conducted, the VOUT voltage is equal to the VIN power supply voltage, and the controlled equipment is electrified. Of course, the switch circuit shown in fig. 3 is only an example, and the switch-off control circuit in this embodiment may also be applied to various switch circuits, such as an existing relay switch circuit or an MOS transistor circuit, and the switching-off between the power supply and the functional load is realized by using a relay or an MOS transistor.
Illustratively, the PHY and the main control module both send a level signal in a first state to the on/off control circuit, and when the PHY causes a level signal jump due to electrostatic interference, at this time, the second level signal sent by the main control module is still in the first state, which does not affect the state of the control signal finally output by the on/off control circuit, and the switching circuit is still maintained in a closed state, thereby preventing the occurrence of a false off phenomenon.
In the above scheme, the on-off control circuit is used for finally obtaining a control signal for guiding the on-off of the switching circuit of the controlled equipment based on the states of the two input level signals, so that the power supply of the controlled equipment is communicated or interrupted with the functional load.
Specifically, fig. 4 shows a circuit diagram of an implementation of the power-on/off control circuit in the present embodiment. The first switch control circuit comprises a resistor R1, a first switch tube Q1, a resistor R2 and a power supply VCC1, wherein the first end of the resistor R1 is connected with the PHY, the second end of the resistor R1 is connected with the control end of the first switch tube Q1, the first output end of the first switch tube Q1 is grounded, the second output end of the first switch tube Q1 is respectively connected with the first end of the resistor R2 and the switch circuit, and the second end of the resistor R2 is connected with the power supply VCC 1; the second switch control circuit comprises a resistor R3, a second switch tube Q2, a resistor R4 and a power supply VCC2, the first end of the resistor R3 is connected with the main control module, the second end of the resistor R3 is connected with the control end of the second switch tube Q2, the first output end of the second switch tube Q2 is grounded, the second output end of the second switch tube Q2 is connected with the first end of the resistor R4 and the switch circuit respectively, and the second end of the resistor R4 is connected with the power supply VCC 2.
The first switching tube and the second switching tube in the circuit may be transistors or field effect transistors, and the circuit diagram shown in fig. 4 takes the switching tube as an NPN-type transistor as an example, it can be understood that the two switching tubes may also be PNP-type transistors, PMOS tubes, or NMOS tubes, and the connection relationship of the switching tubes in the circuit may also be changed accordingly according to the selected circuit element or the type of the element.
For example, in the first switch control circuit in fig. 4, the first switch Q1 is an NPN transistor, so that the emitter of Q1 is grounded, and the collector of Q1 is connected to the first end of the resistor R2 and the switch circuit, respectively, or Q1 may also be a PNP transistor, and at this time, the collector of Q1 is grounded, and the emitter of Q1 is connected to the first end of the resistor R2 and the switch circuit, or if Q1 is an NMOS transistor, the source of Q1 is grounded, and the drain of Q1 is connected to the first end of the resistor R2 and the switch circuit, respectively, or when Q1 is a PMOS transistor, the drain of Q1 is grounded, and the source of Q1 is connected to the first end of the resistor R2 and the switch circuit, respectively.
It is understood that the second switch tube Q2 can be selected from the above several types of elements, and when different circuit elements and types of elements are used, the corresponding circuit connection relationship in the circuit is the same as that described above for Q1; for convenience of understanding, fig. 5 shows a connection relationship of the switching tube in an NPN type or a PNP type, where the emitter of the switching tube is grounded and the collector of the switching tube is connected to the resistor and the switching circuit, respectively, or the collector of the switching tube is grounded and the emitter of the switching tube is connected to the resistor and the switching circuit, respectively, when the switching tube is an NPN type triode or a PNP type triode, reference may be specifically made to a connection manner of the first switching tube Q1 when the switching tube is an MOS tube, which is not described herein again.
The specific elements or types of the first switch tube Q1 and the second switch tube Q2 may be any combination of the above elements or types, and Q1 and Q2 may be the same or different, and this embodiment is not limited thereto.
Taking the switching control circuit shown in fig. 4 and the switching circuit shown in fig. 3 as examples, when Q1 and Q2 are NPN transistors, the operating principle of the switching control circuit is as follows: if the PHY and the main control module both input a high level signal to the switching control circuit, at this time, Q1 is turned on at a high level, and pulls the level of the collector to the ground, and similarly, Q2 is also turned on at a high level signal input by the main control module, and the level of the collector is also pulled to the ground, at this time, the switching control circuit outputs a low level signal to the switching circuit, and VIN and VOUT are still connected under the action of the low level signal, and the device is continuously powered on; if the level inputted to the on-off control circuit by the PHY jumps to a low level signal at a certain moment, the transistor Q1 is turned off, and the main control module keeps inputting a high level signal to the on-off control circuit, so that the output signal of the on-off control circuit is still in a low level state, and the on-off circuit is continuously closed. With respect to the embodiments shown in fig. 3 and 4, it can be understood that, in this example, the high-level signal is taken as the "level signal in the first state" defined above, and as long as any one of the first level signal output by the PHY and the second level signal output by the main control module is at a high level, the switch circuit is in a closed state, so as to avoid the occurrence of the false power-off phenomenon.
Optionally, the power on/off control circuit further includes a filter circuit, and the filter circuit may be selectively disposed at an input end of the first switch control circuit, or at an input end of the second switch control circuit, or both the input ends of the first switch control circuit and the second switch control circuit are provided with the filter circuit, and may be configured to filter ripples in level signals input by the PHY and the main control module, so that the input level signals are more stable.
Fig. 6 shows another startup and shutdown control circuit in this embodiment, a filter circuit formed by a resistor and a capacitor connected in series with each other is disposed at the input end of the first and second startup and shutdown control circuits, one end of the capacitor far from the resistor is grounded, and serial resistors are further disposed between the output end of the first startup and shutdown control circuit and between the output end of the second startup and shutdown control circuit and the switch circuit, so that the waveform of the electrical signal can be better optimized, and the performance of the startup and shutdown control circuit is better.
Second embodiment
This embodiment provides an embedded device, which can implement remote power on/off of the device, as shown in fig. 1, the embedded device includes: the switch control circuit comprises a main control module, an Ethernet physical layer transceiver (PHY), a switch control circuit and a switch circuit, wherein the input of the switch control circuit is respectively connected with the PHY and the main control module, the output of the switch control circuit is connected with the switch circuit, and the switch circuit can be switched on or switched off according to a level signal output by the switch control circuit. This embedded equipment is through being provided with above-mentioned on-off control circuit, only can break off the switching circuit when PHY and host system all send the outage instruction, makes the operation of equipment more stable.
The main control module includes a CPU and a peripheral circuit, and fig. 7 is a schematic diagram of a hardware architecture of the embedded device, in which the network signal receiving module is a network card interface RJ45 module, and an RJ45 connector realizes connection between a network card and a network cable, and can be used to receive a remote power on/off signal sent from a network link; in addition, in an actual scenario, since a signal level generated when a chip of a CMOS process operates is always greater than 0V (depending on the process and design requirements of the chip), a great loss of direct current component exists when the signal is sent to a place 100 meters or more, and if an external network cable is directly connected to the chip, the chip is easily damaged when lightning strike or static electricity occurs, so that, in order to protect the PHY from being damaged, an isolation protection circuit module may be disposed between the network receiving module and the PHY to isolate data received by the RJ45, so as to adapt to and protect the PHY, and thus the device is safer. The isolation protection circuit module can be any type of gigabit network transformer.
The PHY is used for receiving a control signal sent by the network transformer, the control chip can identify the type of the control signal, and if the control chip identifies the type of the control signal as a starting-up signal, a first level signal in a first state is sent to the switching-on and switching-off control circuit through a certain output pin connected with the switching-on and switching-off control circuit, so that the equipment is started up; if the device is identified as a power-off signal, a power-off signal is sent to the CPU, the CPU correspondingly outputs a level signal in a second state to the power-on and power-off control circuit through General Purpose Input and Output (GPIO), and the PHY is controlled to enable the first level signal output by the PHY to be adjusted to be in the second state, so that the power-on and power-off control circuit determines whether to disconnect the switching circuit according to the first level signal and the second level signal, and the device is enabled to be more safe and stable in power-off. It should be noted that the transmission of the down electrical signal between the PHY and the CPU may be performed by directly transmitting the pin of the PHY and the pin of the CPU, or by transmitting through an intermediate circuit or element, and the response process of the CPU to the down electrical signal is only one possible embodiment, and does not constitute a limitation to the present application.
Furthermore, each hardware module or circuit in the embedded device may be integrated on one PCB, or may be split according to actual situations to form an independent hardware board card or a hardware board card combined arbitrarily, which is not limited in this embodiment.
This embedded equipment makes equipment operating stability effectively improve through setting up on-off control circuit, has avoided equipment because the sudden outage that various interference caused to, and, reduced the manual control factor, make the staff keep away from equipment noise, electromagnetic radiation, heat radiation etc. and realized better man-machine isolation effect.
Third embodiment
The embodiment provides a power management method, which is applied to a master control module of a controlled device. The controlled device referred to in this embodiment is an embedded device provided in the previous embodiment, and the controlled device includes a PHY, a main control module, a power on/off control circuit, and a switch circuit, where an input of the power on/off control circuit is connected to the PHY and the main control module, an output of the power on/off control circuit is connected to the switch circuit, and the main control module is connected to the PHY.
When the main control module is in a power-on state, the main control module sends a second level signal to the on-off control circuit, and controls the PHY to send a first level signal to the on-off control circuit, so that the on-off control circuit controls the on-off of the switching circuit according to the first level signal and the second level signal, and at the moment, if at least one of the first level signal and the second level signal is maintained in a first state at the same time, the switching circuit is in a closed state.
In one embodiment, after the main control module is powered on, the main control module sends a level signal in a first state to the power on/off control circuit, and at the same time, controls the first level signal sent by the PHY to be in the first state, and in the operation process of the controlled device, the two level signals are always maintained in the first state, that is, the switch circuit is continuously closed, so that the normal operation of the device is ensured.
In another embodiment, after the main control module is powered on, only the level signal in the first state is sent to the switching control circuit, and the level state of the signal is maintained, because the switching control circuit turns on the switching circuit by the output control signal when at least one of the two input signals is the level signal in the first state, that is, as long as the first level signal is always in the first state, the final output of the switching control circuit cannot be affected no matter the output level of the PHY is in the high level state or the low level state, and therefore, in this example, the stability of the device power supply can also be ensured only by setting the second level signal output by the main control module.
Further, after receiving a remote shutdown signal transmitted from the outside, the PHY sends a power-down signal to the main control module, so that the main control module responds correspondingly to power down the device, where the power-down signal may be a level signal directly output by the PHY through an output pin to a pin of the main control module, or a power-down signal transmitted through an intermediate circuit or an element.
When the switch circuit is in the closed state, the level states of the first level signal and the second level signal may actually have various situations, and accordingly, the response process of the main control module to the lower electric signal is also different.
The first implementation mode comprises the following steps: when the first level signal and the second level signal are both in the first state, responding to a power-down signal transmitted from the outside of the main control module, outputting a second level signal in the second state to the on-off control circuit, and controlling the PHY to output a first level signal in the second state to the on-off control circuit.
The second embodiment: when the first level signal is in the first state and the second level signal is in the second state, the PHY is controlled to output the first level signal in the second state in response to a down electric signal transmitted from the outside of the main control module, and at the moment, the first level signal and the second level signal are both in the second state, so that the switch circuit is switched off, and the equipment is powered down.
The third embodiment is as follows: when the first level signal is in the second state and the second level signal is in the first state, responding to a down electric signal transmitted from the outside of the main control module, outputting the second level signal in the second state to the on-off control circuit, so that the on-off circuit is disconnected, and the equipment is powered down.
In an actual scenario, when the PHY responds to the power-down signal, the first level signal output by the PHY may have been changed to the second state in advance, and therefore, in the third embodiment, the main control module only needs to adjust the second level signal output by the main control module to the second state, so that the on-off control circuit outputs the control signal for closing the on-off control circuit to the switch circuit. Moreover, after the main control module is powered on, the first level signal output by the PHY may be adjusted to the second state by the main control module due to a misoperation, or may jump to the second state due to self electrostatic interference or the like.
Further, for the convenience of understanding, the method in the present embodiment is described in conjunction with the response process of a primary remote power on/off signal, and reference is made to the flowchart shown in fig. 8, which includes the following processes:
step 101: the PHY acquires a remote power on/off signal transmitted from the outside, identifies the type of the remote power on/off signal, and proceeds to step 102 if the remote power on/off signal is a power on signal, or proceeds to step 104 if the remote power on/off signal is a power off signal.
Step 102: the PHY sends a level signal of the first state to the power on/off control circuit to close the switching circuit, and after the device is powered on, the process goes to step 103. After the equipment is powered on, the main control module is powered on simultaneously.
Step 103: when the main control module is in a power-on state, at least one of the first level signal and the second level signal is controlled to be maintained in a first state at the same time, so that the switch circuit is continuously in a closed state.
Step 101-step 103 complete a remote boot response.
Step 104: the main control module responds to the power-off signal, outputs a second level signal in a second state and controls the PHY to output a first level signal in the second state, so that the switch circuit is disconnected, and the equipment is powered off.
The response process of the main control module in step 104 is only one embodiment, and is only an example here, and does not form a limitation on the shutdown response process. The lower electrical signal may be directly transmitted to the main control module by the PHY, or may be transmitted to the main control module through an intermediate circuit or an intermediate element.
Step 101 and step 104 complete a remote shutdown response, and the switching circuit performs the disconnection action only when the first level signal and the second level signal are both in the second state.
In one embodiment, the PHY is connected to the switch control circuit via an interrupt pin and the switch control circuit is designed to close using the interrupt control switch circuit, which in this example is the high state as the first state since the PHY interrupt pin is normally high in performance. After the main control module is powered on, because the output pin of the PHY is at a normal high level, the second level signal set by the main control module to be output is also at a high level, and is kept unchanged in the whole operation process, so that the controlled device is always kept in a powered-on state, and after receiving a power-off signal, the output signal of the interrupt pin of the PHY is jumped to be at a low level by reading the register of the PHY, and meanwhile, the output of the controlled device is also set to be at a low level, so that the switch circuit is switched off.
In the operation process of the main control module, as long as a lower electric signal transmitted by the PHY is not received, at least one of the first level signal and the second level signal is always in the first state at the same time, so that the controlled equipment is continuously in the power-on state, and even if the PHY generates output level jump due to various misoperation, the power-off of the controlled equipment cannot be caused.
After the controlled device is powered off, because the PHY is powered by the stock power supply, if the PHY receives the power-on signal again, the interrupt pin of the PHY changes to the high level again after receiving the interrupt command, so that the switch circuit is closed, and the controlled device is powered on again, that is, the above process steps 101 to 102 are repeated.
In this embodiment, the master control module in the embedded device participates in power management of the controlled device, and the output states of the two level signals output to the power on/off control circuit are controlled by the above scheme of this embodiment, so that on one hand, device power failure caused by PHY level jump is prevented, and on the other hand, remote power on/off control of the embedded device is realized.
Fourth embodiment
The present embodiment provides a distributed system, which includes a server and a plurality of embedded devices provided in the second embodiment, and the server can perform unified management on the plurality of embedded devices.
As shown in fig. 9, any number of embedded devices are in communication connection with a server, and the server can send a remote power-on signal or a remote power-off signal to any embedded device, so as to implement functions of uniformly performing remote power-on and power-off on all devices, or performing remote power-on and power-off on local devices, or performing remote power-on and power-off at regular time, and the like, where a plurality of embedded devices receive power-on and power-off signals of the server synchronously or asynchronously in a network manner, and perform response.
In practical situations, the staff may also send a power on/off control instruction for any embedded device to the server through a personal terminal device, such as a mobile phone, an iPad, a tablet computer, or a personal computer, which is in communication connection with the server, so that the server performs remote control on the specified embedded device.
The distributed system can realize remote on-off control management of each node device in different places, and avoid accelerated equipment aging caused by long-term operation of the device.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A startup and shutdown control circuit is characterized by being applied to controlled equipment, wherein the controlled equipment comprises an Ethernet physical layer transceiver, a main control module and a switch circuit, the startup and shutdown control circuit comprises a first switch control circuit and a second switch control circuit, the input end of the first switch control circuit is connected with the Ethernet physical layer transceiver, the input end of the second switch control circuit is connected with the main control module, and the output end of the first switch control circuit and the output end of the second switch control circuit are both connected with the control end of the switch circuit;
the first switch control circuit is configured to output a first control signal according to a first level signal output by the ethernet physical layer transceiver, the second switch control circuit is configured to output a second control signal according to a second level signal output by the main control module, and both the first control signal and the second control signal are configured to control the switch circuit to be turned on or turned off, where at least one of the first level signal and the second level signal is maintained in a first state at the same time, and the switch circuit is in a closed state.
2. The circuit of claim 1, wherein the first switch control circuit comprises a first resistor, a first switch transistor, a second resistor, and a first power supply, a first end of the first resistor is connected to the ethernet phy layer transceiver, a second end of the first resistor is connected to the control end of the first switch transistor, a first output end of the first switch transistor is grounded, a second output end of the first switch transistor is connected to the first end of the second resistor and the control end of the switch circuit, respectively, and a second end of the second resistor is connected to the first power supply.
3. The circuit of claim 1, wherein the second switch control circuit comprises a third resistor, a second switch tube, a fourth resistor and a second power supply, a first end of the third resistor is connected to the main control module, a second end of the third resistor is connected to the control end of the second switch tube, a first output end of the second switch tube is grounded, a second output end of the second switch tube is connected to the first end of the fourth resistor and the control end of the switch circuit, respectively, and a second end of the fourth resistor is connected to the second power supply.
4. The circuit of claim 2, wherein:
when the first switching tube is an NPN type triode, an emitting electrode of the first switching tube is grounded, and a collector electrode of the first switching tube is respectively connected with a first end of a second resistor and a control end of the switching circuit; or
When the first switch tube is a PNP type triode, the collector of the first switch tube is grounded, and the emitter of the first switch tube is respectively connected with the first end of the second resistor and the control end of the switch circuit; or
When the first switch tube is an NMOS tube, the source electrode of the first switch tube is grounded, and the drain electrode of the first switch tube is respectively connected with the first end of the second resistor and the control end of the switch circuit; or
When the first switch tube is a PMOS tube, the drain electrode of the first switch tube is grounded, and the source electrode of the first switch tube is respectively connected with the first end of the second resistor and the control end of the switch circuit.
5. The circuit of claim 3, wherein:
when the second switching tube is an NPN type triode, an emitting electrode of the second switching tube is grounded, and a collector electrode of the second switching tube is respectively connected with a second end of a fourth resistor and a control end of the switching circuit; or
When the second switch tube is a PNP type triode, the collector of the second switch tube is grounded, and the emitter of the second switch tube is respectively connected with the second end of the fourth resistor and the control end of the switch circuit; or
When the second switch tube is an NMOS tube, the source electrode of the second switch tube is grounded, and the drain electrode of the second switch tube is respectively connected with the second end of the fourth resistor and the control end of the switch circuit; or
When the second switch tube is a PMOS tube, the drain electrode of the second switch tube is grounded, and the source electrode of the second switch tube is respectively connected with the second end of the fourth resistor and the control end of the switch circuit.
6. The circuit according to claim 1, wherein the switch control circuit further comprises a filter circuit, wherein the input terminal of the first switch control circuit is provided with the filter circuit and/or the input terminal of the second switch control circuit is provided with the filter circuit;
the filter circuit comprises a fifth resistor and a first capacitor, one end of the fifth resistor is connected with one end of the first capacitor, and the other end of the first capacitor is grounded.
7. An embedded device, comprising: the switch device comprises an Ethernet physical layer transceiver, a main control module and the switch control circuit according to any one of claims 1 to 6, wherein the switch control circuit is respectively connected with the Ethernet physical layer transceiver and the main control module, the main control module is connected with the Ethernet physical layer transceiver, and the Ethernet physical layer transceiver is used for acquiring an external remote switch signal.
8. A power management method applied to a master control module of a controlled device, the controlled device further comprising an ethernet physical layer transceiver, the switching control circuit according to any one of claims 1 to 6, and a switch circuit, wherein the master control module is connected to the ethernet physical layer transceiver, and the switching control circuit is connected to the switch circuit, the method comprising:
when the main control module is in a power-on state, sending a second level signal to a switching control circuit and controlling an Ethernet physical layer transceiver to send a first level signal to the switching control circuit, so that the switching control circuit controls the switching circuit to be switched on or switched off according to the first level signal and the second level signal, wherein when at least one of the first level signal and the second level signal is maintained in a first state at the same time, the switching circuit is in a closed state.
9. The method of claim 8, wherein when the switch circuit is in the closed state and the first level signal and the second level signal are both in the first state, the method further comprises:
responding to a down-signal from the outside, the main control module outputs a second level signal in a second state and controls the ethernet physical layer transceiver to output a first level signal in the second state, so that the switching control circuit controls the switching circuit to be switched off according to the first level signal and the second level signal.
10. The method of claim 8, wherein when the switch circuit is in a closed state and the first level signal is in a first state and the second level signal is in a second state, the method further comprises:
and responding to an externally transmitted down-signal, controlling the Ethernet physical layer transceiver to output a first level signal in a second state, so that the switch control circuit controls the switch circuit to be switched off according to the first level signal and the second level signal.
11. The method of claim 8, wherein when the switch circuit is in the closed state and the first level signal is in the second state and the second level signal is in the first state, the method further comprises:
and responding to a lower electric signal transmitted from the outside, the main control module outputs a second level signal in a second state, so that the switch control circuit controls the switch circuit to be switched off according to the first level signal and the second level signal.
12. A distributed system, comprising: a server and a plurality of embedded devices according to claim 7, the server being configured to send a remote power-on signal or a power-off signal to the embedded devices.
CN201811638464.XA 2018-12-29 2018-12-29 On-off control circuit, embedded equipment, method and system Active CN109709858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811638464.XA CN109709858B (en) 2018-12-29 2018-12-29 On-off control circuit, embedded equipment, method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811638464.XA CN109709858B (en) 2018-12-29 2018-12-29 On-off control circuit, embedded equipment, method and system

Publications (2)

Publication Number Publication Date
CN109709858A CN109709858A (en) 2019-05-03
CN109709858B true CN109709858B (en) 2020-08-14

Family

ID=66260179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811638464.XA Active CN109709858B (en) 2018-12-29 2018-12-29 On-off control circuit, embedded equipment, method and system

Country Status (1)

Country Link
CN (1) CN109709858B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158765B (en) * 2019-12-17 2023-07-28 深圳市显控科技股份有限公司 Device and method for controlling running state of main control chip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269274A (en) * 2013-05-21 2013-08-28 江苏华博创意产业有限公司 Network-controlled computer startup and shutdown system
CN105094263A (en) * 2015-08-14 2015-11-25 浪潮软件集团有限公司 Startup and shutdown linkage control device and system
CN205017207U (en) * 2015-09-25 2016-02-03 Tcl通力电子(惠州)有限公司 Switching on and shutting down control circuit and switching power supply
CN205844775U (en) * 2016-05-13 2016-12-28 广东高标电子科技有限公司 On/off circuit and electric motor car electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103576816B (en) * 2012-07-23 2016-05-25 国网山东省电力公司鄄城县供电公司 Switching on and shutting down control circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269274A (en) * 2013-05-21 2013-08-28 江苏华博创意产业有限公司 Network-controlled computer startup and shutdown system
CN105094263A (en) * 2015-08-14 2015-11-25 浪潮软件集团有限公司 Startup and shutdown linkage control device and system
CN205017207U (en) * 2015-09-25 2016-02-03 Tcl通力电子(惠州)有限公司 Switching on and shutting down control circuit and switching power supply
CN205844775U (en) * 2016-05-13 2016-12-28 广东高标电子科技有限公司 On/off circuit and electric motor car electronic equipment

Also Published As

Publication number Publication date
CN109709858A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN107491156B (en) Multiple power supply voltage power-up/power-down detector
US9280357B2 (en) Configuration based on chassis identifications
CN109100971B (en) On-off time sequence control circuit with interlocking function
CN103348304A (en) Mechanism for low power standby mode control circuit
CN102595299B (en) accessory detection system and method
CN108933627B (en) Optical module and optical network system
KR101341877B1 (en) Reducing oscillations in system with foldback current limit when inductive load is connected
CN109709858B (en) On-off control circuit, embedded equipment, method and system
US8433837B2 (en) System for connecting electronic devices
CN112310937B (en) Slow start protection circuit and circuit protection integrated chip
US9312693B2 (en) Power supply system and power control circuit thereof
CN112578890B (en) Server device capable of remotely controlling node power supply
CN109298892B (en) Device and method for controlling startup and shutdown of server
CN113765356A (en) Power supply restarting circuit
CN105227872A (en) A kind of TV control method and separate type TV
CN110690883A (en) EC reset circuit and electronic equipment based on composite signal
JP2016192058A (en) Semiconductor device and power supply method
CN110970978A (en) Battery starting circuit and lithium battery
CN221056922U (en) Hardware system for remote starting up of network
CN214756295U (en) Circuit for preventing communication bus system from power-off mistakenly
CN215897372U (en) Multi-power supply circuit supporting hot plug
CN110688260B (en) EC reset circuit and electronic equipment based on earphone interface
CN218037038U (en) Overcurrent detection circuit and power supply circuit
CN219372407U (en) Schmitt trigger circuit of optical sensor
CN217956960U (en) Power supply control circuit and 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
GR01 Patent grant
GR01 Patent grant