Terminal wake-up circuit and wake-up method

文档序号:1875074 发布日期:2021-11-23 浏览:15次 中文

阅读说明:本技术 一种终端的唤醒电路及唤醒方法 (Terminal wake-up circuit and wake-up method ) 是由 兰伟华 唐仕斌 陈淑武 于 2021-08-26 设计创作,主要内容包括:本发明提供了一种终端的唤醒电路及唤醒方法,包括:第一控制器、通讯收发器、第一通讯回路、第二通讯回路、时钟模块、供电回路、以及第二控制器;其中,所述通讯收发器通过所述第一通讯回路、及所述第二通讯回路与所述第一控制器电气连接,所述时钟模块与所述控制器电气连接,所述供电回路与所述第二控制器电源输入电气连,所述第一控制器的输出端与所述供电回路的控制端电气连接,所述通讯收发器用于连接外部主机;其中,所述第一控制器根据第一通讯回路采集到的数据控制所述供电回路在开启和关闭之间操作。解决了没有人为干预的情况下终端在预设的时段内唤醒。(The invention provides a wake-up circuit and a wake-up method of a terminal, which comprise a first controller, a communication transceiver, a first communication loop, a second communication loop, a clock module, a power supply loop and a second controller, wherein the first controller is used for receiving a first signal and sending a second signal to the second controller; the communication transceiver is electrically connected with the first controller through the first communication loop and the second communication loop, the clock module is electrically connected with the controller, the power supply loop is electrically connected with the power supply input of the second controller, the output end of the first controller is electrically connected with the control end of the power supply loop, and the communication transceiver is used for connecting an external host; the first controller controls the power supply circuit to operate between opening and closing according to data collected by the first communication circuit. The problem that the terminal is awakened within a preset time period under the condition of no human intervention is solved.)

1. A wake-up circuit of a terminal is characterized by comprising a first controller, a communication transceiver, a first communication loop, a second communication loop, a clock module, a power supply loop and a second controller;

the communication transceiver is electrically connected with the first controller through the first communication loop and the second communication loop, the clock module is electrically connected with the controller, the power supply loop is electrically connected with the power supply input of the second controller, the output end of the first controller is electrically connected with the control end of the power supply loop, and the communication transceiver is used for connecting an external host;

the first controller controls the power supply circuit to operate between opening and closing according to data collected by the first communication circuit.

2. The wake-up circuit for a terminal as claimed in claim 1, wherein the first communication loop comprises a first diode and a second diode, and a first resistor and a second resistor; (ii) a

The first diode and the cathode of the second diode are electrically connected with the output end of the communication transceiver, the first IO port of the first controller is electrically connected with the anode of the first diode, the first serial port of the first controller is electrically connected with the anode of the second diode, the first ends of the first resistor and the second resistor are used for connecting a power supply, the second end of the first resistor is electrically connected with the anode of the first diode, and the second end of the second resistor is electrically connected with the anode of the second diode.

3. The wake-up circuit for a terminal as claimed in claim 1, wherein the power supply circuit comprises a DC-DC circuit, a third resistor, a capacitor, and a first relay;

the second IO port of the first controller is electrically connected with the coil of the first relay, the first contact of the first relay is electrically connected with the output end of the DC-DC loop, the input end of the DC-DC loop is used for being connected with a power supply, the second contact of the first relay is grounded through the capacitor, and the third contact of the first relay is electrically connected with the second controller.

4. The wake-up circuit for a terminal as claimed in claim 1, wherein the second communication circuit comprises a transistor, a second relay, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, and a ninth resistor;

the third IO port of the first controller is grounded through the ninth resistor, the third IO port is electrically connected to the coil of the second relay, the second serial port of the first controller is electrically connected to the first contact of the second relay, the second contact of the second relay is electrically connected to the power supply through the eighth resistor, the third contact of the second relay is electrically connected to the first end of the seventh resistor, the first end of the seventh resistor is electrically connected to the input end of the communication transceiver, the third contact of the second relay is electrically connected to the b-pole of the triode through the fourth resistor, the e-pole of the triode is grounded, the c-pole of the triode is electrically connected to the low-level driving enable end of the communication transceiver, the first ends of the fifth resistor and the sixth resistor are electrically connected to the power supply, and the second end of the fifth resistor is electrically connected to the first end of the seventh resistor, and the second end of the sixth resistor is electrically connected with the low level driving enabling end, and the low level driving enabling end of the communication transceiver is electrically connected with the high level driving enabling end.

5. The wake-up circuit of a terminal as claimed in claim 1, further comprising a touch screen, wherein the touch screen is electrically connected to the second controller.

6. The wake-up circuit of a terminal as claimed in claim 1, wherein the communication transceiver is an RS-485 transceiver.

7. The wake-up circuit of claim 1, wherein the clock module communicates with the first controller via I2C.

8. The wake-up circuit for a terminal as claimed in claim 1, wherein the first diode and the second diode are low dropout schottky diodes.

9. A method for waking up a terminal, comprising:

receiving a timing signal transmitted by a host;

starting a second communication loop according to the timing signal, and simultaneously reading a time signal of a clock module;

sending the time signal to the host through the second communication loop;

and receiving a power-on password sent by the host according to the time signal, and starting a power supply module according to the power-on password to wake up the terminal.

Technical Field

The present invention relates to the field of communications, and in particular, to a wake-up circuit and a wake-up method for a terminal.

Background

With the rapid development of the information era, the intelligent terminal equipment is widely applied to the life of people, sometimes applied to the field of industrial control, and sometimes applied to the fields of internet of things and car networking. And general intelligent terminal equipment CAN contain some kind or multiple remote control function basically, and some adopt 485 bus control, some adopt CAN bus control, also some adopt wireless remote control. Therefore, in order to meet different customer requirements and different application scenes, when the intelligent terminal device is designed, the 485 bus control function can be correspondingly reserved, so that the intelligent terminal device can communicate with the remote control host, the remote control management of the intelligent terminal device by the host is realized, and the data interaction is realized. According to the standard of the RS485 industrial bus, the RS485 industrial bus is a half-duplex communication bus with characteristic impedance of 120 omega, the maximum load capacity of the communication bus is 32 effective loads (including a main control device and a controlled device), in practical application, when the intelligent terminal device enters a sleep state, a client needs to pass through the 485 bus, and the function of remotely and regularly awakening each intelligent terminal device by a host is realized, so that the trouble of manually carrying out on-site startup and shutdown is reduced, particularly, one host is connected with a plurality of intelligent terminal devices through the 485 bus, and the required awakening time of each intelligent terminal device is inconsistent. The terminal cannot be awakened without a human control host.

In view of this, the present application is presented.

Disclosure of Invention

The invention discloses a wake-up circuit and a wake-up method of a terminal, and aims to wake up the terminal within a preset time period without human intervention.

The invention provides a wake-up circuit of a terminal, which comprises a first controller, a communication transceiver, a first communication loop, a second communication loop, a clock module, a power supply loop and a second controller, wherein the first controller is used for receiving a first signal and sending a second signal to the second controller;

the communication transceiver is electrically connected with the first controller through the first communication loop and the second communication loop, the clock module is electrically connected with the controller, the power supply loop is electrically connected with the power supply input of the second controller, the output end of the first controller is electrically connected with the control end of the power supply loop, and the communication transceiver is used for connecting an external host;

the first controller controls the power supply circuit to operate between opening and closing according to data collected by the first communication circuit.

Preferably, the first communication loop comprises a first diode, a second diode, a first resistor and a second resistor; (ii) a

The first diode and the cathode of the second diode are electrically connected with the output end of the communication transceiver, the first IO port of the first controller is electrically connected with the anode of the first diode, the first serial port of the first controller is electrically connected with the anode of the second diode, the first ends of the first resistor and the second resistor are used for connecting a power supply, the second end of the first resistor is electrically connected with the anode of the first diode, and the second end of the second resistor is electrically connected with the anode of the second diode.

Preferably, the power supply circuit comprises a DC-DC circuit, a third resistor, a capacitor and a first relay;

the second IO port of the first controller is electrically connected with the coil of the first relay, the first contact of the first relay is electrically connected with the output end of the DC-DC loop, the input end of the DC-DC loop is used for being connected with a power supply, the second contact of the first relay is grounded through the capacitor, and the third contact of the first relay is electrically connected with the second controller.

Preferably, the second communication circuit includes a triode, a second relay, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, and a ninth resistor;

the third IO port of the first controller is grounded through the ninth resistor, the third IO port is electrically connected to the coil of the second relay, the second serial port of the first controller is electrically connected to the first contact of the second relay, the second contact of the second relay is electrically connected to the power supply through the eighth resistor, the third contact of the second relay is electrically connected to the first end of the seventh resistor, the first end of the seventh resistor is electrically connected to the input end of the communication transceiver, the third contact of the second relay is electrically connected to the b-pole of the triode through the fourth resistor, the e-pole of the triode is grounded, the c-pole of the triode is electrically connected to the low-level driving enable end of the communication transceiver, the first ends of the fifth resistor and the sixth resistor are electrically connected to the power supply, and the second end of the fifth resistor is electrically connected to the first end of the seventh resistor, and the second end of the sixth resistor is electrically connected with the low level driving enabling end, and the low level driving enabling end of the communication transceiver is electrically connected with the high level driving enabling end.

Preferably, the touch screen is further included, wherein the touch screen is electrically connected with the second controller.

Preferably, the communication transceiver is an RS-485 transceiver.

Preferably, the clock module communicates with the first controller via I2C.

Preferably, the first diode and the second diode are low dropout schottky diodes.

A second embodiment of the present invention provides a method for waking up a terminal, including:

receiving a timing signal transmitted by a host;

starting a second communication loop according to the timing signal, and simultaneously reading a time signal of a clock module;

sending the time signal to the host through the second communication loop;

and receiving a power-on password sent by the host according to the time signal, and starting a power supply module according to the power-on password to wake up the terminal.

Based on the wake-up circuit and the wake-up method of the terminal provided by the invention, the communication transceiver is used for receiving a wake-up signal of an external host and sending the wake-up signal to the first controller through the first communication loop, the first controller collects a time signal of the clock module according to the wake-up signal and wakes up the second communication loop and sends the time signal to the host through the second communication loop and the communication transceiver, the host receives the time signal and judges that the terminal sends a power-on password to the first controller through the first communication loop in a wake-up period, and the first controller wakes up the power supply module according to the power-on password so as to supply power to the second controller, so that the wake-up of the terminal is realized.

Drawings

Fig. 1 is a schematic diagram of a wake-up circuit of a terminal according to the present invention;

fig. 2 is a flowchart illustrating a method for waking up a terminal according to the present invention.

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. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.

It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.

The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.

In the embodiments, the references to "first \ second" are merely to distinguish similar objects and do not represent a specific ordering for the objects, and it is to be understood that "first \ second" may be interchanged with a specific order or sequence, where permitted. It should be understood that "first \ second" distinct objects may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced in sequences other than those illustrated or described herein.

The following detailed description of specific embodiments of the invention refers to the accompanying drawings.

The invention discloses a wake-up circuit and a wake-up method of a terminal, and aims to wake up the terminal within a preset time period without human intervention.

Referring to fig. 1, a first embodiment of the present invention provides a wake-up circuit of a terminal, including a first controller U1, a communication transceiver U5, a first communication loop 2, a second communication loop 1, a clock module U4, a power supply loop 3, and a second controller U2;

the communication transceiver U5 is electrically connected to the first controller U1 through the first communication loop 2 and the second communication loop 1, the clock module U4 is electrically connected to the controller, the power supply loop 3 is electrically connected to the power input of the second controller U2, the output end of the first controller U1 is electrically connected to the control end of the power supply loop 3, and the communication transceiver U5 is used for connecting to an external host;

the first controller U1 controls the power supply circuit 3 to operate between on and off according to the data collected by the first communication circuit 2.

It should be noted that, in the prior art, one host may need to control multiple terminals, but the wake-up time of each terminal is different, so that the host needs to be manually controlled to implement time-sharing wake-up of the host.

In this embodiment, the communication transceiver U5 is configured to receive a wake-up signal from an external host, and send the wake-up signal to the first controller U1 through the first communication loop 2, the first controller U1 acquires a time signal of the clock module U4 according to the wake-up signal, wakes up the second communication loop 1, and sends the time signal to the host through the second communication loop 1 and the communication transceiver U5, the host receives the time signal, determines that the terminal is in a wake-up period, and sends a power-on password to the first controller U1 through the first communication loop 2, and the first controller U1 wakes up the power supply module according to the power-on password, so as to supply power to the second controller U2, thereby waking up the terminal.

In this embodiment, the first communication loop 2 includes a first diode D1, a second diode D2, a first resistor R1, and a second resistor R2;

the cathode of the first diode D1 and the cathode of the second diode D2 are electrically connected to the output end of the communication transceiver U5, the first IO port of the first controller U1 is electrically connected to the anode of the first diode D1, the first serial port of the first controller U1 is electrically connected to the anode of the second diode D2, the first ends of the first resistor R1 and the second resistor R2 are used for connecting a power supply, the second end of the first resistor R1 is electrically connected to the anode of the first diode D1, and the second end of the second resistor R2 is electrically connected to the anode of the second diode D2.

It should be noted that, the first controller U1 is an auxiliary CPU, the first IO port is an interrupt input port, and when the terminal device is in a sleep state, that is, when the second controller U2 is in a sleep state, the external host sends a wake-up signal through a 485 bus at regular time (at time interval t), so as to reach the first IO port of the first controller U1, and wake up the first controller U1, specifically, in this embodiment, the wake-up signal is transmitted to the first IO port through the first diode D1, where the wake-up signal is a low-level signal, and in this embodiment, the first resistor R1 and the second resistor R2 are pull-up resistors.

In this embodiment, the second communication circuit 1 includes a transistor Q1, a second relay K2, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, and a ninth resistor R9; specifically, the fourth resistor R4 is a current-limiting resistor, the fifth resistor R5, the sixth resistor R6 and the eighth resistor R8 are pull-up resistors, the seventh resistor R7 is a matching resistor,

a third IO port of the first controller U1 is electrically connected to ground through the ninth resistor R9, the third IO port is electrically connected to a coil of the second relay K2, a second serial port of the first controller U1 is electrically connected to a first contact of the second relay K2, a second contact of the second relay K2 is electrically connected to a power source through the eighth resistor R8, a third contact of the second relay K2 is electrically connected to a first end of the seventh resistor R7, a first end of the seventh resistor R7 is electrically connected to an input terminal of the communication transceiver U5, a third contact of the second relay K2 is electrically connected to a b terminal of the transistor Q1 through the fourth resistor R4, an e terminal of the transistor Q1 is electrically connected to ground, a c terminal of the transistor Q1 is electrically connected to a low-level driving enable terminal of the communication transceiver U5, and a fifth resistor R5 and a sixth terminal of the sixth resistor R6 are electrically connected to the power source, a second end of the fifth resistor R5 is electrically connected to a first end of the seventh resistor R7, a second end of the sixth resistor R6 is electrically connected to the low-level driving enable terminal, and a low-level driving enable terminal of the communication transceiver U5 is electrically connected to the high-level driving enable terminal.

It should be noted that, when the first IO port of the first controller U1 receives a wake-up signal, the first controller U1 reads the time signal of the clock module U4, and sends an electrical signal to the coil of the second relay K2 through the third IO port, the first contact is connected to the second contact, and is switched to the first contact to be connected to the third contact, so as to open the second communication loop 1, and meanwhile, the first controller U1 sends the collected time signal to the communication transceiver U5 through the second serial port of the first controller U1, and further sends the time signal to the host. The host receives the time signal Mn and performs internal query to judge whether Mn is within the time Tn required by the equipment to be awakened. If so, the host establishes normal 485 communication with the first controller U1, and sends a corresponding boot password signal Tnx through the 485 bus (in actual use, each device has a different boot encryption signal and can be distinguished by an ID number corresponding to the device), specifically, in this embodiment, the low-level boot password is sent to the first serial port of the first controller U1 through the second diode D2, and at this time, the first controller U1 does not collect data related to the first IO port.

In the present embodiment, the power supply circuit 3 includes a DC-DC circuit, a third resistor R3, a capacitor, and a first relay K1, where the third resistor R3 is a pull-up resistor;

the second IO port of the first controller U1 is electrically connected to the coil of the first relay K1, the first contact of the first relay K1 is electrically connected to the output end of the DC-DC loop, the input end of the DC-DC loop is used for connecting a power supply, the second contact of the first relay K1 is grounded through the capacitor, and the third contact of the first relay K1 is electrically connected to the second controller U2.

It should be noted that after the first controller U1 parses the switch code signal, it controls the second IO port, and switches on the second relay K2 to supply power to the second controller U2, so that the second controller U2 works normally, and at the same time, the first controller U1 and the second controller U2 implement data interaction through a serial port, and finally implement remote time-sharing wake-up of different intelligent terminal devices.

In this embodiment, a touch screen U3 may be further included, wherein the touch screen U3 is electrically connected to the second controller U2.

It should be noted that the touch screen U3 is used for human-computer interaction, and communicates with the second controller U2 through I2C. The second controller U2 is a core system module, includes PMIC, CPU, DDR3, EMMC and the like inside, has an audio/video codec function, includes MIPI _ CSI interface and MIPI _ DSI interface, and includes a combination circuit such as WIFI, bluetooth, ethernet and the like, and actually operates under an android platform, VIN is a main power input terminal of the second controller U2, and the first controller U1 and the second controller U2 perform data interaction through serial port communication, and the first controller U1 can monitor the current working state of the second controller U2 in real time, and certainly, the touch screen U3 can also monitor the current working state of the second controller U2 in real time.

In this embodiment, the communication transceiver U5 may be an RS-485 transceiver.

It should be noted that the communication transceiver U5 may also be other types of transceivers, which are not limited herein, but all of these schemes are within the scope of the present invention.

In this embodiment, the clock module U4 and the first controller U1 may communicate via I2C.

It should be noted that, in other embodiments, the clock module U4 includes a rechargeable battery therein, and when the first controller U1 is in sleep, the clock module U4 can operate independently under the action of the battery, and the clock module U4 and the first controller U1 are connected in an I2C communication manner.

In the present embodiment, the first diode D1 and the second diode D2 may be low dropout schottky diodes.

It should be noted that, in other embodiments, the first diode D1 and the second diode D2 may also be other types of diodes. It is not specifically limited herein, but is within the scope of the present invention.

The beneficial effects of the above embodiment are as follows:

the circuit has the advantages of simple structure, easy realization, low cost, convenient application, automatic time-sharing awakening, automatic control and the like. The method is practically applied to intelligent terminal equipment with a 485 bus control function, and is used for realizing remote time-sharing awakening of the intelligent terminal equipment; therefore, the trouble of manually turning on and off the machine on the spot is reduced, and the labor cost is finally saved.

Referring to fig. 2, a second embodiment of the present invention provides a method for waking up a terminal, including:

s101, receiving a timing signal sent by a host;

s102, starting a second communication loop 1 according to the timing signal, and simultaneously reading a time signal of a clock module U4;

s103, sending the time signal to the host through the second communication loop 1;

and S104, receiving the power-on password sent by the host according to the time signal, and starting a power supply module according to the power-on password to wake up the terminal.

Based on the wake-up circuit and the wake-up method of the terminal provided by the invention, the communication transceiver U5 is configured to receive a wake-up signal of an external host and send the wake-up signal to the first controller U1 through the first communication loop 2, the first controller U1 acquires a time signal of the clock module U4 according to the wake-up signal and sends the time signal to the host through the second communication loop 1, the host determines that the terminal is in a wake-up period and sends a power-on password to the first controller U1 through the first communication loop 2, and the first controller U1 wakes up the power supply module according to the power-on password to supply power to the second controller U2, thereby waking up the terminal.

The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:控制方法及设备、电子设备

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!