WO2012163243A1 - 供电控制的方法、装置及电子设备 - Google Patents

供电控制的方法、装置及电子设备 Download PDF

Info

Publication number
WO2012163243A1
WO2012163243A1 PCT/CN2012/075945 CN2012075945W WO2012163243A1 WO 2012163243 A1 WO2012163243 A1 WO 2012163243A1 CN 2012075945 W CN2012075945 W CN 2012075945W WO 2012163243 A1 WO2012163243 A1 WO 2012163243A1
Authority
WO
WIPO (PCT)
Prior art keywords
power supply
physical interface
state
power
requirement information
Prior art date
Application number
PCT/CN2012/075945
Other languages
English (en)
French (fr)
Inventor
周飞
杨胤嗣
刘渤
席振新
Original Assignee
联想(北京)有限公司
北京联想软件有限公司
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 联想(北京)有限公司, 北京联想软件有限公司 filed Critical 联想(北京)有限公司
Priority to US14/118,987 priority Critical patent/US9362769B2/en
Publication of WO2012163243A1 publication Critical patent/WO2012163243A1/zh

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/34Parallel operation in networks using both storage and other dc sources, e.g. providing buffering
    • H02J7/342The other DC source being a battery actively interacting with the first one, i.e. battery to battery charging
    • 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
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0036Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Definitions

  • the present invention relates to the field of power supply control technologies for electronic devices, and in particular, to a method, device, and electronic device for power supply control. Background technique
  • the electronic devices can be connected to each other through a physical interface, thereby implementing mutual communication based on a specific protocol.
  • a specific protocol such as the Universal Serial Bus USB protocol
  • the roles of the master and slave devices of each device need to be determined first according to the process defined by the protocol.
  • the electronic device as the master device needs to supply power to the slave device to activate the slave device, and thus control the slave device to read and write.
  • the above power supply method lacks flexibility when used in some occasions.
  • a user's mobile phone usually stores a lot of files, and the user can process these files on the mobile phone operation interface. If the user is processing these files and wants to further output these files through an external device, such as playing a music file being played in the mobile phone through the car audio system, the user will pass a physical interface such as a USB interface.
  • the mobile phone is connected to the car audio system to output the audio signal of the mobile phone to the car audio system. In this scenario, the mobile phone acts as the master device and the car audio system acts as the slave device.
  • the mobile phone serving as the main device supplies power to the car audio system as the slave device.
  • the power of the mobile phone is very limited, and the car audio system is self-powered, and the power is much higher than the mobile phone. Therefore, the above method of making the mobile phone power supply for the car audio system is unreasonable, and the standby time of the mobile phone will be greatly reduced.
  • the technical problem to be solved by the embodiments of the present invention is to provide a method, device and electronic device for power supply control Prepare a reasonable power supply control process between electronic devices.
  • a method for power supply control of a first device includes a first physical interface, and has a connectionless state and a first connection state, where the connectionless state means that the first device does not pass the first physical interface a state in which the second device is connected; the first connection state is a state in which the first device can actively send a control command to the second device through the first physical interface after the first device is connected to the second device; the method includes:
  • the first device When the first determination result indicates that the first device is connected to the second device by using the first physical interface to meet the first predetermined condition, the first device is switched from the connectionless state to The first connection state;
  • controlling the power supply to the second device by using the first physical interface according to the power supply requirement information of the second device includes:
  • the control does not supply power to the second device.
  • the controlling, by the first physical interface, the power supply to the second device includes:
  • the management interface supplies power to the second device
  • the controlling does not supply power to the second device, including:
  • the controlling when the power supply requirement information indicates that the second device is not required to be powered by the first device, does not control the power supply to the second device, including:
  • control does not supply power to the second device by using the first physical interface
  • the switching the first device from the connectionless state to the first connection state comprises:
  • the second device is powered by the first physical interface.
  • the obtaining the power supply requirement information of the second device includes:
  • the obtaining the power supply requirement information of the second device includes:
  • the second device After the first device is switched from the connectionless state to the first connection state, the second device is not powered by the first physical interface;
  • the embodiment of the present invention further provides an apparatus for power supply control of a first device, where the first device includes a first physical interface and has a connectionless state and a first connection state, where the connectionless state refers to the a state in which the first device is not connected to the second device by using the first physical interface; the first connection state is that after the first device is connected to the second device by using the first physical interface, The first physical interface actively sends a status of the control command to the second device; the device includes:
  • a first detecting unit configured to detect, when the first device is in a disconnected state, that the first device is connected to the second device by using the first physical interface
  • a first determining unit configured to determine whether the connection of the first device to the second device by using the first physical interface meets a first predetermined condition, and obtain a first determination result
  • a first switching unit configured to: when the first determining result indicates that the first device is connected to the second device by using the first physical interface, satisfying the first predetermined condition, The connectionless state is switched to the first connection state;
  • a first obtaining unit configured to obtain power supply requirement information of the second device, where the power supply requirement information is used to indicate whether the first device needs to be powered by the second device;
  • a power supply control unit configured to control power supply to the second device by using the first physical interface according to power supply requirement information of the second device.
  • the power supply control unit includes:
  • a first control unit configured to control, when the power supply requirement information indicates that the first device needs to supply power to the second device, to control, by using the first physical interface, to supply power to the second device;
  • a second control unit configured to control not to supply power to the second device when the power supply requirement information indicates that the first device does not need to supply power to the second device.
  • the first control unit comprises:
  • a second obtaining unit configured to obtain a current power supply state of the first device
  • a first processing unit configured to continue to maintain a current power supply state of the first device when the current power supply state indicates that the first device is supplying power to the second device;
  • a second processing unit configured to: when the current power supply state indicates that the first device does not supply power to the second device, supply power to the second device by using the first physical interface;
  • the second control unit includes: a third obtaining unit, configured to obtain a current power supply state of the first device;
  • a third processing unit configured to stop the first device from supplying power to the second device by using the first physical interface, when the current power supply state indicates that the first device is supplying power to the second device;
  • a fourth processing unit configured to continue maintaining the current power supply state of the first device when the current power supply state indicates that the first device does not provide power for the second device.
  • the second control unit comprises:
  • a fourth obtaining unit configured to obtain charging capability information of the second device
  • a fifth processing unit configured to: when the power supply requirement information indicates that the first device does not need to supply power to the second device, control, not to supply power to the second device by using the first physical interface;
  • a first sending unit configured to send a charging request to the second device when the charging capability information indicates that the second device is capable of charging the first device
  • the first receiving unit is configured to receive, by using the first physical interface, charging of the first device by the second device.
  • a first switching processing unit configured to switch the first device from the connectionless state to the first connection state
  • a power supply unit configured to supply power to the second device by using the first physical interface.
  • the first obtaining unit comprises:
  • a second sending unit configured to send, to the second device, a first control command for requesting power supply requirement information of the second device
  • a second receiving unit configured to receive the power supply demand information that is sent by the second device based on the first control command.
  • the first obtaining unit comprises:
  • a sixth processing unit configured to: after the switching the first device from the connectionless state to the first connection state, not supplying power to the second device by using the first physical interface;
  • a second detecting unit configured to detect, at the first physical interface, a predetermined signal from the second device in the first predetermined time to obtain a first detection result
  • the embodiment of the present invention further provides a method for power supply control of a second device, where the second device includes a second physical interface and has a connectionless state and a second connection state, where the connectionless state refers to a state in which the second device is not connected to the first device by using the second physical interface; the second connection state is that the second device can be connected to the first device through the second physical interface
  • the second physical interface passively receives a state of the control command from the first device, where the method includes:
  • the switching the second device from the connectionless state to the second connection state comprises:
  • the feeding back the power supply requirement information of the second device to the first device including: receiving, by the first device, a first request for requesting power supply requirement information of the second device control commands;
  • the method further includes: feeding back, to the first device, charging capability information of the second device; receiving, by the first device, the charging capability information, indicating that the second device is the first device a charging request sent when the device is charging;
  • the present invention also provides an apparatus for power supply control of a second device, the second device includes a second physical interface and has a connectionless state and a second connection state, wherein the connectionless state refers to the Second device a state in which the second physical interface is not connected to the first device; the second connection state is that the second device can pass the second physical device after being connected to the first device by using the second physical interface
  • the interface passively receives the status of the control command from the first device, where the device includes:
  • a third detecting unit configured to detect, when the second device is in a disconnected state, that the second device is connected to the first device by using the second physical interface
  • a second determining unit configured to determine whether the connection of the second device to the first device by using the second physical interface meets a second predetermined condition, to obtain a second determination result
  • a second switching unit configured to: when the second determining result indicates that the second device is connected to the first device by using the second physical interface, and satisfying the second predetermined condition, Switching the connectionless state to the second connection state;
  • a first feedback unit configured to feed back the power supply requirement information of the second device to the first device, so that the first device controls, according to the power supply requirement information of the second device, the second physical interface Powering the second device.
  • a second switching processing unit configured to switch the second device from the connectionless state to the second connected state
  • a power receiving unit configured to receive power of the first device by using the second physical interface.
  • a third receiving unit configured to receive, by the first device, a first control command for requesting power supply requirement information of the second device
  • a third sending unit configured to feed back the power supply requirement information to the first device according to the first control command.
  • a second feedback unit configured to feed back the charging capability information of the second device to the first device
  • the third receiving unit is configured to receive, by the first device, the charging capability information, the second device, a charging request sent when the first device is charged
  • the invention also provides an electronic device, comprising:
  • the physical interface including a first path capable of transmitting electrical energy, the second path capable of transmitting a control command, and the first path and the second path being capable of simultaneously operating;
  • a processing unit configured to set the electronic device to be in a first working state or a second working state, where the electronic device is capable of passing the first path in the physical interface when the electronic device is in the first working state Supplying power to an external device connected to the electronic device, and simultaneously receiving a control command input by the external device through the second path in the physical interface; when the electronic device is in the second working state Capable of receiving charging of the electronic device through the first path in the physical interface, and simultaneously outputting a control command to the external device through the second path in the physical interface.
  • the method, device and electronic device of the power supply control provided by the embodiment of the present invention, when the first device is in the first connection state, will obtain the power supply requirement information of the second device, and then, Determining whether the second device needs to be powered according to the power supply requirement information, so that the first device does not blindly supply power to the second device when in the first connection state, so that the power supply mode is more flexible and can be applied to Various application scenarios. Moreover, when the first device is in the first connection state, it can also receive other devices to charge itself according to needs.
  • FIG. 1 is a schematic flow chart of a method for power supply control according to the embodiment
  • FIG. 2 is a schematic structural diagram of a USB interface used in the embodiment
  • FIG. 3 is a schematic structural diagram of an apparatus for power supply control according to the embodiment.
  • FIG. 4 is a schematic diagram of a specific structure of the embodiment when applied to a USB interface. detailed description
  • the power supply requirement information is transmitted between the devices, and the reasonable power supply control process is implemented according to the information, so that the power supply mode is more flexible and can be applied to various application scenarios.
  • the method for power supply control according to this embodiment is applied to a first device, where the first device includes a first physical interface.
  • the first device has a connectionless state, a first connection state, and a second connection state.
  • the connectionless state refers to a state in which the first device is not connected to the second device by using the first physical interface;
  • the first connection state is that the first device is connected to the second device by using the first physical interface,
  • the state of the control command is actively sent to the second device by using the first physical interface.
  • the second connection state is that after the first device is connected to the second device by using the first physical interface, the second device can be passive from the second device by using the first physical interface. Receive the status of the control command.
  • the connectionless state means that the USB interface of the first device is not connected to the connection state of any device; the first connection state means that the USB interface of the first device is connected to the second device, and A device is a connection state of the master device.
  • the first device can actively send a control command to control the second device.
  • the first connection state is that the USB device of the first device is connected to the second device, and the first device is It is the connection state of the slave device, at which time the first device can passively receive the control command of the second device and respond to the control command of the second device.
  • the method for power supply control may include the following steps:
  • the first device may determine whether the second device is connected to the first physical interface according to the level change by detecting a level change of the first physical interface.
  • Step 12 Determine whether the connection of the first device to the second device by using the first physical interface meets the first predetermined condition, and obtain a first determination result.
  • Step 13 When the first judgment result indicates that the first device is connected to the second device through the first physical interface to satisfy the first predetermined condition, the first device is switched from the connectionless state to the first connection state.
  • the first device when the first device is connected to the second device through the first physical interface and the ID pin on the first physical interface is low (ID pin and ground GND pin) When the device is shorted, the first device can be switched from the non-connected state to the first connected state, where the first device is the state of the first device (Host), and at this time, the second device is the slave device (slave) ) Status.
  • Step 14 Obtain power supply requirement information of the second device, where the power supply requirement information may indicate whether the second device needs to be powered by the first device.
  • the obtaining the power requirement information of the second device may be implemented by the information interaction between the first device and the second device: the first device sends, to the second device, the power supply requirement information for requesting the second device.
  • the second device determines, according to the second power supply parameter of the second device (such as the battery capacity information of the second device or the power parameter of the power supply), whether the first device needs to be powered, and then feedback Power supply demand information.
  • the first device may further carry the first power supply parameter of the first device, such as the battery capacity information of the first device or the power parameter of the power supply; After a control command, obtaining the power supply parameter of the first device carried therein, and comparing with the second power supply parameter of the second device (such as the battery capacity information of the second device or the power parameter of the power supply), and obtaining a comparison Result; Then, according to the comparison result, the power supply demand information is fed back to the first device.
  • the first power supply parameter of the first device such as the battery capacity information of the first device or the power parameter of the power supply
  • the first power supply requirement information for indicating that the first device does not need to supply power to the second device is fed back to the first device;
  • the second power supply requirement information indicating that the first device needs to supply power to the second device is fed back to the first device.
  • the second device does not have power supply itself, and the first device supplies power to the first connection state after switching to the first connection state, the second device cannot respond to the first control command. If the first device does not receive the power supply requirement information that is fed back by the second device after the predetermined waiting time, the second device may have no power supply unit, and the first device may obtain the first device as the second device. Power supply demand information.
  • Step 15 Control, according to the power requirement information of the second device, the power supply to the second device by using the first physical interface.
  • the power demand information of the second device is obtained. Then, according to the power supply requirement information, it is determined whether the second device needs to be powered, so that when the first device is in the first connection state, the second device is no longer blindly powered, so that the power supply mode is more flexible and capable of Suitable for a variety of application scenarios. For example, when the second device has its own power supply and can be self-powered, the first device does not need to supply power to the second device to reduce unnecessary power consumption of the first device.
  • the power supply requirement information may be obtained in the following manner: Step 141: After the first device is switched from the connectionless state to the first connection state, the first physical interface pair is not passed. The second device performs power supply;
  • Step 142 The first physical interface detects a predetermined signal from the second device in the first predetermined time to obtain a first detection result.
  • Step 143 Obtain power supply requirement information according to the first detection result. For example, if the first detection result indicates that the predetermined signal is detected within the first predetermined time, it may be determined that the second device is able to work normally and is effectively detected, and at this time, when the second device is not required to be powered by the first device, The first power supply requirement information; conversely, if the first detection result indicates that the predetermined signal is not detected within the first predetermined time, it may be determined that the second device is not working normally, and the second device may be powered by the first device. The second power demand information at the time.
  • the second device has a self-power supply (such as connecting to an external power supply through a power adapter or including a battery pack itself), its data pin D+ will be pulled up, first The device can detect the corresponding pull-up signal on the data pin D+ of the USB interface. In this case, the first device does not need to supply power to the second device, and the first power supply requirement information is obtained. Otherwise, the second power supply demand information can be obtained.
  • a self-power supply such as connecting to an external power supply through a power adapter or including a battery pack itself
  • the foregoing step 15 may specifically include:
  • Step 152 When the power supply requirement information indicates that the second device is not required to be powered by the first device, the control does not supply power to the second device.
  • the above step 151 may specifically include:
  • Step 1511 Obtain a current power supply status of the first device.
  • Step 1512 When the current power supply state indicates that the first device is supplying power to the second device, maintaining the current power supply state of the first device.
  • Step 1513 When the current power supply state indicates that the first device does not supply power to the second device, the second device is powered by the first physical interface.
  • the above step 152 may specifically include:
  • Step 1521 Obtain a current power supply state of the first device.
  • Step 1522 When the current power supply state indicates that the first device is supplying power to the second device, stop the first device to supply power to the second device by using the first physical interface.
  • Step 1523 When the current power supply state indicates that the first device does not supply power to the second device, continue to maintain the current power supply state of the first device.
  • the embodiment further provides an apparatus for power supply control of a first device, where the first device includes a first physical interface, and has a connectionless state and a first connection state, where the connectionless state refers to the first device. Did not pass The state in which the first physical interface is connected to the second device; the first connection state is a state in which the first device can actively send a control command to the second device through the first physical interface after being connected to the second device by using the first physical interface.
  • the apparatus may include:
  • a first detecting unit configured to detect, when the first device is in a disconnected state, that the first device is connected to the second device by using the first physical interface
  • a first determining unit configured to determine whether the connection of the first device to the second device by using the first physical interface meets the first predetermined condition, and obtain a first determination result
  • a first switching unit configured to: when the first determining result indicates that the first device is connected to the second device by using the first physical interface, the first device is configured to switch from the connectionless state to the first connection state;
  • a first obtaining unit configured to obtain power supply requirement information of the second device, where the power supply requirement information is used to indicate whether the second device is required to be powered by the first device;
  • the power supply control unit is configured to control power supply to the second device by using the first physical interface according to the power supply requirement information of the second device.
  • the foregoing first obtaining unit may specifically include:
  • a sixth processing unit configured to: after the first device is switched from the connectionless state to the first connection state, not to supply power to the second device by using the first physical interface;
  • a second detecting unit configured to detect a predetermined signal from the second device at the first physical interface in the first predetermined time to obtain a first detection result
  • the analysis obtaining unit is configured to obtain power supply demand information according to the first detection result.
  • the first obtaining unit may perform the information exchange with the second device to obtain the power supply requirement information, and the first obtaining unit may specifically include: a second sending unit, Transmitting, to the second device, a first control command for requesting power supply requirement information of the second device;
  • the second receiving unit is configured to receive power supply requirement information that is sent by the second device based on the first control command.
  • the power supply control unit described above may include:
  • a first control unit configured to control, when the power supply requirement information indicates that the first device needs to supply power to the second device, to control, by using the first physical interface, to supply power to the second device;
  • the second control unit is configured to control not to supply power to the second device when the power supply requirement information indicates that the second device is not required to be powered by the first device. More specifically, the first control unit may further include:
  • a second obtaining unit configured to obtain a current power supply state of the first device
  • a first processing unit configured to continue to maintain a current power supply state of the first device when the current power supply state indicates that the first device is supplying power to the second device;
  • a second processing unit configured to: when the current power supply state indicates that the first device does not supply power to the second device, supply power to the second device by using the first physical interface;
  • the second control unit may in turn comprise:
  • a third processing unit configured to stop the first device from supplying power to the second device by using the first physical interface, when the current power supply state indicates that the first device is supplying power to the second device;
  • the fourth processing unit is configured to continue to maintain the current power supply state of the first device when the current power supply state indicates that the first device does not supply power to the second device.
  • the method of power supply control described in this embodiment is still applied to the first device similar to the first embodiment.
  • the first device after the first device switches from the connectionless state to the first connection state, the first device actively supplies power to the second device, and then determines whether it is necessary to continue to pass the first physical device according to the power supply requirement information of the second device.
  • the interface supplies power to the second device.
  • Step 21 When the first device is in a disconnected state, detecting that the first device is connected to the second device by using the first physical interface.
  • Step 22 Determine whether the connection of the first device to the second device by using the first physical interface meets the first predetermined condition, and obtain a first determination result.
  • Step 23 When the first determination result indicates that the first device is connected to the second device by using the first physical interface to meet the first predetermined condition, the first device is switched from the connectionless state to the first connection state, and passes through the first physical interface. Powering the second device.
  • Step 24 Obtain power supply requirement information of the second device, where the power supply requirement information is used to indicate whether the second device needs to be powered by the first device.
  • the obtaining power supply requirement information of the second device may specifically include: Step 241: Send a first control command for requesting power supply requirement information of the second device to the second device. Step 242: Receive power supply requirement information that is sent by the second device based on the first control command.
  • Step 25 Control, according to the power requirement information of the second device, powering the second device by using the first physical interface.
  • step 23 the first device immediately supplies power to the second device after switching to the first connection state. Then, in step 25, the following determination process is performed:
  • the first device is stopped to supply power to the second device through the first physical interface.
  • the embodiment further provides an apparatus for power supply control of the first device, where the first device includes a first physical interface, and has a connectionless state and a first connection state, where the connectionless state refers to the first device not a state in which the first device is connected to the second device through the first physical interface.
  • the first connection state is a state in which the first device can actively send a control command to the second device through the first physical interface after being connected to the second device by using the first physical interface.
  • a first detecting unit configured to detect, when the first device is in a disconnected state, that the first device is connected to the second device by using the first physical interface
  • a first determining unit configured to determine whether the connection of the first device to the second device by using the first physical interface meets the first predetermined condition, and obtain a first determination result
  • a first switching unit configured to: when the first determining result indicates that the first device is connected to the second device by using the first physical interface, the first device is configured to switch from the connectionless state to the first connection state;
  • a first obtaining unit configured to obtain power supply requirement information of the second device, where the power supply requirement information is used to indicate whether the second device is required to be powered by the first device;
  • a power supply control unit configured to control, according to the power requirement information of the second device, by using the first physical interface The power supply of the two devices.
  • the first device may be powered first to ensure that the second device can work normally
  • the first switching unit may specifically include: a switching processing unit, configured to switch the first device from the connectionless state to the first connection state; and the power supply unit, configured to supply power to the second device by using the first physical interface.
  • the first obtaining unit may obtain the power supply requirement information of the second device in an interactive manner, and the first obtaining unit may specifically include:
  • a second sending unit configured to send, to the second device, a first control command for requesting power supply requirement information of the second device
  • the second receiving unit is configured to receive power supply requirement information that is sent by the second device based on the first control command.
  • Step 31 When the first device is in a disconnected state, detecting that the first device is connected to the second device by using the first physical interface.
  • Step 33 When the first determination result indicates that the first device is connected to the second device by using the first physical interface to meet the first predetermined condition, the first device is switched from the connectionless state to the first connection state, and passes through the first physical interface. Powering the second device.
  • Step 35 Control, according to the power requirement information of the second device, the first device to supply power to the second device by using the first physical interface.
  • Step 351 When the power supply requirement information indicates that the first device needs to supply power to the second device, continue to maintain the current power supply state of the first device.
  • step 352 may specifically include:
  • Step 3522 When the power supply requirement information indicates that the second device is not required to be powered by the first device, the control does not supply power to the second device by using the first physical interface.
  • the obtaining the charging capability information of the second device in the above step 3521 may also be performed in step 34, that is, when the power supply demand information of the second device is obtained in step 34, the charging capability information of the second device is further obtained.
  • the charging capability information may be obtained by: the first device sending a second control command for requesting charging capability information of the second device to the second device; the first device receiving the second device based on the second control The charging capability information of the command feedback.
  • the second device determines whether it has a self-power supply, and if so, feeds back, to the first device, first charging capability information indicating that the user can charge the first device; If not, the first charging capability information indicating that the user cannot charge the first device is fed back to the first device.
  • the first device may further carry the first power supply parameter of the first device, such as the battery capacity information of the first device or the power parameter of the power supply; After the second control command, obtain the power supply parameter of the first device carried therein, and compare with the second power supply parameter of the second device (such as the battery capacity information of the second device or the power parameter of the power supply) to obtain the first a comparison result; then, according to the first comparison result, the charging capability information is fed back to the first device.
  • the second power supply parameter is superior to the first power supply parameter
  • the first charging capability information for indicating that the first device can be charged is fed back to the first device; and the second power supply parameter is worse than the first power supply.
  • the power parameters are The first charging capability information for indicating that the first device cannot be charged by itself is fed back to the first device.
  • the embodiment further provides a device for power supply control, which is applied to a first device, where the first device includes a first physical interface, and the first device has a connectionless state and a first connection state, where the connection state is The state in which the first device is not connected to the second device through the first physical interface; the first connection state is that the first device can connect to the second device through the first physical interface, and can reach the second device through the first physical interface.
  • the status of the control command is actively sent.
  • the device of this embodiment includes:
  • a first determining unit configured to determine whether the connection of the first device to the second device by using the first physical interface meets the first predetermined condition, and obtain a first determination result
  • a first switching unit configured to: when the first determining result indicates that the first device is connected to the second device by using the first physical interface, the first device is configured to switch from the connectionless state to the first connection state;
  • the power supply control unit is configured to control power supply to the second device by using the first physical interface according to the power supply requirement information of the second device.
  • the power supply control unit includes:
  • a first control unit configured to control, when the power supply requirement information indicates that the first device needs to supply power to the second device, to control, by using the first physical interface, to supply power to the second device;
  • a second control unit configured to control not to supply power to the second device when the power supply requirement information indicates that the second device is not required to be powered by the first device.
  • the second control unit may further include the following units to implement reverse charging of the first device by the second device:
  • a fourth obtaining unit configured to obtain charging capability information of the second device
  • a first sending unit configured to send a charging request to the second device when the charging capability information indicates that the second device is capable of charging the first device
  • the first receiving unit is configured to receive, by using the first physical interface, charging of the first device by the second device.
  • the device for power supply control of this embodiment may further be provided with a switching unit, one end of which is connected to the VBUS pin of the USB interface, and the other end is connected to the charging circuit and the power supply circuit, respectively.
  • the charging circuit is also connected to the battery (group).
  • the switching unit can be a connection switch for controlling the connection of the VBUS pin to the charging circuit or the power supply circuit, and also controlling the VBUS pin to be disconnected from the charging circuit and the power supply circuit.
  • the first control unit can connect the VBUS pin to the power supply circuit by controlling the switching unit, so that the second device can be powered by the VBUS pin; the second control unit or the fifth processing unit can be controlled.
  • the switching unit disconnects the VBUS pin from the power supply circuit and does not supply power to the second device.
  • the first transmitting unit may further control the switching unit to connect the VBUS pin to the charging circuit after receiving the charging request, thereby receiving power from the VBUS pin to charge the battery.
  • the second device may also be provided with the same switching unit, so as to cooperate with the first device to receive power from the first device or to charge the first device.
  • This embodiment provides a method for power supply control of a second device.
  • the second device includes a second physical interface, and the second device can be connected to the first physical interface of the first device of the foregoing embodiment by using the second physical interface, so as to implement the connection with the first device.
  • the second device has a connectionless state and a second connection state, where the connectionless state refers to a state in which the second device is not connected to the first device through the second physical interface; the first connection state refers to the second device passes the second physical state After the interface is connected to the first device, the state of the control command can be actively sent to the first device through the second physical interface.
  • the second connection state is that the second device can be connected to the first device through the second physical interface.
  • the physical interface passively receives the status of the control command from the first device.
  • the method for power supply control of this embodiment may specifically include:
  • Step 41 When the second device is in a disconnected state, detecting that the second device is connected to the first device by using the second physical interface.
  • Step 42 Determine whether the connection of the second device to the first device by using the second physical interface meets the second predetermined condition, and obtain a second determination result.
  • Step 43 When the second determination result indicates that the second device is connected to the first device through the second physical interface to satisfy the second predetermined condition, the second device is switched from the connectionless state to the second connected state.
  • the second device when the second device is connected to the first device through the second physical interface, and the ID pin on the second physical interface is at a high level, the second device can be switched from the connectionless state.
  • the second connection state In the second connection state, the second connection state is the state of the slave device (Slave), and at this time, the first device is the master device state.
  • the switching the second device from the connectionless state to the second connection state may include: switching the second device from the connectionless state to the second connection state; and receiving the first through the second physical interface Power supply to the device. That is, after entering the second connection state, the second device can work with the power provided by the first device.
  • Step 44 The power supply requirement information of the second device is fed back to the first device, so that the first device controls power supply to the second device by using the second physical interface according to the power supply requirement information.
  • the power supply requirement information is used to indicate whether it is necessary to supply power to the second device by the first device.
  • the power supply requirement information causes the first device to control power to the second device through the first physical interface; and when the first device does not need to supply power to the second device, the power supply requirement information makes A device control does not supply power to the second device.
  • the foregoing step 44 specifically includes:
  • Step 441 Receive a first control command sent by the first device to request power supply requirement information of the second device.
  • Step 442 Feed back power supply requirement information to the first device based on the first control command.
  • the second device determines, according to the second power supply parameter of the second device, such as the battery capacity information of the second device or the power parameter of the power supply, whether the first device needs to be powered, and further Feedback power supply demand information. For example, when the battery capacity of the second device is lower than the preset first threshold or the power supply power is lower than the preset second threshold, it may be determined that the first device needs to be powered; otherwise, the second device is powered. When the pool capacity is higher than the preset first threshold or the power supply power is higher than the preset second threshold, it can be determined that the first device is not required to supply power.
  • the second power supply parameter of the second device such as the battery capacity information of the second device or the power parameter of the power supply
  • the first device may further carry the first power supply parameter of the first device, such as the battery capacity information of the first device or the power parameter of the power supply; After a control command, obtaining the power supply parameter of the first device carried therein, and comparing with the second power supply parameter of the second device (such as the battery capacity information of the second device or the power parameter of the power supply), and obtaining a comparison Result; Then, according to the comparison result, the power supply demand information is fed back to the first device.
  • the first power supply parameter of the first device such as the battery capacity information of the first device or the power parameter of the power supply
  • the first power supply requirement information for indicating that the first device does not need to supply power to the second device is fed back to the first device;
  • the second power supply requirement information indicating that the first device needs to supply power to the second device is fed back to the first device.
  • the second device may further feed back the charging capability information of the first device to the first device.
  • the method for the power supply control of the embodiment may further include:
  • Step 46 Feed back the charging capability information of the second device to the first device.
  • Step 47 Receive a charging request sent by the first device when the charging capability information indicates that the second device is capable of charging the first device.
  • Step 48 After receiving the charging request, charging the first device by using the second physical interface.
  • the foregoing step 46 may further include: Step 45: receiving a second control command sent by the first device for requesting charging capability information of the second device; and then, in step 46, responding to the second control command, and feeding back the charging capability information.
  • the charging capability information may be determined in the following manner, and then fed back to the first device: the second device determines whether it has a self-power supply, and if so, feeds back to the first device to indicate that it can The first charging capability information of the first device charging; if not, feeding back the first charging capability information for indicating that the first device cannot be charged by the first device.
  • the first device may further carry the first power supply parameter of the first device itself when the second control command is sent.
  • the charging capability information may also be determined in the following manner: after receiving the second control command, the second device obtains the power supply parameter of the first device carried therein, and the second device itself The ratio of the two power supply parameters (such as the battery capacity information of the second device or the power parameter of the power supply) The first comparison result is obtained. Then, according to the first comparison result, the charging capability information is fed back to the first device. For example, when the second power supply parameter is superior to the first power supply parameter, the first charging capability information for indicating that the first device can be charged is fed back to the first device; and the second power supply parameter is worse than the first power supply. When the power parameter is used, the first charging capability information indicating that the first device cannot be charged by itself is fed back to the first device.
  • the embodiment further provides an apparatus for power supply control of the second device, where the second device includes a second physical interface, and has a connectionless state and a second connection state, where the connectionless state refers to the second device not a state of being connected to the first device through the second physical interface; the second connection state is a state in which the second device can passively receive the control command from the first device through the second physical interface after being connected to the first device through the second physical interface .
  • the device may specifically include:
  • a third detecting unit configured to detect, when the second device is in a disconnected state, that the second device is connected to the first device by using the second physical interface
  • a second determining unit configured to determine whether the connection of the second device to the first device by using the second physical interface meets a second predetermined condition, and obtain a second determination result
  • a second switching unit configured to: when the second determination result indicates that the second device is connected to the first device by using the second physical interface to meet the second predetermined condition, to switch the second device from the connectionless state to the second connection state;
  • the feedback unit is configured to feed back the power requirement information of the second device to the first device, so that the first device controls power supply to the second device by using the second physical interface according to the power supply requirement information of the second device.
  • the second switching unit comprises:
  • the second switching processing unit is configured to switch the second device from the connectionless state to the second connection state; and the power receiving unit is configured to receive the power supply of the first device by using the second physical interface.
  • the feedback unit comprises:
  • a third receiving unit configured to receive, by the first device, a first control command for requesting power supply requirement information of the second device
  • the third sending unit is configured to feed back the power supply requirement information to the first device according to the first control command.
  • the second device of this embodiment may further charge the first device when in the second connected state.
  • the second device also includes:
  • a second feedback unit configured to feed back, to the first device, charging capability information of the second device
  • a third receiving unit configured to receive, by the first device, a charging request that is sent when the charging capability information indicates that the second device is capable of charging the first device;
  • a charging unit configured to: after receiving the charging request, charge the first device by using the second physical interface.
  • the embodiment provides an electronic device, including a physical interface, where the physical interface includes a first path and a second path, the first path can transmit (transmit or receive) electrical energy, and the second path can transmit (transmit or receive) control Command, the first path and the second path can work simultaneously;
  • a processing unit configured to set the electronic device to be in a first working state or a second working state
  • the external device connected to the electronic device can be powered through the first path in the physical interface, and the control command input by the external device is received through the second path in the physical interface;
  • the device when the device is in the second working state, it can receive charging of the electronic device through the first path in the physical interface, and at the same time output a control command to the external device through the second path in the physical interface.
  • the connected device when the electronic device is in the first working state, the connected device can be powered by the first path in the physical interface, and the first device generated and input by the external device is received through the second path in the physical interface. a control command; wherein, in a state in which the electronic device and the external device are connected, the first control command can only be generated by the external device.
  • the external device can receive the charging of the electronic device through the first path in the physical interface, and simultaneously output the second control command to the external device through the second path in the physical interface; wherein, the electronic device In the state where the device is connected to the external device, the second control command can only be generated by the electronic device.
  • Embodiments of the present invention provide an operating state that supports dual-channel simultaneous reverse operation, so that the electronic device
  • the work model is more flexible and better able to meet the changing needs of users.

Abstract

一种供电控制的方法、装置及电子设备,其中所述方法包括:在第一设备处于无连接状态时,检测到第一设各通过第一物理接口与第二设备连接;判断所述第一设备通过所述第一物埋接口与所述第二设备的连接是否满足第一预定条件,获得第一判断结果;当第一判断结果表明所述第一设备通过所述第一物理接口与所述第二设备连接满足所述第一预定条件时,将第一设备从无连接状态切换至第一连接状态;获得第二设备的供电需求信息,供电需求信息用于指示是否需要由所述第一设备为所述第二设备供电;根据第二设备的供电需求信息,控制通过所述第一物理接口对第二设备的供电。所述供电控制的方法、装置及电子设备能够在电子设备之间实现合理的供电控制处理。

Description

供电控制的方法、 装置及电子设备
技术领域
本发明涉及电子设备的供电控制技术领域, 具体涉及一种供电控制的方法、 装置 及电子设备。 背景技术
电子设备的种类越来越丰富, 其中一些电子设备使用自身电池进行供电得以工 作, 一些电子设备需要依靠外部电源才能工作, 还有一些电子设备既可以使用自身电 池, 也可以使用外部电源工作。
电子设备之间可以通过物理接口实现相互连接, 进而基于特定协议实现相互通 信。 在某些协议 (如通用串行总线 USB协议) 中, 两个电子设备在连接之后, 需要首 先按照该协议定义的流程, 确定各个设备的主、 从设备的角色。 作为主设备的电子设 备需要对从设备进行供电以激活从设备, 进而对从设备进行读写等控制。
上述供电方式在某些场合使用时缺乏灵活性。 例如, 用户手机中通常存储有很多 文件, 用户在手机操作界面上能够处理这些文件。 如果用户在处理这些文件时, 想进 一步想通过外部设备输出这些文件, 比如通过车载音响系统来播放手机中正在播放的 某个音乐文件, 此时用户将通过诸如 USB接口之类的物理接口, 将手机与车载音响系 统连接, 将手机的音频信号输出至车载音响系统。 这种场景下, 手机作为主设备, 车 载音响系统作为从设备。 按照现有技术的协议流程, 车载音响系统连接到手机后, 作 为主设备的手机, 将向作为从设备的车载音响系统进行供电。
显然,手机的电能十分有限, 而车载音响系统是自供电的, 且电能大大超过手机。 因此上述让手机为车载音响系统供电的方式是不合理的, 将会大大减少手机的待机时 间。
因此, 亟需找到一种方法, 能够在电子设备之间实现合理的供电控制处理。 发明内容
本发明实施例所要解决的技术问题是提供一种供电控制的方法、 装置及电子设 备, 在电子设备之间实现合理的供电控制处理。
为解决上述技术问题, 本发明实施例提供方案如下:
一种用于第一设备的供电控制的方法, 第一设备包括第一物理接口, 并具有无连 接状态和第一连接状态, 其中, 无连接状态是指第一设备未通过第一物理接口与第二 设备连接的状态; 第一连接状态是指第一设备通过第一物理接口与第二设备连接后, 能通过第一物理接口向第二设备主动发送控制命令的状态; 所述方法包括:
在第一设备处于无连接状态时, 检测到第一设备通过第一物理接口与第二设备连 接;
判断所述第一设备通过所述第一物理接口与所述第二设备的连接是否满足第一 预定条件, 并获得第一判断结果;
当所述第一判断结果表明所述第一设备通过所述第一物理接口与所述第二设备 连接满足所述第一预定条件时, 将所述第一设备从所述无连接状态切换至所述第一连 接状态;
获得所述第二设备的供电需求信息, 所述供电需求信息用于指示是否需要由所述 第一设备为所述第二设备供电;
根据所述第二设备的供电需求信息, 控制通过所述第一物理接口对所述第二设备 的供电。
在优选实施例中, 所述根据所述第二设备的供电需求信息, 控制通过所述第一物 理接口对所述第二设备的供电包括:
在所述供电需求信息指示需要由所述第一设备为所述第二设备供电时, 控制通过 所述第一物理接口对所述第二设备供电;
在所述供电需求信息指示无需由所述第一设备为所述第二设备供电时, 控制不对 所述第二设备供电。
在优选实施例中, 在所述供电需求信息指示需要由所述第一设备为所述第二设备 供电时, 所述控制通过所述第一物理接口对所述第二设备的供电包括:
获得所述第一设备的当前供电状态;
在所述当前供电状态指示第一设备正在为所述第二设备供电时, 继续维持所述第 一设备的当前供电状态;
在所述当前供电状态指示第一设备没有为所述第二设备供电时, 通过所述第一物 理接口为所述第二设备供电;
在所述供电需求信息指示无需由所述第一设备为所述第二设备供电时, 所述控制 不对所述第二设备供电, 包括:
获得所述第一设备的当前供电状态;
在所述当前供电状态指示第一设备正在为所述第二设备供电时, 停止所述第一设 备通过所述第一物理接口为所述第二设备供电;
在所述当前供电状态指示第一设备没有为所述第二设备供电时, 继续维持所述第 一设备的当前供电状态。
在优选实施例中, 所述在所述供电需求信息指示无需由所述第一设备为所述第二 设备供电时, 控制不对所述第二设备供电, 包括:
获得所述第二设备的充电能力信息;
在所述供电需求信息指示无需由所述第一设备为所述第二设备供电时, 控制不通 过所述第一物理接口对所述第二设备供电;
在所述充电能力信息指示所述第二设备能够为所述第一设备充电时, 向所述第二 设备发送充电请求;
通过所述第一物理接口, 接收所述第二设备对所述第一设备的充电。
在优选实施例中, 所述将所述第一设备从所述无连接状态切换至所述第一连接状 态包括:
将所述第一设备从所述无连接状态切换至所述第一连接状态;
通过所述第一物理接口对所述第二设备进行供电。
在优选实施例中, 所述获得所述第二设备的供电需求信息, 包括:
向所述第二设备发送用于请求所述第二设备的供电需求信息的第一控制命令; 接收所述第二设备基于所述第一控制命令反馈的所述供电需求信息。
在优选实施例中, 所述获得所述第二设备的供电需求信息, 包括:
在所述将所述第一设备从所述无连接状态切换至所述第一连接状态之后, 不通过 所述第一物理接口对所述第二设备进行供电;
在第一预定时间内, 在所述第一物理接口检测来自第二设备的预定信号, 获得第 一检测结果;
根据所述第一检测结果, 获得所述供电需求信息。 本发明实施例还提供了一种第一设备的供电控制的装置, 所述第一设备包括第一 物理接口并具有无连接状态和第一连接状态, 其中, 所述无连接状态是指所述第一设 备未通过所述第一物理接口与第二设备连接的状态; 所述第一连接状态是指所述第一 设备通过所述第一物理接口与第二设备连接后, 能通过所述第一物理接口向所述第二 设备主动发送控制命令的状态; 所述装置包括:
第一检测单元, 用于在第一设备处于无连接状态时, 检测到第一设备通过所述第 一物理接口与第二设备连接;
第一判断单元, 用于判断所述第一设备通过所述第一物理接口与所述第二设备的 连接是否满足第一预定条件, 获得第一判断结果;
第一切换单元, 用于当所述第一判断结果表明所述第一设备通过所述第一物理接 口与所述第二设备连接满足所述第一预定条件时, 将所述第一设备从所述无连接状态 切换至所述第一连接状态;
第一获得单元, 用于获得所述第二设备的供电需求信息, 所述供电需求信息用于 指示是否需要由所述第一设备为所述第二设备供电;
供电控制单元, 用于根据所述第二设备的供电需求信息, 控制通过所述第一物理 接口对所述第二设备的供电。
在优选实施例中, 所述供电控制单元包括:
第一控制单元, 用于在所述供电需求信息指示需要由所述第一设备为所述第二设 备供电时, 控制通过所述第一物理接口对所述第二设备供电;
第二控制单元, 用于在所述供电需求信息指示无需由所述第一设备为所述第二设 备供电时, 控制不对所述第二设备供电。
在优选实施例中, 所述第一控制单元包括:
第二获得单元, 用于获得所述第一设备的当前供电状态;
第一处理单元, 用于在所述当前供电状态指示第一设备正在为所述第二设备供电 时, 继续维持所述第一设备的当前供电状态;
第二处理单元, 用于在所述当前供电状态指示第一设备没有为所述第二设备供电 时, 通过所述第一物理接口为所述第二设备供电;
所述第二控制单元包括: 第三获得单元, 用于获得所述第一设备的当前供电状态;
第三处理单元, 用于在所述当前供电状态指示第一设备正在为所述第二设备供电 时, 停止所述第一设备通过所述第一物理接口为所述第二设备供电;
第四处理单元, 用于在所述当前供电状态指示第一设备没有为所述第二设备供电 时, 继续维持所述第一设备的当前供电状态。
在优选实施例中, 所述第二控制单元包括:
第四获得单元, 用于获得所述第二设备的充电能力信息;
第五处理单元, 用于在所述供电需求信息指示无需由所述第一设备为所述第二设 备供电时, 控制不通过所述第一物理接口对所述第二设备供电;
第一发送单元, 用于在所述充电能力信息指示所述第二设备能够为所述第一设备 充电时, 向所述第二设备发送充电请求;
第一接收单元, 用于通过所述第一物理接口, 接收所述第二设备对所述第一设备 的充电。
在优选实施例中, 所述第一切换单元包括:
第一切换处理单元, 用于将所述第一设备从所述无连接状态切换至所述第一连接 状态;
供电单元, 用于通过所述第一物理接口对所述第二设备进行供电。
在优选实施例中, 所述第一获得单元包括:
第二发送单元, 用于向所述第二设备发送用于请求所述第二设备的供电需求信息 的第一控制命令;
第二接收单元, 用于接收所述第二设备基于所述第一控制命令反馈的所述供电需 求信息。
在优选实施例中, 所述第一获得单元包括:
第六处理单元, 用于在所述将所述第一设备从所述无连接状态切换至所述第一连 接状态之后, 不通过所述第一物理接口对所述第二设备进行供电;
第二检测单元, 用于在第一预定时间内, 在所述第一物理接口检测来自第二设备 的预定信号, 获得第一检测结果;
分析获得单元, 用于根据所述第一检测结果, 获得所述供电需求信息。 本发明实施例还提供了一种用于第二设备的供电控制的方法, 所述第二设备包括 第二物理接口并具有无连接状态和第二连接状态, 其中, 所述无连接状态是指所述第 二设备未通过所述第二物理接口与第一设备连接的状态; 所述第二连接状态是指所述 第二设备通过所述第二物理接口与第一设备连接后, 能通过所述第二物理接口从所述 第一设备被动接收控制命令的状态, 所述方法包括:
在第二设备处于无连接状态时, 检测到第二设备通过所述第二物理接口与第一设 备连接;
判断所述第二设备通过所述第二物理接口与所述第一设备的连接是否满足第二 预定条件, 获得第二判断结果;
当所述第二判断结果表明所述第二设备通过所述第二物理接口与所述第一设备 连接满足所述第二预定条件时, 将所述第二设备从所述无连接状态切换至所述第二连 接状态;
向所述第一设备反馈所述第二设备的供电需求信息, 以使得所述第一设备根据所 述供电需求信息, 控制通过所述第二物理接口对所述第二设备的供电。
在优选实施例中, 所述将所述第二设备从所述无连接状态切换至所述第二连接状 态包括:
将所述第二设备从所述无连接状态切换至所述第二连接状态;
通过所述第二物理接口接收所述第一设备的供电。
在优选实施例中,所述向所述第一设备反馈所述第二设备的供电需求信息,包括: 接收所述第一设备发送的用于请求所述第二设备的供电需求信息的第一控制命 令;
基于所述第一控制命令, 向所述第一设备反馈所述供电需求信息。
在优选实施例中, 还包括: 向所述第一设备反馈所述第二设备的充电能力信息; 接收所述第一设备在所述充电能力信息指示所述第二设备能够为所述第一设备 充电时所发送的充电请求;
在接收到所述充电请求后, 通过所述第二物理接口, 对所述第一设备进行充电。 本发明还提供了一种用于第二设备的供电控制的装置, 所述第二设备包括第二物 理接口并具有无连接状态和第二连接状态, 其中, 所述无连接状态是指所述第二设备 未通过所述第二物理接口与第一设备连接的状态; 所述第二连接状态是指所述第二设 备通过所述第二物理接口与第一设备连接后, 能通过所述第二物理接口从所述第一设 备被动接收控制命令的状态, 所述装置包括:
第三检测单元, 用于在第二设备处于无连接状态时, 检测到第二设备通过所述第 二物理接口与第一设备连接;
第二判断单元, 用于判断所述第二设备通过所述第二物理接口与所述第一设备的 连接是否满足第二预定条件, 获得第二判断结果;
第二切换单元, 用于当所述第二判断结果表明所述第二设备通过所述第二物理接 口与所述第一设备连接满足所述第二预定条件时, 将所述第二设备从所述无连接状态 切换至所述第二连接状态;
第一反馈单元, 用于向所述第一设备反馈所述第二设备的供电需求信息, 以使得 所述第一设备根据所述第二设备的供电需求信息, 控制通过所述第二物理接口对所述 第二设备的供电。
在优选实施例中, 所述第二切换单元包括:
第二切换处理单元, 用于将所述第二设备从所述无连接状态切换至所述第二连接 状态;
供电接收单元, 用于通过所述第二物理接口接收所述第一设备的供电。
在优选实施例中, 所述反馈单元包括:
第三接收单元, 用于接收所述第一设备发送的用于请求所述第二设备的供电需求 信息的第一控制命令;
第三发送单元, 用于基于所述第一控制命令, 向所述第一设备反馈所述供电需求 信息。
在优选实施例中, 还包括:
第二反馈单元, 用于向所述第一设备反馈所述第二设备的充电能力信息; 第三接收单元, 用于接收所述第一设备在所述充电能力信息指示所述第二设备能 够为所述第一设备充电时所发送的充电请求;
充电单元, 用于在接收到所述充电请求后, 通过所述第二物理接口, 对所述第一 设备进行充电。 本发明还提供了一种电子设备, 包括:
物理接口,所述物理接口包括第一通路和第二通路,所述第一通路能够传输电能, 所述第二通路能够传输控制命令, 所述第一通路和所述第二通路能同时工作;
处理单元, 用于设置所述电子设备处于第一工作状态或第二工作状态; 其中, 当所述电子设备处于所述第一工作状态时, 能够通过所述物理接口中的所 述第一通路向与所述电子设备连接的外部设备进行供电, 并同时通过所述物理接口中 的所述第二通路接收所述外部设备输入的控制命令; 当所述电子设备处于所述第二工 作状态时, 能够接收通过所述物理接口中的所述第一通路对所述电子设备的充电, 并 同时通过所述物理接口中的所述第二通路向所述外部设备输出控制命令。 从以上所述可以看出, 本发明实施例提供的供电控制的方法、 装置及电子设备, 当第一设备在处于第一连接状态时, 将会去获得第二设备的供电需求信息, 然后, 根 据该供电需求信息去判断是否需要为第二设备进行供电, 使得第一设备在处于第一连 接状态时, 不再盲目地为第二设备进行供电, 使得供电方式更具灵活性, 可适用于各 种应用场景。 并且, 第一设备在处于第一连接状态时, 还可以根据需要接收其它设备 对自身进行充电。 附图说明
图 1为本实施例所述的供电控制的方法的流程示意图;
图 2为本实施例中使用到的一种 USB接口的结构示意图;
图 3为本实施例所述的供电控制的装置的结构示意图;
图 4为本实施例应用于 USB接口时的一个具体结构示意图。 具体实施方式
本发明实施例通过在设备之间传递供电需求信息, 进而根据该信息实现合理的供 电控制处理, 使得供电方式更具灵活性, 能够适用于各种应用场景。 以下将结合附图, 通过具体实施例对本发明作进一步的说明。
〈实施例一〉 本实施例所述的供电控制的方法,应用于第一设备,第一设备包括第一物理接口。 第一设备具有无连接状态、 第一连接状态和第二连接状态。 其中, 无连接状态是指第 一设备未通过所述第一物理接口与第二设备连接的状态; 第一连接状态是指第一设备 通过所述第一物理接口与第二设备连接后, 能通过第一物理接口向第二设备主动发送 控制命令的状态; 第二连接状态是指第一设备通过所述第一物理接口与第二设备连接 后, 能通过第一物理接口从第二设备被动接收控制命令的状态。
以第一物理接口是 USB接口为例, 无连接状态是指第一设备的 USB接口没有连接 任何设备的连接状态; 第一连接状态是指第一设备的 USB接口连接了第二设备, 且第 一设备是作为主设备的连接状态, 此时第一设备能够主动发送控制命令, 对第二设备 进行控制; 第一连接状态是指第一设备的 USB接口连接了第二设备, 且第一设备是作 为从设备的连接状态, 此时第一设备能够被动接收第二设备的控制命令, 以及对第二 设备的控制命令进行响应。
参考图 1, 本实施例所述的供电控制的方法可以包括以下步骤:
步骤 11, 在第一设备处于无连接状态时, 检测到第一设备通过第一物理接口与第 二设备连接。
这里, 第一设备可以通过检测第一物理接口的电平变化, 根据该电平变化判断第 一物理接口上是否连接有第二设备。
步骤 12,判断第一设备通过第一物理接口与第二设备的连接是否满足第一预定条 件, 获得第一判断结果。
步骤 13,当第一判断结果表明第一设备通过第一物理接口与第二设备连接满足第 一预定条件时, 将第一设备从无连接状态切换至第一连接状态。
以图 2所示的 USB接口为例, 当第一设备通过第一物理接口与第二设备连接并且 该第一物理接口上的 ID管脚为低电平 (ID管脚与地线 GND管脚短接) 时, 可以将第 一设备从无连接状态切换为第一连接状态, 该第一连接状态即第一设备为主设备 (Host ) 的状态, 此时, 第二设备为从设备 (slave ) 状态。
步骤 14, 获得第二设备的供电需求信息, 供电需求信息可以指示是否需要由第一 设备为第二设备供电。
上述步骤 14 中, 获得第二设备的供电需求信息可以通过第一设备与第二设备之 间的信息交互得以实现: 第一设备向第二设备发送用于请求第二设备的供电需求信息 的第一控制命令; 第一设备接收第二设备基于第一控制命令反馈的供电需求信息。 这里, 第二设备在接收到第一控制命令后, 根据自身第二供电电源参数 (如第二 设备的电池容量信息或供电电源的功率参数), 判断是否需要第一设备为其供电, 进 而反馈供电需求信息。
进一步的, 第一设备在发送第一控制命令时, 可以进一步携带第一设备自身的第 一供电电源参数, 如第一设备的电池容量信息或供电电源的功率参数; 第二设备在接 收到第一控制命令后, 获得其中携带的第一设备的供电电源参数, 并与第二设备自身 的第二供电电源参数(如第二设备的电池容量信息或供电电源的功率参数)进行比较, 获得比较结果; 然后, 根据比较结果, 向第一设备反馈供电需求信息。 例如, 在第二 供电电源参数优于第一供电电源参数时, 向第一设备反馈用于指示无需第一设备为第 二设备供电的第一供电需求信息; 在第二供电电源参数差于第一供电电源参数时, 向 第一设备反馈用于指示需要第一设备为第二设备供电的第二供电需求信息。
当然,如果第二设备自身没有电源供电,并且第一设备在切换到第一连接状态后, 也为对其供电, 那么第二设备就无法对第一控制命令进行响应。 第一设备如果在预定 等待时间后未收到第二设备反馈的供电需求信息, 则可能是因为第二设备没有供电单 元, 此时第一设备可以获得用于指示需要第一设备为第二设备供电的供电需求信息。
步骤 15, 根据第二设备的供电需求信息, 控制通过第一物理接口对第二设备的供 电。
以上步骤中, 当第一设备在处于第一连接状态时, 将获得第二设备的供电需求信 息。 然后, 根据该供电需求信息去判断是否需要为第二设备进行供电, 使得第一设备 在处于第一连接状态时,不再盲目地为第二设备进行供电,从而供电方式更具灵活性, 能够适用于各种应用场景。 例如, 在第二设备有自身电源, 能够自供电工作时, 第一 设备不必再为第二设备进行供电, 以减少第一设备不必要的电能消耗。
优选地, 本实施例中, 上述步骤 14中, 还可以按照以下方式获得供电需求信息: 步骤 141, 在将第一设备从无连接状态切换至第一连接状态之后, 不通过第一物 理接口对第二设备进行供电;
步骤 142, 在第一预定时间内, 在第一物理接口检测到来自第二设备的预定信号, 获得第一检测结果;
步骤 143, 根据第一检测结果, 获得供电需求信息。 例如, 如果第一检测结果指示在第一预定时间内检测到预定信号, 则可以确定第 二设备能够正常工作并被有效检测到, 此时可以获得无需由第一设备为第二设备供电 时的第一供电需求信息; 反之, 如果第一检测结果指示在第一预定时间内未检测到预 定信号, 则可以确定第二设备不能正常工作, 此时可以获得需要由第一设备为第二设 备供电时的第二供电需求信息。
仍以图 2所示的 USB接口为例, 第二设备如果有自供电电源 (如通过电源适配器 连接至外接电源或自身包括有电池组), 则其数据管脚 D+将被上拉, 第一设备即可在 其 USB接口的数据管脚 D+上检测到对应的上拉信号,此时无需第一设备为第二设备进 行供电, 得到第一供电需求信息。 反之, 则可以获得第二供电需求信息。
优选地, 本实施例中, 上述步骤 15具体可以包括:
步骤 151, 在供电需求信息指示需要由第一设备为第二设备供电时, 控制通过第 一物理接口对第二设备供电;
步骤 152, 在供电需求信息指示无需由第一设备为第二设备供电时, 控制不对第 二设备供电。
上述步骤 151又可以具体包括:
步骤 1511, 获得第一设备的当前供电状态;
步骤 1512, 在当前供电状态指示第一设备正在为第二设备供电时, 继续维持第一 设备的当前供电状态;
步骤 1513, 在当前供电状态指示第一设备没有为第二设备供电时, 通过第一物理 接口为第二设备供电;
上述步骤 152又可以具体包括:
步骤 1521, 获得第一设备的当前供电状态;
步骤 1522, 在当前供电状态指示第一设备正在为第二设备供电时, 停止第一设备 通过第一物理接口为第二设备供电;
步骤 1523, 在当前供电状态指示第一设备没有为第二设备供电时, 继续维持第一 设备的当前供电状态。 本实施例还提供了一种用于第一设备的供电控制的装置,, 第一设备包括第一物 理接口, 并具有无连接状态和第一连接状态, 其中, 无连接状态是指第一设备未通过 第一物理接口与第二设备连接的状态; 第一连接状态是指第一设备通过第一物理接口 与第二设备连接后, 能通过第一物理接口向第二设备主动发送控制命令的状态。 请参 照图 3, 所述装置可以包括:
第一检测单元, 用于在第一设备处于无连接状态时, 检测到第一设备通过第一物 理接口与第二设备连接;
第一判断单元, 用于判断第一设备通过第一物理接口与第二设备的连接是否满足 第一预定条件, 获得第一判断结果;
第一切换单元, 用于当第一判断结果表明第一设备通过第一物理接口与第二设备 连接满足第一预定条件时, 将第一设备从无连接状态切换至第一连接状态;
第一获得单元, 用于获得第二设备的供电需求信息, 供电需求信息用于指示是否 需要由第一设备为第二设备供电;
供电控制单元, 用于根据第二设备的供电需求信息, 控制通过第一物理接口对第 二设备的供电。
作为一种优选实施方式, 上述的第一获得单元具体可以包括:
第六处理单元, 用于在将第一设备从无连接状态切换至第一连接状态之后, 不通 过第一物理接口对第二设备进行供电;
第二检测单元, 用于在第一预定时间内, 在第一物理接口检测来自第二设备的预 定信号, 获得第一检测结果;
分析获得单元, 用于根据第一检测结果, 获得供电需求信息。
作为上述的第一获得单元另一种优选实施方式, 上述第一获得单元可以通过与第 二设备进行信息交互, 以获得供电需求信息, 此时第一获得单元具体可以包括: 第二发送单元, 用于向第二设备发送用于请求第二设备的供电需求信息的第一控 制命令;
第二接收单元, 用于接收第二设备基于第一控制命令反馈的供电需求信息。 优选地, 上述的供电控制单元可以包括:
第一控制单元, 用于在供电需求信息指示需要由第一设备为第二设备供电时, 控 制通过第一物理接口对第二设备供电;
第二控制单元, 用于在供电需求信息指示无需由第一设备为第二设备供电时, 控 制不对第二设备供电。 更为具体的, 第一控制单元又可以包括:
第二获得单元, 用于获得第一设备的当前供电状态;
第一处理单元, 用于在当前供电状态指示第一设备正在为第二设备供电时, 继续 维持第一设备的当前供电状态;
第二处理单元, 用于在当前供电状态指示第一设备没有为第二设备供电时, 通过 第一物理接口为第二设备供电;
第二控制单元又可以包括:
第三获得单元, 用于获得第一设备的当前供电状态;
第三处理单元, 用于在当前供电状态指示第一设备正在为第二设备供电时, 停止 第一设备通过第一物理接口为第二设备供电;
第四处理单元, 用于在当前供电状态指示第一设备没有为第二设备供电时, 继续 维持第一设备的当前供电状态。
〈实施例二〉
本实施例所述的供电控制的方法, 仍应用在与实施例一相似的第一设备中。 在本 实施例中, 第一设备在从无连接状态切换至第一连接状态后, 首先主动对第二设备进 行供电, 进而再根据第二设备的供电需求信息, 判断是否需要继续通过第一物理接口 对第二设备供电。
本实施例的供电控制的方法具体可以包括以下步骤:
步骤 21, 在第一设备处于无连接状态时, 检测到第一设备通过第一物理接口与第 二设备连接。
步骤 22,判断第一设备通过第一物理接口与第二设备的连接是否满足第一预定条 件, 获得第一判断结果。
步骤 23,当第一判断结果表明第一设备通过第一物理接口与第二设备连接满足第 一预定条件时, 将第一设备从无连接状态切换至第一连接状态, 并通过第一物理接口 对第二设备进行供电。
步骤 24, 获得第二设备的供电需求信息, 供电需求信息用于指示是否需要由第一 设备为第二设备供电。
这里, 获得第二设备的供电需求信息, 具体可以包括: 步骤 241,向第二设备发送一用于请求第二设备的供电需求信息的第一控制命令; 步骤 242, 接收第二设备基于第一控制命令反馈的供电需求信息。
步骤 25, 根据第二设备的供电需求信息, 控制通过第一物理接口对第二设备的供 电。
以上步骤 23中, 第一设备在切换到第一连接状态后, 立即对第二设备进行供电。 然后, 在步骤 25中, 再进行以下判断处理:
在供电需求信息指示需要由第一设备为第二设备供电时, 继续维持第一设备的当 前供电状态;
在供电需求信息指示无需由第一设备为第二设备供电时, 停止第一设备通过第一 物理接口为第二设备供电。
由于某些电子设备没有自供电电源, 这些电子设备需要依赖第一设备 (主设备) 的供电才能工作。 因此, 在上述步骤 23 中, 在第一设备切换到第一连接状态后, 立 即对第二设备进行供电, 以保证第二设备能够正常工作。 然后, 第一设备再根据供电 需求信息来判断是应该停止供电或者继续维持供电。 本实施例还提供了一种用于第一设备的供电控制的装置, 第一设备包括第一物理 接口, 并具有无连接状态和第一连接状态, 其中, 无连接状态是指第一设备未通过第 一物理接口与第二设备连接的状态; 第一连接状态是指第一设备通过第一物理接口与 第二设备连接后, 能通过第一物理接口向第二设备主动发送控制命令的状态。 本实施 例的装置可以包括:
第一检测单元, 用于在第一设备处于无连接状态时, 检测到第一设备通过第一物 理接口与第二设备连接;
第一判断单元, 用于判断第一设备通过第一物理接口与第二设备的连接是否满足 第一预定条件, 获得第一判断结果;
第一切换单元, 用于当第一判断结果表明第一设备通过第一物理接口与第二设备 连接满足第一预定条件时, 将第一设备从无连接状态切换至第一连接状态;
第一获得单元, 用于获得第二设备的供电需求信息, 供电需求信息用于指示是否 需要由第一设备为第二设备供电;
供电控制单元, 用于根据第二设备的供电需求信息, 控制通过第一物理接口对第 二设备的供电。
这里, 第一切换单元第一设备从无连接状态切换至第一连接状态后, 可以对第一 设备先进行供电, 以保证第二设备能够正常工作, 此时第一切换单元具体可以包括: 第一切换处理单元, 用于将第一设备从无连接状态切换至第一连接状态; 供电单元, 用于通过第一物理接口对第二设备进行供电。
优选地, 上述第一获得单元可以通过交互方式获得第二设备的供电需求信息, 此 时第一获得单元具体可以包括:
第二发送单元, 用于向第二设备发送用于请求第二设备的供电需求信息的第一控 制命令;
第二接收单元, 用于接收第二设备基于第一控制命令反馈的供电需求信息。 〈实施例三〉
本实施例的供电控制的方法, 仍应用在与实施例一相似的第一设备中。 本实施例 中, 第一设备在供电需求信息指示无需由第一设备为第二设备供电时, 还可以进一步 判断第二设备是否能够为第一设备充电, 以合理利用第二设备的电能, 增加第一设备 的待机时间。
本实施例的供电控制的方法具体可以包括以下步骤:
步骤 31, 在第一设备处于无连接状态时, 检测到第一设备通过第一物理接口与第 二设备连接。
步骤 32,判断第一设备通过第一物理接口与第二设备的连接是否满足第一预定条 件, 获得第一判断结果。
步骤 33,当第一判断结果表明第一设备通过第一物理接口与第二设备连接满足第 一预定条件时, 将第一设备从无连接状态切换至第一连接状态, 并通过第一物理接口 对第二设备进行供电。
步骤 34, 获得第二设备的供电需求信息, 供电需求信息用于指示是否需要由第一 设备为第二设备供电。
步骤 35, 根据第二设备的供电需求信息, 控制第一设备通过第一物理接口对第二 设备的供电。
在上述步骤 35中, 进行以下判断处理: 步骤 351, 在供电需求信息指示需要由第一设备为第二设备供电时, 继续维持第 一设备的当前供电状态;
步骤 352, 在供电需求信息指示无需由第一设备为第二设备供电时, 停止第一设 备通过第一物理接口为第二设备供电。
由于某些电子设备具有电能充足的自供电电源, 这些电子设备不仅无需第一设备 (主设备)供电, 并且还有足够的电能可以为第一设备进行充电。此时, 上述步骤 352 具体可以包括:
步骤 3521, 获得第二设备的充电能力信息;
步骤 3522, 在供电需求信息指示无需由第一设备为第二设备供电时, 控制不通过 第一物理接口对第二设备供电;
步骤 3523, 在充电能力信息指示第二设备能够为第一设备充电时, 向第二设备发 送一充电请求; 以及, 通过第一物理接口, 接收第二设备对第一设备的充电。
这里, 上述步骤 3521中的获得第二设备的充电能力信息, 也可以在步骤 34中执 行, 即在步骤 34获得第二设备的供电需求信息时, 还进一步获得第二设备的充电能 力信息。
上述步骤 3521 中, 充电能力信息可以通过以下方式获得: 第一设备向第二设备 发送一用于请求第二设备的充电能力信息的第二控制命令; 第一设备接收第二设备基 于第二控制命令反馈的充电能力信息。
优选地, 第二设备在收到上述第二控制命令后, 确定自身是否具有自供电电源, 如果有, 则向第一设备反馈用于指示自身能够为第一设备充电的第一充电能力信息; 如果没有, 则向第一设备反馈用于指示自身不能为第一设备充电的第一充电能力信 息。
优选地, 第一设备在发送第二控制命令时, 可以进一步携带第一设备自身的第一 供电电源参数, 如第一设备的电池容量信息或供电电源的功率参数; 第二设备在接收 到第二控制命令后, 获得其中携带的第一设备的供电电源参数, 并与第二设备自身的 第二供电电源参数 (如第二设备的电池容量信息或供电电源的功率参数) 进行比较, 获得第一比较结果; 然后, 根据第一比较结果, 向第一设备反馈充电能力信息。例如, 在第二供电电源参数优于第一供电电源参数时, 向第一设备反馈用于指示自身能够为 第一设备充电的第一充电能力信息; 在第二供电电源参数差于第一供电电源参数时, 向第一设备反馈用于指示自身不能为第一设备充电的第一充电能力信息。
仍以图 2所示的 USB接口为例,现有技术中当第一设备处于第一连接状态(Host) 时, 第一设备将通过其 USB接口的 VBUS管脚向第二设备 (Device) 供电 (Vout)。 在 应用本实施例方法后, 第一设备可以在处于第一连接状态 (Host ) 时, 可以在 VBUS 管脚上接收第二设备 (Device) 对自己进行充电 (Vin)。
基于上述方法, 本实施例还提供了一种供电控制的装置, 应用于第一设备, 第一 设备包括第一物理接口, 第一设备具有无连接状态和第一连接状态, 其中, 无连接状 态是指第一设备未通过第一物理接口与第二设备连接的状态; 第一连接状态是指第一 设备通过第一物理接口与第二设备连接后, 能通过第一物理接口向第二设备主动发送 控制命令的状态。 本实施例的装置包括:
第一检测单元, 用于在第一设备处于无连接状态时, 检测到通过第一物理接口与 第二设备连接;
第一判断单元, 用于判断第一设备通过第一物理接口与第二设备的连接是否满足 第一预定条件, 获得第一判断结果;
第一切换单元, 用于当第一判断结果表明第一设备通过第一物理接口与第二设备 连接满足第一预定条件时, 将第一设备从无连接状态切换至第一连接状态;
第一获得单元, 用于获得第二设备的供电需求信息, 供电需求信息用于指示是否 需要由第一设备为第二设备供电;
供电控制单元, 用于根据第二设备的供电需求信息, 控制通过第一物理接口对第 二设备的供电。
这里, 所述供电控制单元包括:
第一控制单元, 用于在供电需求信息指示需要由第一设备为第二设备供电时, 控 制通过第一物理接口对第二设备供电;
第二控制单元, 用于在供电需求信息指示无需由第一设备为第二设备供电时, 控 制不对第二设备供电。
其中, 第二控制单元还可以具体包括以下单元, 以实现第二设备对第一设备的反 向充电:
第四获得单元, 用于获得第二设备的充电能力信息;
第五处理单元, 用于在供电需求信息指示无需由第一设备为第二设备供电时, 控 制不通过第一物理接口对第二设备供电;
第一发送单元, 用于在充电能力信息指示第二设备能够为第一设备充电时, 向第 二设备发送充电请求;
第一接收单元, 用于通过第一物理接口, 接收第二设备对第一设备的充电。 请参照图 4, 给出了在第一物理接口为 USB接口时, 控制充电或者供电的一种具 体硬件实现方式。 此时, 本实施例的供电控制的装置种还可设置切换单元, 该切换单 元一端与 USB接口的 VBUS管脚连接, 另一端分别与充电电路和供电电路连接。 其中, 充电电路还与电池 (组) 连接。 切换单元可以是一种连接开关, 用于控制 VBUS管脚 与充电电路或者供电电路连接, 还可以控制 VBUS管脚与充电电路和供电电路都不连 接。
这样, 上述的第一控制单元可以通过控制切换单元将 VBUS管脚与供电电路连接, 从而可以通过 VBUS管脚向外部的第二设备供电; 上述的第二控制单元或第五处理单 元可以通过控制切换单元将 VBUS管脚断开与供电电路的连接, 从而不对第二设备供 电。 上述的第一发送单元还可以在发送上述充电请求后, 控制切换单元将 VBUS管脚 与充电电路连接, 从而接收来自 VBUS管脚的电能, 对电池进行充电。
类似的, 第二设备也可以设置相同的切换单元, 从而通过与第一设备相互配合, 以接收第一设备对第二设备进行的供电或者向第一设备进行充电。 以上实施例从第一设备侧对本发明做了说明。 以下再通过实施例从第二设备侧对 本发明作进一步的说明。
〈实施例四〉
本实施例提供了一种用于第二设备的供电控制的方法。 第二设备包括第二物理接 口, 第二设备可以通过该第二物理接口与上述实施例的第一设备的第一物理接口相连 接, 从而实现与第一设备的连接。
第二设备具有无连接状态和第二连接状态, 其中, 无连接状态是指第二设备未通 过第二物理接口与第一设备连接的状态; 第一连接状态是指第二设备通过第二物理接 口与第一设备连接后, 能通过第二物理接口向第一设备主动发送控制命令的状态; 第 二连接状态是指第二设备通过第二物理接口与第一设备连接后, 能通过第二物理接口 从第一设备被动接收控制命令的状态。 本实施例的供电控制的方法, 具体可以包括:
步骤 41, 在第二设备处于无连接状态时, 检测到第二设备通过第二物理接口与第 一设备连接。
步骤 42,判断第二设备通过第二物理接口与第一设备的连接是否满足第二预定条 件, 获得第二判断结果。
步骤 43,当第二判断结果表明第二设备通过第二物理接口与第一设备连接满足第 二预定条件时, 将第二设备从无连接状态切换至第二连接状态。
以 USB接口为例, 当第二设备通过第二物理接口与第一设备的连接, 并且该第二 物理接口上的 ID管脚为高电平, 此时可以将第二设备从无连接状态切换为第二连接 状态, 该第二连接状态即第二设备为从设备 (Slave ) 的状态, 此时, 第一设备为主 设备状态。
这里, 上述步骤 43 中, 将第二设备从无连接状态切换至第二连接状态具体可以 包括: 将第二设备从无连接状态切换至第二连接状态; 以及, 通过第二物理接口接收 第一设备的供电。 即, 第二设备在进入第二连接状态后, 可以利用第一设备提供的电 能进行工作。
步骤 44, 向第一设备反馈第二设备的供电需求信息, 以使第一设备根据供电需求 信息, 控制通过第二物理接口对第二设备的供电。
这里, 供电需求信息用于指示是否需要由第一设备为第二设备供电。 在需要由第 一设备为第二设备供电时, 供电需求信息使得第一设备控制通过第一物理接口对第二 设备供电; 在无需由第一设备为第二设备供电时, 供电需求信息使得第一设备控制不 对第二设备供电。
作为一种优选实施方式, 上述步骤 44具体包括:
步骤 441, 接收第一设备发送的用于请求第二设备的供电需求信息的第一控制命 令;
步骤 442, 基于第一控制命令, 向第一设备反馈供电需求信息。
具体的, 第二设备在接收到第一控制命令后, 根据自身第二供电电源参数 (如第 二设备的电池容量信息或供电电源的功率参数), 判断是否需要第一设备为其供电, 进而反馈供电需求信息。 例如, 在第二设备的电池容量低于预设第一门限或供电电源 功率低于预设第二门限时, 可以判断需要第一设备为其供电; 反之, 在第二设备的电 池容量高于预设第一门限或供电电源功率高于预设第二门限时, 可以判断无需第一设 备为其供电。
进一步的, 第一设备在发送第一控制命令时, 可以进一步携带第一设备自身的第 一供电电源参数, 如第一设备的电池容量信息或供电电源的功率参数; 第二设备在接 收到第一控制命令后, 获得其中携带的第一设备的供电电源参数, 并与第二设备自身 的第二供电电源参数(如第二设备的电池容量信息或供电电源的功率参数)进行比较, 获得比较结果; 然后, 根据比较结果, 向第一设备反馈供电需求信息。 例如, 在第二 供电电源参数优于第一供电电源参数时, 向第一设备反馈用于指示无需第一设备为第 二设备供电的第一供电需求信息; 在第二供电电源参数差于第一供电电源参数时, 向 第一设备反馈用于指示需要第一设备为第二设备供电的第二供电需求信息。
更进一步地, 第二设备还可以向第一设备反馈自身的充电能力信息, 本实施例的 供电控制的方法还可以包括:
步骤 46, 向第一设备反馈第二设备的充电能力信息。
这里, 上述步骤 46中的充电能力信息, 也可以在步骤 44中与供电需求信息一起 反馈给第一设备。
步骤 47,接收第一设备在充电能力信息指示第二设备能够为第一设备充电时所发 送的充电请求。
步骤 48, 在接收到充电请求后, 通过第二物理接口, 对第一设备进行充电。 上述步骤 46之前还可以包括步骤 45: 接收第一设备发送的用于请求第二设备的 充电能力信息的第二控制命令; 然后, 在步骤 46 中, 对第二控制命令进行响应, 反 馈充电能力信息。
具体的, 上述步骤 46 中, 可以按照以下方式确定充电能力信息, 然后反馈给第 一设备: 第二设备确定自身是否具有自供电电源, 如果有, 则向第一设备反馈用于指 示自身能够为第一设备充电的第一充电能力信息; 如果没有, 则向第一设备反馈用于 指示自身不能为第一设备充电的第一充电能力信息。
第一设备在发送第二控制命令时, 可以进一步携带第一设备自身的第一供电电源 参数。 此时, 上述步骤 46 中, 还可以按照以下方式确定充电能力信息: 第二设备在 接收到第二控制命令后, 获得其中携带的第一设备的供电电源参数, 并与第二设备自 身的第二供电电源参数 (如第二设备的电池容量信息或供电电源的功率参数)进行比 较, 获得第一比较结果; 然后, 根据第一比较结果, 向第一设备反馈充电能力信息。 例如, 在第二供电电源参数优于第一供电电源参数时, 向第一设备反馈用于指示自身 能够为第一设备充电的第一充电能力信息; 在第二供电电源参数差于第一供电电源参 数时, 向第一设备反馈用于指示自身不能为第一设备充电的第一充电能力信息。
本实施例还提供了一种用于第二设备的供电控制的装置, 第二设备包括第二物理 接口, 并具有无连接状态和第二连接状态, 其中, 无连接状态是指第二设备未通过第 二物理接口与第一设备连接的状态; 第二连接状态是指第二设备通过第二物理接口与 第一设备连接后, 能通过第二物理接口从第一设备被动接收控制命令的状态。 所述装 置具体可以包括:
第三检测单元, 用于在第二设备处于无连接状态时, 检测到第二设备通过第二物 理接口与第一设备连接;
第二判断单元, 用于判断第二设备通过第二物理接口与第一设备的连接是否满足 第二预定条件, 获得第二判断结果;
第二切换单元, 用于当第二判断结果表明第二设备通过第二物理接口与第一设备 连接满足第二预定条件时, 将第二设备从无连接状态切换至第二连接状态;
反馈单元, 用于向第一设备反馈第二设备的供电需求信息, 以使得第一设备根据 第二设备的供电需求信息, 控制通过第二物理接口对第二设备的供电。
优选地, 第二切换单元包括:
第二切换处理单元, 用于将第二设备从无连接状态切换至第二连接状态; 供电接收单元, 用于通过第二物理接口接收第一设备的供电。
优选地, 反馈单元包括:
第三接收单元, 用于接收第一设备发送的用于请求第二设备的供电需求信息的第 一控制命令;
第三发送单元, 用于基于第一控制命令, 向第一设备反馈供电需求信息。
优选地, 本实施例的第二设备还可以在处于第二连接状态时, 为第一设备充电。 此时第二设备还包括:
第二反馈单元, 用于向第一设备反馈第二设备的充电能力信息;
第三接收单元, 用于接收第一设备在充电能力信息指示第二设备能够为第一设备 充电时所发送的充电请求; 充电单元,用于在接收到充电请求后,通过第二物理接口,对第一设备进行充电。 〈实施例五〉
本实施例提供了一种电子设备, 包括物理接口, 所述物理接口包括第一通路和第 二通路, 第一通路能够传输 (发送或接收) 电能, 第二通路能够传输 (发送或接收) 控制命令, 第一通路和第二通路能同时工作;
处理单元, 用于设置电子设备处于第一工作状态或第二工作状态;
其中, 电子设备处于第一工作状态时, 能够通过物理接口中的第一通路向与电子 设备连接的外部设备进行供电, 并同时通过物理接口中的第二通路接收外部设备输入 的控制命令; 电子设备处于第二工作状态时, 能够接收通过物理接口中的第一通路对 电子设备的充电, 并同时通过物理接口中的第二通路向外部设备输出控制命令。
具体的, 在电子设备处于第一工作状态时, 能够通过物理接口中的第一通路向连 接的外部设备进行供电, 并同时通过物理接口中的第二通路接收由外部设备产生并输 入的第一控制命令; 其中, 在电子设备和外部设备连接的状态下, 只能由外部设备产 生第一控制命令。
电子设备处于第二工作状态时, 能够接收外部设备通过物理接口中的第一通路对 电子设备的充电, 并同时通过物理接口中的第二通路向外部设备输出第二控制命令; 其中, 在电子设备和外部设备连接的状态下, 只能由电子设备产生第二控制命令。
可见,相比于现有技术中类似物理接口只能单通路工作,或双通路同时同向工作, 本发明的实施例提供了一种支持双通路同时反向工作的工作状态, 使得电子设备的工 作模式更加灵活, 能更好的满足日益变化的用户需求。
本发明以上各个实施例可以应用在目前已公开基于 USB协议标准的接口以及未来 USB接口的升级版本之上。
以上仅是本发明的实施方式, 应当指出, 对于本技术领域的普通技术人员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和修改, 这些改进和修改也应视 为本发明的保护范围。

Claims

1. 一种用于第一设备的供电控制的方法, 所述第一设备包括第一物理接口, 并 具有无连接状态和第一连接状态, 其中, 所述无连接状态是指所述第一设备未通过所 述第一物理接口与第二设备连接的状态; 所述第一连接状态是指所述第一设备通过所 述第一物理接口与第二设备连接后, 能通过所述第一物理接口向所述第二设备主动发 送控制命令的状态; 所述方法包括步骤:
在第一设备处于无连接状态时, 检测到第一设备通过所述第一物理接口与第二设 备连接;
判断所述第一设备通过所述第一物理接口与所述第二设备的连接是否满足第一 预定条件, 获得第一判断结果;
当所述第一判断结果表明所述第一设备通过所述第一物理接口与所述第二设备 连接满足所述第一预定条件时, 将所述第一设备从所述无连接状态切换至所述第一连 接状态;
获得所述第二设备的供电需求信息, 所述供电需求信息用于指示是否需要由所述 第一设备为所述第二设备供电;
根据所述第二设备的供电需求信息, 控制通过所述第一物理接口对所述第二设备 的供电。
2. 如权利要求 1 所述的方法, 其中, 所述根据所述第二设备的供电需求信息, 控制通过所述第一物理接口对所述第二设备的供电包括:
在所述供电需求信息指示需要由所述第一设备为所述第二设备供电时, 控制通过 所述第一物理接口对所述第二设备供电;
在所述供电需求信息指示无需由所述第一设备为所述第二设备供电时, 控制不对 所述第二设备供电。
3. 如权利要求 2所述的方法, 其中, 在所述供电需求信息指示需要由所述第一 设备为所述第二设备供电时, 所述控制通过所述第一物理接口对所述第二设备的供电 包括:
获得所述第一设备的当前供电状态;
在所述当前供电状态指示第一设备正在为所述第二设备供电时, 继续维持所述第 一设备的当前供电状态;
在所述当前供电状态指示第一设备没有为所述第二设备供电时, 通过所述第一物 理接口为所述第二设备供电;
在所述供电需求信息指示无需由所述第一设备为所述第二设备供电时所述控制 不对所述第二设备供电包括:
获得所述第一设备的当前供电状态;
在所述当前供电状态指示第一设备正在为所述第二设备供电时, 停止所述第一设 备通过所述第一物理接口为所述第二设备供电;
在所述当前供电状态指示第一设备没有为所述第二设备供电时, 继续维持所述第 一设备的当前供电状态。
4. 如权利要求 2所述的方法, 其中, 所述在所述供电需求信息指示无需由所述 第一设备为所述第二设备供电时, 控制不对所述第二设备供电, 包括:
获得所述第二设备的充电能力信息;
在所述供电需求信息指示无需由所述第一设备为所述第二设备供电时, 控制不通 过所述第一物理接口对所述第二设备供电;
在所述充电能力信息指示所述第二设备能够为所述第一设备充电时, 向所述第二 设备发送充电请求;
通过所述第一物理接口, 接收所述第二设备对所述第一设备的充电。
5. 如权利要求 1 所述的方法, 其中, 所述将所述第一设备从所述无连接状态切 换至所述第一连接状态包括:
将所述第一设备从所述无连接状态切换至所述第一连接状态;
通过所述第一物理接口对所述第二设备进行供电。
6. 如权利要求 1或 5所述的方法, 其中, 所述获得所述第二设备的供电需求信 息包括:
向所述第二设备发送用于请求所述第二设备的供电需求信息的第一控制命令; 接收所述第二设备基于所述第一控制命令反馈的所述供电需求信息。
7. 如权利要求 1 所述的方法, 其中, 所述获得所述第二设备的供电需求信息, 包括:
在所述将所述第一设备从所述无连接状态切换至所述第一连接状态之后, 不通过 所述第一物理接口对所述第二设备进行供电;
在第一预定时间内, 在所述第一物理接口检测来自第二设备的预定信号, 获得第 一检测结果;
根据所述第一检测结果, 获得所述供电需求信息。
8. 一种用于第一设备的供电控制的装置, 所述第一设备包括第一物理接口, 所 述第一设备具有无连接状态和第一连接状态, 其中, 所述无连接状态是指所述第一设 备未通过所述第一物理接口与第二设备连接的状态; 所述第一连接状态是指所述第一 设备通过所述第一物理接口与第二设备连接后, 能通过所述第一物理接口向所述第二 设备主动发送控制命令的状态; 所述装置包括:
第一检测单元, 用于在第一设备处于无连接状态时, 检测到第一设备通过所述第 一物理接口与第二设备连接;
第一判断单元, 用于判断所述第一设备通过所述第一物理接口与所述第二设备的 连接是否满足第一预定条件, 获得第一判断结果;
第一切换单元, 用于当所述第一判断结果表明所述第一设备通过所述第一物理接 口与所述第二设备连接满足所述第一预定条件时, 将所述第一设备从所述无连接状态 切换至所述第一连接状态;
第一获得单元, 用于获得所述第二设备的供电需求信息, 所述供电需求信息用于 指示是否需要由所述第一设备为所述第二设备供电;
供电控制单元, 用于根据所述第二设备的供电需求信息, 控制通过所述第一物理 接口对所述第二设备的供电。
9. 如权利要求 8所述的装置, 其中, 所述供电控制单元包括:
第一控制单元, 用于在所述供电需求信息指示需要由所述第一设备为所述第二设 备供电时, 控制通过所述第一物理接口对所述第二设备供电;
第二控制单元, 用于在所述供电需求信息指示无需由所述第一设备为所述第二设 备供电时, 控制不对所述第二设备供电。
10. 如权利要求 9所述的装置, 其中, 所述第一控制单元包括:
第二获得单元, 用于获得所述第一设备的当前供电状态;
第一处理单元, 用于在所述当前供电状态指示第一设备正在为所述第二设备供电 时, 继续维持所述第一设备的当前供电状态; 第二处理单元, 用于在所述当前供电状态指示第一设备没有为所述第二设备供电 时, 通过所述第一物理接口为所述第二设备供电;
所述第二控制单元包括:
第三获得单元, 用于获得所述第一设备的当前供电状态;
第三处理单元, 用于在所述当前供电状态指示第一设备正在为所述第二设备供电 时, 停止所述第一设备通过所述第一物理接口为所述第二设备供电;
第四处理单元, 用于在所述当前供电状态指示第一设备没有为所述第二设备供电 时, 继续维持所述第一设备的当前供电状态。
11. 如权利要求 9所述的装置, 其中, 所述第二控制单元包括:
第四获得单元, 用于获得所述第二设备的充电能力信息;
第五处理单元, 用于在所述供电需求信息指示无需由所述第一设备为所述第二设 备供电时, 控制不通过所述第一物理接口对所述第二设备供电;
第一发送单元, 用于在所述充电能力信息指示所述第二设备能够为所述第一设备 充电时, 向所述第二设备发送充电请求;
第一接收单元, 用于通过所述第一物理接口, 接收所述第二设备对所述第一设备 的充电。
12. 如权利要求 8所述的装置, 其中, 所述第一切换单元包括:
第一切换处理单元, 用于将所述第一设备从所述无连接状态切换至所述第一连接 状态;
供电单元, 用于通过所述第一物理接口对所述第二设备进行供电。
13. 如权利要求 8或 12所述的装置, 其中, 所述第一获得单元包括: 第二发送单元, 用于向所述第二设备发送一用于请求所述第二设备的供电需求信 息的第一控制命令;
第二接收单元, 用于接收所述第二设备基于所述第一控制命令反馈的所述供电需 求信息。
14. 如权利要求 8所述的装置, 其中, 所述第一获得单元包括:
第六处理单元, 用于在所述将所述第一设备从所述无连接状态切换至所述第一连 接状态之后, 不通过所述第一物理接口对所述第二设备进行供电;
第二检测单元, 用于在第一预定时间内, 在所述第一物理接口检测来自第二设备 的预定信号, 获得第一检测结果;
分析获得单元, 用于根据所述第一检测结果, 获得所述供电需求信息。
15. 一种用于第二设备的供电控制的方法, 所述第二设备包括第二物理接口并具 有无连接状态和第二连接状态, 其中, 所述无连接状态是指所述第二设备未通过所述 第二物理接口与第一设备连接的状态; 所述第二连接状态是指所述第二设备通过所述 第二物理接口与第一设备连接后, 能通过所述第二物理接口从所述第一设备被动接收 控制命令的状态, 其中, 所述方法包括:
在第二设备处于无连接状态时, 检测到通过所述第二物理接口与第一设备连接; 判断所述第二设备通过所述第二物理接口与所述第一设备的连接是否满足第二 预定条件, 获得第二判断结果;
当所述第二判断结果表明所述第二设备通过所述第二物理接口与所述第一设备 连接满足所述第二预定条件时, 将所述第二设备从所述无连接状态切换至所述第二连 接状态;
向所述第一设备反馈所述第二设备的供电需求信息, 以使得所述第一设备根据所 述供电需求信息, 控制通过所述第二物理接口对所述第二设备的供电。
16. 如权利要求 15所述的方法, 其中,
所述将所述第二设备从所述无连接状态切换至所述第二连接状态包括: 将所述第二设备从所述无连接状态切换至所述第二连接状态;
通过所述第二物理接口接收所述第一设备的供电。
17. 如权利要求 15或 16所述的方法, 其中,
所述向所述第一设备反馈所述第二设备的供电需求信息包括:
接收所述第一设备发送的用于请求所述第二设备的供电需求信息的第一控制命 令;
基于所述第一控制命令, 向所述第一设备反馈所述供电需求信息。
18. 如权利要求 15所述的方法, 其中, 还包括:
向所述第一设备反馈所述第二设备的充电能力信息;
接收所述第一设备在所述充电能力信息指示所述第二设备能够为所述第一设备 充电时所发送的充电请求;
在接收到所述充电请求后, 通过所述第二物理接口, 对所述第一设备进行充电。
19. 一种用于第二设备的供电控制的装置, 所述第二设备包括第二物理接口并具 有无连接状态和第二连接状态, 其中, 所述无连接状态是指所述第二设备未通过所述 第二物理接口与第一设备连接的状态; 所述第二连接状态是指所述第二设备通过所述 第二物理接口与第一设备连接后, 能通过所述第二物理接口从所述第一设备被动接收 控制命令的状态, 所述装置包括:
第三检测单元, 用于在第二设备处于无连接状态时, 检测到第二设备通过所述第 二物理接口与第一设备连接;
第二判断单元, 用于判断所述第二设备通过所述第二物理接口与所述第一设备的 连接是否满足第二预定条件, 获得第二判断结果;
第二切换单元, 用于当所述第二判断结果表明所述第二设备通过所述第二物理接 口与所述第一设备连接满足所述第二预定条件时, 将所述第二设备从所述无连接状态 切换至所述第二连接状态;
第一反馈单元, 用于向所述第一设备反馈所述第二设备的供电需求信息, 以使得 所述第一设备根据所述第二设备的供电需求信息, 控制通过所述第二物理接口对所述 第二设备的供电。
20. 如权利要求 19所述的装置, 其中, 所述第二切换单元包括:
第二切换处理单元, 用于将所述第二设备从所述无连接状态切换至所述第二连接 状态;
供电接收单元, 用于通过所述第二物理接口接收所述第一设备的供电。
21. 如权利要求 19或 20所述的装置, 其中, 所述反馈单元包括:
第三接收单元, 用于接收所述第一设备发送的用于请求所述第二设备的供电需求 信息的第一控制命令;
第三发送单元, 用于基于所述第一控制命令, 向所述第一设备反馈所述供电需求 信息。
22. 如权利要求 19所述的装置, 其中, 还包括:
第二反馈单元, 用于向所述第一设备反馈所述第二设备的充电能力信息; 第三接收单元, 用于接收所述第一设备在所述充电能力信息指示所述第二设备能 够为所述第一设备充电时所发送的充电请求;
充电单元, 用于在接收到所述充电请求后, 通过所述第二物理接口, 对所述第一 设备进行充电。
23. 一种电子设备, 包括:
物理接口,所述物理接口包括第一通路和第二通路,所述第一通路能够传输电能, 所述第二通路能够传输控制命令, 所述第一通路和所述第二通路能同时工作;
处理单元, 用于设置所述电子设备处于第一工作状态或第二工作状态; 其中, 当所述电子设备处于所述第一工作状态时, 能够通过所述物理接口中的所 述第一通路向与所述电子设备连接的外部设备进行供电, 并通过所述物理接口中的所 述第二通路接收所述外部设备输入的控制命令; 当所述电子设备处于所述第二工作状 态时, 能够接收通过所述物理接口中的所述第一通路对所述电子设备的充电, 并通过 所述物理接口中的所述第二通路向所述外部设备输出控制命令。
PCT/CN2012/075945 2011-05-31 2012-05-23 供电控制的方法、装置及电子设备 WO2012163243A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/118,987 US9362769B2 (en) 2011-05-31 2012-05-23 Method and apparatus for power supply control and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110145032.7A CN102810880B (zh) 2011-05-31 2011-05-31 一种供电控制的方法、装置及电子设备
CN201110145032.7 2011-05-31

Publications (1)

Publication Number Publication Date
WO2012163243A1 true WO2012163243A1 (zh) 2012-12-06

Family

ID=47234508

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075945 WO2012163243A1 (zh) 2011-05-31 2012-05-23 供电控制的方法、装置及电子设备

Country Status (3)

Country Link
US (1) US9362769B2 (zh)
CN (1) CN102810880B (zh)
WO (1) WO2012163243A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150105745A (ko) * 2014-03-10 2015-09-18 삼성전자주식회사 전자 장치에서 외부 전자 장치로의 전력 출력을 제어하는 방법 및 장치
EP3101759A4 (en) * 2014-01-28 2018-01-17 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Detection circuit and method for charging start

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103928947B (zh) * 2013-01-10 2016-10-05 联想(北京)有限公司 电子设备的充电方法、装置及系统
CN105264905B (zh) * 2013-05-31 2019-06-18 索尼公司 信息处理设备和信息处理方法
CN103607520B (zh) * 2013-11-07 2017-07-04 深圳市美赛达科技股份有限公司 用于车机与移动终端的通信控制装置、方法及通信系统
CN104951060A (zh) * 2014-03-28 2015-09-30 联想(北京)有限公司 一种信息处理方法,控制设备以及电子设备
CN105896639B (zh) * 2015-01-26 2020-11-20 联想(北京)有限公司 一种充电控制方法和电子设备
FI20155227A (fi) * 2015-04-01 2016-10-02 Asmo Solutions Oy Lisälaite
US10141756B1 (en) * 2016-03-24 2018-11-27 Amazon Technologies, Inc. Dynamic power optimization when transferring power between batteries
JP6746096B2 (ja) * 2016-03-29 2020-08-26 リコーイメージング株式会社 電力情報管理装置及び電力情報管理方法
JP6631411B2 (ja) * 2016-05-24 2020-01-15 コニカミノルタ株式会社 メンテナンス支援装置、画像形成装置、メンテナンス支援方法、およびコンピュータプログラム
CN109766298B (zh) * 2016-07-19 2023-03-31 海信视像科技股份有限公司 基于USB Type-C接口的终端设备、外接设备及供电系统
JP6792389B2 (ja) * 2016-09-16 2020-11-25 キヤノン株式会社 電子機器及び電子機器の制御方法
CN106843438B (zh) * 2016-12-13 2020-05-29 硅谷数模半导体(北京)有限公司 级联通讯方法、级联电路
JP6332509B1 (ja) * 2017-03-23 2018-05-30 日本電気株式会社 電源システム
CN112928787A (zh) * 2019-12-06 2021-06-08 北京小米移动软件有限公司 充电电路、电子设备、充电控制方法及装置
CN111988549B (zh) * 2020-07-21 2022-09-09 深圳市金锐显数码科技有限公司 电视机usb座子供电方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040103223A1 (en) * 2002-11-26 2004-05-27 Motorola, Inc. USB accessory adaptor
US6963933B2 (en) * 2002-08-30 2005-11-08 Seiko Epson Corporation Data transfer control device, electronic equipment, and power supply switching method
CN1780085A (zh) * 2004-11-01 2006-05-31 惠普开发有限公司 动态usb电源的系统和方法
CN102025001A (zh) * 2009-09-21 2011-04-20 联想(北京)有限公司 一种终端的充电、供电方法及终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100671755B1 (ko) * 2001-04-25 2007-01-22 엘지전자 주식회사 범용직렬버스를 이용한 전원 제어방법
US20100070659A1 (en) * 2008-09-17 2010-03-18 Kenneth Ma Method and system for operating and/or charging a battery powered usb device based on a usb port type
US8237414B1 (en) * 2009-03-06 2012-08-07 Pericom Semiconductor Corporation Multi-mode charger device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6963933B2 (en) * 2002-08-30 2005-11-08 Seiko Epson Corporation Data transfer control device, electronic equipment, and power supply switching method
US20040103223A1 (en) * 2002-11-26 2004-05-27 Motorola, Inc. USB accessory adaptor
CN1780085A (zh) * 2004-11-01 2006-05-31 惠普开发有限公司 动态usb电源的系统和方法
CN102025001A (zh) * 2009-09-21 2011-04-20 联想(北京)有限公司 一种终端的充电、供电方法及终端

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3101759A4 (en) * 2014-01-28 2018-01-17 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Detection circuit and method for charging start
EP3474414A1 (en) * 2014-01-28 2019-04-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Detection circuit and method for starting charging
US10931125B2 (en) 2014-01-28 2021-02-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Detection circuit and method for starting charging
KR20150105745A (ko) * 2014-03-10 2015-09-18 삼성전자주식회사 전자 장치에서 외부 전자 장치로의 전력 출력을 제어하는 방법 및 장치
KR102240508B1 (ko) * 2014-03-10 2021-04-16 삼성전자주식회사 전자 장치에서 외부 전자 장치로의 전력 출력을 제어하는 방법 및 장치

Also Published As

Publication number Publication date
US20140070758A1 (en) 2014-03-13
CN102810880A (zh) 2012-12-05
US9362769B2 (en) 2016-06-07
CN102810880B (zh) 2015-04-29

Similar Documents

Publication Publication Date Title
WO2012163243A1 (zh) 供电控制的方法、装置及电子设备
WO2013152662A1 (zh) 一种终端设备的供电方法及其终端设备
CN104993562B (zh) 可直充电源适配器
JP5942042B2 (ja) 充電器、充電端末、充電システム、充電制御方法、プログラム及びその記録媒体
WO2015109718A1 (zh) 一种充电方法、交流电适配器、充电管理装置及终端
JP5821126B2 (ja) 逆方向ローカルデータ伝送接続を介して電力を提供するためのシステムおよび方法
JP3908753B2 (ja) モバイル電子デバイス内の充電状態を処理する方法および装置
WO2016179992A1 (zh) 快速充电方法、电源适配器和移动终端
TWI345342B (en) Detachable host accessory and portable system
WO2018082583A1 (zh) 一种充电方法、终端及充电适配器
CN104967200A (zh) 一种快速充电方法及移动终端
WO2013178146A1 (zh) 一种平板电脑接口扩展方法和装置
JP2004157604A (ja) Usb機器制御方法および装置
JP5330348B2 (ja) 携帯マルチメディア装置の急速充電に適合されたマザーボード
CN103176938A (zh) 通用串行总线主机及其电能管理方法
WO2012167677A1 (zh) 一种通过usb接口通信并为外部设备充电的装置及方法
CN107707000B (zh) 一种otg供电与无线充电兼容电路及相关方法和终端设备
JP2016218972A (ja) Usbハブ装置
JP5058083B2 (ja) インタフェース装置
US20150349561A1 (en) Charging an electrical device via a data interface
WO2015143793A1 (zh) 一种电流控制方法及终端设备
TWI559125B (zh) 行動電源裝置及其電源控制方法
CN106774769B (zh) 一种终端工作模式的切换方法及装置、手持终端
WO2012079484A1 (zh) 系统状态控制方法及便携终端
CN104283289B (zh) 一种蓝牙充电装置及充电控制方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12791946

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14118987

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12791946

Country of ref document: EP

Kind code of ref document: A1