CN104375612B - A kind of electronic equipment - Google Patents

A kind of electronic equipment Download PDF

Info

Publication number
CN104375612B
CN104375612B CN201310349809.0A CN201310349809A CN104375612B CN 104375612 B CN104375612 B CN 104375612B CN 201310349809 A CN201310349809 A CN 201310349809A CN 104375612 B CN104375612 B CN 104375612B
Authority
CN
China
Prior art keywords
electronic equipment
terminal
switching
supply unit
switching switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310349809.0A
Other languages
Chinese (zh)
Other versions
CN104375612A (en
Inventor
张瑛博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310349809.0A priority Critical patent/CN104375612B/en
Publication of CN104375612A publication Critical patent/CN104375612A/en
Application granted granted Critical
Publication of CN104375612B publication Critical patent/CN104375612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electronic Switches (AREA)

Abstract

The invention discloses a kind of electronic equipment, the technical problem of electric energy can not be obtained from master control electronic equipment by proposed standard serial ports for solving controlled peripheral electronic device present in prior art.The electronic equipment includes:Power supply unit;There is first serial, the first serial each terminal in N number of terminal, N number of terminal to be non-powered terminal according to the port definition of the first serial, wherein, N is positive integer;First connection unit, first connection unit is connected with the specified terminal in said supply unit and N number of terminal respectively;Wherein, when the second electronic equipment is connected to the electronic equipment by the second serial matched with the first serial, said supply unit is connected to second electronic equipment by first connection unit and the specified terminal, and then to second power electronic equipment.

Description

A kind of electronic equipment
Technical field
The present invention relates to electronic technology field, more particularly to a kind of electronic equipment.
Background technology
With continuing to develop for computer technology, computer autocontrol technique is more and more ripe, is widely used in industry The fields such as production, financial service and broadcasting and TV Broadcast Control, the production and living given people bring facility.
At present, in computer controlled automatic field, computer is mainly carried out by serial ports and parallel port with controlled ancillary equipment Data transfer.Compared with serial ports, although the transmission speed of parallel port faster, it can be difficult to interference problem when overcoming channel transmission And the asynchronous problem of interchannel, limit the application of simultaneously vocal imitation skill.And serial communication is due to transmission range length, shielding Property it is good and be easy to correct error code, had a wide range of applications in computer controlled automatic field.
But in present inventor during technical scheme in realizing the embodiment of the present application, at least find above-mentioned There is following technical problem in prior art:
Because in proposed standard serial ports, such as RS-232, RS-422 and RS-485, the electrical characteristic of a docking port make rule It is fixed, without regard to connector, cable or agreement, according to the port definition of proposed standard serial ports, all ends of proposed standard serial ports Son is non-powered terminal.Therefore, the controlled ancillary equipment being connected with master control electronic equipment can not be obtained by master control electronic equipment Electric energy is obtained, and must be powered by setting external powering device, such as power line and adapter.That is, deposit in the prior art Controlled peripheral electronic device can not by proposed standard serial ports by master control power electronic equipment technical problem.
The content of the invention
The embodiment of the present application is by providing a kind of electronic equipment, to solve to be controlled peripheral electron present in prior art Equipment can not realize controlled ancillary equipment by pushing away by proposed standard serial ports by the technical problem of master control power electronic equipment Recommend technique effect of the standard serial port by master control power electronic equipment.
The embodiment of the present application provides a kind of electronic equipment, including:Power supply unit;First serial, the first serial has N Each terminal in individual terminal, N number of terminal is non-powered terminal according to the port definition of the first serial, its In, N is positive integer;First connection unit, first connection unit respectively with said supply unit and N number of terminal Specify terminal connection;Wherein, when the second electronic equipment by the second serial matched with the first serial is connected to the electricity During sub- equipment, said supply unit is connected to second electronics by first connection unit and the specified terminal and set It is standby, and then to second power electronic equipment;
Wherein, when N is the integer more than or equal to 2, first connection unit is specifically included:Input port, it is and described Power supply unit is connected;First switching switch, is connected with the input port;Wherein, needing to supply to second electronic equipment When electric, said supply unit is connected to by the specified terminal by the described first switching switch, and then make said supply unit Second power electronic equipment is given by the described first switching switch, the input port and the specified terminal.
Preferably, the electronic equipment also includes:First switching key, is connected with the described first switching switch;Wherein, when When user carries out the first handover operation on first switching key, first switching key can respond first switching Operation, generates the first switching signal, and the first switching switch makes said supply unit by performing first switching signal Switching is switched by the described first switching and is connected to the specified terminal, so that said supply unit gives second electronic equipment Power supply.
Preferably, the electronic equipment also includes:Detect circuit, the detection circuit with it is each in N number of terminal Terminal is connected, for being obtained when the first serial is connected with the second serial from the i-th terminal test in N number of terminal Must be used for showing said supply unit whether the i-th feedback signal being powered to second electronic equipment, i be less than Any positive integer equal to N;Control unit, is connected with the detection circuit and the first switching switch respectively;Wherein, in institute When stating the i-th feedback signal and showing that said supply unit is powered to second electronic equipment, i-th terminal is determined For the specified terminal, so that said supply unit switchs switching by the described first switching is connected to i-th terminal, so that Said supply unit gives second power electronic equipment.
Preferably, described control unit is used to show said supply unit not to described the in i-th feedback signal When two electronic equipments are powered, i-th of switching command is generated based on i-th feedback signal;The first switching switch is used In by performing i-th of switching command, make the first switching switch switching be connected in N number of terminal with it is described The different jth terminal of i-th terminal, j is less than or equal to N and is not equal to i any positive integer;The detection circuit is used for from jth Terminal test obtain be used for showing said supply unit whether the jth feedback letter being powered to second electronic equipment Number, when the jth feedback signal shows that said supply unit is powered to second electronic equipment, it is determined that described Jth terminal is the specified terminal, so that said supply unit switchs switching by the described first switching is connected to the jth end Son, so that said supply unit gives second power electronic equipment.
Preferably, the electronic equipment also includes:Memory cell, is connected with described control unit, for storing the control I-th feedback signal and the jth feedback signal that unit processed is received, so that described control unit can be in the jth When feedback signal shows that said supply unit is not powered to second electronic equipment, based on i-th feedback signal J-th of switching command is generated with the jth feedback signal, indicates that the first switching switch switching is connected to N number of terminal In the kth terminal for being different from i-th terminal and the jth terminal, k be less than or equal to N and be not equal to i and j it is any just Integer.
Preferably, when N is the integer more than or equal to 2, the electronic equipment also includes:Signal element;Second connection is single Member, second connection unit is connected with the data terminal in the signal element and N number of terminal respectively;Wherein, institute is worked as When stating first serial and being connected with the second serial, the signal element passes through second connection unit and the data terminal Second electronic equipment is connected to, and then the electronic equipment is carried out data transmission with second electronic equipment.
Preferably, second connection unit is specifically included:Second input port, is connected with the signal element;Second Switching switch, is connected with second input port;The electronic equipment also includes:Second switching key, cuts with described second Change switch connection;Wherein, when user carries out the second handover operation on second switching key, second switching key Second handover operation can be responded, the second switching signal is generated, the second switching switch is by performing second switching Signal, makes the signal element switch switching by the described second switching and is connected to the data terminal, so that the electronics is set It is standby to carry out data transmission with second electronic equipment.
Preferably, the electronic equipment also includes:Signal element;Second connection unit, the second connection unit difference It is connected with the data terminal in the signal element and N number of terminal;
Wherein, when the first serial is connected with the second serial, the signal element is connected by described second Unit and the data terminal are connected to second electronic equipment, and then make the electronic equipment and second electronic equipment It can carry out data transmission.
Preferably, second connection unit is specifically included:Second input port, is connected with said supply unit;Second Switching switch, is connected with the input port;Wherein, it is determined that i-th terminal be specify terminal after, it is described detection circuit also For being obtained from the m terminal tests in N number of terminal for showing that can the electronic equipment set with second electronics The standby class feedback signals of m bis- carried out data transmission, m is less than or equal to N and is not equal to i any positive integer;In the m bis- When class feedback signal shows that the electronic equipment can carry out data transmission with second electronic equipment, the m ends are determined Son is the data terminal, so that said supply unit switchs switching by the described second switching is connected to the m terminals, with The electronic equipment is set to carry out data transmission with second electronic equipment.
Preferably, described control unit is additionally operable to show that the electronic equipment can not be with the class feedback signals of m bis- When second electronic equipment carries out data transmission, m-th of switching command is generated based on the class feedback signals of m bis-;It is described Second switching switch is used to, by performing m-th of switching command, be connected to the second switching switch switching described N number of The n-th terminals different from the m terminals in terminal, n is less than or equal to N and is not equal to i and m any positive integer;It is described Detection circuit is used to obtain for showing that can the electronic equipment enter line number with second electronic equipment from m terminal tests According to the n-th two class feedback signals of transmission, show that the electronic equipment can be with the described second electricity in the n-th two class feedback signal When sub- equipment carries out data transmission, it is the data terminal to determine the n-th terminal, so that said supply unit passes through described the Two switching switch switchings are connected to the n-th terminal, so that the electronic equipment can enter line number with second electronic equipment According to transmission.
Preferably, the memory cell is additionally operable to store the class feedback signals of the m bis- that described control unit is received And the n-th two class feedback signal, so that described control unit can show that the electronics is set in the n-th two class feedback signal It is standby when can not carry out data transmission with second electronic equipment, it is anti-based on the class feedback signals of m bis- and the n-th two class Feedback signal generates n-th of switching command, indicates that the first switching switch switching is connected in N number of terminal and is different from institute State the i-th terminal and the m terminals and the pth terminal of the n-th terminal, p is less than or equal to N and is not equal to appointing for i and m and n One positive integer.
Preferably, the electronic equipment also includes:Signal element;Second connection unit, second connection unit includes: Second switching switch;And the 4th switching switch, with described second switching switch be connected, and it is changeable connect said supply unit or The signal element;The input port is specially the 3rd switching switch, changeable connection said supply unit or the signal Unit;Wherein, described control unit be used for it is determined that i-th terminal be the designated ends period of the day from 11 p.m. to 1 a.m, to the described 4th switching open Pass sends the 4th switching command, the 4th switching switch switching is connected to the signal element;The detection circuit is also used Obtained in from the m terminal tests in N number of terminal for showing that can the electronic equipment with second electronic equipment The class feedback signals of m bis- carried out data transmission, m is less than or equal to N and is not equal to i any positive integer;In the classes of m bis- When feedback signal shows that the electronic equipment can carry out data transmission with second electronic equipment, the m terminals are determined For the data terminal in N number of terminal, so that the signal element passes through, the described 4th switching is switched and described second switches Switch switching is connected to the m terminals, so that the electronic equipment can carry out data transmission with second electronic equipment.
Preferably, described control unit is additionally operable to show that the electronic equipment can not be with the class feedback signals of m bis- When second electronic equipment carries out data transmission, described control unit is generated m-th based on the class feedback signals of m bis- and cut Change instruction;The second switching switch is used to, by performing m-th of switching command, connect the second switching switch switching It is connected to the n-th terminals different from the m terminals in N number of terminal, n is less than or equal to N and is not equal to m and i any Positive integer;The detection circuit is used to obtain for showing that can the electronic equipment with the described second electricity from m terminal tests The n-th two class feedback signals that sub- equipment carries out data transmission, show that the electronic equipment can in the n-th two class feedback signal When carrying out data transmission with second electronic equipment, it is the data terminal to determine the n-th terminal, so that the power supply is single Member is connected to the n-th terminal by the described 4th switching switch and the second switching switch switching, so that the electronics is set It is standby to carry out data transmission with second electronic equipment.
Preferably, the electronic equipment also includes the memory cell being connected with described control unit:The memory cell is used In the class feedback signals of the m bis- that receive of storage described control unit and the n-th two class feedback signal, so that the control Unit processed can show that the electronic equipment can not carry out data with second electronic equipment in the n-th two class feedback signal During transmission, n-th of switching command is generated based on the class feedback signals of m bis- and the n-th two class feedback signal, indicated described First switching switch switching, which is connected in N number of terminal, is different from i-th terminal and the m terminals and described n-th The pth terminal of terminal, p is less than or equal to N and is not equal to i and m and n any positive integer.
Preferably, described control unit is used to show said supply unit not to described the in i-th feedback signal When two electronic equipments are powered, the second switching command is generated based on i-th feedback signal, the 3rd switching switch is cut Change and be connected to the signal element;The detection circuit is additionally operable to obtain for showing the electronics from i-th terminal test The i-th two class feedback signals that can equipment carry out data transmission with second electronic equipment;In the i-th two class feedback signal When showing that the electronic equipment can carry out data transmission with second electronic equipment, it is the number to determine i-th terminal According to terminal, so that said supply unit switchs switching by the described first switching is connected to i-th terminal, so that the electronics Equipment can carry out data transmission with second electronic equipment;Described control unit is additionally operable to the described 4th switching switch hair Go out the 3rd switching command, the 4th switching switch is connected to said supply unit;The detection circuit is additionally operable to from described M terminal tests, which are obtained, to be used for showing that the m whether said supply unit is powered to second electronic equipment is anti- Feedback signal;When the m feedback signals show that said supply unit is powered to second electronic equipment, it is determined that The m terminals are the specified terminal, so that said supply unit passes through the described 4th switching switch and second switching Switch switching is connected to the m terminals, so that said supply unit gives second power electronic equipment.
Preferably, described control unit is additionally operable to show that the electronic equipment can not be with the i-th two class feedback signal When second electronic equipment carries out data transmission, described control unit is based on the i-th two class feedback signal and generated i-th to cut Change instruction;The first switching switch is used to, by performing i-th of switching command, connect the first switching switch switching The jth terminals different from i-th terminal in N number of terminal are connected to, j is less than or equal to N and is not equal to any just whole of i Number;Described control unit is additionally operable to send the first switching command to the described 3rd switching switch, connects the 3rd switching switch It is connected to said supply unit;Whether the detection circuit be used to obtain for showing said supply unit from jth terminal test Jth feedback signal through being powered to second electronic equipment, shows said supply unit in the jth feedback signal During through being powered to second electronic equipment, it is the specified terminal to determine the jth terminal, so that said supply unit The jth terminal is connected to by the described 3rd switching switch and the first switching switch switching, so that said supply unit To second power electronic equipment.
The one or more technical schemes provided in the embodiment of the present application, have at least the following technical effects or advantages:
1st, due in the scheme that the embodiment of the present application is provided, being provided with power supply unit in master control electronic equipment, and should Power supply unit is connected by the specified terminal in first serial with controlled peripheral electronic device, and the power circuit of such as printer passes through The power supply unit connection of serial ports and computer so that printer can be by computer power supply, and then solves and deposit in the prior art Controlled peripheral electronic device can not by proposed standard serial ports by master control power electronic equipment technical problem, realize by Control ancillary equipment by proposed standard serial ports by master control power electronic equipment technique effect.
2nd, due in the scheme that the embodiment of the present application is provided, being controlled ancillary equipment by proposed standard serial ports by master control electricity Sub- equipment is powered, and then allows controlled peripheral electronic device to save external powering device, and then simplifies peripheral electronic device Structure and peripheral electronic device use environment in power supply circuit.For example, when printer by serial ports by computer power supply When, printer can remove power line and corresponding adapter, and printer working environment is provided for accessing without to printer The socket of power delivery circuit and electric wire of accordingly transmitting electricity.
3rd, opened due in the scheme that the embodiment of the present application is provided, being additionally provided with the first switching in master control electronic equipment Close, can for switching the terminal being connected with power supply unit, and by operating the first switching key being connected with the first switching switch With manual switching and the first terminal for be connected of switching switch, up to power supply unit is connected into specified terminal, and then realize with Easy method determines to specify terminal.
4th, due in the scheme that the embodiment of the present application is provided, being additionally provided with detection circuit and control in master control electronic equipment Unit processed and memory cell, send switching to first switch circuit by testing result of the control unit based on detection circuit and refer to Order, realizes master control electronic equipment and automatically determines specified terminal.
5th, due in the scheme that the embodiment of the present application is provided, in the power supply unit by master control electronic equipment to controlled outer While enclosing power electronic equipment, signal element is additionally provided with master control electronic equipment, by data terminal by the signal list Member is connected to the signal circuit of controlled electronic equipment, to realize that master control electronic equipment can carry out data with controlled ancillary equipment Transmission.
6th, opened due in the scheme that the embodiment of the present application is provided, being additionally provided with the second switching in master control electronic equipment Close, can for switching the terminal being connected with signal element, and by operating the second switching key being connected with the second switching switch With manual switching and the second terminal for be connected of switching switch, up to signal element is connected into data terminal, and then realize with Easy method determines data terminal.
7th, due in the scheme that the embodiment of the present application is provided, being additionally provided with detection circuit and control in master control electronic equipment Unit processed and memory cell, send switching to the second switching switch by testing result of the control unit based on detection circuit and refer to Order, realizes master control electronic equipment and automatically determines data terminal.
Brief description of the drawings
The schematic diagram of electronic equipment 10 that Fig. 1 provides for the embodiment of the application one;
The schematic diagram of another electronic equipment 10 that Fig. 2 provides for the embodiment of the application one;
Fig. 3 automatically switches for a kind of first switching switch that the embodiment of the present application is provided is connected to the method stream of specified terminal Cheng Tu;
The schematic diagram for the electronic equipment 10 that Fig. 4 provides for another embodiment of the application;
The schematic diagram for the electronic equipment 10 that Fig. 5 provides for the another embodiment of the application;
The schematic diagram for the electronic equipment 10 that Fig. 6 provides for another embodiment of the application.
Embodiment
The embodiment of the present application is by providing a kind of electronic equipment, to solve to be controlled peripheral electron present in prior art Equipment can not realize controlled ancillary equipment by pushing away by proposed standard serial ports by the technical problem of master control power electronic equipment Recommend technique effect of the standard serial port by master control power electronic equipment.
Technical scheme in the embodiment of the present application is in order to solve the above technical problems, general thought is as follows:
A kind of electronic equipment, including:
Power supply unit;
First serial, the first serial has each terminal in N number of terminal, N number of terminal according to described The port definition of one serial ports is non-powered terminal, wherein, N is positive integer;
First connection unit, first connection unit respectively with said supply unit and N number of terminal specify Terminal is connected;
Wherein, when the second electronic equipment by the second serial matched with the first serial is connected to the electronic equipment When, said supply unit is connected to second electronic equipment by first connection unit and the specified terminal, enters And to second power electronic equipment.
Due in the scheme that the embodiment of the present application is provided, passing through the specified terminal and the first connection unit in first serial Power supply unit is connected with the second electronic equipment, and then the second power electronic equipment can be given by power supply unit.Wherein, electronics Equipment is the main control device of automation field, such as computer, and the second electronic equipment is controlled peripheral electronic device, example Such as, printer;Printer is connected with computer by proposed standard serial ports, for example RS-232 serial ports, due to RS-232 port Without specified terminal in definition, so in the prior art when printer is connected to computer by RS-232 serial ports, it is impossible to logical Cross computer power supply.And in the scheme that the embodiment of the present application is provided, by setting power supply unit in a computer, and will printing The power circuit of machine is connected to the terminal in RS-232 serial ports, the designated ends in the first serial of connection corresponding with the terminal Son is connected to power supply unit, power supply unit is connected with the power circuit of printer, and then can pass through RS- by computer 232 serial ports are powered to printer.
Technical solution of the present invention is described in detail below by accompanying drawing and specific embodiment, it should be understood that the present invention Specific features in embodiment and embodiment are the detailed description to technical solution of the present invention, rather than to the technology of the present invention The restriction of scheme, in the case where not conflicting, the technical characteristic in the embodiment of the present invention and embodiment can be mutually combined.
The present invention is by one embodiment of the application there is provided a kind of electronic equipment 10, and the electronic equipment 10 is being controlled automatically Technical field processed is master control electronic equipment, such as computer or tablet personal computer.As shown in figure 1, the electronic equipment 10 includes:
Power supply unit 101, in a particular application, power supply unit 101 are generally located on mainboard, or are arranged on electronics and are set On standby 10 serial port board.Certainly, the embodiment of the present application person of an ordinary skill in the technical field can according to actual needs by Power supply unit 101 is arranged on the other positions of electronic equipment 10, is no longer described in detail in this embodiment of the present application;
First serial 102, first serial 102 has each terminal in N number of terminal, N number of terminal according to first serial 102 port definition is non-powered terminal, wherein, N is positive integer.In actual applications, first serial 102 is port definition The serial ports of power supply terminal is not provided, for example, proposed standard serial ports RS-232, RS-422 and RS-485 etc.;N number of terminal is serial ports N number of pin, such as common 9 pin pins and 25 pin pins;
First connection unit 103, the first connection unit 103 respectively with the specified terminal in power supply unit 101 and N number of terminal 1021 connections.In the present embodiment, the first connection unit 103 is used to power supply unit 101 being connected to first serial 102, and it can Think the device of any electrical connection, including binding post, PCB connectors, industrial connector, terminal box, heavy-duty connector, electricity Cable, cable connector, guard grating, contact etc.;
Wherein, when the second electronic equipment 20 by the second serial 202 matched with first serial 102 is connected to electronic equipment When 10, power supply unit 101 is connected to the second electronic equipment 20 by the first connection unit 103 and specified terminal 1021, and then Powered to the second electronic equipment 20.Specifically, the second electronic equipment is the controlled peripheral electron in computer controlled automatic field Equipment, such as printer, industrial robot, monitor.
In the embodiment of the present application, specified terminal 1021 is and the power supply in second serial 202 with the second electronic equipment 20 The terminal for the second specified Corresponding matching of terminal 2021 that circuit 201 is connected.Specify terminal 1021 specific in the second electronics 20 The annexation of power circuit 201 and terminal in second serial 202 is determined.Therefore, when first serial 102 and second serial 202 When being connected, because power supply unit 101 is by specifying terminal 1021 and second to specify terminal 2021 to be connected to power circuit 201, enter And can be powered to the second electronic equipment 20.
So that first serial 102 and second serial 202 are 25 pin RS-232 serial ports as an example, there are many terminals to be in 25 terminals Undefined terminal, it is auxiliary terminal, such as terminal for detecting data carrier to also have some terminals.In the present embodiment, These undefined terminals and auxiliary terminal can be used as second and specify terminal 2021 and specified terminal 1021.
In actual applications, in fact it could happen that a kind of situation be that the terminal being currently connected with power supply unit 101 is not implied that Fixed end 1021, at this point it is possible to power supply unit 101 is connected into power circuit 201 by way of manual jumper cap, with to Two electronic equipments 20 are powered.It can in addition contain which by setting manually or automatically switching device, power supply unit is connected into designated ends Son 1021.Certainly, the embodiment of the present application person of an ordinary skill in the technical field can use other technologies means to power Unit 101 is connected to power circuit 201, is no longer described in detail in this embodiment of the present application.
As shown in Fig. 2 in order that power supply unit 101, which can switch, is connected to specified terminal 1021, in the embodiment of the present application In the electronic equipment 10 of offer, the first connection unit 103 is specifically included:
Input port 1031, is connected with power supply unit 101;
First switching switch 1032, is connected with input port 1031.In concrete application, the first switching switch 1032 can be The switch thrown one digital switch circuit or analog switching circuit or a hilted broadsword more;
Wherein, when needing to power to the second electronic equipment 20,1032 is switched by the first switching and connects power supply unit 101 Specified terminal 1021 is connected to, and then power supply unit 101 is switched 1032, input port 1031 and specified terminal by the first switching 1021 power to the second electronic equipment 20.
The mode that the switching of power supply unit 101 is connected to specified terminal 1021 can be divided into manually and automatically two ways, this The a kind of electronic equipment 10 that application embodiment is provided can realize that manual switching is connected to specified terminal 1021, and the electronic equipment 10 is also Including:
First switching key, is connected with the first switching switch 1032;
Wherein, when user carries out the first handover operation on the first switching key, the first switching key can respond this One handover operation, generates the first switching signal, and the first switching switch 1032 makes power supply unit by performing first switching signal 101 switch 1032 switchings by the first switching is connected to specified terminal 1021, so that power supply unit 101 gives the second electronic equipment 20 Power supply.
In a particular application, the manual switching in the above embodiments of the present application to specified terminal 1021 may be by many times What manual switching was realized.For example, after first time the first switching key of operation, the second electronic equipment still there is no electric energy, It can be judged by observing the power supply indicator of the second electronic equipment and whether lighting, now, continue to operate the first switching to press Key, makes it switch to the terminal for being different from before connection terminal, until power supply indicator is lighted, i.e., power supply unit is connected to finger Fixed end 1021.Certainly, technical staff described in the embodiment of the present application can also by other means judge current connection terminal Whether it is data terminal 1021, for example, can be started by observing the second electronic equipment 20.
Another electronic equipment 10 that the embodiment of the present application is provided can realize that automatic switchover is connected to specified terminal 1021, should Electronic equipment 10 also includes:
Detect circuit 105, detection circuit 105 is connected with each terminal in N number of terminal, in first serial 102 and Obtained when second serial 202 is connected from the i-th terminal test in N number of terminal for showing power supply unit 101 whether to the The i-th feedback signal that two electronic equipments 20 are powered, i is any positive integer less than or equal to N;
Control unit 106, is connected with the detection switching of circuit 105 and first switch 1032 respectively;
Wherein, when the i-th feedback signal shows that power supply unit 101 is powered to the second electronic equipment 20, it is determined that I-th terminal is to specify terminal 1021, so that power supply unit 101 switchs 1032 switchings by the first switching is connected to i-th end Son, so that power supply unit 101 is powered to the second electronic equipment 20.
Further, when i-th feedback signal shows that power supply unit 101 is not powered to the second electronic equipment 20, Control unit 106 is used to generate i-th of switching command based on i-th feedback signal;
First switching switch 1032 is used to, by performing i-th of switching command, make the first switching switch 1032 switchings and connect It is connected to the jth terminals different from the i-th terminal in N number of terminal, j is less than or equal to N and is not equal to i any positive integer;
Whether detection circuit 105 is used to obtain for showing power supply unit 101 to the second electronics from jth terminal test The jth feedback signal that equipment 20 is powered, shows power supply unit 101 to the second electronic equipment in the jth feedback signal 20 when being powered, and it is to specify terminal 1021 to determine the jth terminal, so that power supply unit 101 passes through the first switching switch 1032 Switching is connected to the jth terminal, so that power supply unit 101 is powered to second electronic equipment 20.
Further, in order to improve automatic switchover efficiency, it is to avoid repetition detects those terminals that cannot be used for power supply, the electronics Equipment 10 also includes:
Memory cell 107, is connected with control unit 106, the i-th feedback signal received for storage control unit 106 And jth feedback signal, so that control unit 106 can show that power supply unit 101 is not set to the second electronics in jth feedback signal When being powered for 20, j-th of switching command is generated based on the i-th feedback signal and jth feedback signal, the first switching switch is indicated 1032 switchings are connected to the kth terminal for being different from the i-th terminal and jth terminal in N number of terminal, and k is less than or equal to N and is not equal to I and j any positive integer.
In concrete application, detection circuit 105 is used for the feedback signal for detecting the terminal of first serial 102, current to judge Whether the terminal being connected with the first switching switch 1032 is to specify terminal 1021.The feedback signal only can be cut from currently with first The terminal for changing the connection of switch 1032 is obtained, and can also be obtained by other terminals in first serial 102;And for feedback signal Concrete form, the embodiment of the present application person of an ordinary skill in the technical field can be set according to actual needs, for example High level, low level or a certain data signal.Alternatively, it is also possible to set a preset time, example to the acquisition of the feedback signal Such as 1s, if not receiving feedback information in 1s, show when front terminal is not designated ends 1021.
In the electronic equipment 10 that the above embodiments of the present application are provided, control unit 106 can be a control chip, can be with It is arranged on mainboard or on board, other rational positions can also be arranged on.And memory cell 107 can for a register or Person is hard disk, and it can be arranged in control unit 106 with plug-in, can also be arranged on inside control unit 106.In order to ensure to deposit Storage unit 107 can store current feedback information, can set an ageing machine based on capacity or clock to memory cell 107 System.
As shown in figure 3, being explained with reference to specific automatic switchover example to above-described embodiment automatic switchover scheme.
S101:First serial 102 and second serial 202 are connected, the first switching 1032 default connection the first terminals of switch;
S102:1st feedback signal of the detection of circuit 105 for the first terminal is detected, and the 1st feedback signal is sent to Control unit 106;If the 1st feedback signal shows that the first terminal is to specify terminal 1021, S103 is performed;Otherwise, S104 is performed;
S103:It is to specify terminal 1021 to determine that the first switching switchs current connection terminal, and power supply unit 101 is connected into this Terminal 1021 is specified, and then is powered to the second electronic equipment 20;
S104:Control unit 106 is instructed based on the 1st feedback signal generation the 1st that memory cell 107 is stored, the first switching The response of switch 1032 the 1st is instructed, and is performed the 1st and is switched, switches to Second terminal;
S105:2nd feedback signal of the detection of circuit 105 for Second terminal is detected, and the 2nd feedback signal is sent to Control unit 106;If the 2nd feedback signal shows that Second terminal is to specify terminal 1021, S103 is performed;Otherwise, S106 is performed;
S106:The 1st feedback signal and the 2nd feedback signal generation the 2nd that control unit 106 is stored based on memory cell 107 Instruction, the response the 2nd of the first switching switch 1032 is instructed, and is performed the 2nd and is switched, switches to different from the first terminal and Second terminal Third terminal;
……
Pass through above-mentioned steps, it is possible to which guarantee automatically determines specified terminal 1021 like clockwork, and by power supply unit 101 It is connected to this and specifies terminal 1021, and then is powered to the second electronic equipment 20.
As shown in figure 4, on the basis of by power supply unit 101 to the power supply of the second electronic equipment 20, in order that obtaining electronics Equipment 10 can carry out data transmission with the second electronic equipment 20, in another embodiment that the application is provided, and electronic equipment 10 is also Including:
Signal element 108;
Second connection unit 109, the second connection unit 109 respectively with the data terminal in signal element 108 and N number of terminal 1022 connections.In the present embodiment, the second connection unit 109 is used for the number being connected to signal element 108 in first serial 102 According to terminal 1022, it can be the device of any electrical connection, including binding post, PCB connectors, industrial connector, wiring Box, heavy-duty connector, cable, cable connector, guard grating, contact etc.;
Wherein, when first serial 102 is connected with second serial 202, signal element 108 by the second connection unit 109 and Data terminal 1022 is connected to the second electronic equipment 20, and then the electronic equipment 20 of electronic equipment 10 and second is carried out data Transmission.
In the embodiment of the present application, data terminal 1022 is and the data in second serial 202 with the second electronic equipment 20 The terminal for the Corresponding matching of the second data terminal 2022 that transmission circuit 208 is connected.I.e. data terminal 1022 is specific by the second electronics The annexation of data transmission circuit 208 and terminal in second serial 202 is determined in 20.Therefore, when first serial 102 and second When serial ports 202 is connected, because signal element 108 by the data terminal 2022 of data terminal 1022 and second is connected to data transfer Circuit 208, and then the electronic equipment 20 of electronic equipment 10 and second is carried out data transmission.In addition, data terminal 1022 has Body can be reception data terminal, or send data terminal, the embodiment of the present application is not limited.
So that first serial 102 and second serial 202 are 25 pin RS-232 serial ports as an example, there are many terminals to be in 25 terminals Undefined terminal, it is auxiliary terminal, such as terminal for detecting data carrier to also have some terminals.In the present embodiment, These undefined terminals and auxiliary terminal can be used as the data terminal 2022 of data terminal 1022 and second.
In actual applications, in fact it could happen that a kind of situation be, the terminal being currently connected with signal element 108 be not number According to terminal 1022, at this point it is possible to signal element 108 is connected to data transmission circuit 208 by way of manual jumper cap, with Electronic equipment 10 is set to carry out data transmission with the second electronic equipment 20.It can in addition contain manually or automatically be switched by setting Device, data terminal 1022 is connected to by signal element 108.Certainly, the ordinary skill of the embodiment of the present application art Personnel can use other technologies means that signal element 108 is connected into data transmission circuit 208, in this embodiment of the present application not It is described in detail again.
The a kind of electronic equipment that the embodiment of the present application is provided manual switching in a upper embodiment determines to specify terminal 1021 On the basis of, set a manual switching device to realize manual switching by increase and determine data terminal, in the electronic equipment, Second connection unit 109 is specifically included:
Second input port 1091, is connected with signal element 108;
Second switching switch 1092, is connected with the second input port 1091;
The electronic equipment also includes:
Second switching key, is connected with the second switching switch 1092;
Wherein, when user carries out the second handover operation on the second switching key, the second switching key can respond described Second handover operation, generates the second switching signal, and the second switching switch 1092 makes signal list by performing second switching signal Member 108 switchs 1092 switchings by the second switching and is connected to data terminal 1022, so that electronic equipment 10 can be with the second electronics Equipment 20 carries out data transmission.
In a particular application, second switching switch 1092 can be a digital switch circuit or analog switching circuit, It being the switch thrown a hilted broadsword more.Manual switching to data terminal 1022 in the above embodiments of the present application may be by a lot What secondary manual switching was realized.For example, after first time the second switching key of operation, the second electronic equipment still can not be set with electronics It is standby to carry out data transmission, it can be judged by observing the data transfer indicator lamp of the second electronic equipment and whether lighting, now, Continue to operate the second switching key, it is switched to the terminal for being different from before connection terminal, until data transfer indicator lamp Light, you can judge that signal element 108 is connected to data terminal 1022.Certainly, technical staff described in the embodiment of the present application also may be used Whether be data terminal 1022, such as by judging the second electronic equipment 20 if current connection terminal is judged with by other means The mode of a certain data from electronic equipment 10 can be received.
As shown in figure 5, the another embodiment of the application provides an electronic equipment 10, automatically switch in the first embodiment true Surely specify on the basis of terminal 1021, increase by an automatic switching control equipment, realize the determination data terminal 1022 that automatically switches.The electronics Equipment 10 also includes:
Signal element 108;
Second connection unit 109, the second connection unit 109 respectively with the data terminal in signal element 108 and N number of terminal 1022 connections;
Wherein, when first serial 102 is connected with second serial 202, signal element 108 passes through the second connection unit 109 And data terminal 1022 is connected to the second electronic equipment 20, and then the electronic equipment 20 of electronic equipment 10 and second is set to enter line number According to transmission.
Further, determine that second connection unit 109 has in data terminal 1022, electronic equipment 10 to realize to automatically switch Body includes:
Second input port 1091, is connected with signal element 108;
Second switching switch 1092, is connected with the second input port 1091;
Wherein, it is determined that the i-th terminal be specify terminal 1021 after, detection circuit 105 be additionally operable to from the m in N number of terminal Terminal test, which is obtained, to be used for showing the class feedback letters of m bis- that can electronic equipment 10 carry out data transmission with the second electronic equipment 20 Number, m is less than or equal to N and is not equal to i any positive integer;
When the class feedback signals of m bis- show that electronic equipment 10 can carry out data transmission with the second electronic equipment 20, really Fixed m terminals are data terminal 1022, so that signal element 108 switchs 1092 switchings by the second switching is connected to m terminals, So that electronic equipment 10 can carry out data transmission with the second electronic equipment 20.
Further, show that electronic equipment 10 can not carry out data biography with the second electronic equipment 20 in the class feedback signals of m bis- When defeated, control unit 106 is additionally operable to generate m-th of switching command based on the class feedback signals of m bis-;
Second switching switch 1092 is used to, by performing m-th of switching command, make the second switching switch 1092 switchings and connect It is connected to the n-th terminals different from m terminals in N number of terminal, n is less than or equal to N and is not equal to i and m any positive integer;
Detection circuit 105 is used to obtain for showing that can electronic equipment 10 with the second electronic equipment from m terminal tests The 20 the n-th two class feedback signals carried out data transmission, show that electronic equipment 10 can be with the second electronics in the n-th two class feedback signals When equipment 20 carries out data transmission, it is data terminal 1022 to determine n-th terminal, so that signal element 108 is opened by the second switching Close 1092 switchings and be connected to n-th terminal, so that electronic equipment 10 can carry out data transmission with the second electronic equipment 20.
Further, in order to improve automatic switchover efficiency, it is to avoid repetition detects those terminals that cannot be used for data transfer, deposits Storage unit 107 is additionally operable to the class feedback signals of m bis- that storage control unit 106 receives and the n-th two class feedback signals, so that control Unit 106 processed can show that electronic equipment 10 can not carry out data transmission with the second electronic equipment 20 in the n-th two class feedback signals When, n-th of switching command is generated based on the class feedback signals of m bis- and the n-th two class feedback signals, the second switching switch 1092 is indicated Switching, which is connected in N number of terminal, is different from the i-th terminal and m terminals and the pth terminal of n-th terminal, p be less than or equal to N and It is not equal to i and m and n any positive integer.
In concrete application, for the concrete form of two class feedback signals, the embodiment of the present application art it is common Technical staff can be set according to actual needs, such as high level, low level or a certain data signal.In addition, also may be used To give the acquisition of the two classes feedback signal to set a preset time, such as 1s, if not receiving feedback information in 1s, judges second Switching 1092 current connection terminals of switch are not data terminals 1022.
Automatically switch in this implementation and determine that the method for data terminal 1022 determines the side for specifying terminal 1021 with automatically switching Method is similar, only difference is that:Determine that the step of data terminal 1022 occurs to refer in automatic switchover determination due to automatically switching After 1021 steps of son of fixed end, so when automatically switching determination data terminal 1022, the switching connection of the second switching switch 1092 Terminal not include fixed specified terminal 1021.Certainly, in actual applications, automatic switchover can also be exchanged to determine to specify The order of terminal 1021 and the determination data terminal 1022 that automatically switches, i.e., first automatically switch and determine data terminal 1022, rear automatic Switching determines specified terminal 1021, in this case, and when terminal 1021 is specified in determination of automatically switching, the first switching is switched The terminal of 1032 switching connections does not include fixed data terminal 1022.
As shown in fig. 6, in the electronic equipment 10 that the another embodiment of the application is provided, can determine to refer to quick automatic switching Fixed end 1021 and data terminal 1022, detected in the application first embodiment circuit 105 from the i-th terminal test obtain for Show power supply unit 10 whether on the basis of the i-th feedback signal being powered to the second electronic equipment 20, the electronics is set Standby 10 also include:
Signal element 108;
Second connection unit 109, the second connection unit includes:
Second switching switch 1092;And
4th switching switch 1093, is connected with the second switching switch 1092, and changeable connection power supply unit 101 or signal Unit 108;
Input port 1031 is specially the 3rd switching switch 1033, changeable connection power supply unit 101 or signal element 108;
Wherein, control unit 106 is used to when it is determined that the i-th terminal is to specify terminal 1021,1093 are switched to the 4th switching The 4th switching command is sent, the switching of the 4th switching switch 1093 is connected to signal element 108;
Detection circuit 105 is additionally operable to obtain for showing that can electronic equipment 10 with from the m terminal tests in N number of terminal The class feedback signals of m bis- that second electronic equipment 20 carries out data transmission, m is less than or equal to N and is not equal to any just whole of i Number;
When the class feedback signals of m bis- show that electronic equipment 10 can carry out data transmission with the second electronic equipment 20, really Fixed m terminals are data terminal 1022, so that signal element 108 passes through the 4th switching switch 1093 and the second switching switch 1092 Switching is connected to m terminals, so that electronic equipment 10 can carry out data transmission with the second electronic equipment 20.
Further, show that electronic equipment 10 can not carry out data biography with the second electronic equipment 20 in the class feedback signals of m bis- When defeated, control unit 106 is additionally operable to generate m-th of switching command based on the class feedback signals of m bis-;
Second switching switch 1092 is used to, by performing m-th of switching command, make the second switching switch 1092 switching connections To the n-th terminals different from m terminals in N number of terminal, n is less than or equal to N and is not equal to m and i any positive integer;
Detection circuit 105 is used to obtain for showing that can electronic equipment 10 with the second electronic equipment from m terminal tests The 20 the n-th two class feedback signals carried out data transmission, show that electronic equipment 10 can be with the second electronics in the n-th two class feedback signals When equipment 20 carries out data transmission, it is data terminal 1022 to determine n-th terminal, so that signal element 108 is opened by the 4th switching The switching of 1093 and second switching switch of pass 1092 is connected to n-th terminal, so that electronic equipment 10 can be with the second electronic equipment 20 Carry out data transmission.
Further, in order to improve automatic switchover efficiency, it is to avoid repetition detects those terminals that cannot be used for data transfer, deposits Storage unit 107 is additionally operable to the class feedback signals of m bis- that storage control unit 106 receives and the n-th two class feedback signals, so that control Unit processed can when the n-th two class feedback signals show that electronic equipment 10 can not carry out data transmission with the second electronic equipment 20, N-th of switching command is generated based on the class feedback signals of m bis- and the n-th two class feedback signals, indicates that the first switching switch 1032 is cut Change to be connected in N number of terminal and be different from the i-th terminal and m terminals and the pth terminal of n-th terminal, p is less than or equal to N and not Any positive integer equal to i and m and n.
Further, when the i-th feedback signal shows that power supply unit 10 is not powered to the second electronic equipment 20, control Unit 106 is used to generate the second switching command based on the i-th feedback signal, the switching of the 3rd switching switch 1033 is connected to signal list Member 108;
Detection circuit is additionally operable to obtain for showing that can electronic equipment 10 with the second electronic equipment 20 from the i-th terminal test The i-th two class feedback signals carried out data transmission;
When the i-th two class feedback signals show that electronic equipment 10 can carry out data transmission with the second electronic equipment 20, really Fixed i-th terminal is data terminal 1022, so that power supply unit 10 switchs 1032 switchings by the first switching is connected to the i-th terminal, So that electronic equipment 10 can carry out data transmission with the second electronic equipment 20;
Control unit 106 is additionally operable to send the 3rd switching command to the 4th switching switch 1093, makes the 4th switching switch 1093 are connected to power supply unit 101;
Whether detection circuit 105 is additionally operable to obtain for showing power supply unit 101 to the second electricity from m terminal tests The m feedback signals that sub- equipment 20 is powered;
When m feedback signals show that power supply unit 101 is powered to the second electronic equipment 20, m ends are determined Son is specifies terminal 1021, so that power supply unit 101 is connected by the 4th switching switch 1093 and the switching of the second switching switch 1092 M terminals are connected to, so that power supply unit 101 is powered to the second electronic equipment 20.
Further, show that electronic equipment 10 can not carry out data biography with the second electronic equipment 20 in the i-th two class feedback signals When defeated, control unit 106 is additionally operable to generate i-th of switching command based on the i-th two class feedback signals;
First switching switch 1032 is used to, by performing i-th of switching command, make the first switching switch 1032 switching connections To the jth terminals different from the i-th terminal in N number of terminal, j is less than or equal to N and is not equal to i any positive integer;
Control unit 106 is additionally operable to send the first switching command to the 3rd switching switch 1033, makes the 3rd switching switch 1033 are connected to power supply unit 101;
Whether detection circuit 105 is used to obtain for showing power supply unit 101 to the second electronics from jth terminal test The jth feedback signal that equipment 20 is powered, shows power supply unit 101 to the second electronic equipment 20 in jth feedback signal When being powered, it is to specify terminal 1021 to determine jth terminal, so that power supply unit 101 switchs 1033 and the by the 3rd switching The switching of one switching switch 1032 is connected to jth terminal, so that power supply unit 101 is powered to the second electronic equipment 20.
Above-described embodiment automatic switchover scheme is explained below in conjunction with specific automatic switchover example.
S201:First serial 102 and second serial 202 are connected, the first switching 1032 default connection the first terminals of switch, the Three switching 1033 default connection power supply units of switch;
S202:1st feedback signal of the detection of circuit 105 for the first terminal is detected, and the 1st feedback signal is sent to Control unit 106;If the 1st feedback signal shows that the first terminal is to specify terminal 1021, S203 is performed;Otherwise, S204 is performed;
S203:It is determined that the first switching is switched into 1032 is connected to the first terminal, the 3rd switching switch 1033 is connected to power supply Unit 101;Control unit 105 switchs 1093 to the 4th switching and sends the 4th switching command, connects the 4th switching switch 1093 To signal element 108,;Control unit 106 sends the 1st switching command to the second switch unit 1092, makes the second switch unit 1092 are connected to the Second terminal different from the first terminal;Go to S205;
S204:Control unit 106 switchs 1033 to the 3rd switching and sends the second instruction, connects the 3rd switching switch 1033 To signal element;Go to S208;
S205:The detection of detection unit 105 is directed to the 2nd two class feedback signal of Second terminal, if the 2nd two class feedback signal table Bright Second terminal is data terminal, then goes to S206;Otherwise, S207 is gone to;
S206:It is determined that the second switching is switched into 1092 is connected to Second terminal, connected it is determined that the 4th switching is switched into 1093 To signal element;
S207:The 2nd two class feedback signal that control unit 106 is stored based on memory cell 107, generates the 2nd switching command, Second switching switch 1092 responds the 2nd switching command, is connected to the third terminal different from the first terminal and Second terminal;Detection Circuit 105 continues to detect the corresponding two classes feedback signal for the second switching switch connection terminal, and control unit 106 continues to send Corresponding switching command, until detecting data terminal 1022;
S208:1st two class feedback signal of the detection of circuit 105 for the first terminal is detected, if the 1st two class feedback signal table Bright the first terminal is data terminal 1022, then turns to S209;Otherwise, S210 is turned to;
S209:Control unit 106 sends the 3rd switching to the 4th switching switch 1093 based on the 1st two class feedback signal and referred to Order, sends the 1st switching command to the second switching switch, its switching is connected to the Second terminal different from the first terminal;Turn to S211;
S210:Control unit 106 switchs 1033 to the 3rd switching and sends the first switching command, is coupled to power supply unit 101, the 1st switching command is sent to the first switching switch, makes it switch to the Second terminal different from the first terminal;Detect circuit 105 continue to detect the feedback signal or two class feedback signals for the first switching switch connection terminal, and control unit 106 continues Corresponding switching command is sent, until it is currently to specify terminal 1021 or data terminal with the first switching 1032 connection terminals of switch to determine Son 1022;
S211:Detect that electric circuit inspection is directed to the 2nd feedback signal of Second terminal, if the second feedback signal shows Second terminal To specify terminal 1021, then S212 is turned to;Otherwise, S213 is turned to;
S212:Determine that the 4th switching switch 1093 connects power supply unit 101, determine the connection second of the second switching switch 1092 Terminal;
S213:Control unit is based on the 2nd feedback signal and sends the 2nd switching command to the second switching switch, is connected to Different from the first terminal and the third terminal of Second terminal;Detect that circuit 105 continues to detect for the second switching switch 1092 to connect The feedback signal of connecting terminal, control unit 106 makes corresponding switching command based on testing result, until determining to specify terminal 1021。
In above-mentioned flow, field those of ordinary skill described in the embodiment of the present application can change default connection as needed Relation, the such as the 3rd switching switch 1033 default is connected to unit of restricting the number 108;The order for determining terminal, such as the can also be changed One-time detection data terminal 1022, here, the embodiment of the present application is no longer described in detail.
In above-described embodiment of the application, if the power supply for the controlled peripheral electronic device being connected with master control electronic equipment Circuit is not connected with second serial, that is, the second serial for being controlled peripheral electronic device specifies terminal without second, accordingly, The first serial of master control electronic equipment is also without specified terminal.Now, the electronic equipment that the embodiment of the present application is provided is being searched After all terminals of first serial, determine not including in first serial and specify terminal, stop searching, then peripheral electron to be controlled After equipment is powered by other means, electronic equipment can be interacted by first serial with controlled peripheral electronic device, Such as data transfer, status monitoring.
The one or more technical schemes provided in the embodiment of the present application, have at least the following technical effects or advantages:
1st, due in the scheme that the embodiment of the present application is provided, being provided with power supply unit in master control electronic equipment, and should Power supply unit is connected by the specified terminal in first serial with controlled peripheral electronic device, and the power circuit of such as printer passes through The power supply unit connection of serial ports and computer so that printer can be by computer power supply, and then solves and deposit in the prior art Controlled peripheral electronic device can not by proposed standard serial ports by master control power electronic equipment technical problem, realize by Control ancillary equipment by proposed standard serial ports by master control power electronic equipment technique effect.
2nd, due in the scheme that the embodiment of the present application is provided, being controlled ancillary equipment by proposed standard serial ports by master control electricity Sub- equipment is powered, and then allows controlled peripheral electronic device to save external powering device, and then simplifies peripheral electronic device Structure and peripheral electronic device use environment in power supply circuit.For example, when printer by serial ports by computer power supply When, printer can remove power line and corresponding adapter, and printer working environment is provided for accessing without to printer The socket of power delivery circuit and electric wire of accordingly transmitting electricity.
3rd, opened due in the scheme that the embodiment of the present application is provided, being additionally provided with the first switching in master control electronic equipment Close, can for switching the terminal being connected with power supply unit, and by operating the first switching key being connected with the first switching switch With manual switching and the first terminal for be connected of switching switch, up to power supply unit is connected into specified terminal, and then realize with Easy method determines to specify terminal.
4th, due in the scheme that the embodiment of the present application is provided, being additionally provided with detection circuit and control in master control electronic equipment Unit processed and memory cell, send switching to first switch circuit by testing result of the control unit based on detection circuit and refer to Order, realizes master control electronic equipment and automatically determines specified terminal.
5th, due in the scheme that the embodiment of the present application is provided, in the power supply unit by master control electronic equipment to controlled outer While enclosing power electronic equipment, signal element is additionally provided with master control electronic equipment, by data terminal by the signal list Member is connected to the signal circuit of controlled electronic equipment, to realize that master control electronic equipment can carry out data with controlled ancillary equipment Transmission.
6th, opened due in the scheme that the embodiment of the present application is provided, being additionally provided with the second switching in master control electronic equipment Close, can for switching the terminal being connected with signal element, and by operating the second switching key being connected with the second switching switch With manual switching and the second terminal for be connected of switching switch, up to signal element is connected into data terminal, and then realize with Easy method determines data terminal.
7th, due in the scheme that the embodiment of the present application is provided, being additionally provided with detection circuit and control in master control electronic equipment Unit processed and memory cell, send switching to the second switching switch by testing result of the control unit based on detection circuit and refer to Order, realizes master control electronic equipment and automatically determines data terminal.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (16)

1. a kind of electronic equipment, it is characterised in that including:
Power supply unit;
First serial, the first serial has each terminal in N number of terminal, N number of terminal according to the described first string The port definition of mouth is non-powered terminal, wherein, N is positive integer;
First connection unit, first connection unit respectively with the designated use in said supply unit and N number of terminal Come the specified terminal connection powered;
Wherein, when the second electronic equipment is connected to the electronic equipment by the second serial matched with the first serial, Said supply unit is connected to second electronic equipment by first connection unit and the specified terminal, and then gives Second power electronic equipment;
Wherein, when N is the integer more than or equal to 2, first connection unit is specifically included:
Input port, is connected with said supply unit;
First switching switch, is connected with the input port;
Wherein, when needing to second power electronic equipment, said supply unit is connected by the described first switching switch The specified terminal is connected to, and then said supply unit is passed through the described first switching switch, the input port and the finger Fixed end gives second power electronic equipment.
2. electronic equipment as claimed in claim 1, it is characterised in that the electronic equipment also includes:
First switching key, is connected with the described first switching switch;
Wherein, when user carries out the first handover operation on first switching key, first switching key can be responded First handover operation, generates the first switching signal, and the first switching switch is made by performing first switching signal Said supply unit switchs switching by the described first switching and is connected to the specified terminal, so that said supply unit is to described Second power electronic equipment.
3. electronic equipment as claimed in claim 1, it is characterised in that the electronic equipment also includes:
Circuit is detected, the detection circuit is connected with each terminal in N number of terminal, in the first serial and institute Obtained when stating second serial connection from the i-th terminal test in N number of terminal for showing said supply unit whether The i-th feedback signal being powered to second electronic equipment, i is any positive integer less than or equal to N;
Control unit, is connected with the detection circuit and the first switching switch respectively;
Wherein, when i-th feedback signal shows that said supply unit is powered to second electronic equipment, really Fixed i-th terminal is the specified terminal, so that said supply unit switchs switching by the described first switching is connected to institute The i-th terminal is stated, so that said supply unit gives second power electronic equipment.
4. electronic equipment as claimed in claim 3, it is characterised in that:
Described control unit is used to show that said supply unit is not entered to second electronic equipment in i-th feedback signal During row power supply, i-th of switching command is generated based on i-th feedback signal;
The first switching switch is used to, by performing i-th of switching command, make the first switching switch switching connection The jth terminals different from i-th terminal into N number of terminal, j is less than or equal to N and is not equal to any just whole of i Number;
Whether the detection circuit is used to obtain for showing said supply unit to the described second electricity from jth terminal test The jth feedback signal that sub- equipment is powered, shows said supply unit to the described second electricity in the jth feedback signal When sub- equipment is powered, it is the specified terminal to determine the jth terminal, so that said supply unit is cut by described first Change switch switching and be connected to the jth terminal, so that said supply unit gives second power electronic equipment.
5. electronic equipment as claimed in claim 4, it is characterised in that the electronic equipment also includes:
Memory cell, is connected with described control unit, for store i-th feedback signal that described control unit receives and The jth feedback signal, so that described control unit can show said supply unit not to institute in the jth feedback signal When stating the second electronic equipment and being powered, j-th of switching is generated based on i-th feedback signal and the jth feedback signal and referred to Order, indicates that the first switching switch switching is connected in N number of terminal and is different from i-th terminal and the jth end The kth terminal of son, k is less than or equal to N and is not equal to i and j any positive integer.
6. the electronic equipment as described in any claim in claim 1-2, it is characterised in that in N be whole more than or equal to 2 During number, the electronic equipment also includes:
Signal element;
Second connection unit, second connection unit respectively with the data terminal in the signal element and N number of terminal Connection;
Wherein, when the first serial is connected with the second serial, the signal element passes through second connection unit And the data terminal is connected to second electronic equipment, and then enable the electronic equipment and second electronic equipment Carry out data transmission.
7. electronic equipment as claimed in claim 6, it is characterised in that second connection unit is specifically included:
Second input port, is connected with the signal element;
Second switching switch, is connected with second input port;
The electronic equipment also includes:
Second switching key, is connected with the described second switching switch;
Wherein, when user carries out the second handover operation on second switching key, second switching key can be responded Second handover operation, generates the second switching signal, and the second switching switch is made by performing second switching signal The signal element switchs switching by the described second switching and is connected to the data terminal, so that the electronic equipment can be with Second electronic equipment carries out data transmission.
8. electronic equipment as claimed in claim 5, it is characterised in that the electronic equipment also includes:
Signal element;
Second connection unit, second connection unit respectively with the data terminal in the signal element and N number of terminal Connection;
Wherein, when the first serial is connected with the second serial, the signal element passes through second connection unit And the data terminal is connected to second electronic equipment, and then enable the electronic equipment and second electronic equipment Carry out data transmission.
9. electronic equipment as claimed in claim 8, it is characterised in that second connection unit is specifically included:
Second input port, is connected with the signal element;
Second switching switch, is connected with second input port;
Wherein, it is determined that i-th terminal be specify terminal after, it is described detection circuit be additionally operable to from the m in N number of terminal Terminal test, which is obtained, to be used for showing that the classes of m bis- that can the electronic equipment carry out data transmission with second electronic equipment are anti- Feedback signal, m is less than or equal to N and is not equal to i any positive integer;
Show that the electronic equipment can carry out data transmission with second electronic equipment in the class feedback signals of m bis- When, it is the data terminal to determine the m terminals, so that the signal element passes through the described second switching switch switching connection To the m terminals, so that the electronic equipment can carry out data transmission with second electronic equipment.
10. electronic equipment as claimed in claim 9, it is characterised in that:
Described control unit is additionally operable to show that the electronic equipment can not be with second electronics in the class feedback signals of m bis- When equipment carries out data transmission, m-th of switching command is generated based on the class feedback signals of m bis-;
The second switching switch is used to, by performing m-th of switching command, make the second switching switch switching connection To the n-th terminals different from the m terminals in N number of terminal, n be less than or equal to N and be not equal to i and m it is any just Integer;
The detection circuit is used to obtain for showing that can the electronic equipment with the described second electricity from the m terminal tests The n-th two class feedback signals that sub- equipment carries out data transmission, show that the electronic equipment can in the n-th two class feedback signal When carrying out data transmission with second electronic equipment, it is the data terminal to determine the n-th terminal, so that the signal list Member switchs switching by the described second switching and is connected to the n-th terminal, so that the electronic equipment can be with the described second electricity Sub- equipment carries out data transmission.
11. electronic equipment as claimed in claim 10, it is characterised in that:
The memory cell is additionally operable to store the class feedback signals of the m bis- that receive of described control unit and described the n-th two Class feedback signal, so that described control unit can show that the electronic equipment can not be with institute in the n-th two class feedback signal When stating the second electronic equipment and carrying out data transmission, based on the class feedback signals of m bis- and the n-th two class feedback signal generation N-th of switching command, indicates that the second switching switch switching is connected in N number of terminal and is different from i-th terminal And the m terminals and the pth terminal of the n-th terminal, p is less than or equal to N and is not equal to i and m and n any positive integer.
12. electronic equipment as claimed in claim 3, it is characterised in that the electronic equipment also includes:
Signal element;
Second connection unit, second connection unit includes:
Second switching switch;And
4th switching switch, is connected with the described second switching switch, and changeable connection said supply unit or the signal list Member;
The input port is specially the 3rd switching switch, changeable connection said supply unit or the signal element;
Wherein, described control unit is used for it is determined that i-th terminal is the designated ends period of the day from 11 p.m. to 1 a.m, to the described 4th switching switch The 4th switching command is sent, the 4th switching switch switching is connected to the signal element;
The detection circuit is additionally operable to obtain for showing the electronic equipment energy from the m terminal tests in N number of terminal The no class feedback signals of m bis- carried out data transmission with second electronic equipment, m is less than or equal to N and is not equal to i any Positive integer;
Show that the electronic equipment can carry out data transmission with second electronic equipment in the class feedback signals of m bis- When, it is the data terminal in N number of terminal to determine the m terminals, so that the signal element passes through the described 4th switching Switch and the second switching switch switching are connected to the m terminals, so that the electronic equipment can be with the described second electricity Sub- equipment carries out data transmission.
13. electronic equipment as claimed in claim 12, it is characterised in that:
Described control unit is additionally operable to show that the electronic equipment can not be with second electronics in the class feedback signals of m bis- When equipment carries out data transmission, m-th of switching command is generated based on the class feedback signals of m bis-;
The second switching switch is used to, by performing m-th of switching command, make the second switching switch switching connection To the n-th terminals different from the m terminals in N number of terminal, n be less than or equal to N and be not equal to m and i it is any just Integer;
The detection circuit is used to obtain for showing that can the electronic equipment set with second electronics from m terminal tests The standby the n-th two class feedback signals carried out data transmission, show that the electronic equipment can be with institute in the n-th two class feedback signal When stating the second electronic equipment and carrying out data transmission, it is the data terminal to determine the n-th terminal, so that the signal element is logical Cross the 4th switching switch and the second switching switch switching is connected to the n-th terminal, so that the electronic equipment energy It is enough to carry out data transmission with second electronic equipment.
14. electronic equipment as claimed in claim 13, it is characterised in that the electronic equipment also includes and described control unit The memory cell of connection:
The memory cell is used to storing the class feedback signals of the m bis- that described control unit receives and the n-th two class Feedback signal so that described control unit can show in the n-th two class feedback signal electronic equipment can not with it is described When second electronic equipment carries out data transmission, based on the class feedback signals of m bis- and the n-th two class feedback signals generation the N switching command, indicate it is described first switching switch switching be connected in N number of terminal be different from i-th terminal and The pth terminal of the m terminals and the n-th terminal, p is less than or equal to N and is not equal to i and m and n any positive integer.
15. electronic equipment as claimed in claim 12, it is characterised in that:
Described control unit is used to show that said supply unit is not entered to second electronic equipment in i-th feedback signal During row power supply, the second switching command is generated based on i-th feedback signal, is connected to the 3rd switching switch switching described Signal element;
The detection circuit is additionally operable to obtain for showing that can the electronic equipment with described second from i-th terminal test The i-th two class feedback signals that electronic equipment carries out data transmission;
Show that the electronic equipment can carry out data transmission with second electronic equipment in the i-th two class feedback signal When, it is the data terminal to determine i-th terminal, so that said supply unit passes through the described first switching switch switching connection To i-th terminal, so that the electronic equipment can carry out data transmission with second electronic equipment;
Described control unit is additionally operable to send the 3rd switching command to the described 4th switching switch, connects the 4th switching switch It is connected to said supply unit;
Whether the detection circuit is additionally operable to obtain for showing said supply unit to described from the m terminal tests The m feedback signals that second electronic equipment is powered;
When the m feedback signals show that said supply unit is powered to second electronic equipment, institute is determined M terminals are stated for the specified terminal, so that said supply unit is opened by the described 4th switching switch and second switching Concern, which is changed, is connected to the m terminals, so that said supply unit gives second power electronic equipment.
16. electronic equipment as claimed in claim 15, it is characterised in that:
Described control unit is additionally operable to show that the electronic equipment can not be with second electronics in the i-th two class feedback signal When equipment carries out data transmission, i-th of switching command is generated based on the i-th two class feedback signal;
The first switching switch is used to, by performing i-th of switching command, make the first switching switch switching connection The jth terminals different from i-th terminal into N number of terminal, j is less than or equal to N and is not equal to any just whole of i Number;
Described control unit is additionally operable to send the first switching command to the described 3rd switching switch, connects the 3rd switching switch It is connected to said supply unit;
Whether the detection circuit is used to obtain for showing said supply unit to the described second electricity from jth terminal test The jth feedback signal that sub- equipment is powered, shows said supply unit to the described second electricity in the jth feedback signal When sub- equipment is powered, it is the specified terminal to determine the jth terminal, so that said supply unit is cut by the described 3rd Change switch and the first switching switch switching is connected to the jth terminal, so that said supply unit gives second electronics Equipment is powered.
CN201310349809.0A 2013-08-12 2013-08-12 A kind of electronic equipment Active CN104375612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310349809.0A CN104375612B (en) 2013-08-12 2013-08-12 A kind of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310349809.0A CN104375612B (en) 2013-08-12 2013-08-12 A kind of electronic equipment

Publications (2)

Publication Number Publication Date
CN104375612A CN104375612A (en) 2015-02-25
CN104375612B true CN104375612B (en) 2017-11-07

Family

ID=52554594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310349809.0A Active CN104375612B (en) 2013-08-12 2013-08-12 A kind of electronic equipment

Country Status (1)

Country Link
CN (1) CN104375612B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201130342Y (en) * 2007-12-19 2008-10-08 深圳市三旺通信技术有限公司 Apparatus for obtaining power from serial port
CN201188204Y (en) * 2008-01-17 2009-01-28 济南市泰信电子有限责任公司 Nine-needle type RS232 communication power supply serial port

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3558059B2 (en) * 2001-08-10 2004-08-25 セイコーエプソン株式会社 Power supply control circuit and electronic equipment
CN1940820A (en) * 2005-09-30 2007-04-04 鸿富锦精密工业(深圳)有限公司 Power supplier
CN102955557A (en) * 2011-08-19 2013-03-06 宏碁股份有限公司 Device and method for USB (universal serial bus) charging

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201130342Y (en) * 2007-12-19 2008-10-08 深圳市三旺通信技术有限公司 Apparatus for obtaining power from serial port
CN201188204Y (en) * 2008-01-17 2009-01-28 济南市泰信电子有限责任公司 Nine-needle type RS232 communication power supply serial port

Also Published As

Publication number Publication date
CN104375612A (en) 2015-02-25

Similar Documents

Publication Publication Date Title
CN204731364U (en) A kind of portable polycore cable distribution tester
KR20130045211A (en) Switching of conductor pair in power over ethernet system
CN104267781B (en) The reusable mobile terminal of docking station and its method of docking station multiplexing
CN102882073A (en) Connecting piece and connection status detection method for same
CN112147497A (en) Intelligent switch testing device and method
CN209657123U (en) A kind of control system
CN203164350U (en) Intelligent distribution instrument
CN104375612B (en) A kind of electronic equipment
CN103995207A (en) Three-remote automatic test device for power distribution terminal
CN103543022A (en) Train debugging test data acquiring, storing and wireless transmitting device
CN110488205A (en) A kind of fault identification device
CN106556800B (en) A kind of method and device of battery detecting
CN205160517U (en) Communication monitoring system
CN108226691A (en) A kind of Beam Detector based on wireless communication
CN210894560U (en) Quick aligning and checking device for multi-core cable
CN203714184U (en) Testing system of navigation device
CN204374671U (en) A kind of output switch parameter Wet-dry relay terminal plate
CN208400111U (en) Mobile terminal, storage facilities and electronic device
CN107202944A (en) The global function automatic voltage withstanding experimental rig of electricity management terminal calibrating installation
CN203758754U (en) Train debugging test data acquisition, storage and wireless transmission device
CN102981134A (en) Intelligent display device tester of switch cabinet
CN203455636U (en) Data acquisition control panel
US20140006811A1 (en) Power supply circuit for hard disk backplane and server system using same
CN207516777U (en) Multichannel ejection control device and system
US11507390B2 (en) Identifier automatic assigning data processing board, data processing module including identifier automatic assigning data processing board and data processing system including data processing module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant