CN102479110A - Electronic equipment and power supply control method - Google Patents
Electronic equipment and power supply control method Download PDFInfo
- Publication number
- CN102479110A CN102479110A CN2010105602663A CN201010560266A CN102479110A CN 102479110 A CN102479110 A CN 102479110A CN 2010105602663 A CN2010105602663 A CN 2010105602663A CN 201010560266 A CN201010560266 A CN 201010560266A CN 102479110 A CN102479110 A CN 102479110A
- Authority
- CN
- China
- Prior art keywords
- contact
- data
- checking
- interface
- external unit
- 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.)
- Granted
Links
Images
Landscapes
- Details Of Connecting Devices For Male And Female Coupling (AREA)
Abstract
The invention provides electronic equipment and a power supply control method. The electronic equipment comprises a first data interface, a detecting module, a verifying module, a first judging module and a power supply module, wherein the first data interface is used for being connected with external equipment and comprises a plurality of contacts including a power supply contact and at least one verifying contact; the detecting module is used for detecting whether the external equipment is connected with the first data interface and obtaining a detecting result; the verifying module is used for transmitting verifying information to the external equipment through at least one contact in the verifying contacts when the detecting result shows that the external equipment is connected with the first data interface; the first judging module is used for judging whether confirmation information of the verifying information, which is transmitted by the external equipment, is received through at least one contact in the verifying contacts and obtaining a judging result; and the power supply module is used for supplying power to the external equipment through the power supply contact when the judging result shows that the confirmation information is received through at least one contact in the verifying contacts. According to the invention, short circuit caused by poor contact of contacts of the data interface can be avoided.
Description
Technical field
The present invention relates to the terminal technology field, relate in particular to a kind of electronic equipment and method for controlling power supply.
Background technology
The USB of standard (Universal Serial BUS; USB) main frame (host) is that USB socket through standard is connected with USB device (device); Usb host can be equipment such as PC, mobile phone, and USB device can be equipment such as mouse, keyboard, docking station.When usb host is connected with USB device, can be the USB device power supply through USB socket.Usually have following contact: VBUS (power supply) contact, GND (ground connection) contact, D+ (data) contact, D-(data) contact and ID (sign) contact on the USB socket of standard.When the voltage that detects the ID contact on the USB socket when usb host was dragged down, then giving tacit consent to currently had USB device to be connected with it, and at this moment, usb host can be supplied power to USB device through the VBUS contact.
Socket on the usb host also possibly be non-standard structure; The socket of non-standard structure is except having above-mentioned several contact; Also there are other function contacts, for example, also possibly have speaker line-in/out contacts such as (audio frequency I/O) on the socket of mobile phone.If when the plug of USB device inserted said socket, the contact on the plug and the contact position of the contact on the socket were improper, for example; Make the ID contact on the socket be connected with the GND contact, the VBUS contact is connected with speaker line-in/out contact, at this moment; The voltage of ID contact will be dragged down; Usb host then can cause short circuit under this kind situation, even can cause device damage through the VBUS contact to the power supply of speaker line-in/out contact.
Summary of the invention
In view of this, the present invention provides a kind of electronic equipment and method for controlling power supply, can effectively avoid factor to contact improper and short circuit that cause according to the position of the contact of interface.
For addressing the above problem, the present invention provides a kind of electronic equipment, comprising:
First data-interface is used for being connected with external unit, and said first data-interface comprises a plurality of contacts, comprises power contact and at least one checking contact in said a plurality of contacts;
Detection module, whether have external unit with said first data-interface be connected, and obtain a testing result if being used for detection;
Authentication module is used for when said testing result representes to have external unit to be connected with said first data-interface, sending an authorization information through at least one contact in the said checking contact to said external unit;
First judge module is used for judging whether that at least one contact through said checking contact receives the affirmation information to said authorization information that said external unit sends, and obtains a judged result;
Supply module is used for when said judged result representes that at least one contact through said checking contact receives said confirmation, supplying power to said external unit through said power contact.
Preferably, the checking contact that is used to send said authorization information is identical or different contact with the checking contact that is used to receive said confirmation.
Preferably, when said checking contact was a plurality of, said a plurality of checkings contact was arranged at the both sides of other contacts on said first data-interface respectively.
Preferably, also comprise the ID contact in said a plurality of contacts, whether said detection module is dragged down through the voltage that detects said ID contact, and whether detect has external unit to be connected with said first data-interface.
The present invention also provides a kind of electronic equipment, comprising:
Second data-interface is used for being connected with main frame, and said second data-interface comprises a plurality of contacts, comprises at least one checking contact in said a plurality of contacts;
Second judge module is used for judging whether that at least one contact through said checking contact receives the authorization information that said main frame sends, and obtains a judged result;
Feedback module is used for when said judged result representes that at least one contact through said checking contact receives said authorization information, sending a confirmation through at least one contact in the said checking contact to said main frame.
Preferably, the checking contact that is used to receive said authorization information is identical or different contact with the checking contact that is used to send said confirmation.
Preferably, when said checking contact was a plurality of, said a plurality of checkings contact was arranged at the both sides of other contacts on said second data-interface respectively.
The present invention also provides a kind of method for controlling power supply, is applied on the electronic equipment, and said electronic equipment comprises first data-interface that is used for being connected with external unit; Said method comprising the steps of:
Whether have external unit with said first data-interface be connected, and obtain a testing result if detecting; Said first data-interface comprises a plurality of contacts, comprises power contact and at least one checking contact in said a plurality of contacts;
When said testing result representes to have external unit to be connected with said first data-interface, send an authorization information to said external unit through at least one contact in the said checking contact;
Judge whether to receive the affirmation information that said external unit sends, and obtain a judged result said authorization information through at least one contact in the said checking contact;
When said judged result representes to receive said confirmation through at least one contact in the said checking contact, supply power to said external unit through said power contact.
Preferably, the checking contact that is used to send said authorization information is identical or different contact with the checking contact that is used to receive said confirmation.
Preferably, when said checking contact was a plurality of, said a plurality of checkings contact was arranged at the both sides of other contacts on said first data-interface respectively.
The present invention has following beneficial effect:
When detecting external unit and be connected with the data-interface of main frame; Not immediately to outside power devices; But whether the position of at first detecting the contact of data-interface contacts correctly; When the position of the contact that detects data-interface contacts when correct, again through the power supply contact on the data-interface to outside power devices, thereby can effectively avoid factor and the short circuit that cause improper according to the position contact of the contact of interface.
Description of drawings
Fig. 1 is the structured flowchart of the electronic equipment of the embodiment of the invention;
Fig. 2 is the structural representation of first data-interface of the embodiment of the invention;
Fig. 3 is another structured flowchart of the electronic equipment of the embodiment of the invention;
Fig. 4 is the structural representation of second data-interface of the embodiment of the invention;
Fig. 5 is the usb host of the embodiment of the invention and the structural representation of USB device;
Fig. 6 is the schematic flow sheet of the method for controlling power supply of the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment, specific embodiments of the invention describes in further detail.
Be illustrated in figure 1 as the structured flowchart of the electronic equipment of the embodiment of the invention, said electronic equipment can be equipment such as computing machine, mobile phone, and said electronic equipment can be commonly referred to main frame for connected external unit power supply, and said electronic equipment comprises:
First data-interface 101 is used for being connected with external unit, and said external unit is the equipment that receives the main frame power supply, is commonly referred to slave unit, and said external unit has second data-interface, is connected with said first data-interface 101 through said second data-interface.Said first data-interface 101 and said second data-interface are same kind and the data-interface that cooperatively interacts, and for example, said first data-interface 101 can be a socket, and said second data-interface is a plug.Be illustrated in figure 2 as the structural representation of first data-interface 101 of the embodiment of the invention; Said first data-interface 101 comprises a plurality of contacts 1011; Comprise power contact and at least one checking contact in said a plurality of contact 1011; Wherein, said power contact is used to external unit power supply, and said checking contact is used to verify whether contacting of contact on contact and the external unit on said first data-interface 101 be correct.In order to carry out signal transmission, each contact 1011 on said first data-interface 101 all should have a ground wire, and wherein, each said checking contact can be used a ground wire separately, also can with the shared ground wire of said power contact.In addition, also can comprise earthing contact and data contact in the said a plurality of contacts 1011 on generally said first data-interface 101, said earthing contact is used for ground connection, said data contact be used for and external unit between transmit data.
In the foregoing description; Said first data-interface 101 generally includes the contact of following several types: power contact, earthing contact, data contact and checking contact; Wherein, Can with except that power contact, earthing contact, other contacts the data contact as the checking contact, certainly, also can be with power contact, earthing contact or data contact as the checking contact.For example; Can be with data contact as the checking contact; When having detected external unit and be connected, said data contact at first as the checking contact, is verified whether contacting of contact on contact and the said external unit on said first data-interface 101 be correct with said first data-interface 101; After the checking contact is correct, again through transmitting data between said data contact and the said external unit.
In the foregoing description; When the checking contact on said first data-interface 101 when being a plurality of; Can said a plurality of checkings contact be arranged at the both sides of other contacts on said first data-interface 101 respectively; If all contact correctly because be positioned at the checking contact of both sides, other contacts that then are positioned at the centre position generally also are that contact is correct.
The electronic equipment that provides through the foregoing description; When detecting external unit and be connected with the data-interface of main frame; Not immediately to outside power devices, but whether the position of at first detecting the contact of data-interface contact correctly, when the position of the contact that detects data-interface contacts when correct; Again through the power supply contact on the data-interface to outside power devices, thereby can effectively avoid factor and the short circuit that cause improper according to the position contact of the contact of interface.
Corresponding to above-mentioned electronic equipment as main frame; The embodiment of the invention also provides a kind of electronic equipment as slave unit; Be illustrated in figure 3 as another structured flowchart of the electronic equipment of the embodiment of the invention; Said electronic equipment can be equipment such as mouse, keyboard, docking station, and said electronic equipment comprises:
Second data-interface 301 is used for being connected with main frame, and said main frame can be said power electronic equipment with after said electronic equipment is connected, and said main frame has first data-interface, is connected with said second data-interface 301 through said first data-interface.Said first data-interface and said second data-interface 301 are same kind and the data-interface that cooperatively interacts, and for example, said first data-interface can be a socket, and 301 of said second data-interfaces are a plug.Be illustrated in figure 4 as the structural representation of second data-interface 301 of the embodiment of the invention; Said second data-interface 301 comprises a plurality of contacts 3011, comprises power contact and at least one checking contact in said a plurality of contacts 3011, wherein; Said power contact is used for being connected with the power contact of main frame; Receive the electric current that main frame provides, said checking contact is used to receive the authorization information that send the checking contact on the main frame, and confirmation is sent in the checking contact on main frame.In addition, generally, also can comprise earthing contact and data contact in a plurality of contacts 3011 on said second data-interface 301, said earthing contact is used for ground connection, said data contact be used for and main frame between transmit data.
Above-mentioned second judge module 302 can be through logical circuit or Rom (Read-Only Memory, read-only memory) realize cheaply with said feedback module 303.
Match with the checking contact on the said main frame in checking contact on said second data-interface 301; For example; When the checking contact on the said main frame is one; Checking contact on said second data-interface 301 also is one, and said second data-interface 301 receives the authorization information that said main frame sends through this checking contact, and sends confirmation through said checking contact to said main frame; In addition, the position of the checking contact on said second data-interface 301 be provided with also with said main frame on the position of checking contact be provided with consistent.
When the checking contact on the said main frame is two; For example verify contact 1 and checking contact 2; If main frame sends authorization information through checking contact 1 and checking contact 2 to said electronic equipment; Also need comprise two checking contacts on said second data-interface 301, for example verify contact 3 and checking contact 4, be respectively applied for Receipt Validation contact 1 and the authorization information of verifying that contact 2 is sent.If main frame sends authorization information through checking contact 1 to said electronic equipment; Receive the feedback information of electronic equipment to said authorization information through checking contact 2, at this moment, said second data-interface 301 can be through the authorization information of checking contact 3 Receipt Validation contacts, 1 transmission; And through verifying that contact 4 is to checking contact 2 transmission feedback informations; Wherein, said checking contact 1 is corresponding with the position of said checking contact 3, and checking contact 2 is corresponding with the position of checking contact 4.
That is to say; The checking contact that is used to receive said authorization information on said second data-interface 301 can be a same contacts with the checking contact that is used to send said confirmation; Also can be different contacts, match in the checking contact on the main frame corresponding with it.
Said second data-interface 301 can be polytype data-interface.
In addition; When the checking contact on said second data-interface 301 when being a plurality of; Can said a plurality of checkings contact be arranged at the both sides of other contacts on said second data-interface 301 respectively; If all contact correctly because be positioned at the checking contact of both sides, other contacts that then are positioned at the centre position generally also are that contact is correct.
Be usb host below with the main frame, slave unit is that USB device is an example, and the foregoing description is described.
Usb host has a socket (corresponding to first data-interface 101 in the foregoing description); USB device has a plug (corresponding to second data-interface 301 in the foregoing description); As shown in Figure 5; Said socket comprises with lower contact: power contact, earthing contact, data contact, ID contact and checking contact 1 and checking contact 2, checking contact 1 and checking contact 2 lay respectively at the both sides of other contacts.Plug comprises with lower contact: power contact, earthing contact, data contact, ID contact and checking contact 3 and checking contact 4; Checking contact 3 and checking contact 4 lay respectively at the both sides of other contacts; Wherein, Checking contact 3 is corresponding with the position of checking contact 1, and checking contact 4 is corresponding with the position of checking contact 2.
When on the plug insertion socket, the voltage of the ID contact on the socket is dragged down, and at this moment, usb host sends an authorization information through checking contact 1 to USB device, for example, sends one 0/1 sequences.
USB device is handled said authorization information after receiving said authorization information through checking contact 3, obtains place's feedback information, and sends said feedback information through checking contact 4 to usb host, and said feedback information also can be one 0/1 sequences.
Usb host judges whether said feedback information is the affirmation information of said authorization information after receiving said feedback information through checking contact 2, if then think and verify and successfully supply power to USB device through power supply contact, otherwise do not supply power to said USB device.
The embodiment of the invention also provides a kind of method for controlling power supply, is applied in the electronic equipment as main frame, and said electronic equipment comprises first data-interface that is used for being connected with external unit; As shown in Figure 6, said method for controlling power supply may further comprise the steps:
Step 602 is sent an authorization information through at least one contact in the said checking contact to said external unit;
Step 603 judges whether to receive the affirmation information to said authorization information that said external unit sends through at least one contact in the said checking contact, and obtains a judged result; When said judged result representes to receive said confirmation through at least one contact in the said checking contact, execution in step 604, otherwise finish;
Step 604 is supplied power to said external unit through said power contact.
In the foregoing description, the checking contact that is used to send said authorization information is identical or different contact with the checking contact that is used to receive said confirmation.
In the foregoing description; When the checking contact on said first data-interface when being a plurality of; Can said a plurality of checkings contact be arranged at the both sides of other contacts on said first data-interface respectively; If all contact correctly because be positioned at the checking contact of both sides, other contacts that then are positioned at the centre position generally also are that contact is correct.
The method for controlling power supply that provides through the foregoing description; When detecting external unit and be connected with the data-interface of main frame; Not immediately to outside power devices, but whether the position of at first detecting the contact of data-interface contact correctly, when the position of the contact that detects data-interface contacts when correct; Again through the power supply contact on the data-interface to outside power devices, thereby can effectively avoid factor and the short circuit that cause improper according to the position contact of the contact of interface.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.
Claims (10)
1. an electronic equipment is characterized in that, comprising:
First data-interface is used for being connected with external unit, and said first data-interface comprises a plurality of contacts, comprises power contact and at least one checking contact in said a plurality of contacts;
Detection module, whether have external unit with said first data-interface be connected, and obtain a testing result if being used for detection;
Authentication module is used for when said testing result representes to have external unit to be connected with said first data-interface, sending an authorization information through at least one contact in the said checking contact to said external unit;
First judge module is used for judging whether that at least one contact through said checking contact receives the affirmation information to said authorization information that said external unit sends, and obtains a judged result;
Supply module is used for when said judged result representes that at least one contact through said checking contact receives said confirmation, supplying power to said external unit through said power contact.
2. electronic equipment as claimed in claim 1 is characterized in that, the checking contact that is used to send said authorization information is identical or different contact with the checking contact that is used to receive said confirmation.
3. electronic equipment as claimed in claim 1 is characterized in that, when said checking contact was a plurality of, said a plurality of checkings contact was arranged at the both sides of other contacts on said first data-interface respectively.
4. electronic equipment as claimed in claim 1 is characterized in that, also comprises the ID contact in said a plurality of contacts, and whether said detection module is dragged down through the voltage that detects said ID contact, and whether detect has external unit to be connected with said first data-interface.
5. an electronic equipment is characterized in that, comprising:
Second data-interface is used for being connected with main frame, and said second data-interface comprises a plurality of contacts, comprises at least one checking contact in said a plurality of contacts;
Second judge module is used for judging whether that at least one contact through said checking contact receives the authorization information that said main frame sends, and obtains a judged result;
Feedback module is used for when said judged result representes that at least one contact through said checking contact receives said authorization information, sending the affirmation information of said authorization information to said main frame through at least one contact in the said checking contact.
6. electronic equipment as claimed in claim 5 is characterized in that, the checking contact that is used to receive said authorization information is identical or different contact with the checking contact that is used to send said confirmation.
7. electronic equipment as claimed in claim 5 is characterized in that, when said checking contact was a plurality of, said a plurality of checkings contact was arranged at the both sides of other contacts on said second data-interface respectively.
8. a method for controlling power supply is applied on the electronic equipment, and said electronic equipment comprises first data-interface that is used for being connected with external unit; It is characterized in that, said method comprising the steps of:
Whether have external unit with said first data-interface be connected, and obtain a testing result if detecting; Said first data-interface comprises a plurality of contacts, comprises power contact and at least one checking contact in said a plurality of contacts;
When said testing result representes to have external unit to be connected with said first data-interface, send an authorization information to said external unit through at least one contact in the said checking contact;
Judge whether to receive the affirmation information that said external unit sends, and obtain a judged result said authorization information through at least one contact in the said checking contact;
When said judged result representes to receive said confirmation through at least one contact in the said checking contact, supply power to said external unit through said power contact.
9. method for controlling power supply as claimed in claim 8 is characterized in that, the checking contact that is used to send said authorization information is identical or different contact with the checking contact that is used to receive said confirmation.
10. method for controlling power supply as claimed in claim 8 is characterized in that, when said checking contact was a plurality of, said a plurality of checkings contact was arranged at the both sides of other contacts on said first data-interface respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010560266.3A CN102479110B (en) | 2010-11-23 | 2010-11-23 | Electronic equipment and power supply control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010560266.3A CN102479110B (en) | 2010-11-23 | 2010-11-23 | Electronic equipment and power supply control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102479110A true CN102479110A (en) | 2012-05-30 |
CN102479110B CN102479110B (en) | 2014-04-02 |
Family
ID=46091763
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010560266.3A Active CN102479110B (en) | 2010-11-23 | 2010-11-23 | Electronic equipment and power supply control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102479110B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107104859A (en) * | 2017-06-30 | 2017-08-29 | 联想(北京)有限公司 | A kind of method and device for the network interface card for detecting electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020168984A1 (en) * | 2001-05-11 | 2002-11-14 | Bo Stefan Pontus Wallentin | Releasing plural radio connections with omnibus release message |
US20040103275A1 (en) * | 2002-11-25 | 2004-05-27 | Fujitsu Limited | Methods and apparatus for secure, portable, wireless and multi-hop data networking |
CN101079550A (en) * | 2006-12-06 | 2007-11-28 | 华为技术有限公司 | Determination system, terminal charging method, terminal and charger of charger style |
CN101388822A (en) * | 2008-10-24 | 2009-03-18 | 上海华魏自动化设备有限公司 | Automatic pole changing device for CAN bus and method therefor |
-
2010
- 2010-11-23 CN CN201010560266.3A patent/CN102479110B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020168984A1 (en) * | 2001-05-11 | 2002-11-14 | Bo Stefan Pontus Wallentin | Releasing plural radio connections with omnibus release message |
US20040103275A1 (en) * | 2002-11-25 | 2004-05-27 | Fujitsu Limited | Methods and apparatus for secure, portable, wireless and multi-hop data networking |
CN101079550A (en) * | 2006-12-06 | 2007-11-28 | 华为技术有限公司 | Determination system, terminal charging method, terminal and charger of charger style |
CN101388822A (en) * | 2008-10-24 | 2009-03-18 | 上海华魏自动化设备有限公司 | Automatic pole changing device for CAN bus and method therefor |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107104859A (en) * | 2017-06-30 | 2017-08-29 | 联想(北京)有限公司 | A kind of method and device for the network interface card for detecting electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN102479110B (en) | 2014-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN203191896U (en) | Host device for judging whether accessory comprises specific circuit or not and accessory | |
US11353941B2 (en) | Device and method for authenticating a device for power delivery | |
US10310576B2 (en) | Power feeding system and power feed control method | |
CN100495377C (en) | Method for inspecting type of connected peripheral apparatus and terminal interface | |
CN103344863B (en) | The method of testing of mobile terminal and test system | |
TWI573368B (en) | Portable electronic device and charging method therefor | |
US9448611B2 (en) | Interface expending method and device for tablet computer | |
US20180048170A1 (en) | Electronic equipment, charger and charging method | |
US20150171647A1 (en) | Method and apparatus for high current charging of smart terminals | |
US10445274B2 (en) | Universal serial bus (USB) hub for connecting different port types and method thereof | |
US20100060233A1 (en) | Charger with USB detection | |
CN103425224A (en) | Methods, systems and apparatus for enabling an accessory for use with a host device | |
KR20190000690A (en) | Electronic device and method for controlling a charging thereof | |
CN103618356A (en) | Charging system for mobile terminal and charging method thereof | |
TW201525702A (en) | Method and apparatus for charging electronic device with USB connection | |
CN102341971A (en) | Systems and methods for providing protection circuitry to selectively handle multiple cable-types through the same port | |
KR20140126491A (en) | power supply circuit and method for controlling thereof | |
US10802991B2 (en) | Pluggable module identification system | |
CN105071484A (en) | Charging method and apparatus of terminal having data exchange function | |
CN114553457A (en) | Electronic device and control method thereof | |
CN114623756B (en) | Plug-in position detection device and electronic equipment | |
CN105048018A (en) | Charging method and device for terminal having on-the-go (OTG) function | |
CN108924325B (en) | Data processing method and related device | |
CN102479110B (en) | Electronic equipment and power supply control method | |
CN107612571A (en) | Terminal and its control circuit of multipurpose Kato, prevent SIM card from burning the method for card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |