CN105677596A - Control method and electronic equipment - Google Patents

Control method and electronic equipment Download PDF

Info

Publication number
CN105677596A
CN105677596A CN201410678054.3A CN201410678054A CN105677596A CN 105677596 A CN105677596 A CN 105677596A CN 201410678054 A CN201410678054 A CN 201410678054A CN 105677596 A CN105677596 A CN 105677596A
Authority
CN
China
Prior art keywords
interface
coupling device
electronics
connection state
break
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
Application number
CN201410678054.3A
Other languages
Chinese (zh)
Other versions
CN105677596B (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 CN201410678054.3A priority Critical patent/CN105677596B/en
Publication of CN105677596A publication Critical patent/CN105677596A/en
Application granted granted Critical
Publication of CN105677596B publication Critical patent/CN105677596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)
  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)

Abstract

The invention discloses a control method and electronic equipment used for optimizing effective control over I/O interfaces when the electronic equipment is supplied with power by a connection interface. The method comprises following steps: obtaining voltage fluctuation parameters corresponding to a first connection device when a first I/O interface of N I/O interfaces is detected to be connected with a first connection device having first identifying tag information; judging whether the voltage fluctuation parameters are within the pre-set range in order to obtain a judgment result; controlling connection state of (N-1) I/O interfaces apart from the first I/O interface of N I/O interfaces with a power supply circuit based on the judgment result.The invention further discloses the electronic equipment using the method.

Description

A kind of control method and electronics
Technical field
The present invention relates to electronic technology field, in particular to one control method and electronics.
Background technology
Along with science and technology develop rapidly with market competition day by day fierce, the performance of electronics and outward appearance obtain and promote energetically, wherein notebook computer with its small volume and less weight, be convenient to carry, the liking of people that the recreational advantage such as by force is just being got more and more, become a part indispensable in studying and living. The thing that user utilizes electronics to do also gets more and more, as: user can communicate by having the panel computer of communication function and carry out, sees video, play games.
Usually, in the process using electronics, electronics can be made to be connected with other peripheral hardwares by the interface of electronics. Such as, by the I/O interface (Input/Output, input/output interface) of notebook computer, the junction circuit for data, message exchange and control between the central processor CPU of electronics and peripheral equipment can be connected. Therefore, in order to meet the user demand of user, electronics has multiple I/O interface usually. But at present, utilizing these I/O interfaces to carry out filling in power supply process, the control for I/O interface waits to improve in addition.
Summary of the invention
The embodiment of the present invention provides a kind of control method and electronics, to effective control of I/O interface when electronics being filled power supply for optimizing by connection interface.
A kind of control method, is applied to electronics, and described electronics comprises N number of input and output I/O interface, and described N number of I/O interface is connected with for electric line and data circuit, and N is positive integer, and described method comprises:
When the I/O interface detected in described N number of I/O interface is connected with first coupling device with the first identification marking information, obtain the voltage fluctuation parameter that described first coupling device is corresponding;
Judge whether described voltage fluctuation parameter is in preset range, obtain a judged result;
Break-make connection state between N-1 the I/O interface controlled in described N number of I/O interface except a described I/O interface based on described judged result and described confession electric line.
Optionally, when the break-make connection state between described N number of I/O interface and described confession electric line is connection state, the level that each the I/O interface in described N number of I/O interface is corresponding is high level.
Optionally, break-make connection state between described N-1 I/O interface controlling in described N number of I/O interface except a described I/O interface based on described judged result and described confession electric line, comprising:
If described judged result is yes, controls described break-make connection state and it is off state.
Optionally, if described judged result is yes, controls described break-make connection state and it be off state, be specially:
If described judged result is yes, controls described electronics and level corresponding for described N-1 I/O interface is switched to lower level by described high level, switch to, by connection state, the state of disconnecting to control described break-make connection state.
Optionally, when a described I/O interface when detecting in described N number of I/O interface is connected with the first coupling device, obtains the voltage fluctuation parameter that described first coupling device is corresponding, specifically comprise:
In the first moment, detection determines to there is M the coupling device being connected by M I/O interface in described N number of I/O interface with described electronics, obtains M the pin mark that described M coupling device is corresponding, and M is more than or equal to the integer that 1 is less than or equal to N;
Whether identify described M pin in identifying containing described first identification marking;
If having, the coupling device corresponding with described first identification marking is defined as described first coupling device;
In the 2nd moment differing preset duration with described first moment after described first moment, detection obtains voltage fluctuation parameter corresponding to described first coupling device.
Optionally, if being yes in described judged result, controlling described break-make connection state and being off state simultaneously, described method also comprises:
Controlling described electronics is power supply state, and controls described first coupling device and export the first corresponding adapt voltages.
A kind of electronics, comprises N number of input and output I/O interface, and described N number of I/O interface is connected with for electric line and data circuit, and N is positive integer, and described electronics comprises:
Acquiring unit, during for being connected with first coupling device with the first identification marking information when the I/O interface detected in described N number of I/O interface, obtains the voltage fluctuation parameter information that described first coupling device is corresponding;
Judging unit, for judging whether described voltage fluctuation parameter is in preset range, obtains a judged result;
Processing unit, for based on N-1 I/O interface except a described I/O interface in the described judged result described N number of I/O interface of control and the break-make connection state between described confession electric line.
Optionally, when the break-make connection state between described N number of I/O interface and described confession electric line is connection state, the level that each the I/O interface in described N number of I/O interface is corresponding is high level.
Optionally, described processing unit specifically for:
If described judged result shows that described voltage fluctuation parameter is in described preset range, control described break-make connection state and it is off state.
Optionally, described processing unit concrete also for:
If described judged result shows that described voltage fluctuation parameter is in described preset range, control described electronics and level corresponding for described N-1 I/O interface is switched to lower level by described high level, switch to, by connection state, the state of disconnecting to control described break-make connection state.
Optionally, described acquiring unit specifically for:
In the first moment, detection determines to there is M the coupling device being connected by M I/O interface in described N number of I/O interface with described electronics, obtains M the pin mark that described M coupling device is corresponding, and M is more than or equal to the integer that 1 is less than or equal to N;
Whether identify described M pin in identifying containing described first identification marking;
If having, the coupling device corresponding with described first identification marking is defined as described first coupling device;
In the 2nd moment differing preset duration with described first moment after described first moment, detection obtains voltage fluctuation parameter corresponding to described first coupling device.
Optionally, described electronics also comprises:
Output unit is power supply state for controlling described electronics, and controls described first coupling device and export the first corresponding adapt voltages.
In the embodiment of the present invention, owing to described electronics comprises N number of input and output I/O interface, and described N number of I/O interface is connected with for electric line and data circuit, therefore, when first coupling device with described first identification marking information being detected, by voltage fluctuation parameter is judged further, and according to N-1 I/O interface except a described I/O interface in the judged result described N number of I/O interface of control and the break-make connection state between described confession electric line. if such as described voltage fluctuation parameter is in described preset range, then can retain the connection between an I/O interface of described first coupling device connection, and disconnect the connection between described N-1 I/O interface and described confession electric line, namely described break-make connection state is made to be in disconnection state, and only to retain described first coupling device being connected with a described I/O interface be that described electronics is powered, thus the power supply device of connection of the coupling device being preferentially connected with I/O interface can being powered in unique and described electronics, and described N-1 I/O interface only retains the function of USB interface, thus avoid the device being connected with other I/O interface to be that described electronics is powered, prevent the electric leakage between adapter, improve security and the Consumer's Experience of the port of electronics.
Accompanying drawing explanation
Fig. 1 is the broad flow diagram controlling method in the embodiment of the present invention;
Fig. 2 is the connection schematic diagram of electronics in the embodiment of the present invention;
Fig. 3 is the schematic diagram of identifier in the embodiment of the present invention;
Fig. 4 is the structural representation of electronics in the embodiment of the present invention.
Embodiment
A kind of open control method of the embodiment of the present invention, it is applied to electronics, described electronics comprises N number of input and output I/O interface, and described N number of I/O interface is connected with for electric line and data circuit, N is positive integer, described method comprises: when the I/O interface detected in described N number of I/O interface is connected with first coupling device with the first identification marking information, obtain the voltage fluctuation parameter that described first coupling device is corresponding; Judge whether described voltage fluctuation parameter is in preset range, obtain a judged result; Break-make connection state between N-1 the I/O interface controlled in described N number of I/O interface except a described I/O interface based on described judged result and described confession electric line.
In the embodiment of the present invention, owing to described electronics comprises N number of input and output I/O interface, and described N number of I/O interface is connected with for electric line and data circuit, therefore, when first coupling device with described first identification marking information being detected, by voltage fluctuation parameter is judged further, and according to N-1 I/O interface except a described I/O interface in the judged result described N number of I/O interface of control and the break-make connection state between described confession electric line. if such as described voltage fluctuation parameter is in described preset range, then can retain the connection between an I/O interface of described first coupling device connection, and disconnect the connection between described N-1 I/O interface and described confession electric line, namely described break-make connection state is made to be in disconnection state, and only to retain described first coupling device being connected with a described I/O interface be that described electronics is powered, thus the power supply device of connection of the coupling device being preferentially connected with I/O interface can being powered in unique and described electronics, and described N-1 I/O interface only retains the function of USB interface, thus avoid the device being connected with other I/O interface to be that described electronics is powered, prevent the electric leakage between adapter, improve security and the Consumer's Experience of the port of electronics.
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments. Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, described electronics can be the different electronics of notebook, PAD (panel computer), mobile phone etc., and this is not restricted by the present invention.
In addition, term "and/or" herein is only a kind of association relation describing affiliated partner, and expression can exist three kinds of relations, such as, A and/or B, it is possible to represent: Individual existence A, exists A and B simultaneously, these three kinds of situations of Individual existence B. In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Below in conjunction with accompanying drawing, the preferred embodiment of the present invention is described in detail.
Referring to Fig. 1, the present invention provides a kind of control method, is applied to electronics, described electronics comprises N number of input and output I/O interface, and described N number of I/O interface is connected with for electric line and data circuit, N is positive integer, and described method can comprise the following steps:
Step 11: when the I/O interface detected in described N number of I/O interface is connected with first coupling device with the first identification marking information, obtain the voltage fluctuation parameter that described first coupling device is corresponding.
In the embodiment of the present invention, I/O interface can be an electronic circuit (occurring with IC chip or interface board form), having some special registers and corresponding control logic circuit to form in it, it is medium and the bridge of CPU and I/O exchanged between equipment information.
Usually, the function of I/O interface can realize CPU by system bus together with the contact of I/O circuit and peripherals, according to the complexity of circuit and equipment, the hardware of I/O interface mainly can be divided into I/O interface chip and I/O interface control card, wherein, I/O interface chip is mostly unicircuit, different orders and parameter is inputted by CPU, and controlling relevant I/O circuit and simple peripheral hardware is done to operate accordingly, common interface chip is such as Timer/Counter, interruptable controller, DMA controller, parallel interface etc.; And I/O interface control card refers to that some unicircuit become parts by certain logical groups, or directly and CPU coexist on mainboard, or a plug-in unit is inserted on system bus slot. In the embodiment of the present invention, described N number of I/O interface can mainly refer to and can the USB interface (UniversalSerialBus, the total line interface of general serial) of support adapter in electronics.
In the embodiment of the present invention, described N number of I/O interface connects by connecting joint and peripheral hardware, such as mouse, adapter etc., and has plug and play and hot plug function. Concrete, the connection relation of described N number of I/O interface and described feed circuit and described data circuit is as shown in Figure 2. Wherein, for the coupling device of USB or adapter is connected with the circuit of electronic equipment internal by described N number of I/O interface.
Need illustrate time, described electronics can be provided with and the latch that described N number of I/O interface is connected, described latch can described N number of I/O interface circuit be connected, in concrete system line, please still see Fig. 2, described latch can be in the square frame being in and representing I/O interface, then when detection determines that having described M coupling device is connected with M I/O interface, latch is triggered, and according to the time order and function order connected, undertaken latching record by the pin mark of the device corresponding with described M I/O interface in real time, to distinguish the time order and function of each coupling device insertion, and then determine the first coupling device accessing described M I/O interface at first.
Optionally, in the embodiment of the present invention, when being in connection state when between described N number of I/O interface and described confession electric line, the level that each the I/O interface in described N number of I/O interface is corresponding is high level. And the protocol signal of USB adapter function is realized by ID pin, and adapter working order when ID pin is in high level, can be opened, so that the adapter of access is responded by electronics.
Actual realize in process, when described first coupling device is connected with a described I/O interface, the connecting joint of described first coupling device can as male, the side that namely joint protrudes, a described I/O interface can as female, and namely interface falls in the side preparing to be connect. Therefore, described first identification marking can refer to the ID pin mark of described first coupling device, and a described I/O interface has the function identifying described ID pin mark. Shown in Figure 3, a represents the mark of the ID pin in described first coupling device, i.e. male; B represents in described N number of I/O interface for identifying and the interface mated mutually with described first identification marking, i.e. female. Wherein, IDa is used as system identification, and IDb is used as adapter functions identification, and IDa ' and IDb ' mates with IDa and IDb respectively.
Concrete, described first identification marking can be the described first distinctive device identification of coupling device, when the described first coupling device described I/O interface of insertion, by the detecting circuit being connected with a described I/O interface can identify described first coupling device whether can with the power supply connection in described electronics. Such as, if described first coupling device is adapter, then described first identification marking is the mark corresponding with adapter, and when adapter inserts a described I/O interface, described electronics can detect and obtain the voltage fluctuation parameter that described first coupling device is corresponding.
Concrete, it is determined that the process of described voltage fluctuation parameter is:
1) in the first moment, detection determines to there is M the coupling device being connected by M I/O interface in described N number of I/O interface with described electronics, obtaining M the pin identification information that described M coupling device is corresponding, M is more than or equal to the integer that 1 is less than or equal to N;
2) whether described M pin is identified in identifying containing described first identification marking;
3) if having, the coupling device corresponding with described first identification marking is defined as described first coupling device;
4) the 2nd moment differing preset duration with described first moment after described first moment, detection obtains the voltage fluctuation parameter information corresponding with described first coupling device.
Wherein, described N number of I/O interface can be carried out real-time detection by described electronics, when determining the device with connection, the moment that can be connected by this device is as described first moment, so that it is determined that go out described M the pin mark that described M the coupling device connected is corresponding, then by the identification of described M pin mark can be judged whether to there is described first identification marking, if existing, then can determine to be defined as the coupling device corresponding with it described first coupling device. Therefore described first coupling device in described M coupling device with described first identification marking can be determined by real-time detection comparatively fast, to carry out corresponding control circui by the interface corresponding to described first coupling device.
Optionally, described electronics can be provided with and the latch that described N number of I/O interface is connected, described latch can be connected with the I/O interface circuit in circuit shown in Fig. 2, namely the position being in described latch can be in the square frame being in and representing I/O interface, then when detection determines that having described M coupling device is connected with M I/O interface, latch is triggered, and according to the time order and function order connected, undertaken latching record by the pin mark of the device corresponding with described M I/O interface in real time, to distinguish the time order and function of each coupling device insertion, and then determine the first coupling device accessing described M I/O interface at first.
Further, after determining described first coupling device, the I/O interface corresponding with described first coupling device can be defined as a described I/O interface, and the 2nd moment of preset duration is being differed with described first moment, detect the voltage parameter of described first coupling device, and this voltage parameter is defined as corresponding voltage fluctuation parameter. When described voltage fluctuation parameter refers to a described first coupling device insertion described I/O interface, owing to being connected the pin frequency hopping causing described first coupling device with the inside system of electronics, thus cause the voltage fluctuation of described first coupling device. Therefore, described preset duration can be after insertion coupling device, and the time of pin frequency hopping occurs. Such as, described preset duration can be 100ms. Therefore, described electronics can using the voltage parameter of described first linking device that detects in described first moment as voltage fluctuation. Such as, if the default voltage of adapter pin is 5V, after insertion I/O interface generation frequency hopping, the voltage of its correspondence is 3.0V, then the voltage fluctuation parameter recorded in described 2nd moment is just 3.0V.
Step 12: judge whether described voltage fluctuation parameter is in preset range, obtains a judged result.
In the embodiment of the present invention, described preset range can be determined according to the pin operating voltage of described first coupling device. Usually, the pin voltage of adapter maintains 3.3V, and under the impact of frequency hopping, the voltage fluctuation of upper and lower 10% can be there is, namely voltage has the fluctuation of about 0.3V up and down, and therefore, described preset range can be set to 3.0V-3.6V, then whether can be in this preset range in the voltage fluctuation parameter that described first coupling device of described 2nd moment detection is corresponding, so that it is determined that whether described first coupling device is adapter.
Step 13: the break-make connection state between N-1 the I/O interface controlled in described N number of I/O interface except a described I/O interface based on described judged result and described confession electric line.
In the embodiment of the present invention, the break-make connection state between described N-1 I/O interface and described confession electric line specifically comprises disconnection state and connection state. Wherein, when described break-make connection state is off state, in described N number of I/O interface, only an I/O interface keeps the connection between described confession electric line; And when described break-make connection state is connection state, each the I/O interface in described N number of I/O interface all communicates for electric line with described, therefore described N number of I/O interface all can detect whether coupling device has described first identification marking.
Optionally, in the embodiment of the present invention, if judging, described voltage fluctuation parameter is in described preset range, then control described break-make connection state and it is off state, and described first coupling device is defined as the unique and described device being connected for electric line, the adapter functions of described first coupling device namely can be realized by a described I/O interface. Now, in described N number of I/O interface, described N-1 the I/O interface except a described I/O interface disconnects and the described connection for electric line so that described N-1 I/O interface only keeps USB to connect function.
In actual, due to before access coupling device, the level that described N number of I/O interface is corresponding is high level, and the protocol signal of USB adapter function is realized by ID pin, ID disciplines high-voltage can open adapter working order, therefore, when described break-make connection state is in disconnection state, only there is the corresponding high level of a described I/O interface, there is adapter functions.
Concrete, when realizing the adapter function of supplying power forbidding described N-1 I/O interface, can be, by controlling described electronics, level corresponding for described N-1 I/O interface is switched to lower level by described high level, owing to adapter working order just can be opened when ID supervisor is in high level, therefore when by the level of described N-1 I/O interface by high level draw low for lower level time, adapter will no longer be responded by described N-1 I/O interface, and USB function is only provided, such as connect USB flash disk, mouse, keyboard etc.
Wherein, when the level drawing low described N-1 I/O interface corresponding, it is possible to undertaken by latch. Due to when described M coupling device is connected with described M I/O interface, latch have recorded the pin of coupling device corresponding to each interface mark, therefore after the I/O interface that described first coupling device is corresponding is determined in identification, drawing low by pin level corresponding for described N-1 the I/O interface outside a described I/O interface by high level by coding is lower level, thus prevent described N number of I/O interface to be connected with multiple adapter simultaneously, and cause the electric leakage between adapter.
Optionally, in the embodiment of the present invention, while the described break-make connection state of control switches to disconnection state by connection state, it is also possible to comprising: controlling described electronics is power supply state, and control described first coupling device and export the first corresponding adapt voltages. Now, namely so that described first coupling device is described electronics powers, such as, the service voltage of 19V can be exported, it is achieved adapter function of supplying power by a described I/O interface. Meanwhile, described N-1 I/O interface is in the adapter functions that lower level can not respond other coupling device again, only retains USB and connects function.
Therefore in the embodiment of the present invention, the mode firsting impressions are strongest is adopted by latch, by there is described first identification marking the first coupling device by an I/O interface of correspondence and described power supply connection, by coding, level corresponding for other I/O interface pressure is drawn low simultaneously, thus ensure that only retaining an interface in described N number of I/O interface has adapter functions, during to avoid multiple adapter to be connected with described electronics simultaneously, electric leakage between adapter, ensure that the security between electronic equipment interfaces.
Refer to Fig. 4, conceive based on same, the invention also discloses a kind of electronics, comprise N number of input and output I/O interface, and described N number of I/O interface is connected with for electric line and data circuit, N is positive integer, and described electronics can comprise acquiring unit 401, judging unit 402 and processing unit 403.
Described acquiring unit 401 may be used for obtaining, when the I/O interface detected in described N number of I/O interface is connected with first coupling device with the first identification marking information, the voltage fluctuation parameter information that described first coupling device is corresponding.
Described judging unit 402 may be used for judging whether described voltage fluctuation parameter is in preset range, obtains a judged result.
If it is yes that described processing unit 403 may be used for described judged result, N-1 the I/O interface and described confession that control in described N number of I/O interface except a described I/O interface are in, between electric line, the state of disconnecting.
Optionally, in the embodiment of the present invention, when being in connection state when between described N number of I/O interface and described confession electric line, the level that each the I/O interface in described N number of I/O interface is corresponding is high level.
Optionally, in the embodiment of the present invention, described acquiring unit 401 specifically may be used for:
In the first moment, detection determines to there is M the coupling device being connected by M I/O interface in described N number of I/O interface with described electronics, obtains M the pin mark that described M coupling device is corresponding, and M is more than or equal to the integer that 1 is less than or equal to N;
Whether identify described M pin in identifying containing described first identification marking;
If having, the coupling device corresponding with described first identification marking is defined as described first coupling device;
In the 2nd moment differing preset duration with described first moment after described first moment, detection obtains voltage fluctuation parameter corresponding to described first coupling device.
Optionally, in the embodiment of the present invention, described processing unit 403 specifically may be used for: if described judged result is yes, control described electronics and level corresponding for described N-1 I/O interface is switched to lower level by described high level, be in, between electric line, the state of disconnecting to control described N-1 I/O interface and described confession.
Optionally, in the embodiment of the present invention, described electronics can also comprise: output unit, is power supply state for controlling described electronics, and control described first coupling device and export the first corresponding adapt voltages.
A kind of open control method of the embodiment of the present invention, it is applied to electronics, described electronics comprises N number of input and output I/O interface, and described N number of I/O interface is connected with for electric line and data circuit, N is positive integer, described method comprises: when the I/O interface detected in described N number of I/O interface is connected with first coupling device with the first identification marking information, obtain the voltage fluctuation parameter that described first coupling device is corresponding; Judge whether described voltage fluctuation parameter is in preset range, obtain a judged result; Break-make connection state between N-1 the I/O interface controlled in described N number of I/O interface except a described I/O interface based on described judged result and described confession electric line.
In the embodiment of the present invention, owing to described electronics comprises N number of input and output I/O interface, and described N number of I/O interface is connected with for electric line and data circuit, therefore, when first coupling device with described first identification marking information being detected, by voltage fluctuation parameter is judged further, and according to N-1 I/O interface except a described I/O interface in the judged result described N number of I/O interface of control and the break-make connection state between described confession electric line. if such as described voltage fluctuation parameter is in described preset range, then can retain the connection between an I/O interface of described first coupling device connection, and disconnect the connection between described N-1 I/O interface and described confession electric line, namely described break-make connection state is made to be in disconnection state, and only to retain described first coupling device being connected with a described I/O interface be that described electronics is powered, thus the power supply device of connection of the coupling device being preferentially connected with I/O interface can being powered in unique and described electronics, and described N-1 I/O interface only retains the function of USB interface, thus avoid the device being connected with other I/O interface to be that described electronics is powered, prevent the electric leakage between adapter, improve security and the Consumer's Experience of the port of electronics.
Specifically, the computer program instructions that frequency adjusting method in the embodiment of the present application is corresponding can be stored in CD, hard disk, on the storage medias such as USB flash disk, read by an electronics when the computer program instructions corresponding with control method in storage media or when being performed, comprise the steps:
When the I/O interface detected in described N number of I/O interface is connected with first coupling device with the first identification marking information, obtain the voltage fluctuation parameter that described first coupling device is corresponding;
Judge whether described voltage fluctuation parameter is in preset range, obtain a judged result;
Break-make connection state between N-1 the I/O interface controlled in described N number of I/O interface except a described I/O interface based on described judged result and described confession electric line.
Optionally, described storage media stores with step: the computer instruction that between N-1 the I/O interface controlled in described N number of I/O interface except a described I/O interface based on described judged result and described confession electric line, break-make connection state is corresponding, being specifically performed in process, specifically comprises the steps:
If described judged result is yes, controls described break-make connection state and it is off state.
Optionally, in described storage media store and step: if described judged result is yes, controls described break-make connection state and be off computer instruction corresponding to state being specifically performed in process, comprise the steps:
If described judged result is yes, controls described electronics and level corresponding for described N-1 I/O interface is switched to lower level by described high level, be in, between electric line, the state of disconnecting to control described N-1 I/O interface and described confession.
Optionally, in described storage media store with step: described when detection described N number of I/O interface in an I/O interface be connected with the first coupling device time, obtain the voltage fluctuation parameter that described first coupling device is corresponding, corresponding computer instruction, being specifically performed in process, comprises the steps:
In the first moment, detection determines to there is M the coupling device being connected by M I/O interface in described N number of I/O interface with described electronics, obtains M the pin mark that described M coupling device is corresponding, and M is more than or equal to the integer that 1 is less than or equal to N;
Whether identify described M pin in identifying containing described first identification marking;
If having, the coupling device corresponding with described first identification marking is defined as described first coupling device;
In the 2nd moment differing preset duration with described first moment after described first moment, detection obtains voltage fluctuation parameter corresponding to described first coupling device.
Optionally, described storage media also stores other computer instruction, these computer instructions with step: if described judged result is yes, what control that described break-make connection state is off that computer instruction corresponding to state be performed is performed simultaneously, comprises the steps: when being performed
Controlling described electronics is power supply state, and controls described first coupling device and export the first corresponding adapt voltages.
Obviously, the present invention can be carried out various change and modification and not depart from the spirit and scope of the present invention by the technician of this area. Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these change and modification.

Claims (12)

1. a control method, is applied to electronics, and described electronics comprises N number of input and output I/O interface, and described N number of I/O interface is connected with for electric line and data circuit, and N is positive integer, and described method comprises:
When the I/O interface detected in described N number of I/O interface is connected with first coupling device with the first identification marking information, obtain the voltage fluctuation parameter that described first coupling device is corresponding;
Judge whether described voltage fluctuation parameter is in preset range, obtain a judged result;
Break-make connection state between N-1 the I/O interface controlled in described N number of I/O interface except a described I/O interface based on described judged result and described confession electric line.
2. the method for claim 1, it is characterised in that, when the break-make connection state between described N number of I/O interface and described confession electric line is connection state, the level that each the I/O interface in described N number of I/O interface is corresponding is high level.
3. method as claimed in claim 2, it is characterised in that, break-make connection state between described N-1 I/O interface controlling in described N number of I/O interface except a described I/O interface based on described judged result and described confession electric line, comprising:
If described judged result is yes, controls described break-make connection state and it is off state.
4. method as claimed in claim 3, it is characterised in that, if described judged result is yes, controls described break-make connection state and it is off state, be specially:
If described judged result is yes, controls described electronics and level corresponding for described N-1 I/O interface is switched to lower level by described high level, switch to, by connection state, the state of disconnecting to control described break-make connection state.
5. the method for claim 1, it is characterised in that, when a described I/O interface when detecting in described N number of I/O interface is connected with the first coupling device, obtains the voltage fluctuation parameter that described first coupling device is corresponding, specifically comprise:
In the first moment, detection determines to there is M the coupling device being connected by M I/O interface in described N number of I/O interface with described electronics, obtains M the pin mark that described M coupling device is corresponding, and M is more than or equal to the integer that 1 is less than or equal to N;
Whether identify described M pin in identifying containing described first identification marking;
If having, the coupling device corresponding with described first identification marking is defined as described first coupling device;
In the 2nd moment differing preset duration with described first moment after described first moment, detection obtains voltage fluctuation parameter corresponding to described first coupling device.
6. method as described in claim as arbitrary in claim 3-5, it is characterised in that, if being yes in described judged result, control while described break-make connection state is off state, described method also comprises:
Controlling described electronics is power supply state, and controls described first coupling device and export the first corresponding adapt voltages.
7. an electronics, comprises N number of input and output I/O interface, and described N number of I/O interface is connected with for electric line and data circuit, and N is positive integer, and described electronics comprises:
Acquiring unit, during for being connected with first coupling device with the first identification marking information when the I/O interface detected in described N number of I/O interface, obtains the voltage fluctuation parameter information that described first coupling device is corresponding;
Judging unit, for judging whether described voltage fluctuation parameter is in preset range, obtains a judged result;
Processing unit, for based on N-1 I/O interface except a described I/O interface in the described judged result described N number of I/O interface of control and the break-make connection state between described confession electric line.
8. electronics as claimed in claim 7, it is characterised in that, when the break-make connection state between described N number of I/O interface and described confession electric line is connection state, the level that each the I/O interface in described N number of I/O interface is corresponding is high level.
9. electronics as claimed in claim 8, it is characterised in that, described processing unit specifically for:
If described judged result shows that described voltage fluctuation parameter is in described preset range, control described break-make connection state and it is off state.
10. electronics as claimed in claim 9, it is characterised in that, described processing unit concrete also for:
If described judged result shows that described voltage fluctuation parameter is in described preset range, control described electronics and level corresponding for described N-1 I/O interface is switched to lower level by described high level, switch to, by connection state, the state of disconnecting to control described break-make connection state.
11. electronicss as claimed in claim 7, it is characterised in that, described acquiring unit specifically for:
In the first moment, detection determines to there is M the coupling device being connected by M I/O interface in described N number of I/O interface with described electronics, obtains M the pin mark that described M coupling device is corresponding, and M is more than or equal to the integer that 1 is less than or equal to N;
Whether identify described M pin in identifying containing described first identification marking;
If having, the coupling device corresponding with described first identification marking is defined as described first coupling device;
In the 2nd moment differing preset duration with described first moment after described first moment, detection obtains voltage fluctuation parameter corresponding to described first coupling device.
Electronics as described in 12. claims as arbitrary in claim 9-11, it is characterised in that, described electronics also comprises:
Output unit is power supply state for controlling described electronics, and controls described first coupling device and export the first corresponding adapt voltages.
CN201410678054.3A 2014-11-21 2014-11-21 Control method and electronic equipment Active CN105677596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410678054.3A CN105677596B (en) 2014-11-21 2014-11-21 Control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410678054.3A CN105677596B (en) 2014-11-21 2014-11-21 Control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105677596A true CN105677596A (en) 2016-06-15
CN105677596B CN105677596B (en) 2021-09-14

Family

ID=56957966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410678054.3A Active CN105677596B (en) 2014-11-21 2014-11-21 Control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105677596B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106249083A (en) * 2016-08-30 2016-12-21 王竞 Detection method that data-interface takies and DIU data interface unit
CN106300501A (en) * 2016-07-26 2017-01-04 广东欧珀移动通信有限公司 A kind of adapter recognition methods and intelligent mobile terminal
CN109638970A (en) * 2019-01-25 2019-04-16 南方电网科学研究院有限责任公司 Power distribution network based on plug-and-play equipment and interfaces and control method thereof
CN114801521A (en) * 2021-01-21 2022-07-29 林威 Printer head detection method
TWI800344B (en) * 2022-04-07 2023-04-21 緯穎科技服務股份有限公司 Main board, hot swap control signal generator and control signal generating method thereof
CN116049070B (en) * 2022-05-30 2023-11-10 荣耀终端有限公司 Camera module identification method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534349A (en) * 2008-03-10 2009-09-16 三星电子株式会社 Method and apparatus for determining external connection device in mobile terminal
EP2498167A1 (en) * 2006-12-08 2012-09-12 Nokia Corporation Multiple connections to a single serial interface
CN103002042A (en) * 2012-12-14 2013-03-27 广州杰赛科技股份有限公司 Cloud terminal with multiple power supply modes and cloud computing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2498167A1 (en) * 2006-12-08 2012-09-12 Nokia Corporation Multiple connections to a single serial interface
CN101534349A (en) * 2008-03-10 2009-09-16 三星电子株式会社 Method and apparatus for determining external connection device in mobile terminal
CN103002042A (en) * 2012-12-14 2013-03-27 广州杰赛科技股份有限公司 Cloud terminal with multiple power supply modes and cloud computing system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106300501A (en) * 2016-07-26 2017-01-04 广东欧珀移动通信有限公司 A kind of adapter recognition methods and intelligent mobile terminal
CN106249083A (en) * 2016-08-30 2016-12-21 王竞 Detection method that data-interface takies and DIU data interface unit
CN109638970A (en) * 2019-01-25 2019-04-16 南方电网科学研究院有限责任公司 Power distribution network based on plug-and-play equipment and interfaces and control method thereof
CN114801521A (en) * 2021-01-21 2022-07-29 林威 Printer head detection method
CN114801521B (en) * 2021-01-21 2024-04-16 林威 Printer head detection method
TWI800344B (en) * 2022-04-07 2023-04-21 緯穎科技服務股份有限公司 Main board, hot swap control signal generator and control signal generating method thereof
CN116049070B (en) * 2022-05-30 2023-11-10 荣耀终端有限公司 Camera module identification method and electronic equipment

Also Published As

Publication number Publication date
CN105677596B (en) 2021-09-14

Similar Documents

Publication Publication Date Title
CN105677596A (en) Control method and electronic equipment
CN103563334B (en) Method, Apparatus and system for audio/video devices conversion between source module and trap pattern
CN205544514U (en) Take DATA TRANSFER FUNCTIONS's integrated charger
CN104063348B (en) Realize the device and method of compatible USB communications and voice communication
CN107544934A (en) The two-way signaling regulation chip and USB Type C cables of a kind of USB Type C cables
CN105335311A (en) Portable electronic device and power management method
US8458376B1 (en) USB peripheral device with automatic mode switch
CN104915306B (en) A kind of data manipulation control method and equipment manager
CN103683350B (en) The charging method of electric room, charging circuit and electronic equipment
CN106571657A (en) Terminal, converter and connection conversion system and method
CN108228509A (en) A kind of USB interface switching device and electronic equipment
CN103092799A (en) Universal serial bus (USB) device and method for recognition of host operating system
US20140084850A1 (en) Host apparatus, user terminal apparatus, method of controlling charger, and method of communication using the same
CN106786960A (en) Charge control method, device and terminal
CN109921481A (en) To the OTG equipment and method of supplying power to of communication object power supply when USB is communicated
CN104519405A (en) Control method and electronic equipment
CN108073537A (en) Usb circuit, the implementation method of USB interface and device
CN106025727B (en) A kind of intelligent socket with speech identifying function
CN105868140A (en) A mobile apparatus
CN102073602A (en) Computer system, connection control device as well as connecting and disconnecting method
CN105809233B (en) A kind of intelligent modules card and its application method
CN105048018A (en) Charging method and device for terminal having on-the-go (OTG) function
CN107153456A (en) OTG connections control method, OTG connection control devices and electronic equipment
CN205788054U (en) A kind of motherboard for smart machine and there is the smart machine of this motherboard
CN105808459A (en) External equipment identification method and device, and electronic equipment

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