CN111290320A - Switch control system of terminal equipment and control method thereof - Google Patents

Switch control system of terminal equipment and control method thereof Download PDF

Info

Publication number
CN111290320A
CN111290320A CN202010123852.5A CN202010123852A CN111290320A CN 111290320 A CN111290320 A CN 111290320A CN 202010123852 A CN202010123852 A CN 202010123852A CN 111290320 A CN111290320 A CN 111290320A
Authority
CN
China
Prior art keywords
module
uart
power supply
signal
mcu
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.)
Pending
Application number
CN202010123852.5A
Other languages
Chinese (zh)
Inventor
余强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zidoo Technology Co ltd
Original Assignee
Zidoo 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 Zidoo Technology Co ltd filed Critical Zidoo Technology Co ltd
Priority to CN202010123852.5A priority Critical patent/CN111290320A/en
Publication of CN111290320A publication Critical patent/CN111290320A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition

Abstract

The invention discloses a switch control system of terminal equipment, which comprises a power supply unit and a control unit electrically connected with the power supply unit, wherein the power supply unit comprises a circuit switching module; the UART module realizes the UART receiving of signals based on the UART receiving function of the UART module; the UART module realizes UART transmission of SOC chip signals based on the UART transmitting function of the UART module; the SOC chip receives the signal, and the second MCU module detects whether the signal of the SOC module is an opening signal or a closing signal, and instructs the first MCU module to open or disconnect the circuit switching module, so that the power supply unit supplies power or cuts off the power. The invention also discloses a control method. The embodiment of the invention can lead the external equipment to conveniently control the startup and shutdown of the terminal device and improve the use efficiency.

Description

Switch control system of terminal equipment and control method thereof
Technical Field
The invention relates to the field of switch control systems, in particular to a switch control system of terminal equipment and a control method thereof.
Background
The existing intelligent household equipment, such as audio and video playing products, projectors, intelligent furniture and the like, generally realizes the functions of starting and closing through a self-contained remote controller or a self-contained switching device, and after the equipment is connected with computer equipment, the starting and closing of the equipment are still realized through the self-contained remote controller or the self-contained switching device, so that the use is not convenient, and therefore, the equipment can be directly controlled to be started and closed through a computer under the condition.
Disclosure of Invention
In view of this, embodiments of the present invention provide a switch control system of a terminal device and a control method thereof, which can be applied to various products that need to use a serial communication interface to control a switch, especially to audio/video playing products, projectors, smart furniture, and other products.
The technical scheme adopted by the invention for solving the technical problems is as follows:
according to one aspect of the invention, the switch control system of the terminal equipment comprises a power supply unit and a control unit electrically connected with the power supply unit, wherein the power supply unit comprises a circuit switching module; the UART module realizes the UART receiving of signals based on the UART receiving function of the UART module; the UART module realizes UART transmission of SOC chip signals based on the UART transmitting function of the UART module; the SOC chip receives the signal, and the second MCU module detects whether the signal of the SOC module is an opening signal or a closing signal, and instructs the first MCU module to open or disconnect the circuit switching module, so that the power supply unit supplies power or cuts off the power.
In one possible design, the second MCU module detects that the SOC module sends out a high-frequency signal, and the second MCU module does not receive data as a starting signal;
the second MCU module detects that the SOC sends out a low-frequency signal, and the second MCU module receives the signal for closing the signal, and realizes that the signal is sent to the UART of the first MCU module, so that the first MCU module is communicated with the circuit switching module to cut off the power supply of the power supply module.
In one possible embodiment, the control unit further comprises a serial communication interface, which is connected to the control unit and to an external device.
In one possible design, the external device is a portable computer.
In one possible design, the serial communication interface is an RS232 interface.
In one possible design, the power supply unit comprises a power supply module, a standby power module, a circuit switching module and a power management module, the power supply module is connected with the standby power module, the standby power module is connected with the second MCU module, the power management module is connected with the circuit switching module, and the SOC chip is connected with the power management module.
In one possible design, the SOC chip may be replaced with an MCU module.
In one possible design, the power module powers the adapter or the battery.
According to another aspect of the present invention, there is provided a control method including the switching control system of the terminal device described in any one of the above, the method including the steps of:
s01, the UART module realizes UART transmission of signals to the SOC chip and the second MCU module;
s02, the SOC chip receives and identifies the signal, informs the computer operating system to start or shut down the software, and makes the first MCU module ready for opening or disconnecting the power supply unit;
and S03, after the software is started or shut down, the second MCU module controls the first MCU module to send a signal of starting or shutting down to the circuit switching module, and the circuit switching module turns on or turns off the power supply unit.
Compared with the prior art, the invention has the advantages of convenient use and simple structure, can conveniently control the start-up and the shutdown of the terminal device by external equipment, and improves the use efficiency.
Drawings
FIG. 1 is a schematic diagram provided by an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
1. A power supply unit; 11. a power supply module; 12. a standby power supply module; 13. a circuit switching module; 14. a power management module;
2. a control unit; 21. a UART module; 22. an SOC chip; 23. a second MCU module; 24. a first MCU module;
3. an external device;
4. and (4) terminal equipment.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
It should be noted that the terms first, second and the like in the description and in the claims, and in the drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Please refer to fig. 1. The embodiment of the invention provides a switch control system of terminal equipment, which comprises a power supply unit 1 and a control unit 2 electrically connected with the power supply unit 1, wherein the power supply unit 1 comprises a circuit switching module 13, the control unit 2 comprises a UART module 21, an SOC chip 22, a second MCU module 23 and a first MCU module 24, and the first MCU module 24 is connected with the circuit switching module 13; the UART module 21 implements UART reception of signals based on its own UART reception function; the UART module 21 realizes UART transmission of signals of the SOC chip 22 based on the UART transmitting function of the UART module; the SOC chip 22 receives the signal, and the second MCU module 23 detects whether the signal of the SOC module is an on signal or an off signal, and instructs the first MCU module 24 to turn on or off the circuit switching module 13, so that the power supply unit 1 is powered on or off.
Specifically, the UART module 21 uses a chip for converting a serial port signal into a UART signal as a core device, the UART module 21 supplies power to the standby power module 12, the RS232 interface supplies power at 5V level, and the system UART supplies power at 3.3V/1.8V. The UART module 21 converts its level.
The UART module 21 uses the standby power module 12 as a power supply; the UART module 21 is connected with the RS232 interface at a level of 5V, and is connected with the SOC chip 22 and the first MCU module 24 or the second MCU module 23 at a level of 3.3V/1.8V, so that the level switching is realized.
Further, the second MCU module 23 detects that the SOC module sends a high frequency signal, and the second MCU module 23 does not receive data as a start signal;
the second MCU module 23 detects that the SOC chip 22 sends a low frequency signal, and the second MCU module 23 receives the signal as a turn-off signal, and transmits the signal to the UART of the first MCU module 24, so that the first MCU module 24 communicates with the circuit switching module 13 to disconnect the power supply of the power supply module 11.
Specifically, the first MCU module 24 is a small-sized circuit with an MCU chip as a core, the first MCU module 24 uses a standby power as a power supply, the first MCU module 24 receives a signal from the second MCU module 23 as a control signal, and the first MCU module 24 controls the switching circuit to be turned on or off after receiving the control signal.
The first MCU module 24 receives the shutdown command of the SOC chip 22, and when the system receives the shutdown command, it notifies the first MCU module 24, and the second MCU detects the signal state of the SOC chip 22, and if the signal is a shutdown signal, the second MCU controls the first MCU to turn off the circuit switching module 13 to turn off the power supply.
The second MCU module 23 is also a small-sized one and uses the MCU chip as a core circuit, the second MCU module 23 uses a standby power as a power source of the chip, the second MCU module 23 receives a UART signal of the serial UART conversion chip, the second MCU module 23 reads data of the UART module 21 and then sends a corresponding instruction to the first MCU module 24, the second MCU module 23 communicates with the SOC chip 22 through an IO interface to receive a high frequency signal or a low frequency signal of the SOC, thereby acting as a basis whether the SOC chip 22 is in a power-on state or a power-off state.
The second MCU module 23 also adopts a small MCU chip as a core device, the second MCU module 23 adopts the standby power module 12 as a power supply, the second MCU module 23 detects the signal status of the SOC chip 22, and if the SOC chip 22 is in the on state, the second MCU module 23 does not receive the UART signal transmitted from the UAR module, so that the second MCU module 23 does not perform any processing in the on state of the system.
The UART signal transmitted by the UAR module is only received by the SOC chip 22, and when the second MCU module 23 detects that the signal transmitted by the SOC chip 22 is a shutdown signal, the second MCU module 23 receives the UART signal transmitted by the UART module 21.
The second MCU module 23 sends a power-on command after receiving the power-on signal from the UART module 21, the power-on command is transmitted to the first MCU module 24, and the first MCU module 24 sends a signal to the circuit switching module 13 after receiving the power-on command.
When the first MCU module 24 transmits a power-on signal, the circuit switching module 13 turns on the power supply to power on the system, and when the first MCU module 24 transmits a power-off signal, the circuit switching module 13 turns off the power supply to power off the system.
Further, the control unit 2 further includes a serial communication interface, and the serial communication interface is connected with the control device and the external device.
Further, the external device is a portable computer.
Further, the serial communication interface is an RS232 interface.
Specifically, the RS232 interface is a general RS232 interface or other specific interfaces, which mainly include RX, TX, and GND signals, and is a communication window between the system and external devices.
The RS232 interface realizes the connection with equipment such as a computer; the RS232 interface mainly comprises RX, TX and GND signals PIN; the computer and other equipment transmit signals to the RS232 interface through the connecting wire, and the RS232 interface is connected with the system to realize the serial port on-off function.
Further, the power supply unit 1 includes a power supply module 11, a standby power module 12, a circuit switching module 13 and a power management module 14, the power supply module 11 is connected to the standby power module 12, the standby power module 12 is connected to the second MCU module 23, the power management module 14 is connected to the circuit switching module 13, and the SOC chip 22 is connected to the power management module 14.
Specifically, the power supply module 11 provides power for the whole system, and may use a power adapter to supply power or a battery to supply power.
The standby power module 12 may convert the voltage of the power supply module 11 into a required standby voltage using a DC-DC module; the standby power module 12 can also use the LDO to convert the voltage of the citizen-providing module into the required standby voltage, the standby power module 12 needs to provide the power voltage for the first MCU module 24, the second MCU module 23, and the UART module 21, and the standby power module 12 is a key power supply for the system to start the computer through the serial communication interface.
The voltage is led to a standby power supply module 12 after passing through a power supply module 11; the standby power module 12 uses a DC-DC/LDO as a power chip; the voltage input by the power supply module 11 is used as the input voltage of the DC-DC/LDO; outputting the required standby voltage by the DC-DC/LDO; the standby voltage is transmitted to the first MCU module 24, the second MCU module 23 and the UART module 21.
The circuit switching module 13 is a switch for realizing the on/off of the system, the circuit switching module 13 is a circuit for turning on or off the power supply of the power supply module 11, the circuit switching module 13 is connected with the power supply management module 14, and the power supply management module 14 is a main power supply for the system to work when the system is started.
The power management module 14 is a circuit composed of a power management chip PMU/discrete device DC-DC/LDO, and the voltage output by the power management module 14 is a voltage required for the system to operate. The power supply source required by this part of the circuit is all coming from the circuit switching module 13, so the switch of the circuit switching module 13 becomes the switch of the system.
The power management module 14 is composed of PMU/DC-DC/LDO devices; the power management module 14 takes the power after the circuit switching module as a power supply; and taking each path of voltage output by the power management module 14 as a power supply source of the system.
Further, the SOC chip 22 may be replaced with an MCU module.
Specifically, the SOC chip 22 is a core CPU for the system to operate, and may also be a small MCU, and the power supply of the SOC chip 22 is provided by the power management module 14. The SOC chip 22 receives the UART shutdown signal transmitted from the UART module 21, the SOC chip 22 then executes the system instruction, the SOC chip 22 transmits the system instruction to the first MCU module 24, the SOC chip 22 gives an instruction of shutdown state to the second MCU module 23, and enables the first MCU module 24 to receive the shutdown signal, the SOC chip 22 controls the second MCU module 23, and the second MCU module 23 controls the first MCU module 24 to shut down the circuit switching module 13 and stop supplying power.
Further, the power supply module 11 supplies power to the adapter or the battery.
According to another aspect of the present invention, there is provided a control method including the switching control system of the terminal device of any one of the above, the method including the steps of:
s01, the UART module 21 realizes UART transmission of signals to the SOC chip 22 and the second MCU module 23;
s02, the SOC chip 22 receives and recognizes the signal, notifies the computer operating system to start or shut down the software, and makes the first MCU module 24 ready to turn on or off the power supply unit 1;
s03, after the software is turned on or turned off, the second MCU module 23 controls the first MCU module 24 to send a power on or off signal to the circuit switching module 13, and the circuit switching module 13 turns on or off the power supply unit 1.
The working process of the invention mainly enables the computer equipment to control the terminal device to be on and off by using the RS232 interface, wherein the power supply module 11 supplies power to the standby power module 12 and the circuit switching module 13 simultaneously, the standby power module 12 supplies power to the UART module 21, the first MCU module 24 and the second MCU module 23, and the standby voltage exists as long as the power supply module 11 is kept electrified.
The circuit switching module 13 controls the power management module 14 to supply power to the SOC chip 22, the SOC chip 22 is a CPU of the system, the computer can be connected to the system through an RS232 interface, and is connected to the SOC chip 22 and the second MCU module 23 through the UART module 21, the SOC chip 22 is connected to the first MCU and the second MCU through IO interfaces, and the first MCU is connected to the circuit switching module 13.
The computer sends a boot instruction, after passing through the UART module 21, the second MCU module 23 detects the IO port of the SOC chip 22 and recognizes that the system is in a shutdown state, then the second MCU module 23 processes the boot instruction, sends a boot signal to the first MCU module 24, the first MCU module 24 sends a boot signal to the circuit switching module 13, and the circuit switching module 13 is powered on, i.e., the computer controls the system to be booted.
The computer sends a shutdown instruction, after passing through the UART module 21, the second MCU module 23 detects the IO port of the SOC chip 22, recognizes that the product is in a power-on state, and then the second MCU module 23 closes the IO port connected to the UART module 21 without processing any UART signal. The shutdown signal of the UART module 21 at this time is recognized by the SOC chip 22 and read out. The SOC chip 22 triggers a computer system program to perform shutdown processing, and simultaneously sends a shutdown signal to the first MCU module 24, after the computer shutdown is completed, the first MCU module 24 sends a shutdown signal to the circuit switching module 13 under the control of the second MCU, and the circuit switching module 13 disconnects the power supply of the power management module 14, so that the shutdown of the computer control system is realized, that is, a method for controlling the system to be turned on and off by using an RS232 interface is realized.
It should be noted that, in this document, 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 like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. The control system of the terminal equipment is characterized by comprising a power supply unit and a control unit electrically connected with the power supply unit, wherein the power supply unit comprises a circuit switching module, the control unit comprises a UART module, an SOC chip, a second MCU module and a first MCU module, and the first MCU module is connected with the circuit switching module;
the UART module realizes the UART receiving of signals based on the UART receiving function of the UART module;
the UART module realizes UART transmission of SOC chip signals based on the UART transmitting function of the UART module;
the SOC chip receives the signal, and the second MCU module detects whether the signal of the SOC module is an opening signal or a closing signal, and instructs the first MCU module to open or disconnect the circuit switching module, so that the power supply unit supplies power or cuts off the power.
2. The switch control system of the terminal device according to claim 1, wherein the second MCU module detects that the SOC module sends a high frequency signal, and the second MCU module does not receive data as a turn-on signal;
the second MCU module detects that the SOC sends out a low-frequency signal, and the second MCU module receives the signal for closing the signal, and realizes that the signal is sent to the UART of the first MCU module, so that the first MCU module is communicated with the circuit switching module to cut off the power supply of the power supply module.
3. The switch control system of a terminal device according to claim 1, wherein the control unit further comprises a serial communication interface, the serial communication interface being connected with the control device and an external device.
4. The switch control system of a terminal device according to claim 3, wherein the external device is a portable computer.
5. The switch control system of a terminal device according to claim 1, wherein the serial communication interface is an RS232 interface.
6. The switch control system of the terminal device according to claim 1, wherein the power supply unit includes a power supply module, a standby power module, a circuit switching module and a power management module, the power supply module is connected to the standby power module, the standby power module is connected to the second MCU module, the power management module is connected to the circuit switching module, and the SOC chip is connected to the power management module.
7. The switch control system of the terminal device according to claim 1, wherein the SOC chip is replaceable with an MCU module.
8. The switch control system of a terminal device according to claim 1, wherein the power supply module supplies power to an adapter or a battery.
9. A control method characterized by comprising the switching control system of the terminal device according to any one of claims 1 to 8, the method comprising the steps of:
s01, the UART module realizes UART transmission of signals to the SOC chip and the second MCU module;
s02, the SOC chip receives and identifies the signal, informs the computer operating system to start or shut down the software, and makes the first MCU module ready for opening or disconnecting the power supply unit;
and S03, after the software is started or shut down, the second MCU module controls the first MCU module to send a signal of starting or shutting down to the circuit switching module, and the circuit switching module turns on or turns off the power supply unit.
CN202010123852.5A 2020-02-27 2020-02-27 Switch control system of terminal equipment and control method thereof Pending CN111290320A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010123852.5A CN111290320A (en) 2020-02-27 2020-02-27 Switch control system of terminal equipment and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010123852.5A CN111290320A (en) 2020-02-27 2020-02-27 Switch control system of terminal equipment and control method thereof

Publications (1)

Publication Number Publication Date
CN111290320A true CN111290320A (en) 2020-06-16

Family

ID=71025680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010123852.5A Pending CN111290320A (en) 2020-02-27 2020-02-27 Switch control system of terminal equipment and control method thereof

Country Status (1)

Country Link
CN (1) CN111290320A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055492A (en) * 2017-12-20 2018-05-18 深圳市深智电科技有限公司 A kind of HDMI sounds draw piece-rate system and method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055492A (en) * 2017-12-20 2018-05-18 深圳市深智电科技有限公司 A kind of HDMI sounds draw piece-rate system and method

Similar Documents

Publication Publication Date Title
US7023357B2 (en) Pluggable mechanism for wireless remote control
CN109218785B (en) Awakening method and system for intelligent television in standby state
US5463261A (en) Power conservation device for a peripheral interface module
US6230277B1 (en) Peripheral device for reducing power supplied from a host device and control method thereof
US7930571B2 (en) Information processing apparatus and power control method
CN105932733B (en) OTG power supply and its method of supplying power to, OTG equipment and mobile communication equipment
US20110266874A1 (en) Device arrangement comprising an electronic device and a power adapter and method for connecting a power adapter
CN101387843A (en) Power control system
EP2220744A2 (en) Device, system and method that decreasing standby power of electronic appliance and receptacle
KR100460951B1 (en) Printer capable of controlling power supply by a host
US20020050936A1 (en) USB machine
CN101465600B (en) Electronic equipment and power supply device thereof
CN202077124U (en) Television and standby control circuit thereof
CN108762159A (en) A kind of industrial personal computer rebooting device, system and method
CN201203775Y (en) Standby control circuit
US11372470B2 (en) Control system for controlling intelligent system to reduce power consumption based on bluetooth device
CN111290320A (en) Switch control system of terminal equipment and control method thereof
CN111629424B (en) Power management method, corresponding system and device
CN201118273Y (en) Power supply management circuit
CN103543643A (en) Electric appliance standby power saving control circuit
CN101261534B (en) Bidirectional wireless perimeter set electricity-saving method
CN103779884B (en) Electronic device and electronic system
US20220271568A1 (en) Nfc charging
CN213368158U (en) Equipment configuration and firmware upgrading equipment based on NFC
CN115016624A (en) Electronic equipment and electronic equipment set

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