CN108845655B - Electronic equipment control method and device, control circuit and electronic equipment - Google Patents

Electronic equipment control method and device, control circuit and electronic equipment Download PDF

Info

Publication number
CN108845655B
CN108845655B CN201810644386.8A CN201810644386A CN108845655B CN 108845655 B CN108845655 B CN 108845655B CN 201810644386 A CN201810644386 A CN 201810644386A CN 108845655 B CN108845655 B CN 108845655B
Authority
CN
China
Prior art keywords
pin
equipment
charging
interface
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810644386.8A
Other languages
Chinese (zh)
Other versions
CN108845655A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810644386.8A priority Critical patent/CN108845655B/en
Publication of CN108845655A publication Critical patent/CN108845655A/en
Application granted granted Critical
Publication of CN108845655B publication Critical patent/CN108845655B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4072Drivers or receivers
    • G06F13/4077Precharging or discharging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging
    • 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/007Regulation of charging or discharging current or voltage
    • 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/007Regulation of charging or discharging current or voltage
    • H02J7/0071Regulation of charging or discharging current or voltage with a programmable schedule

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application discloses an electronic equipment control method, an electronic equipment control device, a control circuit and electronic equipment, wherein the method comprises the following steps: detecting a current level value of a first preset pin in an interface of the electronic equipment; determining the type of equipment currently accessed through the interface according to the current level value of the first preset pin; determining a current target control strategy according to the type of the current access equipment; and controlling the state of the electronic equipment according to the target control strategy. By the method, the type of the equipment inserted into the interface can be determined according to the level value of the interface, and the state of the electronic equipment is controlled, so that the problem of equipment damage caused by recognition errors is solved, and the reliability and the safety of the electronic equipment are improved.

Description

Electronic equipment control method and device, control circuit and electronic equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for controlling an electronic device, a control circuit, and an electronic device.
Background
With The popularization of electronic devices such as tablet computers, smart phones, digital cameras and The like, high-speed data transmission technologies used between The devices and computers or between The devices are receiving more and more attention from people, and The OTG (On-The-Go) technology is growing. The OTG technology can realize data transmission between equipment under the condition of no host, and brings convenience to data exchange between the equipment.
At present, electronic equipment such as smart mobile phones, tablet computers generally support the OTG function, and this can lead to when external device (for example charging wire, OTG line) inserts the interface among the electronic equipment, and the electronic equipment can't accurate discernment user be to charge or will carry out data transmission, leads to discerning the failure to influence electronic equipment's normal use.
Disclosure of Invention
The application provides an electronic device control method, an electronic device control device, a control circuit and an electronic device, which are used for solving the problem that in the related art, the electronic device supporting the OTG function fails to identify, so that the normal use of the electronic device is influenced.
The embodiment of the first aspect of the application discloses an electronic device control method, which comprises the following steps:
detecting a current level value of a first preset pin in an interface of the electronic equipment;
determining the type of equipment currently accessed through the interface according to the current level value of the first preset pin;
determining a current target control strategy according to the type of the current access equipment;
and controlling the state of the electronic equipment according to the target control strategy.
According to the electronic device control method, the current level value of the first preset lead-in the interface of the electronic device is detected, the type of the device which is accessed through the interface at present is determined according to the current level value of the first preset pin, then the current target control strategy is determined according to the type of the device which is accessed at present, and the state of the electronic device is controlled according to the target control strategy. Therefore, the type of the equipment inserted into the interface is determined according to the level value of the interface, and the state of the electronic equipment is controlled, so that the problem of equipment damage caused by identification errors is solved, the reliability and the safety of the electronic equipment are improved, and the user experience is improved.
The embodiment of the second aspect of the application discloses an electronic device control circuit, which comprises: the method comprises the following steps: the first detection assembly and the control assembly are connected with each other; wherein the content of the first and second substances,
the first detection component is connected with a first preset pin in the electronic equipment interface and used for detecting the current level value of the first preset pin;
the control component is used for determining the type of the equipment which is accessed through the interface currently according to the level value detected by the first detection component; determining a current target control strategy according to the type of the current access equipment; and controlling the state of the electronic equipment according to the target control strategy.
The electronic device control circuit of the embodiment of the application is provided with a first detection component and a control component which are connected with each other, wherein the first detection component is connected with a first preset pin in an electronic device interface and used for detecting a current level value of the first preset pin, the control component is used for determining the type of a device which is accessed through the interface currently according to the level value detected by the detection component, determining a current target control strategy according to the type of the device which is accessed currently, and further controlling the state of the electronic device according to the target control strategy. Therefore, the type of the equipment inserted into the interface is determined according to the level value of the interface, and the state of the electronic equipment is controlled, so that the problem of equipment damage caused by identification errors is solved, the reliability and the safety of the electronic equipment are improved, and the user experience is improved.
An embodiment of a third aspect of the present application discloses an electronic device control apparatus, including:
the first detection module is used for detecting the current level value of a first preset pin in an interface of the electronic equipment;
the type determining module is used for determining the type of equipment which is accessed through the interface currently according to the current level value of the first preset pin;
the strategy determining module is used for determining a current target control strategy according to the type of the current access equipment;
and the control module is used for controlling the state of the electronic equipment according to the target control strategy.
The electronic device control apparatus according to the embodiment of the application determines the type of the device currently accessed through the interface by detecting the current level value of the first preset lead-in the interface of the electronic device and according to the current level value of the first preset pin, determines the current target control strategy according to the type of the currently accessed device, and controls the state of the electronic device according to the target control strategy. Therefore, the type of the equipment inserted into the interface is determined according to the level value of the interface, and the state of the electronic equipment is controlled, so that the problem of equipment damage caused by identification errors is solved, the reliability and the safety of the electronic equipment are improved, and the user experience is improved.
An embodiment of a fourth aspect of the present application discloses an electronic device, including: the electronic device control method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the electronic device control method is implemented as described in the foregoing first aspect embodiment.
A fifth aspect of the present application discloses a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the electronic device control method according to the foregoing first aspect of the present application.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a method for controlling an electronic device according to an embodiment of the present disclosure;
FIG. 2 is a schematic pin distribution diagram of the Micro USB interface;
fig. 3 is a schematic flowchart of another electronic device control method according to an embodiment of the present disclosure;
FIG. 4 is an exemplary diagram of a self-contained power adapter;
fig. 5 is a schematic flowchart of another electronic device control method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a control circuit of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another electronic device control circuit according to an embodiment of the present disclosure;
FIG. 8 is a diagram illustrating an exemplary control circuit of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device control apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another electronic device control apparatus according to an embodiment of the present application; and
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, it is to be understood that the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
An electronic device control method, an electronic device control apparatus, a control circuit, and an electronic device according to embodiments of the present application are described below with reference to the drawings.
Fig. 1 is a flowchart illustrating a method for controlling an electronic device according to an embodiment of the present disclosure, where the electronic device may be a smart phone, a tablet computer, or the like.
As shown in fig. 1, the electronic device control method may include the steps of:
step 101, detecting a current level value of a first preset pin in an interface of the electronic device.
To electronic equipment such as smart mobile phones, panel computers, for the realization charges to electronic equipment, and/or realize the data transmission between electronic equipment and other equipment, can set up an interface on the electronic equipment, this interface can be Micro USB interface, Type-C interface etc..
The interface on the electronic device includes a plurality of pins to meet charging and data transfer requirements.
Taking a Micro USB interface as an example, fig. 2 is a schematic pin distribution diagram of the Micro USB interface. As shown in fig. 2, the microsusb interface includes 5 pins, which are a VBUS pin, a USB _ DM pin, a USB _ DP pin, an ID pin, and a GND pin. The VBUS pin is a power supply pin and is used for providing +5V voltage; the USB _ DM pin and the USB _ DP pin are data transmission pins; the ID pin is used in the OTG function and can output high/low level; the GND pin is a ground pin.
When the electronic equipment is charged, one end of the charging wire is connected with the interface of the electronic equipment, and the other end of the charging wire is required to be connected with the adapter, so that the adapter outputs the current required by the electronic equipment. When the electronic equipment is connected with the adapter, a pin in an interface of the electronic equipment outputs 5V voltage, for example, when the interface is a Micro USB interface, the VBUS pin outputs 5V voltage after the electronic equipment is connected with the adapter; and when the electronic equipment is not connected with the adapter, no pin in the interface of the electronic equipment outputs 5V voltage. Therefore, in this embodiment, the type of the device in the access port may be determined by detecting a current level value of the first preset pin in the interface of the electronic device. For example, for a Micro USB interface, the first preset pin is a VBUS pin, and whether the VBUS pin outputs 5V voltage may be detected to determine whether the interface of the electronic device is connected to the charging device.
And step 102, determining the type of the equipment which is accessed through the interface currently according to the current level value of the first preset pin.
In this embodiment, the first preset pin in the interface of the electronic device generates a high level or a low level according to different access devices. For example, for a Micro USB interface, when the interface is connected to a charging device, the VBUS pin generates a voltage of 5V, i.e. a high level; when the interface is connected to the data processing equipment, the VBUS pin cannot generate a voltage of 5V, and the pin generates a low level at the moment. Therefore, in this embodiment, the type of the device currently accessed through the interface may be determined according to the detected current level value of the first preset pin.
Specifically, when the first preset pin is determined to be at a high level currently, the currently accessed device is determined to be a charging device; or when the first preset pin is determined to be at a low level currently, determining that the currently accessed device is the data processing device.
And 103, determining a current target control strategy according to the type of the current access equipment.
When the interface of the electronic equipment is connected with the charging equipment, the battery in the electronic equipment is charged; when the interface of the electronic device is connected to the data processing device, the data in the other device is input into the electronic device, or the data in the electronic device is output into the other device.
It can be understood that the operating state of the electronic device is different in the case of charging a battery in the electronic device, as compared to the case of data transmission between the electronic device and another device. When the interface of the electronic device is connected with the charging device, the battery of the electronic device is in a charging state, and when the interface is connected with the data processing device, the battery of the electronic device is in a discharging state. Therefore, in this embodiment, after determining the type of the device currently accessed through the interface, the current target control policy may be further determined according to the type of the device currently accessed, so as to control the electronic device to operate according to the target control policy.
For example, if the currently accessed device is a charging device, it may be determined that the corresponding target control policy is to control the battery to be in a charging state; if the currently accessed device is a data processing device, the corresponding target control strategy can be determined to be that the battery is controlled to be in a discharging state. For another example, if the currently accessed device is a charging device, the corresponding target control policy may be determined to be detecting the type of the charging device; if the currently accessed device is a data processing device, it may be determined whether the corresponding target control policy is to detect that the data processing device is an OTG device.
And 104, controlling the state of the electronic equipment according to the target control strategy.
In this embodiment, after the current target control strategy is determined, the state of the electronic device may be controlled according to the target control strategy.
For example, when it is determined that the target control policy is to detect the type of the currently accessed charging device, the electronic device is controlled to start a preset charging device type detection program to detect whether the currently accessed charging device is an original charging device.
In the electronic device control method of this embodiment, a first preset current level value introduced into an interface of an electronic device is detected, a type of a device currently accessed through the interface is determined according to the current level value of a first preset pin, a current target control policy is determined according to the type of the device currently accessed, and a state of the electronic device is controlled according to the target control policy. Therefore, the type of the equipment inserted into the interface is determined according to the level value of the interface, and the state of the electronic equipment is controlled, so that the problem of equipment damage caused by identification errors is solved, the reliability and the safety of the electronic equipment are improved, and the user experience is improved.
As mentioned above, the currently accessed device may be a charging device or a data processing device. The following explanation will be made for two cases, that is, the charging device and the data processing device, respectively.
It can be appreciated that charging an electronic device typically requires the use of a power adapter. The current output by the power adapter is determined by the load (i.e., the electronic device) to which the adapter is connected, how much current is required by the load, and how much current the power adapter provides. The transformer is arranged in the original power adapter, so that the current can be automatically adjusted, and the charging safety is ensured; the power adapter is not originally installed, lacks a protection circuit, cannot guarantee the stability of current during charging, and when the current required by the load exceeds the upper limit of the current that the power adapter can provide, the power adapter continuously outputs the maximum current, which easily burns out the battery of the electronic equipment, and causes charging danger. Therefore, when the power adapter is used for charging the electronic equipment, whether the connected power adapter is the original power adapter or not is detected, and the method has important significance for safe charging. Therefore, in a possible implementation manner of the embodiment of the present application, after determining that a currently accessed device is a charging device, as shown in fig. 3, based on the foregoing embodiment, the electronic device control method may include the following steps:
step 201, controlling a switch connected to a second pin in the interface to be in a first conducting state to detect a current level value of the second pin.
The switch connected to the second pin may be a two-in-one switch, and when the switch is in the first on state, a control terminal of the switch is connected to a connection terminal connected to a General Purpose Input/Output (GPIO) interface in the electronic device.
Taking the Micro USB interface as an example, the second pin is an ID pin, an output end of the ID pin is connected to a public end of the two-in-one switch, when it is determined that the device currently connected to the Micro USB interface is a charging device, the two-in-one switch is in a first on state, and the GPIO interface is used to detect a current level value of the ID pin.
Step 202, determining the class of the charging device according to the current level value of the second pin.
In this embodiment, the category to which the charging device belongs is determined according to the detected current level value of the second pin.
As a possible implementation manner, an ID pin in an original charging device (original power adapter) matched with the electronic device may be grounded, and when it is determined that a device currently connected to the interface of the electronic device is a charging device, it is determined whether the currently connected charging device is the original charging device by detecting a level value of the pin.
For example, for an electronic device with a Micro USB interface, a primary power adapter is shown in fig. 4, and fig. 4 is an exemplary diagram of the primary power adapter. As shown in fig. 4, the ID pin is connected to ground via a resistor inside the original power adapter, and the output level value of the ID pin is set to a low level. Therefore, when the original power adapter shown in fig. 4 is used to charge the electronic device, the level detected by the ID pin in the Micro USB interface of the electronic device is low. For the non-original power adapter, the ID pin in the non-original power adapter is in a suspended state, so that when the non-original power adapter is used for charging the electronic device, the level value detected by the ID pin in the Micro USB interface of the electronic device is a high level. Therefore, according to the detected level value currently output by the ID pin, whether the adapter currently accessed by the interface is the original power adapter can be determined. When the current level value of the ID pin is detected to be low level, the charging device which is currently accessed by the interface can be determined to be the original power adapter; otherwise, the charging equipment currently accessed by the interface is a non-original power adapter.
And step 203, controlling the charging process of the electronic equipment according to the category of the charging equipment.
In this embodiment, after the type of the charging device is determined, the charging process of the electronic device may be controlled according to the type of the charging device.
Specifically, if the charging device is a target device, the electronic device is controlled to be charged in a first charging mode; and if the charging equipment is the non-target equipment, controlling the electronic equipment to charge in a second charging mode. The target equipment is an original power adapter, the charging voltage in the first charging mode is larger than the charging voltage in the second charging mode, and/or the charging current in the first charging mode is larger than the charging current in the second charging mode.
In this embodiment, when the currently accessed charging device is the original power adapter, the electronic device may be controlled to be charged with a larger charging voltage or charging current; when the currently accessed charging equipment is not the original power adapter, the electronic equipment can be controlled to be charged by smaller charging voltage or charging current, so that dangers that batteries are burnt out or even explode and the like due to overlarge charging voltage or current when the non-original power adapter is used for charging are avoided.
According to the electronic equipment control method, when the currently accessed equipment is the charging equipment, the switch connected with the second pin in the interface is controlled to be in the first conduction state to detect the current level value of the second pin, the type of the charging equipment is determined according to the current level value of the second pin, and then the charging process of the electronic equipment is controlled according to the type of the charging equipment, so that the charging safety can be guaranteed, the probability of danger in the charging process is reduced, and the personal and property safety of a user is guaranteed.
In a possible implementation manner of the embodiment of the present application, after determining that a currently accessed device is a data processing device, as shown in fig. 5, based on the foregoing embodiment, the electronic device control method may include the following steps:
and 301, controlling a switch connected with a second pin in the interface to be in a second conducting state so as to perform data transmission with the data processing equipment through the interface.
The switch is in a second conducting state, and the control end of the switch is communicated with the connecting end connected with the data transmission interface in the electronic equipment.
In this embodiment, when it is determined that the currently accessed device is the data processing device, the switch connected to the second pin in the interface may be controlled to be in the second on state, so as to perform data transmission with the data processing device through the interface.
Taking the interface of the electronic device as a Micro USB interface as an example, the ID pin of the Micro USB interface is connected with the public end of the switch, and after the Micro USB interface is connected with the data processing device, the control end of the switch is communicated with the connecting end connected with the data transmission interface in the electronic device, so that the connection between the data processing device and the data processing interface in the electronic device is realized, and the electronic device performs data transmission with the data processing device through the interface.
In the electronic device control method of this embodiment, when it is determined that the currently accessed device is the data processing device, the switch connected to the second pin in the interface is controlled to be in the second on state, so as to perform data transmission with the data processing device through the interface, thereby implementing data interaction between the data processing device and the electronic device.
In order to implement the above embodiments, the present application further provides an electronic device control circuit.
Fig. 6 is a schematic structural diagram of an electronic device control circuit according to an embodiment of the present disclosure.
As shown in fig. 6, the electronic device control circuit includes: a first detecting element 510 and a control element 520 connected to each other.
The first detecting component 510 is connected to a first preset pin in the interface of the electronic device, and is configured to detect a current level value of the first preset pin.
A control component 520, configured to determine a type of a device currently accessed through the interface according to the level value detected by the first detecting component 510; determining a current target control strategy according to the type of the current access equipment; and controlling the state of the electronic equipment according to the target control strategy.
Further, in a possible implementation manner of the embodiment of the present application, as shown in fig. 7, on the basis of the embodiment shown in fig. 6, the electronic device control circuit further includes: a switch component 530 and a second detection component 540.
The control terminal 531 of the switch component 530 is electrically connected to the output terminal of the control component 520, the common terminal 532 of the switch component 530 is electrically connected to the second preset pin of the interface, and the first connection terminal 533 of the switch component 530 is electrically connected to the input terminal of the second detection component 540.
The output end of the second detection component 540 is electrically connected to the first input end of the control component 520, and is used for detecting the class of the charging device connected to the interface.
The second connection terminal 534 of the switching component 530 is electrically connected to a second input terminal of the control component 520.
In this embodiment, by introducing the switch component 530, the control terminal 531 of the switch component 530 is electrically connected to the output terminal of the control component 520, so that the switch component 530 controls the on-state of the switch component 530 according to the output of the control component 520. Specifically, when the output terminal of the control component 520 outputs a high level, the control terminal 531 of the control switch component 530 is communicated with the first connection terminal 533; when the output terminal of the control component 520 outputs a low level, the control terminal 531 of the control switch component 530 is connected to the second connection terminal 534.
The common terminal 532 of the switch component 530 is electrically connected to the second preset pin of the interface, the first connection terminal 533 of the switch component 530 is electrically connected to the input terminal of the second detection component 540, when the device connected to the interface is a charging device, the output terminal of the control component 520 outputs a high level, the control terminal 531 of the switch component 530 is connected to the first connection terminal 533, and the second detection component 540 may detect a level value of the second preset pin of the interface. The output terminal of the second detecting component 540 is electrically connected to the first input terminal of the control component 520, so that the control component 520 can determine the class to which the interfaced charging device belongs according to the level value of the second preset pin detected by the second detecting component 540.
The second connection terminal 534 of the switch component 530 is electrically connected to the second input terminal of the control component 520, when the device connected to the interface is a data processing device, the output terminal of the control component 520 outputs a low level, and the control terminal 531 of the switch component 530 is connected to the second connection terminal 534, so that the control component 520 controls the data processing device and the electronic device to perform data transmission.
It can be understood that the functions of the control component in the foregoing embodiments may be integrated in a control chip, for example, the functions implemented by the control component are integrated in a Power Management Integrated Circuit (PMIC) of the electronic device, or integrated in the main controller; alternatively, in order to facilitate the internal circuit wiring of the electronic device, the functions of the control component may be integrated into two control chips, for example, the functions realized by the control component may be integrated into the PMIC and the main controller of the electronic device, respectively. The following explains an electronic device control circuit according to an embodiment of the present application, taking as an example a PMIC and a main controller that together form a control unit.
Fig. 8 is a diagram illustrating an exemplary control circuit of an electronic device according to an embodiment of the disclosure. In fig. 8, the main controller and the PMIC jointly form a control component, and both the main controller and the PMIC integrate a detection program, wherein the detection program in the main controller is used for detecting a level value of an ID pin in the Micro USB interface, the detection program in the PMIC is used for detecting a level value of VBUS in the Micro USB interface, a DM pin and a DP pin in the PMIC are used for data transmission, and VBAT is a voltage output by the battery. As shown in fig. 8, when different devices are connected to the interface of the electronic device, the interface of the electronic device is controlled by a two-in-one switch to connect to different control chips of the electronic device. The common end 1 of the two-in-one switch is connected with the ID pin of the Micro USB interface, the first connecting end of the two-in-one switch is connected with the interface of the main controller, and the second connecting end 4 is connected with the OTG _ ID pin of the PMIC. When the detection program in the PMIC detects a high level, it may be determined that the device currently accessed by the interface is a charging device, at this time, the PMIC controls the control terminal 2 of the two-in-one switch to communicate with the first connection terminal 3, and then the detection program in the main controller executes to detect the level value of the ID pin, so as to determine the type of the charging device accessed by the Micro USB interface. When a detection program in the PMIC detects a low level, it may be determined that the currently accessed device is a data processing device, and at this time, the PMIC controls the control terminal 2 of the two-in-one switch to be communicated with the second connection terminal 4, so that data transmission can be performed between the data processing device and the electronic device, which are currently accessed by the interface.
It should be noted that the foregoing explanation of the embodiment of the electronic device control method is also applicable to the electronic device control circuit of this embodiment, and details are not described here.
The electronic device control circuit of the embodiment of the application is provided with a first detection component and a control component which are connected with each other, wherein the first detection component is connected with a first preset pin in an electronic device interface and used for detecting a current level value of the first preset pin, the control component is used for determining the type of a device which is accessed through the interface currently according to the level value detected by the detection component, determining a current target control strategy according to the type of the device which is accessed currently, and further controlling the state of the electronic device according to the target control strategy. Therefore, the type of the equipment inserted into the interface is determined according to the level value of the interface, and the state of the electronic equipment is controlled, so that the problem of equipment damage caused by identification errors is solved, the reliability and the safety of the electronic equipment are improved, and the user experience is improved.
In order to implement the above embodiments, the present application further provides an electronic device touch screen control device.
Fig. 9 is a schematic structural diagram of an electronic device control apparatus according to an embodiment of the present application.
As shown in fig. 9, the electronic device control apparatus 60 includes: a first detection module 610, a type determination module 620, a policy determination module 630, and a control module 640.
The detecting module 610 is configured to detect a current level value of a first preset pin in an interface of the electronic device.
A type determining module 620, configured to determine a type of a device currently accessed through the interface according to a current level value of the first preset pin.
In a possible implementation manner of the embodiment of the present application, the type determining module 620 is specifically configured to determine that a currently accessed device is a charging device when it is determined that the first preset pin is currently at a high level; or when the first preset pin is determined to be at a low level currently, determining that the currently accessed device is the data processing device.
A policy determining module 630, configured to determine a current target control policy according to a type of a current access device.
And the control module 640 is configured to control the state of the electronic device according to the target control policy.
Further, in a possible implementation manner of the embodiment of the present application, as shown in fig. 10, on the basis of the embodiment shown in fig. 9, the electronic device control apparatus 60 may further include:
the second detecting module 650 is configured to control a switch connected to a second pin in the interface to be in a first conducting state to detect a current level value of the second pin when the type determining module 620 determines that the currently connected device is the charging device.
The charging control module 660 is configured to determine a category to which the charging device belongs according to a current level value of the second pin; and controlling the charging process of the electronic equipment according to the category of the charging equipment.
Specifically, when the charging control module 660 controls the charging process of the electronic device according to the category to which the charging device belongs, the method includes: if the charging equipment is the target equipment, controlling the electronic equipment to charge in a first charging mode; if the charging equipment is non-target equipment, controlling the electronic equipment to charge in a second charging mode; wherein the charging voltage in the first charging mode is greater than the charging voltage in the second charging mode, and/or the charging current in the first charging mode is greater than the charging current in the second charging mode.
When the currently accessed device is a charging device, the switch connected with the second pin in the interface is controlled to be in the first conduction state so as to detect the current level value of the second pin, the type of the charging device is determined according to the current level value of the second pin, and then the charging process of the electronic device is controlled according to the type of the charging device, so that the charging safety can be ensured, the probability of danger in the charging process is reduced, and the personal and property safety of a user is guaranteed.
And the data transmission control module 670 is configured to, when the type determining module 620 determines that the currently accessed device is a data processing device, control the switch connected to the second pin in the interface to be in the second conducting state, so as to perform data transmission with the data processing device through the interface.
When the currently accessed device is determined to be the data processing device, the switch connected with the second pin in the interface is controlled to be in the second conducting state, so that data transmission is carried out between the interface and the data processing device, and data interaction between the data processing device and the electronic device is achieved.
It should be noted here that the second detection module 650, the charging control module 660, and the data transmission control module 670 may be disposed in the control module 640, or may be disposed separately, and the present application is only explained by taking a separate arrangement as an example, and is not limited to the present application.
It should be noted that the foregoing explanation on the embodiment of the electronic device control method is also applicable to the electronic device control apparatus of this embodiment, and the implementation principle is similar, and is not described herein again.
The electronic device control apparatus according to the embodiment of the application determines the type of the device currently accessed through the interface by detecting the current level value of the first preset lead-in the interface of the electronic device and according to the current level value of the first preset pin, determines the current target control strategy according to the type of the currently accessed device, and controls the state of the electronic device according to the target control strategy. Therefore, the type of the equipment inserted into the interface is determined according to the level value of the interface, and the state of the electronic equipment is controlled, so that the problem of equipment damage caused by identification errors is solved, the reliability and the safety of the electronic equipment are improved, and the user experience is improved.
In order to implement the above embodiments, the present application further provides an electronic device.
Fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The electronic device shown in fig. 11 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 11, the electronic device 200 includes: a memory 210, a processor 220 and a computer program stored on the memory 210 and operable on the processor 220, the processor 220 executing the program to implement the electronic device control method according to the foregoing embodiment.
In an alternative implementation form, as shown in fig. 11, the electronic device 200 may further include: a memory 210 and a processor 220, and a bus 230 connecting different components (including the memory 210 and the processor 220), wherein the memory 210 stores a computer program, and when the processor 220 executes the computer program, the electronic device control method according to the embodiment of the present application is implemented.
Bus 230 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 200 typically includes a variety of computer device readable media. Such media may be any available media that is accessible by electronic device 200 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 210 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)240 and/or cache memory 250. The electronic device 200 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 260 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 11, and commonly referred to as a "hard drive"). Although not shown in FIG. 11, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 230 by one or more data media interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 280 having a set (at least one) of program modules 270, including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment, may be stored in, for example, the memory 210. The program modules 270 generally perform the functions and/or methodologies of the embodiments described herein.
Electronic device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), with one or more devices that enable a user to interact with electronic device 200, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 200 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 292. Also, the electronic device 200 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 293. As shown in FIG. 11, the network adapter 293 communicates with the other modules of the electronic device 200 via the bus 230. It should be appreciated that although not shown in FIG. 11, other hardware and/or software modules may be used in conjunction with electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In the electronic device of the embodiment, the processor implements the electronic device control method by executing the computer program stored in the memory, so that the type of the device inserted into the interface is determined according to the level value of the interface, and the state of the electronic device is controlled, thereby avoiding the problem of device damage caused by recognition error, improving the reliability and safety of the electronic device, and improving user experience.
The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for controlling the touch screen of the electronic device in the foregoing embodiment is implemented.
In an alternative implementation, the embodiments may be implemented in any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The computer-readable storage medium can be arranged in the electronic equipment, and the control method of the touch screen of the electronic equipment stored in the electronic equipment is executed, so that the working mode of the touch screen is adjusted according to the state of the display screen, the function of the black screen gesture does not need to be closed, the false triggering operation of the black screen gesture can be avoided, the probability of the false triggering of the black screen gesture is reduced, the operation accuracy in the black screen state is improved, and the user experience is improved.
The embodiment of the present application also provides a computer program product, and when instructions in the computer program product are executed by a processor, the method for controlling a touch screen of an electronic device according to the foregoing embodiment is performed.
In the description herein, references to the description of the terms "one embodiment," "certain embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described, it will be understood by those of ordinary skill in the art that: numerous changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the application, the scope of which is defined by the claims and their equivalents.

Claims (7)

1. An electronic device control method, comprising:
detecting a current level value of a first preset pin in an interface of the electronic equipment, wherein when the interface is a Micro USB interface, the first preset pin is a VBUS pin, and the electronic equipment has an OTG function;
determining the type of equipment currently accessed through the interface according to the current level value of the first preset pin, wherein the equipment comprises charging equipment or data processing equipment, and the data processing equipment comprises OTG equipment; when the first preset pin is determined to be at a high level currently, determining that the currently accessed equipment is charging equipment; or when the first preset pin is determined to be at a low level currently, determining that the currently accessed equipment is data processing equipment;
determining a current target control strategy according to the type of the current access equipment; if the currently accessed equipment is charging equipment, determining that the corresponding target control strategy is the type of the charging equipment; after the currently accessed device is determined to be the charging device, the method further includes: controlling a switch connected with a second pin in the interface to be in a first conducting state so as to detect the current level value of the second pin; determining the class of the charging equipment according to the current level value of the second pin; the second pin is connected with the ground through a resistor inside the original charging equipment, and the output level value of the second pin is a low level; the second pin is in a suspended state in the non-original charging equipment, and when the non-original charging equipment is used for charging the electronic equipment, the output level value of the second pin is a high level in a Micro USB interface of the electronic equipment; controlling the charging process of the electronic equipment according to the category of the charging equipment; the second pin is an ID pin, the ID pin is used in an OTG function, and the ID pin can output a high level and a low level; if the currently accessed device is a data processing device, determining that the corresponding target control strategy is to detect whether the data processing device is an OTG device; after determining that the currently accessed device is the data processing device, the method further includes: controlling a switch connected with a second pin in the interface to be in a second conducting state so as to carry out data transmission with data processing equipment through the interface;
and controlling the state of the electronic equipment according to the target control strategy.
2. The method of claim 1, wherein the controlling the charging process of the electronic device according to the class to which the charging device belongs comprises:
if the charging equipment is target equipment, controlling the electronic equipment to charge in a first charging mode;
if the charging equipment is non-target equipment, controlling the electronic equipment to charge in a second charging mode;
wherein the charging voltage in the first charging mode is greater than the charging voltage in the second charging mode, and/or the charging current in the first charging mode is greater than the charging current in the second charging mode.
3. An electronic device control circuit, comprising: the first detection assembly and the control assembly are connected with each other;
the first detection component is connected with a first preset pin in the interface of the electronic device and is used for detecting the current level value of the first preset pin, wherein when the interface is a Micro USB interface, the first preset pin is a VBUS pin, and the electronic device has an OTG function;
the control component is configured to determine, according to the level value detected by the first detecting component, a type of a device currently accessed through the interface, where the device includes a charging device or a data processing device, and the data processing device includes an OTG device; when the first preset pin is determined to be at a high level currently, determining that the currently accessed equipment is charging equipment; or when the first preset pin is determined to be at a low level currently, determining that the currently accessed equipment is data processing equipment; after the currently accessed device is determined to be the charging device, the method further includes: controlling a switch connected with a second pin in the interface to be in a first conducting state so as to detect the current level value of the second pin; determining the class of the charging equipment according to the current level value of the second pin; the second pin is connected with the ground through a resistor inside the original charging equipment, and the output level value of the second pin is a low level; the second pin is in a suspended state in the non-original charging equipment, and when the non-original charging equipment is used for charging the electronic equipment, the output level value of the second pin is a high level in a Micro USB interface of the electronic equipment; controlling the charging process of the electronic equipment according to the category of the charging equipment; or after determining that the currently accessed device is the data processing device, the method further includes: controlling a switch connected with a second pin in the interface to be in a second conducting state so as to carry out data transmission with data processing equipment through the interface; the second pin is an ID pin, the ID pin is used in an OTG function, and the ID pin can output a high level and a low level; determining a current target control strategy according to the type of the current access equipment; if the currently accessed equipment is charging equipment, determining that the corresponding target control strategy is the type of the charging equipment; if the currently accessed device is a data processing device, determining that the corresponding target control strategy is to detect whether the data processing device is an OTG device; and controlling the state of the electronic equipment according to the target control strategy.
4. The control circuit of claim 3, further comprising: the switch assembly and the second detection assembly;
the control end of the switch assembly is electrically connected with the output end of the control assembly, the common end of the switch assembly is electrically connected with the second preset pin of the interface, and the first connection end of the switch assembly is electrically connected with the input end of the second detection assembly;
the output end of the second detection component is electrically connected with the first input end of the control component and is used for detecting the category of the charging equipment connected with the interface;
and the second connecting end of the switch assembly is electrically connected with the second input end of the control assembly.
5. An electronic device control apparatus, comprising:
the first detection module is used for detecting a current level value of a first preset pin in an interface of the electronic equipment, wherein when the interface is a Micro USB interface, the first preset pin is a VBUS pin, and the electronic equipment has an OTG function;
a type determining module, configured to determine, according to a current level value of the first preset pin, a type of a device currently accessed through the interface, where the device includes a charging device or a data processing device, and the data processing device includes an OTG device; when the first preset pin is determined to be at a high level currently, determining that the currently accessed equipment is charging equipment; or when the first preset pin is determined to be at a low level currently, determining that the currently accessed equipment is data processing equipment; after the currently accessed device is determined to be a charging device, controlling a switch connected with a second pin in the interface to be in a first conducting state so as to detect a current level value of the second pin; determining the class of the charging equipment according to the current level value of the second pin; controlling the charging process of the electronic equipment according to the category of the charging equipment; or after the currently accessed device is determined to be the data processing device, controlling a switch connected with a second pin in the interface to be in a second conducting state so as to perform data transmission with the data processing device through the interface; the second pin is an ID pin, the ID pin is used in an OTG function, and the ID pin can output a high level and a low level;
the strategy determining module is used for determining a current target control strategy according to the type of the current access equipment; if the currently accessed equipment is charging equipment, determining that the corresponding target control strategy is the type of the charging equipment; if the currently accessed device is a data processing device, determining that the corresponding target control strategy is to detect whether the data processing device is an OTG device;
and the control module is used for controlling the state of the electronic equipment according to the target control strategy.
6. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements the electronic device control method according to any of claims 1-2.
7. A computer-readable storage medium on which a computer program is stored, characterized in that the program, when executed by a processor, implements the electronic device control method according to any one of claims 1-2.
CN201810644386.8A 2018-06-21 2018-06-21 Electronic equipment control method and device, control circuit and electronic equipment Active CN108845655B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810644386.8A CN108845655B (en) 2018-06-21 2018-06-21 Electronic equipment control method and device, control circuit and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810644386.8A CN108845655B (en) 2018-06-21 2018-06-21 Electronic equipment control method and device, control circuit and electronic equipment

Publications (2)

Publication Number Publication Date
CN108845655A CN108845655A (en) 2018-11-20
CN108845655B true CN108845655B (en) 2022-03-22

Family

ID=64202877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810644386.8A Active CN108845655B (en) 2018-06-21 2018-06-21 Electronic equipment control method and device, control circuit and electronic equipment

Country Status (1)

Country Link
CN (1) CN108845655B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669909A (en) * 2018-12-14 2019-04-23 上海闻泰信息技术有限公司 External equipment implementation method, device, terminal and storage medium
CN112214433B (en) * 2019-07-09 2022-04-15 北京小米移动软件有限公司 Terminal device, control method thereof, auxiliary device, and storage medium
CN112530379A (en) * 2019-09-18 2021-03-19 咸阳彩虹光电科技有限公司 Display device and interface type selection method thereof
CN110825682B (en) * 2019-11-05 2022-08-02 维沃移动通信有限公司 USB control method and electronic equipment
CN110957785B (en) * 2019-12-10 2022-02-25 维沃移动通信有限公司 Battery assembly, charging control method and system
CN111030226B (en) * 2019-12-20 2021-08-24 维沃移动通信有限公司 Equipment detection method and electronic equipment
CN113163140B (en) * 2020-01-22 2023-05-09 海信视像科技股份有限公司 Display device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838343A (en) * 2012-11-27 2014-06-04 联想(北京)有限公司 Data interface, electronic device and method for expanding current output quantity of data interface
CN106571657A (en) * 2016-09-28 2017-04-19 上海创功通讯技术有限公司 Terminal, converter and connection conversion system and method
CN107239106A (en) * 2017-05-31 2017-10-10 珠海市魅族科技有限公司 A kind of recognition methods of power supply adaptor and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102684270B (en) * 2012-05-31 2014-12-10 华为技术有限公司 Method for identifying type of universal serial bus (USB) chargers and USB device
JP5986145B2 (en) * 2014-07-02 2016-09-06 レノボ・シンガポール・プライベート・リミテッド Portable devices, cable assemblies and USB systems
CN105071795A (en) * 2015-08-17 2015-11-18 广东欧珀移动通信有限公司 Multiplex circuit based on USB interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838343A (en) * 2012-11-27 2014-06-04 联想(北京)有限公司 Data interface, electronic device and method for expanding current output quantity of data interface
CN106571657A (en) * 2016-09-28 2017-04-19 上海创功通讯技术有限公司 Terminal, converter and connection conversion system and method
CN107239106A (en) * 2017-05-31 2017-10-10 珠海市魅族科技有限公司 A kind of recognition methods of power supply adaptor and device

Also Published As

Publication number Publication date
CN108845655A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN108845655B (en) Electronic equipment control method and device, control circuit and electronic equipment
US11050286B2 (en) Electronic device, method of controlling charging by electronic device, and method of supplying power by power supply device
US20220043067A1 (en) Charging method and device, charging system, electronic equipment and storage medium
US8538494B2 (en) Mobile phone and method for transferring battery power of the mobile phone
KR102439078B1 (en) Electronic device and method for controlling a charging thereof
KR20190001830A (en) Method for controlling a plurality of batteries and electronic device thereof
US10243380B2 (en) Method and apparatus for battery malfunction detection and notification thereof
US20100060233A1 (en) Charger with USB detection
CN103186483A (en) Terminal, and OTG (On-The-Go) function-charging function paralleled execution method used for same
US20130086397A1 (en) Electronic apparatus and its control method
EP3771987A1 (en) Electronic device for preventing damage of usb device and operating method thereof
US6822424B2 (en) Trouble recognition of an intelligent battery and the resetting thereof
WO2024099124A1 (en) Charging control method and apparatus, and electronic device
US10324512B2 (en) Device power management based on detected power source
US20170345428A1 (en) Docking device for providing computing service and method for providing the same
CN111830394A (en) Charging circuit fault detection method, electronic device and computer readable storage medium
KR102540922B1 (en) Charging support apparatus and method in vehicle
CN110113484A (en) A kind of control method of screen power supplies, device, storage medium and electronic equipment
CN209282342U (en) A kind of battery system and mobile terminal detecting state in place
US11437826B2 (en) Battery fast charging using multiple adaptor inputs
US20130221904A1 (en) Terminal and method for charging battery of sub terminal connected to main terminal
CN110659237B (en) Function adaptation method, device, equipment and storage medium
CN111949103B (en) Integrated electronic device with data access, transmission and power management and method thereof
US20230004514A1 (en) Communication protocols for secure digital (sd) cards
KR20150049221A (en) Method for controlling a battery charge and an electronic device

Legal Events

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