Circuit and method for supporting network access awakening

文档序号:377992 发布日期:2021-12-10 浏览:11次 中文

阅读说明:本技术 一种支持网络接入唤醒的电路和方法 (Circuit and method for supporting network access awakening ) 是由 颜曦 张荣波 陆欢佳 童成涛 王李华 于 2021-09-01 设计创作,主要内容包括:本发明涉及一种支持网络接入唤醒的电路和方法,属于电学领域,所述的电路包括比较器和小规模的FPGA芯片,FPGA芯片包括振荡器和计数器;比较器的输入端连通主系统RJ45网络接口,能够接收来自外部传入的快速连接脉冲;比较器的输出端连接到计数器的第一输入端作为计数器的时钟输入,振荡器作为计数窗口,振荡器的输出端连接计数器的第二输入端作为计数器的复位输入,计数器的输出端与主系统相连,计数器的溢出输出与主系统的供电使能相连,同时溢出信号也作为振荡器的关断使能;所述的主系统为待唤醒设备。本发明电路可实现超低的休眠功耗,整体功耗不超过1mW,且抗干扰性强,通过调整计数器阈值,可以有效的避免误唤醒。(The invention relates to a circuit and a method for supporting network access awakening, belonging to the field of electricity, wherein the circuit comprises a comparator and a small-scale FPGA chip, and the FPGA chip comprises an oscillator and a counter; the input end of the comparator is communicated with a main system RJ45 network interface and can receive a quick connection pulse transmitted from the outside; the output end of the comparator is connected to the first input end of the counter to serve as the clock input of the counter, the oscillator serves as a counting window, the output end of the oscillator is connected to the second input end of the counter to serve as the reset input of the counter, the output end of the counter is connected with the main system, the overflow output of the counter is connected with the power supply enabling of the main system, and meanwhile, the overflow signal also serves as the turn-off enabling of the oscillator; the main system is a device to be awakened. The circuit can realize ultralow dormancy power consumption, the whole power consumption is not more than 1mW, the anti-interference performance is strong, and the false awakening can be effectively avoided by adjusting the threshold value of the counter.)

1. A circuit supporting network access awakening is characterized in that the circuit comprises a comparator and a small-scale field programmable logic gate array chip, called an FPGA chip for short, wherein the FPGA chip comprises an oscillator and a counter;

the input end of the comparator is communicated with a main system RJ45 network interface and can receive a quick connection pulse transmitted from the outside; the output end of the comparator is connected to the first input end of the counter to serve as the clock input of the counter, the oscillator serves as a counting window, the output end of the oscillator is connected to the second input end of the counter to serve as the reset input of the counter, the output end of the counter is connected with the main system, the overflow output of the counter is connected with the power supply enabling of the main system, and meanwhile, the overflow signal also serves as the turn-off enabling of the oscillator; the main system is a device to be awakened.

2. A method for waking up a device by using the circuit of claim 1, wherein the method is characterized in that when one end of a network cable is inserted into a normally operating network port and the other end of the network cable is inserted into a dormant device to be woken up, the network port continuously transmits a fast connection pulse without establishing a connection; an FLP burst packet comprises 33 pulse sequences, and the pulse sequences are coupled to the input end of a comparator through a differential network cable to cause the output of the comparator to jump, so that a series of pulses are generated and input to the FPGA; the FPGA takes input pulses as clock signals of a counter and takes an internal low-speed oscillator as a counting window, if the counting value of the counter in one counting window reaches a preset threshold, the FPGA considers that an effective FLP pulse sequence is detected, so that the device is considered to be connected with an opposite end network port through a network cable, an effective enabling signal is output at the moment, the device is started to supply power, and the device is awakened.

3. The method according to claim 2, wherein the counting window is a periodic pulse signal generated by an oscillator, and the periodic pulse signal is used as a reset signal of the counter to clear the counting value of the counter, so that the counting value is automatically cleared when the counter does not reach a preset threshold within a given time, thereby effectively improving the anti-interference performance of the wake-up logic and preventing false wake-up; and when the effective FLP is detected, the overflow signal of the counter is set to be high to awaken the main system, the closing enable of the oscillator is also effective at the same time, and the zero clearing signal of the counter is not output any more, so that the counter is ensured to be always in the overflow state until the state is cleared by the main system to enter the next dormancy.

Technical Field

The invention belongs to the field of electricity, and particularly relates to a circuit and a method for supporting network access wakeup.

Background

In marine applications, there is a need for high speed communication of underwater devices to the surface, and the current alternatives are primarily ethernet and fiber optics. Ethernet communication is the most mature communication mode in terms of technology and is currently used, and especially under the same bandwidth requirement, ethernet has many advantages such as high reliability, low cost, and simple integration compared with optical fiber. While the underwater equipment is in ethernet communication, the equipment is usually required to have the characteristic of low power consumption and dormancy. Aiming at the dormancy awakening operation of the underwater equipment, if the underwater equipment is controlled by an additional awakening signal line, the awakening operation is natural and very simple; however, under the condition of limited wiring resources, the underwater equipment is required to be awakened from sleep through the existing network connection.

The network access wake-up function is common on personal computers, servers and other devices, and can be started through BIOS configuration generally, and the implementation principle of the network access wake-up function mainly depends on the network connection detection function integrated by a physical layer chip of a network card, so that the physical layer chip is required to be in a charged state all the time when the physical layer chip is in a sleep state. The power consumption of the network physical layer chip is usually not low, even in a low power consumption mode, the power consumption is more than dozens of mW, and the power consumption obviously cannot meet the dormancy requirement of the underwater equipment.

Therefore, to realize a relatively thorough low-power sleep, the network physical layer chip needs to be powered off together; however, at present, there is no solution for realizing automatic wake-up of a network access system under the condition that the sleep power consumption of the whole system is in uW level.

Disclosure of Invention

The circuit is to use a comparator with ultra-low power consumption and a small-scale FPGA (field programmable gate array) chip to build a pulse detection circuit, detect a fast connecting pulse (FLP) sent by an opposite-end network device, and start an integral circuit system after a certain condition is met, so that the device is awakened in a uW-level dormant state.

The invention is realized by the following technical scheme:

a circuit supporting network access wakeup comprises a comparator and a small-scale FPGA chip, wherein the FPGA chip comprises an Oscillator (OSC) and a counter;

the input end of the comparator is communicated with a main system RJ45 network interface and can receive a quick connection pulse (FLP) transmitted from the outside; the output end of the comparator is connected to the first input end of the counter, the oscillator is used as a counting window, the output end of the oscillator is connected to the second input end of the counter, the output end of the counter is connected with a main system, and the main system is equipment to be awakened.

The invention also provides a circuit-to-device awakening method, when one end of a network cable is inserted into a normally working network port and the other end of the network cable is inserted into a dormant device to be awakened, the network port can continuously send a fast connection pulse (FLP) under the condition that the connection is not established; an FLP burst packet comprises 33 pulse sequences, and the pulse sequences are coupled to the input end of a comparator through a differential network cable to cause the output of the comparator to jump, so that a series of pulses are generated and input to the FPGA; the FPGA takes input pulses as clock signals of a counter and takes an internal low-speed oscillator as a counting window, if the counting value of the counter in one counting window reaches a preset threshold, the FPGA considers that an effective FLP pulse sequence is detected, so that the device is considered to be connected with an opposite end network port through a network cable, an effective enabling signal is output at the moment, the device is started to supply power, and the device is awakened.

Furthermore, the counting window is that the periodic pulse signal is generated by means of an oscillator and is used as a reset signal of the counter to clear the count value of the counter, so that the count value can be automatically cleared when the counter does not reach a preset threshold within a given time, the anti-interference performance of the wake-up logic can be effectively improved, and the false wake-up can be prevented; and when the effective FLP is detected, the overflow signal of the counter is set to be high to awaken the main system, the closing enable of the oscillator is also effective at the same time, and the zero clearing signal of the counter is not output any more, so that the counter is ensured to be always in the overflow state until the state is cleared by the main system to enter the next dormancy.

Compared with the prior art, the invention has the following beneficial effects:

1. the implementation is simple, and only one comparator and a very small-scale logic circuit are needed;

2. the compatibility is strong, and the original circuit design is not influenced;

3. the ultra-low dormancy power consumption can be realized, and the overall power consumption is not more than 1 mW;

4. the anti-interference performance is strong, and false awakening can be effectively avoided by adjusting the threshold value of the counter.

Drawings

Fig. 1 is a schematic circuit diagram.

Detailed Description

The specific implementation process of the invention is as follows:

as shown in fig. 1, the original main system includes an RJ45 network interface, and the circuit supporting network access wakeup is added with a comparator and a small-scale FPGA chip, where the FPGA chip includes an Oscillator (OSC) and a counter.

D + and D-input ends of a comparator are connected to a TXD differential line in a network interface of the main system RJ45, and the comparator can receive a quick connection pulse (FLP) transmitted from the outside; the output end of the comparator is connected to the first input end of the counter to serve as a clock input (clk) of the counter, the oscillator serves as a counting window, the output end of the oscillator is connected to the second input end of the counter to serve as a reset input (clr) of the counter, an overflow output (ov) of the counter is connected with a power supply enable (pwr _ en) of the main system, and meanwhile an overflow signal (ov) also serves as a turn-off enable (disable) of the oscillator)

The main system is connected with an external wired network through an RJ45 interface, and is completely powered off after entering a sleep state and is in a zero power consumption state. The electrified device in the monitoring state is a comparator and an FPGA, and the comparator is responsible for monitoring signal jumping on a network transmission differential data line TXD. When the RJ45 port is connected to the opposite network device through the network cable, the opposite network device will periodically send out a fast connection pulse (FLP) through the TXD, and the differential signal is applied to the D + and D-inputs of the comparator, so that the output of the comparator is continuously inverted.

The output pulse of the comparator is used as a counting clock signal (clk) by the rear-stage counter, the count value of each rising edge is automatically added by 1, and when the count value reaches a preset threshold, the counting overflow signal (ov) of the counter is set high, so that the power supply enable (pwr _ en) of the main system is set high, the main system is enabled to supply power, and then the main system is awakened.

To avoid false triggering of the wake-up, a time window needs to be added to the counter, i.e. the count value reaches a preset threshold within a given time, which is considered to be a valid FLP detected, so as to wake up the host system. Therefore, a periodic pulse signal (such as pulse per second) needs to be generated by the oscillator, and the signal is used as a reset signal (clk) of the counter to clear the count value of the counter, so that the count value can be automatically cleared when the counter does not reach a preset threshold within a given time, and therefore the anti-interference performance of the wake-up logic can be effectively improved, and false wake-up can be prevented. And when the effective FLP is detected, the counter overflow signal (ov) is set to be high to awaken the main system, the closing enabling disable of the oscillator) is also effective at the same time, and the zero clearing signal of the counter is not output any more, so that the counter is ensured to be always in the overflow state until the state is cleared by the main system to enter the next dormancy.

The circuit is simple to realize, and the working state of the original main system is not influenced at all. And the wake-up circuit composed of the comparator and the FPGA chip has very low power consumption, and can realize standby power consumption below 1 mW. In addition, by adjusting the zero clearing window and the overflow threshold of the counter, strong anti-interference performance can be realized so as to adapt to different working environments.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种省电优化方法、装置、移动终端和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!