CN107608492A - The method of controlling switch and device of terminal device - Google Patents
The method of controlling switch and device of terminal device Download PDFInfo
- Publication number
- CN107608492A CN107608492A CN201710787141.6A CN201710787141A CN107608492A CN 107608492 A CN107608492 A CN 107608492A CN 201710787141 A CN201710787141 A CN 201710787141A CN 107608492 A CN107608492 A CN 107608492A
- Authority
- CN
- China
- Prior art keywords
- signal
- power
- terminal device
- transmssion line
- line
- 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
Links
Landscapes
- Remote Monitoring And Control Of Power-Distribution Networks (AREA)
Abstract
Present invention is disclosed a kind of method of controlling switch of terminal device and device, the terminal device is attached by one group of signal transmssion line and main frame.Transmitted by the signal on detection signal transmission line, when detecting the signal Transmission on signal transmssion line, a power-off signal is produced by terminal device.According to the plant-grid connection of power-off signal disconnected end equipment, equipment of closing a terminal.The program determines the on-off state of terminal device according to the signal of main frame and terminal device transmission situation, and can close a terminal equipment automatically when main frame shuts down, and avoids repeating power-off operation, improves the convenience of terminal device switch control.
Description
Technical field
This disclosure relates to Computer Applied Technology field, the method for controlling switch and dress of more particularly to a kind of terminal device
Put.
Background technology
For the computer system by terminal device and main machine coordination working, generally provided the user by terminal device man-machine
Interactive interface simultaneously carries out data acquisition.Data analysis is carried out by main frame service data processing main program.Terminal device and main frame lead to
Cross signal transmssion line and carry out data exchange and communication.
When terminal device and main machine coordination working, the on-off state of terminal device should be consistent with main frame.I.e.
When main frame is in open state, terminal device should also be as being in open state, and when main frame is in off-mode, terminal is set
It is standby to should also be as closing, it otherwise will cause energy waste.
In the prior art, the electric power system of terminal device and main frame is probably each independent.I.e. main frame only with terminal system
System is communicated and data exchange, but does not provide plant-grid connection for terminal device.Now, can not if being simply turned off main frame
Terminal device is powered off immediately, but needs individually to interrupt the power supply of terminal device.This repetition operation not only adds
The burden of operating personnel, and terminal device is powered off if operating personnel forget after main frame is closed, it will also cause pole
Big energy waste.
The content of the invention
In order to avoid present in correlation technique can not conveniently, in time close a terminal equipment the problem of, present disclose provides
The method of controlling switch and device of a kind of terminal device.
A kind of method of controlling switch of terminal device, the terminal device are connected by one group of signal transmssion line and main frame
Connect, including:
Detect the signal transmission on the signal transmssion line;
When detecting the signal Transmission on the signal transmssion line, the terminal device produces a power-off letter
Number;
The plant-grid connection of the terminal device is disconnected according to the power-off signal, closes the terminal device.
In a wherein exemplary embodiment, the signal transmission on the detection signal transmssion line, including:
The transmission reference voltage on the signal transmssion line is detected, the transmission reference voltage indicates the signal transmssion line
On signal transmission;
When detecting that the electrical reference signal is forced down in preset voltage value, judge that the signal on the signal transmssion line passes
Defeated interruption.
In a wherein exemplary embodiment, the power supply that the terminal device is disconnected according to the power-off signal connects
Enter, close the terminal device, including:
The power-supply controller of electric of the terminal device itself configuration is the terminal according to power-off signal line of cutting off the electricity supply
The electric current of equipment input.
In a wherein exemplary embodiment, the signal transmssion line and the power line are connected by same connector
The terminal device is connected to, the connector includes connecting the signal pins of the signal transmssion line and connects the power line
Power pins;
Signal transmission on the detection signal transmssion line includes:
The magnitude of voltage that the power pins receive is detected, obtains the transmission reference voltage on the signal transmssion line;
The plant-grid connection that the terminal device is disconnected according to the power-off signal includes:
The power pins and the electrical connection of the terminal device are disconnected according to the power-off signal.
In a wherein exemplary embodiment, the power-supply controller of electric is a power conversion chip.
In a wherein exemplary embodiment, the signal transmssion line is usb signal line.
A kind of power supply control apparatus of terminal device, the terminal device are connected by one group of signal transmssion line and main frame
Connect, described device includes:
Detection module, for detecting the transmission of the signal on the signal transmssion line;
Power-off signal generation module, for when detecting the signal Transmission on the signal transmssion line, the end
End equipment produces a power-off signal;
Power-off modular, for disconnecting the plant-grid connection of the terminal device according to the power-off signal, close the terminal
Equipment.
In a wherein exemplary embodiment, the power-off signal generation module, including:
Detection unit, for detecting the transmission reference voltage on the signal transmssion line, the electrical reference signal pressure instruction
Signal transmission on the signal transmssion line;
Judging unit, for when detecting that the transmission reference voltage is less than preset voltage value, judging that the signal passes
Signal Transmission on defeated line.
In a wherein exemplary embodiment, the power-off modular includes:
Power-off unit, the power-supply controller of electric for the terminal device itself configuration are cut off the electricity supply according to the power-off signal
Line is the electric current of terminal device input.
In a wherein exemplary embodiment, the signal transmssion line and the power line are connected by same connector
The terminal device is connected to, the connector includes connecting the signal pins of the signal transmssion line and connects the power line
Power pins;
The detection unit also includes signal pins detection sub-unit, the electricity received for detecting the signal pins
Pressure, obtains the transmission reference voltage on the signal transmssion line;
The power-off unit also includes power pins power-off subelement, for disconnecting the power supply according to the power-off signal
The electrical connection of pin and the terminal device.
The technical scheme provided by this disclosed embodiment can include the following benefits:By on detection signal transmission line
Signal transmission, when detecting the signal Transmission on signal transmssion line, by terminal device produce a power-off signal.Root
According to the plant-grid connection of power-off signal disconnected end equipment, equipment of closing a terminal.Feelings are transmitted according to the signal of main frame and terminal device
Condition, the on-off state of terminal device is determined, the equipment so that proper main frame can close a terminal automatically when shutting down, avoid repeating to close
Machine operates, and improves the convenience of terminal device switch control.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited
It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention
Example, and in specification together for explaining principle of the invention.
Fig. 1 is the flow chart of the method for controlling switch of the terminal device shown in an exemplary embodiment.
Fig. 2 is that a kind of of step 110 in the method that Fig. 1 correspondingly implements to exemplify implements flow chart.
Fig. 3 is the circuit theory schematic diagram of the method for controlling switch of the terminal device shown in an exemplary embodiment.
Fig. 4 is the block diagram of the power supply control apparatus of the terminal device shown in an exemplary embodiment.
Fig. 5 is the block diagram for correspondingly implementing the detection module 410 in the device that exemplifies according to Fig. 4 in one embodiment.
Fig. 6 is the details block diagram of the detection unit 411 in the detection module 410 shown in another exemplary embodiment.
Embodiment
Here explanation will be performed to exemplary embodiment in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is the flow chart of the method for controlling switch of the terminal device according to an exemplary embodiment.Such as Fig. 1 institutes
Show, this method comprises the following steps:
In step 110, the signal transmission on detection signal transmission line.
Signal transmssion line, refer to that being used for terminal device and main frame carries out communication and data exchange and meet communications standard-specific
Electrical signal line.For example, USB line or HDMI wire.Generally, signal transmssion line includes signal wire and power line.Meet USB standard
Signal transmssion line include 2 data lines, 1 power line and 1 ground wire.Terminal device can be adopted for ID card information
Collect the data collection station of input, or the information acquisition terminal such as fingerprint collecting, handwriting input.Main frame can be common desk-top
Computer or server.Main frame is attached by signal transmssion line and terminal device.
The transmission reference voltage of reference power line on detection signal transmission line, if detecting that transmission reference voltage is less than
Some is specifically worth, then can be determined that the signal Transmission on signal transmssion line.Or believe in direct detection signal transmission line
The signal voltage of number line.USB line has positive and negative two signal wires, just would know that signal passes by detecting any one signal wire
Signal transmission situation on defeated line.For example, the signal voltage if detecting any one signal wire is in a setting time
Inside it is continuously zero, you can know that the transmission of the signal on signal transmssion line has been interrupted.
In step 130, when detecting the signal Transmission on signal transmssion line, the terminal device produces one
Power-off signal.
When detecting the signal Transmission on signal transmssion line, a power-off signal is produced by terminal device.Should
Power-off signal can be produced by the processor of the terminal device, can also be by the power-supply controller of electric that is installed in terminal device
Produce.
In a specific embodiment, the input using the transmission reference voltage on signal transmssion line as power-supply controller of electric
Enable signal.When input of the transmission reference voltage less than power-supply controller of electric enables voltage, reference voltage will be transmitted as enabled
Signal is input to power-supply controller of electric to close power-supply controller of electric.By regarding the input enable signal of power-supply controller of electric as interruption letter
Number, the plant-grid connection of disconnected end equipment.
In step 150, according to the plant-grid connection of power-off signal disconnected end equipment, equipment of closing a terminal.
By the way that power-off signal to be input to the power-supply controller of electric of terminal device, power-supply controller of electric controls eventually according to power-off signal
End equipment disconnects external power source access, so as to equipment of closing a terminal.
In a specific embodiment, signal transmssion line is USB line, and the transmission reference voltage of USB line is input into electricity
The switch of source controller enables pin.In USB line normal operating conditions, transmission reference voltage is more than the enabled electricity of power-supply controller of electric
Pressure, you can open power-supply controller of electric.When the Transmission on USB line, transmission reference voltage makes less than power-supply controller of electric
Energy voltage, power-supply controller of electric are closed.Now, by closing power-supply controller of electric, the plant-grid connection of disconnected end equipment.
Fig. 2 is that a kind of of step 110 in the method that Fig. 1 correspondingly implements to exemplify implements flow chart.
In step 111, the transmission reference voltage on detection signal transmission line, reference voltage indication signal transmission line is transmitted
On signal transmission.
By detecting the transmission reference voltage of reference power line in USB line, if the transmission reference voltage detected is far low
In 5V normal voltage, then it can determine that the transmission of the signal on signal transmssion line has been interrupted.
In a specific embodiment, signal transmssion line is USB line.Transmission reference voltage on signal transmssion line is
5V.When transmission reference voltage is higher than 4.5V, the signal transmission on indication signal transmission line is normal.When transmission reference voltage is less than
During 4.5V, the signal transmission on indication signal transmission line is interrupted.
In step 113, when detecting that transmission reference voltage is less than preset voltage value, the letter on signal transmssion line is judged
Number Transmission.
In a specific embodiment, signal transmssion line is USB line, when signal transmssion line normal work, on USB line
Transmission reference voltage be 5V.The transmission reference voltage of reference power line in USB line is detected, if the transmission detected is with reference to electricity
Normal voltage of the pressure far below 5V, then it can determine that the transmission of the signal on signal transmssion line has been interrupted.
It is described to be broken according to the power-off signal in the method for controlling switch of the terminal device shown in an exemplary embodiment
The plant-grid connection of the terminal device is opened, closes the terminal device, includes the power-supply controller of electric root of terminal device itself configuration
According to the power-off signal cut off the electricity supply line be terminal device input electric current.
In a specific embodiment, Fig. 3 is the circuit theory schematic diagram of the method for controlling switch of terminal device.Such as figure
Shown in 3, power-supply controller of electric is the power conversion chip for being integrated with electronic switch.Outside 12V power inputs to power-supply controller of electric,
For power terminal equipment.When the transmission reference voltage on the USB line being connected with main frame is higher than 5V, power-supply controller of electric, which is in, to be opened
State, external power source access terminal equipment, it is power terminal equipment.When the transmission reference voltage on the USB line being connected with main frame
During less than 5V, power-supply controller of electric to be closed by electronic switch so that terminal device electrically connects with the separated of external power source, from
And the power supply of terminal device is cut off, equipment of closing a terminal.
Wherein, signal transmssion line and the power line are connected to the terminal device, the company by same connector
Connecing device includes connecting the signal pins of the signal transmssion line and connects the power pins of the power line.
Optionally, the signal transmission that step 110 is detected on the signal transmssion line includes:
The voltage that detection signal pin receives, obtain the transmission reference voltage on signal transmssion line.
Wherein, the transmission reference voltage on the signal transmssion line can be the voltage of reference power source in signal transmssion line,
It can also be signal voltage.For reference voltage, because magnitude of voltage is constant DC voltage.Therefore, signal pins pole is passed through
Easily detection obtains.And for the signal voltage in signal transmssion line, due to being alternating voltage during signal normal transmission,
It can be detected in signal pins annex by increasing a storage capacitor.
Step 150 is according to the plant-grid connection of power-off signal disconnected end equipment, equipment of closing a terminal, including:
According to the electrical connection of power-off signal deenergization pin and terminal device.
In a specific embodiment, when the signal Transmission on power-off signal indication signal transmission line, pass through
Electronic switch deenergization pin and the electrical connection of itself in power-supply controller of electric, so that the 12V voltages of external power source input are not
Connector, power-supply controller of electric incoming terminal equipment can be passed through.Wherein, electronic switch can be high-power MOS FET device or collection
Into the electronic switch inside power-supply controller of electric.
Fig. 4 is the block diagram of the power supply control apparatus of the terminal device shown in an exemplary embodiment.As shown in figure 4, the dress
Put including but not limited to:Detection module 410, power-off signal generation module 430, power-off modular 450.
Detection module 410, for detecting the transmission of the signal on the signal transmssion line;
Power-off signal generation module 430, it is described for when detecting the signal Transmission on the signal transmssion line
Terminal device produces a power-off signal;
Power-off modular 450, for disconnecting the plant-grid connection of the terminal device according to the power-off signal, close the end
End equipment.
Fig. 5 is the block diagram for correspondingly implementing the detection module 410 in the device that exemplifies according to Fig. 4 in one embodiment.Such as
Shown in Fig. 5, the detection module 410 includes but is not limited to:Detection unit 411, judging unit 412.
Detection unit 411, for detecting the transmission reference voltage on the signal transmssion line, the electrical reference signal pressure refers to
Show the signal transmission on the signal transmssion line;
Judging unit 412, for when detecting that the electrical reference signal is forced down in preset voltage value, judging the signal
Signal Transmission on transmission line.
In a kind of exemplary embodiment, the power-off modular 450 includes:
Power-off unit, the power-supply controller of electric for being configured by the terminal device itself are cut off according to the power-off signal
Power line is the electric current of terminal device input.
In a kind of exemplary embodiment, the signal transmssion line and the power line are connected to by same connector
The terminal device, the connector include connecting the signal pins of the signal transmssion line and connect the power supply of the power line
Pin;
Wherein, it is described for detecting as shown in fig. 6, the detection unit 411 includes signal pins detection sub-unit 4111
The voltage that signal pins receive, obtain the transmission reference voltage on the signal transmssion line;
The power-off unit also includes power pins power-off unit, draws for disconnecting the power supply according to the power-off signal
The electrical connection of pin and the terminal device.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being performed without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (10)
1. a kind of method of controlling switch of terminal device, the terminal device is connected by one group of signal transmssion line and main frame
Connect, it is characterised in that including:
Detect the signal transmission on the signal transmssion line;
When detecting the signal Transmission on the signal transmssion line, the terminal device produces a power-off signal;
The plant-grid connection of the terminal device is disconnected according to the power-off signal, closes the terminal device.
2. according to the method for claim 1, it is characterised in that the signal transmission on the detection signal transmssion line,
Including:
The transmission reference voltage on the signal transmssion line is detected, the transmission reference voltage is indicated on the signal transmssion line
Signal transmits;
When detecting that the transmission reference voltage is less than preset voltage value, judge in the signal transmission on the signal transmssion line
It is disconnected.
3. according to the method for claim 2, it is characterised in that described that the terminal device is disconnected according to the power-off signal
Plant-grid connection, close the terminal device, including:
The power-supply controller of electric of the terminal device itself configuration is the terminal device according to power-off signal line of cutting off the electricity supply
The electric current of input.
4. according to the method for claim 3, it is characterised in that the signal transmssion line and the power line pass through same
Connector is connected to the terminal device, and the connector includes connecting described in signal pins and the connection of the signal transmssion line
The power pins of power line;
Signal transmission on the detection signal transmssion line includes:
The voltage that the signal pins receive is detected, obtains the transmission reference voltage on the signal transmssion line;
The plant-grid connection that the terminal device is disconnected according to the power-off signal includes:
The power pins and the electrical connection of the terminal device are disconnected according to the power-off signal.
5. according to the method for claim 3, it is characterised in that the power-supply controller of electric is a power conversion chip.
6. according to the method for claim 1, it is characterised in that the signal transmssion line is USB line.
7. a kind of power supply control apparatus of terminal device, the terminal device is connected by one group of signal transmssion line and main frame
Connect, it is characterised in that described device includes:
Detection module, for detecting the transmission of the signal on the signal transmssion line;
Power-off signal generation module, for when detecting the signal Transmission on the signal transmssion line, the terminal to be set
It is standby to produce a power-off signal;
Power-off modular, for disconnecting the plant-grid connection of the terminal device according to the power-off signal, close the terminal device.
8. device according to claim 6, it is characterised in that the detection module includes:
Detection unit, it is described to transmit described in reference voltage instruction for detecting the transmission reference voltage on the signal transmssion line
Signal transmission on signal transmssion line;
Judging unit, for when detecting that the transmission reference voltage is less than preset voltage value, judging the signal transmssion line
On signal Transmission.
9. device according to claim 7, it is characterised in that the power-off modular includes:
Power-off unit, the power-supply controller of electric for being configured by the terminal device itself are cut off the electricity supply according to the power-off signal
Line is the electric current of terminal device input.
10. device according to claim 8, the signal transmssion line and the power line are connected by same connector
To the terminal device, the connector includes connecting the signal pins of the signal transmssion line and connects the electricity of the power line
Source pin;
The detection unit includes signal pins detection sub-unit, the voltage received for detecting the signal pins, obtains
Transmission reference voltage on the signal transmssion line;
The power-off unit also includes power pins power-off unit, for according to the power-off signal disconnect the power pins with
The electrical connection of the terminal device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710787141.6A CN107608492A (en) | 2017-09-04 | 2017-09-04 | The method of controlling switch and device of terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710787141.6A CN107608492A (en) | 2017-09-04 | 2017-09-04 | The method of controlling switch and device of terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107608492A true CN107608492A (en) | 2018-01-19 |
Family
ID=61057479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710787141.6A Pending CN107608492A (en) | 2017-09-04 | 2017-09-04 | The method of controlling switch and device of terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107608492A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114904719A (en) * | 2022-05-07 | 2022-08-16 | 苏州希盟智能装备有限公司 | Piezoelectric type glue valve control method, device and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1300973A (en) * | 1999-12-23 | 2001-06-27 | 国际商业机器公司 | Remote control for power supply |
CN1405657A (en) * | 2001-09-15 | 2003-03-26 | Lg电子株式会社 | Power source control device of equipment connecting to serial bus |
CN1490693A (en) * | 2002-09-18 | 2004-04-21 | ���ǵ�����ʽ���� | Power supply with cutting electronic apparatus and power supply controller |
CN101105710A (en) * | 2006-07-12 | 2008-01-16 | 乐金电子(昆山)电脑有限公司 | USB apparatus control device and method |
CN106325463A (en) * | 2016-08-16 | 2017-01-11 | Tcl移动通信科技(宁波)有限公司 | Power saving control system and power saving control method of USB peripheral |
-
2017
- 2017-09-04 CN CN201710787141.6A patent/CN107608492A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1300973A (en) * | 1999-12-23 | 2001-06-27 | 国际商业机器公司 | Remote control for power supply |
CN1405657A (en) * | 2001-09-15 | 2003-03-26 | Lg电子株式会社 | Power source control device of equipment connecting to serial bus |
CN1490693A (en) * | 2002-09-18 | 2004-04-21 | ���ǵ�����ʽ���� | Power supply with cutting electronic apparatus and power supply controller |
CN101105710A (en) * | 2006-07-12 | 2008-01-16 | 乐金电子(昆山)电脑有限公司 | USB apparatus control device and method |
CN106325463A (en) * | 2016-08-16 | 2017-01-11 | Tcl移动通信科技(宁波)有限公司 | Power saving control system and power saving control method of USB peripheral |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114904719A (en) * | 2022-05-07 | 2022-08-16 | 苏州希盟智能装备有限公司 | Piezoelectric type glue valve control method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2016218972A (en) | USB hub device | |
CN104778140B (en) | System and method are connected in the USB automatic identification of starlike framework | |
CN101340110A (en) | USB OTC device power source and implementing method thereof | |
CN110492562B (en) | Mobile power supply equipment, power supply control method and device thereof, and power supply equipment | |
CN107665036B (en) | Electric power supply control system | |
CN106526403A (en) | Terminal leak current detection circuit, terminal and terminal leak current detection system | |
CN104268044A (en) | Method and device for performing loop test on normal startup and shutdown of server system | |
CN107608492A (en) | The method of controlling switch and device of terminal device | |
CN110687475A (en) | Remote fault diagnosis circuit, detection method and multi-split air conditioning unit | |
CN202693709U (en) | Test tool and test system of electric equipment | |
CN104393660A (en) | Zero-standby-power-consumption charger and circuit control method thereof | |
CN114256897A (en) | Power supply device, power supply method, and power supply system | |
CN105684234B (en) | Electric device and method are cut off using the stand-by power consumption of speech recognition | |
CN104317761A (en) | Multi-interface mobile security equipment with power management and operation method of multi-interface mobile security equipment | |
CN213275820U (en) | Annular bus circuit of automatic fire alarm system | |
CN105700983B (en) | A kind of judgment method of USBKey and USBKey operating mode | |
CN106656131A (en) | Financial self-service device and power supply switch control circuit thereof | |
CN207901802U (en) | Mobile phone liquid crystal screen repairs all-in-one machine | |
CN104237807A (en) | Inverter system for monitoring state of storage battery and monitoring method | |
CN108683031A (en) | Intelligent plug and its control method, the wiring board with intelligent plug | |
CN103837814B (en) | Tester | |
CN103300156B (en) | Bean curd machine and machine head detection method | |
CN102354872A (en) | Intelligent socket and control method thereof | |
CN218102586U (en) | Get electric circuit system and get electric equipment | |
CN105098722A (en) | Power supply device with input voltage detection function, and operation method thereof |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180119 |