WO2018076445A1 - Charging method and mobile terminal - Google Patents

Charging method and mobile terminal Download PDF

Info

Publication number
WO2018076445A1
WO2018076445A1 PCT/CN2016/107840 CN2016107840W WO2018076445A1 WO 2018076445 A1 WO2018076445 A1 WO 2018076445A1 CN 2016107840 W CN2016107840 W CN 2016107840W WO 2018076445 A1 WO2018076445 A1 WO 2018076445A1
Authority
WO
WIPO (PCT)
Prior art keywords
level
mode
signal pin
voltage selection
charging
Prior art date
Application number
PCT/CN2016/107840
Other languages
French (fr)
Chinese (zh)
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 宇龙计算机通信科技(深圳)有限公司
Publication of WO2018076445A1 publication Critical patent/WO2018076445A1/en

Links

Images

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/0069Charging or discharging for charge maintenance, battery initiation or rejuvenation
    • 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/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers

Definitions

  • the present invention relates to the field of computer applications, and in particular, to a charging method and a mobile terminal.
  • the charging mode of the mobile terminal can be divided into two types: one is to directly charge the mobile terminal by using a charging head; the other is to connect with each power supply device through a universal serial bus (USB) for power supply.
  • USB universal serial bus
  • the charging current for charging the mobile phone is often limited to 500 mA due to the limitation of the USB protocol, according to the USB charging protocol. If you use a PC to charge a 2000mAh mobile phone battery, it takes up to 5 hours to fully charge the phone battery. In another case, if the user is watching the video and audio while using the PC to charge the mobile phone, the current flowing through the PC to the battery end of the mobile phone is less, and it takes longer to fully charge the mobile phone. This will inevitably reduce the charging efficiency of the mobile phone, which in turn affects the use of various applications on the mobile phone.
  • the technical problem to be solved by the embodiments of the present invention is to provide a charging method and a corresponding mobile terminal, which can provide sufficient power supply current to improve the charging efficiency of the mobile terminal and ensure the use of each application.
  • a first aspect of the embodiments of the present invention provides a charging method, where the charging method includes:
  • a second aspect of the embodiments of the present invention provides a mobile terminal, including:
  • the mode setting module is configured to establish a connection relationship with the power supply terminal by using a universal serial bus USB data line, and set a connection mode corresponding to the connection relationship to an operation mode;
  • a level adjustment module configured to receive a voltage selection command and adjust a voltage selection level according to the voltage selection instruction
  • a current receiving module configured to adjust the connection mode from an operation mode to a charging mode when the voltage selection level is switched from a first level to a second level, and receive the charging mode transmitted by the power supply terminal a lower charging current, wherein the second level is higher than the first level.
  • the mobile terminal first establishes a connection relationship with the power supply terminal by using the universal serial bus USB data line, and sets the connection mode corresponding to the connection relationship to the working mode; then, receives a voltage selection command, and adjusting a voltage selection level according to the voltage selection instruction; finally, when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the working mode to the charging mode And receiving a charging current in the charging mode transmitted by the power supply terminal, wherein the second level is higher than the first level.
  • the mobile terminal establishes a connection with the power supply terminal through a USB data line, and when detecting that the voltage selection level is switched from the first level to the second level, The connection mode is switched from the working mode to the charging mode, and the computer is required to provide a larger charging current according to the charging mode, so that the mobile terminal can still be connected to the USB interface of the power supply terminal. A sufficiently large charging current is obtained to ensure fast charging of the mobile terminal and improve the charging efficiency of the mobile terminal.
  • FIG. 1 is a schematic flow chart of a charging method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of another charging method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of still another charging method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a mode setting module according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a current receiving module according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of still another mobile terminal according to an embodiment of the present invention.
  • the execution of the charging method mentioned in the embodiments of the present invention relies on a computer program that can run on a computer system of the Von Oyman system.
  • the computer program can be integrated into the application or run as a standalone tool class application.
  • the computer system can be a terminal device such as a personal computer, a tablet computer, a notebook computer, or a smart phone.
  • the charging method includes at least:
  • Step S101 establishing a connection relationship with the power supply terminal by using a universal serial bus USB data line, and setting a connection mode corresponding to the connection relationship to an operation mode;
  • the mobile terminal may detect the WALL5V in the USB signal pin of the mobile terminal periodically or in real time. Whether there is a voltage on the signal pin, if it is detected that there is a voltage on the WALL5V signal pin, it is confirmed that the mobile terminal establishes a connection relationship with the power supply terminal, and at this time, setting a connection mode corresponding to the connection relationship to an operation mode, That is, the USB signal pin of the mobile terminal can be connected to the USB signal pin of the PC end.
  • the power supply terminal such as a PC or the like
  • the USB is a serial bus standard for connecting a computer system and an external device, and is also a technical specification of an input/output interface, and is widely used in information communication products such as personal computers and mobile devices, and is extended to photographic equipment and digital television. (Set top box), game consoles and other related fields.
  • the USB devices adopt a unified external interface that supports hot swapping. In other words, when the power supply terminal is powered on, the user can connect or disconnect the USB device at any time to achieve true plug and play.
  • the USB has a dual-headed computer USB universal serial bus and a computer-based USB port and a mobile phone interface.
  • the mobile terminal may be a mobile phone or a handheld computer; the power supply terminal includes a PC, a television, and a tablet.
  • Step S102 receiving a voltage selection instruction, and adjusting a voltage selection level according to the voltage selection instruction
  • the mobile terminal receives the voltage selection instruction executed by the user on the terminal interface, and adjusts the voltage selection level from the first level to the second level according to the voltage selection instruction;
  • the adjusting of the voltage selection level is performed by a user performing a click operation on the terminal interface to control a switch corresponding to the voltage selection level; when the voltage selection level is the first level, By default, the switch puts the USB circuit in the A state, so that the mobile terminal (such as the mobile terminal) continues to follow the USB protocol and limits the current on the WALL5V to 500 mA; when the voltage selection level is the second At the level, the switch switches the USB circuit from the A state to the B state, so that the mobile terminal requires the power supply terminal to charge it with a larger current;
  • the first level is smaller than the second level; the switch can be used to control the USB circuit to operate in an A state or a B state to change a connection mode corresponding to the connection relationship.
  • the A state is an operating state in the working mode, and correspondingly, the B state is an operating state in the charging mode.
  • the mobile phone checks that the connection mode corresponding to the connection relationship is in the working mode, that is, the mobile phone is in a current limiting charging of 500 mA following the USB protocol, at this time, the user can select whether the operation is current limiting charging on the mobile phone interface.
  • the working mode if the user selects the working mode of the current limiting charging, the voltage selection level is collected to be the first level; conversely, if the user selects to switch from the working mode to the charging mode, the mobile phone will The voltage selection level is acquired from the first level to the second level. It can be seen that the user can control the switch by setting a voltage selection level to achieve voltage switching of the voltage selection level.
  • the click operation command refers to a click operation performed by the user for selecting an interface area of the mobile terminal, and the click operation includes, but is not limited to, a pressing operation, a double-click operation, or a sliding screen operation, and the like.
  • the structure of the touch screen includes at least three layers: a screen glass layer, a touch panel layer, and a display panel layer.
  • the screen glass layer is a protective layer
  • the touch panel layer is used to sense a user's touch operation
  • the display panel layer is used to display an image.
  • the prior art has merged the touch panel layer and the display panel layer.
  • Step S103 when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the working mode to the charging mode, and receiving the charging in the charging mode transmitted by the power supply terminal. Current.
  • the voltage selection level when the voltage selection level is switched from the first level to the second level, shorting the D+ signal pin and the D-signal pin, and extracting the D+ signal pin on the mobile terminal The level value and the level value on the D-signal pin, and determining whether the level value on the D+ signal pin is equal to the level value on the D-signal pin. If the level value on the D+ signal pin is equal to the level value on the D-signal pin, switching the connection mode from the working mode to the charging mode to receive the charging mode provided by the power supply terminal recharging current.
  • the battery capacity of the user's mobile phone is 2000 mA.
  • the mobile phone detects that the switch is placed in the charging mode, that is, the D+ signal pin is short-circuited with the D-signal pin, the mobile phone will require the PC output to be greater than the USB charging protocol.
  • the charging current (for example, the charging current transmitted on the USB is 1000 mA), at this time, compared to the charging mode of the mobile phone in the working mode, charging the mobile phone by using the charging mode can greatly improve the data line pair. Charging efficiency of mobile phone charging.
  • the mobile terminal first establishes a connection relationship with the power supply terminal by using a universal serial bus USB data line, and sets a connection mode corresponding to the connection relationship to an operation mode; then receives a voltage selection instruction, and selects according to the voltage Commanding to adjust the voltage selection level; finally, when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the operating mode to the charging mode, and receiving the transmission of the power supply terminal A charging current in a charging mode, wherein the second level is higher than the first level.
  • FIG. 2 is a schematic diagram of another charging method provided by an embodiment of the present invention. As shown in FIG. 2, the charging method includes:
  • Step S201 detecting whether there is a voltage on the WALL5V signal pin
  • the WALL5V signal is one of four signal pins (WALL5V signal pin, D+ signal pin, D-signal pin and ground GND signal pin) of the universal serial bus USB of the mobile terminal, and the WALL5V signal pin
  • the voltage on the second terminal can be used to determine whether the mobile terminal establishes a connection relationship with the power supply terminal.
  • USB is a serial bus standard for connecting a computer system and an external device, and is also a technical specification of an input/output interface, and is widely used in information communication products such as personal computers and mobile devices, and is extended to photographic equipment and digital television. (Set top box), game consoles and other related fields.
  • USB devices abbreviated as USB, adopt a unified external transfer interface that supports hot swapping. In other words, when the power supply terminal is powered on, the user can connect or disconnect the USB device at any time to achieve true Plug and play.
  • the USB has a dual-headed computer USB universal serial bus and a computer-based USB port and a mobile phone interface.
  • the power supply terminal includes a PC, a television, and a tablet.
  • Step S202 if there is a voltage on the signal pin of the WALL5V, confirm that the connection relationship is established with the power supply terminal, and set the connection mode corresponding to the connection relationship to be an operation mode;
  • the level value on the D+ signal pin and the level value on the D-signal pin are respectively extracted; when it is confirmed that the level value on the D+ signal pin is not equal to D -
  • the step of setting the connection mode corresponding to the connection relationship to the operation mode is performed.
  • Step S203 if there is no voltage on the WALL5V signal pin, it is confirmed that the connection relationship with the power supply terminal is not established, and the terminal screen is displayed to display the unconnected prompt information;
  • the mobile terminal controls the terminal screen to display the unconnected prompt information to remind the user that the power supply terminal (eg, a PC) is not connected.
  • the power supply terminal eg, a PC
  • the prompt information indicates that the user needs to re-insert the USB interface into the power supply terminal, so that the mobile terminal establishes a connection with the power supply terminal.
  • Step S204 receiving a voltage selection instruction, and adjusting a voltage selection level according to the voltage selection instruction
  • the mobile terminal receives the voltage selection instruction executed by the user on the terminal interface, and adjusts the voltage selection level from the first level to the second level according to the voltage selection instruction;
  • the adjusting of the voltage selection level is performed by a user performing a click operation on the terminal screen to control a switch corresponding to the voltage selection level; when the voltage selection level is the first level, By default, the switch puts the USB circuit in the A state, so that the mobile terminal continues to follow the USB protocol and limits the current on WALL5V to 500 mA; when the voltage selection level is the second level, the switch The switch switches the USB circuit from the A state to the B state, so that the mobile terminal requests the power supply terminal to charge it with a larger current;
  • the first level is smaller than the second level; the switch can be used to control the USB circuit to work in an A state or a B state to change a connection mode corresponding to the connection relationship;
  • the A state is an operating state of the USB circuit in the mobile terminal in the working mode
  • the B state is an operating state of the USB circuit in the mobile terminal in the charging mode.
  • the mobile phone checks that the connection mode corresponding to the connection relationship is the working mode, that is, the mobile phone is charging according to the 500 mA current limiting current of the USB protocol
  • the user can select whether the operation is current limiting on the mobile phone interface.
  • the working mode if the user selects the working mode when the current limiting is performed, the voltage selection level is collected as the first level; conversely, if the user selects the charging mode, the mobile phone will collect the voltage.
  • the selection level is adjusted from the first level to the second level, which means that the user can control the switching switch by setting a voltage selection level to achieve voltage switching of the voltage selection level.
  • the click operation command refers to a click operation performed by the user for selecting an interface area of the mobile terminal, and the click operation includes, but is not limited to, a pressing operation, a double-click operation, or a sliding screen operation, and the like.
  • the structure of the touch screen includes at least three layers: a screen glass layer, a touch panel layer, and a display panel layer.
  • the screen glass layer is a protective layer
  • the touch panel layer is used to sense a user's touch operation
  • the display panel layer is used to display an image.
  • the prior art has merged the touch panel layer and the display panel layer.
  • Step S205 when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the working mode to the charging mode, and receiving the charging in the charging mode transmitted by the power supply terminal.
  • the voltage selection level when the voltage selection level is switched from the first level to the second level, shorting the D+ signal pin and the D-signal pin, and extracting the D+ signal pin on the mobile terminal The level value and the level value on the D-signal pin, and determining whether the level value on the D+ signal pin is equal to the level value on the D-signal pin. If the level value on the D+ signal pin is equal to the level value on the D-signal pin, switching the connection mode from the working mode to the charging mode to receive the charging mode provided by the power supply terminal recharging current.
  • the mobile terminal first detects whether there is a voltage on the WALL5V signal pin; and when there is a voltage on the WALL5V signal pin, confirms that the connection relationship is established with the power supply terminal, and separately extracts the level on the D+ signal pin.
  • the connection mode is The working mode is adjusted to the charging mode, and receives the charging current in the charging mode transmitted by the power supply terminal; in view of this, the user can control the switching of the voltage selection level by setting the voltage selection level Switching, and switching the connection mode of the mobile terminal from the working mode to the charging mode, to change the current limiting status of the USB connection PC charging, and implementing the USB to the mobile terminal ( Fast charging such as mobile phones to improve the charging efficiency of mobile phones.
  • FIG. 3 is a schematic flowchart of still another charging method according to an embodiment of the present invention. As shown in FIG. 3, the charging method includes:
  • Step S301 establishing a connection relationship with the power supply terminal by using a universal serial bus USB data line, and setting a connection mode corresponding to the connection relationship to an operation mode;
  • the mobile terminal when the mobile terminal establishes a connection with the power supply terminal (such as a PC) by using a USB data line, the mobile terminal detects whether there is a voltage on the WALL5V signal pin in the USB signal pin of the mobile terminal. If the voltage is present on the WALL5V signal pin, it is confirmed that the mobile terminal establishes a connection relationship with the power supply terminal. At this time, the connection mode corresponding to the connection relationship is set to an operation mode, that is, the USB signal of the mobile terminal.
  • the pin can be connected to the USB signal pin of the PC end.
  • Step S302 receiving a voltage selection command, and switching the voltage selection level from the first level to the second level according to the voltage selection instruction;
  • the mobile terminal receives the voltage selection instruction executed by the user on the terminal interface, and adjusts the voltage selection level from the first level to the second level according to the voltage selection instruction;
  • the adjusting of the voltage selection level is performed by a user performing a click operation on the terminal screen to control a switch corresponding to the voltage selection level; when the voltage selection level is the first level, By default, the switch puts the USB circuit in the A state, so that the mobile terminal (such as a mobile phone) continues to follow the USB protocol and limits the current on the WALL5V to 500 mA; when the voltage selection level is the second power Usually, the switch switches the USB circuit from the A state to the B state, so that the mobile terminal requests the power supply terminal to charge it with a larger current;
  • the first level is smaller than the second level; the switch can be used to control the USB circuit to operate in an A state or a B state to change a connection mode corresponding to the connection relationship.
  • the A state is an operating state in the working mode, and correspondingly, the B state is an operating state in the charging mode.
  • Step S303 when the voltage selection level is switched from the first level to the second level, shorting the D+ signal pin and the D-signal pin;
  • Step S304 respectively extracting the level value on the D+ signal pin and the level value on the D-signal pin
  • the level value on the D+ signal pin on the mobile terminal and the level value on the D-signal pin are extracted, and it is determined whether the level value on the D+ signal pin is equal to the D- The level value on the signal pin.
  • Step S305 when the level value on the D+ signal pin is equal to the level value on the D-signal pin, adjusting the connection mode from the working mode to the charging mode;
  • the level value on the D+ signal pin is equal to the level value on the D-signal, and the mobile terminal controls the CPU to confirm that the PC connected to the charging plug has the same high current function. And switching the connection mode from the working mode to the charging mode
  • Step S306 receiving a charging current in the charging mode transmitted by the power supply terminal;
  • the A brand mobile phone terminal has a battery capacity of 2000 mA.
  • the PC is used for charging, since the connection mode of the A brand mobile phone terminal and the PC is the charging mode, at this time, the A brand mobile phone terminal
  • the voltage on the D+ signal pin in the USB circuit is equal to the voltage on the D-signal pin, and the PC connected thereto is required to provide a current greater than the operating mode to speed up the brand A.
  • the charging speed of the phone is required to provide a current greater than the operating mode to speed up the brand A.
  • the mobile terminal first establishes a connection relationship with the power supply terminal through the universal serial bus USB data line, and sets a connection mode corresponding to the connection relationship to an operation mode; secondly, receives a voltage selection command, and according to the voltage The selection command switches the voltage selection level from the first level to the second level; then, when the voltage selection level is switched from the first level to the second level, the D+ signal pin and the D-signal pin are performed.
  • the pin is short-circuited, so that the level value on the D+ signal pin is equal to the level value on the D-signal pin to confirm that the connection mode is adjusted from the working mode to the charging mode, and at this time, the movement
  • the terminal can receive the charging current in the charging mode transmitted by the power supply terminal to improve the charging efficiency in the case of USB charging.
  • FIG. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal 1 includes: a mode setting module 10, a level adjusting module 20, and a current receiving module. 30;
  • the mode setting module 10 is configured to establish a connection relationship with the power supply terminal by using a universal serial bus USB data line, and set a connection mode corresponding to the connection relationship to an operation mode;
  • the mode setting module 10 is specifically configured to detect whether there is a voltage on the WALL5V signal pin; if there is a voltage on the WALL5V signal pin, confirm that the connection relationship is established with the power supply terminal, and set the connection relationship to correspond.
  • the connection mode is the working mode; if there is no voltage on the WALL5V signal pin, it is confirmed that the connection relationship with the power supply terminal is not established, and the terminal screen displays the unconnected prompt information.
  • the level adjustment module 20 is configured to receive a voltage selection command, and adjust a voltage selection level according to the voltage selection instruction;
  • the level adjustment module 20 is specifically configured to receive a voltage selection command, and switch the voltage selection level from the first level to the second level according to the voltage selection instruction.
  • the current receiving module 30 is configured to adjust the connection mode from the working mode to the charging mode when the voltage selection level is switched from the first level to the second level, and receive the transmission by the power supply terminal A charging current in a charging mode, wherein the second level is higher than the first level.
  • the current receiving module 30 is specifically configured to short the D+ signal pin and the D-signal when the voltage selection level is switched from the first level to the second level; and respectively extract the D+ signal. a level value on the foot and a level value on the D-signal pin; and when the level value on the D+ signal pin is equal to the level value on the D-signal pin, the connection mode is operated The mode is adjusted to a charging mode; and receiving a charging current in the charging mode transmitted by the power supply terminal.
  • the mobile terminal first establishes a connection relationship with the power supply terminal by using a universal serial bus USB data line, and sets a connection mode corresponding to the connection relationship to an operation mode; then receives a voltage selection instruction, and selects according to the voltage Commanding to adjust the voltage selection level; finally, when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the operating mode to the charging mode, and receiving the transmission of the power supply terminal A charging current in a charging mode, wherein the second level is higher than the first level.
  • the charging current arriving at the mobile terminal can be increased and the charging efficiency of the mobile terminal can be improved in the case where the mobile terminal is charged by the USB data line.
  • FIG. 5 is a schematic structural diagram of a mode setting module according to an embodiment of the present invention.
  • the mode setting module 10 includes: a detecting unit 101, a mode setting unit 102, and an information display unit 103;
  • the detecting unit 101 is configured to detect whether a voltage is present on the WALL5V signal pin;
  • the mode setting unit 102 is configured to confirm that the connection relationship is established with the power supply terminal if a voltage exists on the signal pin of the WALL5V, and set the connection mode corresponding to the connection relationship to be an operation mode;
  • the information display unit 103 is configured to confirm that no connection relationship is established with the power supply terminal if the voltage is not present on the WALL5V signal pin, and control the terminal screen to display the unconnected prompt information.
  • the detecting unit 101 is first configured to detect whether there is a voltage on the WALL5V signal pin to confirm whether a connection is established with the power supply terminal; secondly, the mode setting The unit 102 is configured to: if the voltage is present on the WALL5V signal pin, confirm that the connection relationship is established with the power supply terminal, and set the connection mode corresponding to the connection relationship to be an operation mode; or the mode setting unit 102, If the voltage is present on the signal pin of the WALL5V, it is confirmed that the connection relationship is established with the power supply terminal, and the connection mode corresponding to the connection relationship is set to the working mode; in view of this, the voltage state on the signal pin of the WALL5V can be Determining whether the mobile terminal is connected to the power supply terminal, and after connecting to the power supply terminal, setting a connection mode corresponding to the connection relationship to an operation mode.
  • FIG. 6 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
  • the mobile terminal 1 includes the mode setting module 10, the level adjusting module 20 and the current receiving module 30 in the embodiment corresponding to FIG. 4, and further includes: a level value extracting module 40 and a notification module 50. ;
  • the level value extraction module 40 is configured to separately extract a level value on the D+ signal pin and a level value on the D-signal pin;
  • the notification module 50 is configured to notify the mode setting module 10 to set the connection mode corresponding to the connection relationship when the level value on the D+ signal pin is not equal to the level value on the D-signal pin. Operating mode.
  • the level value extraction module 40 in the mobile terminal may be configured to separately extract the level value on the D+ signal pin. And the level value on the D-signal pin, and secondly, when the notification module 50 is set to notify when the level value on the D+ signal pin is not equal to the level value on the D-signal pin.
  • the mode setting module 10 sets the connection mode corresponding to the connection relationship to an operation mode, and then, when the mobile terminal connects the power supply terminal through USB, adjusts the voltage selection level by the level adjustment module 20 Finally, when the current receiving module 30 detects that the voltage selection level is switched from the first level to the second level, the operating mode is adjusted to the charging mode to enable the power supply terminal (such as a PC)
  • the mobile terminal is provided with a larger charging current and increases the charging speed when the PC is connected.
  • FIG. 7 is a schematic structural diagram of a current receiving module according to an embodiment of the present invention.
  • the current receiving module 30 includes: a signal pin shorting unit 301, a level value extracting unit 302, a mode adjusting unit 303, and a current receiving unit 304;
  • the signal pin shorting unit 301 is configured to short the D+ signal pin and the D-signal pin when the voltage selection level is switched from the first level to the second level;
  • the level value extracting unit 302 is configured to respectively extract a level value on the D+ signal pin and a level value on the D-signal pin;
  • the mode adjusting unit 303 is configured to adjust the connection mode from an operation mode to a charging mode when a level value on the D+ signal pin is equal to a level value on the D-signal pin;
  • the current receiving unit 304 is configured to receive a charging current in the charging mode transmitted by the power supply terminal.
  • the signal pin shorting unit 301 is first configured to short the D+ signal pin and the D-signal pin when the voltage selection level is switched from the first level to the second level; secondly,
  • the level value extracting unit 302 is configured to respectively extract a level value on the D+ signal pin and a level value on the D-signal pin; then, the mode adjusting unit 303 is configured to be on the D+ signal pin.
  • the connection mode is adjusted from the operation mode to the charging mode; finally, the current receiving unit 304 is configured to receive the transmission of the power supply terminal The charging current in the charging mode.
  • connection mode is adjusted from the working mode to And charging mode, and receiving the charging current in the charging mode transmitted by the power supply terminal to increase charging current to the mobile terminal (such as a mobile phone), thereby improving charging efficiency of the mobile phone.
  • the mobile terminal 1000 may include: at least one processor 1001 , such as a CPU, at least one.
  • the communication bus 1002 is used to implement connection communication between these components.
  • the user interface 1003 can include a display and a keyboard.
  • the optional user interface 1003 can also include a standard wired interface and a wireless interface.
  • the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 1005 can also optionally be at least one storage device located remotely from the aforementioned processor 1001. As shown in FIG. 8, an operating system, a network communication module, a user interface module, and a device control application may be included in the memory 1005 as a computer storage medium.
  • the user interface 1003 is mainly used to provide an input interface for the user to acquire data output by the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
  • the processor 1001 when the processor 1001 establishes a connection relationship with the power supply terminal by using the universal serial bus USB data line, and sets the connection mode corresponding to the connection relationship to the working mode, the following steps are specifically performed. :
  • connection relationship is established with the power supply terminal, and the connection mode corresponding to the connection relationship is set to an operation mode;
  • the processor 1001 further performs the following steps before the step of setting the connection mode corresponding to the connection relationship to the working mode:
  • the step of setting the connection mode corresponding to the connection relationship to the operation mode is performed.
  • the processor 1001 when the processor 1001 executes the receiving voltage selection instruction and adjusts the voltage selection level according to the voltage selection instruction, the processor 1001 further performs the following steps:
  • a voltage selection command is received, and the voltage selection level is switched from the first level to the second level in accordance with the voltage selection command.
  • the processor 1001 adjusts the connection mode from an operation mode to a charging mode when the voltage selection level is switched from a first level to a second level, and receives the When the charging current in the charging mode transmitted by the power supply terminal is described, the following steps are specifically performed:
  • the connection mode is adjusted from the working mode to the charging mode
  • the mobile terminal establishes a connection relationship with the power supply terminal by using a universal serial bus USB data line, and sets a connection mode corresponding to the connection relationship to an operation mode; then, receives a voltage selection instruction, and adjusts according to the voltage selection instruction. a voltage selection level; finally, when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the operation mode to the charging mode, and receiving the charging transmitted by the power supply terminal a charging current in mode, wherein the second level is higher than the first level.
  • the mobile terminal as a mobile phone as an example
  • the receiving current of the receiving end of the mobile phone is increased to improve the charging of the mobile phone. Efficiency and ensure the operation of each application on the mobile terminal.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

A charging method and a mobile terminal. The charging method comprises: using a universal serial bus (USB) data line to establish a connection relationship with a power supply terminal, and setting a connection mode corresponding to the connection relationship as a working mode (S101); receiving a voltage selection instruction, and according to the voltage selection instruction, adjusting a voltage selection level (S102); when the voltage selection level is switched from a first level to a second level, adjusting the connection mode form the working mode to a charging mode, and receiving a charging current, transmitted by the power supply terminal, in the charging mode (S103), wherein the second level is higher than the first level. The charging method can increase a charging current of using a USB data line to connect a power supply terminal so as to charge the mobile terminal, and improve the charging efficiency of the mobile terminal, thereby ensuring the normal usage of each application program in the mobile terminal.

Description

一种充电方法及移动终端Charging method and mobile terminal
本申请要求于2016年10月31日提交中国专利局,申请号为201610931927.6、发明名称为“一种充电方法及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610931927.6, entitled "A Charging Method and Mobile Terminal", which is incorporated herein by reference. .
技术领域Technical field
本发明涉及计算机应用程序领域,尤其涉及一种充电方法及移动终端。The present invention relates to the field of computer applications, and in particular, to a charging method and a mobile terminal.
背景技术Background technique
随着移动通讯技术的迅猛发展,越来越多的用户选择在移动终端中装载越来越多的应用程序,但其中有很多应用程序(比如:视频类应用程序)的运行会在一定程度上消耗掉该移动终端的大部分电量,且目前能购买到的任何一部移动终端的电池的容量都是有限的,于是,就需要为相应的移动终端供给合理的电量,以确保该移动终端有足够的电量运行各应用程序。目前,移动终端的充电方式可分为两种:一种是直接采用充电头给该移动终端充电;另一种是通过通用串行总线(Universal Serial Bus,USB)与各供电设备相连进行供电。With the rapid development of mobile communication technology, more and more users choose to load more and more applications in mobile terminals, but many of them (such as video applications) will run to a certain extent. The majority of the power of the mobile terminal is consumed, and the capacity of the battery of any mobile terminal that can be purchased at present is limited. Therefore, it is necessary to supply a reasonable amount of power to the corresponding mobile terminal to ensure that the mobile terminal has Run enough applications with enough power. At present, the charging mode of the mobile terminal can be divided into two types: one is to directly charge the mobile terminal by using a charging head; the other is to connect with each power supply device through a universal serial bus (USB) for power supply.
以手机为例,对于通过USB连接个人计算机(Personal Computer,PC)、电视及数码产品等供电设备,往往会因为USB协议的限制,会将对手机充电的充电电流限制到500mA,按照USB充电协议,若用PC为一个2000mAh的手机电池进行充电,则需长达5小时的时间才足以为该手机电池注满电量。另一情况下,若用户在用PC为手机进行充电时,也在一边观看视频影音,则通过PC到达手机电池端的电流也就更少了,此时将花费更长的时间才能将手机充满电量,而这势必会降低手机的充电效率,进而影响该手机上各应用程序的使用。Taking a mobile phone as an example, for a power supply device such as a personal computer (PC), a television, and a digital product connected via USB, the charging current for charging the mobile phone is often limited to 500 mA due to the limitation of the USB protocol, according to the USB charging protocol. If you use a PC to charge a 2000mAh mobile phone battery, it takes up to 5 hours to fully charge the phone battery. In another case, if the user is watching the video and audio while using the PC to charge the mobile phone, the current flowing through the PC to the battery end of the mobile phone is less, and it takes longer to fully charge the mobile phone. This will inevitably reduce the charging efficiency of the mobile phone, which in turn affects the use of various applications on the mobile phone.
发明内容Summary of the invention
本发明实施例所要解决的技术问题在于,提供一种充电方法和相应的移动终端,可提供足够的供电电流,以提高移动终端的充电效率,并确保对各应用程序的使用。The technical problem to be solved by the embodiments of the present invention is to provide a charging method and a corresponding mobile terminal, which can provide sufficient power supply current to improve the charging efficiency of the mobile terminal and ensure the use of each application.
为了解决上述技术问题,本发明实施例第一方面提供了一种充电方法,所述充电方法包括:In order to solve the above technical problem, a first aspect of the embodiments of the present invention provides a charging method, where the charging method includes:
采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;Establishing a connection relationship with the power supply terminal by using a universal serial bus USB data line, and setting a connection mode corresponding to the connection relationship to an operation mode;
接收电压选择指令,并根据所述电压选择指令调整电压选择电平;Receiving a voltage selection command, and adjusting a voltage selection level according to the voltage selection instruction;
当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,其中,所述第二电平高于所述第一电平。When the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the operation mode to the charging mode, and receiving the charging current in the charging mode transmitted by the power supply terminal, wherein The second level is higher than the first level.
本发明实施例第二方面提供了一种移动终端,包括:A second aspect of the embodiments of the present invention provides a mobile terminal, including:
模式设置模块,设置为采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;The mode setting module is configured to establish a connection relationship with the power supply terminal by using a universal serial bus USB data line, and set a connection mode corresponding to the connection relationship to an operation mode;
电平调整模块,设置为接收电压选择指令,并根据所述电压选择指令调整电压选择电平;a level adjustment module configured to receive a voltage selection command and adjust a voltage selection level according to the voltage selection instruction;
电流接收模块,设置为当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,其中,所述第二电平高于所述第一电平。a current receiving module configured to adjust the connection mode from an operation mode to a charging mode when the voltage selection level is switched from a first level to a second level, and receive the charging mode transmitted by the power supply terminal a lower charging current, wherein the second level is higher than the first level.
由上可见,实施本发明实施例,具有如下有益效果:移动终端首先采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;然后,接收电压选择指令,并根据所述电压选择指令调整电压选择电平;最后,当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,其中,所述第二电平高于所述第一电平。。可见,采用本发明,所述移动终端通过USB数据线与所述供电终端建立连接,并当检测到所述电压选择电平由所述第一电平切换为所述第二电平时,将所述连接模式由所述工作模式切换为充电模式,并要求电脑按照所述充电模式为其提供较大的充电电流,可使所述移动终端能在连接供电终端的USB接口的情况下,仍能获得足够大的充电电流,以保障对移动终端的快速充电,并提高该移动终端的充电效率。It can be seen that the implementation of the embodiment of the present invention has the following beneficial effects: the mobile terminal first establishes a connection relationship with the power supply terminal by using the universal serial bus USB data line, and sets the connection mode corresponding to the connection relationship to the working mode; then, receives a voltage selection command, and adjusting a voltage selection level according to the voltage selection instruction; finally, when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the working mode to the charging mode And receiving a charging current in the charging mode transmitted by the power supply terminal, wherein the second level is higher than the first level. . It can be seen that, with the present invention, the mobile terminal establishes a connection with the power supply terminal through a USB data line, and when detecting that the voltage selection level is switched from the first level to the second level, The connection mode is switched from the working mode to the charging mode, and the computer is required to provide a larger charging current according to the charging mode, so that the mobile terminal can still be connected to the USB interface of the power supply terminal. A sufficiently large charging current is obtained to ensure fast charging of the mobile terminal and improve the charging efficiency of the mobile terminal.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例提供的一种充电方法的流程示意图;1 is a schematic flow chart of a charging method according to an embodiment of the present invention;
图2是本发明实施例提供的另一种充电方法的流程示意图;2 is a schematic flow chart of another charging method according to an embodiment of the present invention;
图3是本发明实施例提供的又一种充电方法的流程示意图;3 is a schematic flow chart of still another charging method according to an embodiment of the present invention;
图4是本发明实施例提供的一种移动终端的结构示意图;4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
图5是本发明实施例提供的一种模式设置模块的结构示意图;FIG. 5 is a schematic structural diagram of a mode setting module according to an embodiment of the present invention;
图6是本发明实施例提供的另一种移动终端的结构示意图;FIG. 6 is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure;
图7是本发明实施例提供的一种电流接收模块的结构示意图;7 is a schematic structural diagram of a current receiving module according to an embodiment of the present invention;
图8是本发明实施例提供的又一种移动终端的结构示意图。FIG. 8 is a schematic structural diagram of still another mobile terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "comprising" and "comprising" and variations of the invention are intended to be in the meaning For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products, or equipment.
本发明实施例中提及的充电方法的执行依赖于计算机程序,可运行于冯若依曼体系的计算机系统之上。该计算机程序可集成在应用中,也可作为独立的工具类应用运行。该计算机系统可以是个人电脑、平板电脑、笔记本电脑、智能手机等终端设备。The execution of the charging method mentioned in the embodiments of the present invention relies on a computer program that can run on a computer system of the Von Oyman system. The computer program can be integrated into the application or run as a standalone tool class application. The computer system can be a terminal device such as a personal computer, a tablet computer, a notebook computer, or a smart phone.
以下分别进行详细说明。The details are described below separately.
请参见图1,是本发明实施例提供的一种充电方法的流程示意图,如图1所示,所述充电方法至少包括:1 is a schematic flowchart of a charging method according to an embodiment of the present invention. As shown in FIG. 1 , the charging method includes at least:
步骤S101,采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;Step S101, establishing a connection relationship with the power supply terminal by using a universal serial bus USB data line, and setting a connection mode corresponding to the connection relationship to an operation mode;
具体地,在所述移动终端采用USB数据线与所述供电终端(比如:PC等)建立连接时,所述移动终端可周期性地或实时地检测所述移动终端的USB信号脚中的WALL5V信号脚上是否存在电压,若检测到所述WALL5V信号脚上存在电压,则确认所述移动终端与所述供电终端建立连接关系,此时,设置所述连接关系对应的连接模式为工作模式,即所述移动终端的USB信号脚可连接到所述PC端的USB信号脚。Specifically, when the mobile terminal establishes a connection with the power supply terminal (such as a PC or the like) by using a USB data line, the mobile terminal may detect the WALL5V in the USB signal pin of the mobile terminal periodically or in real time. Whether there is a voltage on the signal pin, if it is detected that there is a voltage on the WALL5V signal pin, it is confirmed that the mobile terminal establishes a connection relationship with the power supply terminal, and at this time, setting a connection mode corresponding to the connection relationship to an operation mode, That is, the USB signal pin of the mobile terminal can be connected to the USB signal pin of the PC end.
其中,所述USB是连接计算机系统与外部设备的一个串口总线标准,也是一种输入输出接口的技术规范,被广泛应用于个人电脑和移动设备等信息通讯产品,并扩展至摄影器材、数字电视(机顶盒)、游戏机等其它相关领域。目前,所述USB设备均采用一个统一且支持热插拔的外接式传输界面,换言之,在所述供电终端开机的情况下,用户可随时连接或断开USB设备,达到真正的即插即用。该USB具有双头计算机式USB通用串行总线和1电脑式USB端口以及1手机式接口。The USB is a serial bus standard for connecting a computer system and an external device, and is also a technical specification of an input/output interface, and is widely used in information communication products such as personal computers and mobile devices, and is extended to photographic equipment and digital television. (Set top box), game consoles and other related fields. Currently, the USB devices adopt a unified external interface that supports hot swapping. In other words, when the power supply terminal is powered on, the user can connect or disconnect the USB device at any time to achieve true plug and play. . The USB has a dual-headed computer USB universal serial bus and a computer-based USB port and a mobile phone interface.
其中,所述移动终端可为手机或掌上电脑;所述供电终端包括PC、电视机、平板电脑。The mobile terminal may be a mobile phone or a handheld computer; the power supply terminal includes a PC, a television, and a tablet.
步骤S102,接收电压选择指令,并根据所述电压选择指令调整电压选择电平;Step S102, receiving a voltage selection instruction, and adjusting a voltage selection level according to the voltage selection instruction;
具体地,所述移动终端接收用户对所述终端界面执行的所述电压选择指令,并根据所述电压选择指令将电压选择电平由第一电平调整为第二电平;Specifically, the mobile terminal receives the voltage selection instruction executed by the user on the terminal interface, and adjusts the voltage selection level from the first level to the second level according to the voltage selection instruction;
其中,所述电压选择电平的调整是通过用户对所述终端界面执行点击操作,以控制所述电压选择电平对应的切换开关;当所述电压选择电平为所述第一电平时,默认所述切换开关将USB电路置于A状态,以使移动终端(比如:手机终端)继续遵循USB协议,并将WALL5V上的电流限制到500mA;当所述电压选择电平为所述第二电平时,所述切换开关将所述USB电路由A状态切换为B状态,以使手机终端要求所述供电终端对其进行更大电流的充电;The adjusting of the voltage selection level is performed by a user performing a click operation on the terminal interface to control a switch corresponding to the voltage selection level; when the voltage selection level is the first level, By default, the switch puts the USB circuit in the A state, so that the mobile terminal (such as the mobile terminal) continues to follow the USB protocol and limits the current on the WALL5V to 500 mA; when the voltage selection level is the second At the level, the switch switches the USB circuit from the A state to the B state, so that the mobile terminal requires the power supply terminal to charge it with a larger current;
其中,所述第一电平小于所述第二电平;所述切换开关可用于控制所述USB电路工作于A状态或B状态,以改变所述连接关系对应的连接模式。The first level is smaller than the second level; the switch can be used to control the USB circuit to operate in an A state or a B state to change a connection mode corresponding to the connection relationship.
其中,所述A状态为所述工作模式下的工作状态,相应地,所述B状态为所述充电模式下的工作状态。The A state is an operating state in the working mode, and correspondingly, the B state is an operating state in the charging mode.
比如,当手机检查到所述连接关系对应的连接模式为工作模式,即所述手机正处于遵循USB协议的500mA的限流充电,此时,用户可在手机界面上选择操作是否为限流充电的工作模式,若用户选择限流充电的工作模式,则采集到所述电压选择电平为第一电平;相反地,若用户选择的是由工作模式切换为充电模式,则所述手机将采集到所述电压选择电平由第一电平调整为第二电平。可见,用户可通过设置电压选择电平来控制所述切换开关,以实现电压选择电平的电压切换。For example, when the mobile phone checks that the connection mode corresponding to the connection relationship is in the working mode, that is, the mobile phone is in a current limiting charging of 500 mA following the USB protocol, at this time, the user can select whether the operation is current limiting charging on the mobile phone interface. The working mode, if the user selects the working mode of the current limiting charging, the voltage selection level is collected to be the first level; conversely, if the user selects to switch from the working mode to the charging mode, the mobile phone will The voltage selection level is acquired from the first level to the second level. It can be seen that the user can control the switch by setting a voltage selection level to achieve voltage switching of the voltage selection level.
其中,所述点击操作指令是指用户针对所述移动终端选择界面区域进行的点击操作,且点击操作包括但不限于:按压操作、双击操作或者滑屏操作等各类型触摸触控屏的操作。通常,在具有触控屏功能的移动终端中,其触控屏的结构包括至少三层:屏幕玻璃层、触控面板层和显示面板层。其中屏幕玻璃层为保护层,触控面板层用于感知用户的触控操作,显示面板层用于显示图像。为了使得移动终端的机身(如智能手机)更薄、更美观,如今已有技术使触控面板层和显示面板层融合。The click operation command refers to a click operation performed by the user for selecting an interface area of the mobile terminal, and the click operation includes, but is not limited to, a pressing operation, a double-click operation, or a sliding screen operation, and the like. Generally, in a mobile terminal having a touch screen function, the structure of the touch screen includes at least three layers: a screen glass layer, a touch panel layer, and a display panel layer. The screen glass layer is a protective layer, the touch panel layer is used to sense a user's touch operation, and the display panel layer is used to display an image. In order to make the body of the mobile terminal (such as a smart phone) thinner and more beautiful, the prior art has merged the touch panel layer and the display panel layer.
步骤S103,当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流。Step S103, when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the working mode to the charging mode, and receiving the charging in the charging mode transmitted by the power supply terminal. Current.
具体地,当所述电压选择电平由所述第一电平切换为所述第二电平时,将D+信号脚与D-信号脚进行短接,并提取所述移动终端上D+信号脚上的电平值和所述D-信号脚上的电平值,并判断所述D+信号脚上的电平值是否等于所述D-信号脚上的电平值。若所述D+信号脚上的电平值等于所述D-信号脚上的电平值,则将所述连接模式由工作模式切换为充电模式,以接收所述供电终端提供的充电模式下的充电电流。Specifically, when the voltage selection level is switched from the first level to the second level, shorting the D+ signal pin and the D-signal pin, and extracting the D+ signal pin on the mobile terminal The level value and the level value on the D-signal pin, and determining whether the level value on the D+ signal pin is equal to the level value on the D-signal pin. If the level value on the D+ signal pin is equal to the level value on the D-signal pin, switching the connection mode from the working mode to the charging mode to receive the charging mode provided by the power supply terminal recharging current.
比如,用户手机的电池容量为2000mA,在该手机检测到所述切换开关置于充电模式,即所述D+信号脚与D-信号脚短接时,该手机会要求PC输出大于按照USB充电协议进行充电的电流(比如:USB上传输的充电电流为1000mA),则此时,相比于采用工作模式为手机充电而言,采用所述充电模式为手机进行充电,可大大提升通过数据线对手机充电的充电效率。For example, the battery capacity of the user's mobile phone is 2000 mA. When the mobile phone detects that the switch is placed in the charging mode, that is, the D+ signal pin is short-circuited with the D-signal pin, the mobile phone will require the PC output to be greater than the USB charging protocol. The charging current (for example, the charging current transmitted on the USB is 1000 mA), at this time, compared to the charging mode of the mobile phone in the working mode, charging the mobile phone by using the charging mode can greatly improve the data line pair. Charging efficiency of mobile phone charging.
由此可见,所述移动终端首先采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;然后接收电压选择指令,并根据所述电压选择指令调整电压选择电平;最后,当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,其中,所述第二电平高于所述第一电平。鉴于此,采用本发明,可在采用USB数据线对移动终端进行充电的情况下,增大充电电流,并提高移动终端的充电效率。Therefore, the mobile terminal first establishes a connection relationship with the power supply terminal by using a universal serial bus USB data line, and sets a connection mode corresponding to the connection relationship to an operation mode; then receives a voltage selection instruction, and selects according to the voltage Commanding to adjust the voltage selection level; finally, when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the operating mode to the charging mode, and receiving the transmission of the power supply terminal A charging current in a charging mode, wherein the second level is higher than the first level. In view of this, with the present invention, it is possible to increase the charging current and increase the charging efficiency of the mobile terminal in the case where the mobile terminal is charged by the USB data line.
进一步地,请参见图2,是本发明实施例提供的另一种充电方法的示意图。如图2所示,所述充电方法包括:Further, please refer to FIG. 2 , which is a schematic diagram of another charging method provided by an embodiment of the present invention. As shown in FIG. 2, the charging method includes:
步骤S201,检测WALL5V信号脚上是否存在电压;Step S201, detecting whether there is a voltage on the WALL5V signal pin;
具体地,所述WALL5V信号是移动终端通用串行总线USB的四个信号脚(WALL5V信号脚,D+信号脚,D-信号脚和接地GND信号脚)中的一个信号接点,所述WALL5V信号脚上的电压可用于判断所述移动终端是否与供电终端建立连接关系,Specifically, the WALL5V signal is one of four signal pins (WALL5V signal pin, D+ signal pin, D-signal pin and ground GND signal pin) of the universal serial bus USB of the mobile terminal, and the WALL5V signal pin The voltage on the second terminal can be used to determine whether the mobile terminal establishes a connection relationship with the power supply terminal.
其中,所述USB是连接计算机系统与外部设备的一个串口总线标准,也是一种输入输出接口的技术规范,被广泛应用于个人电脑和移动设备等信息通讯产品,并扩展至摄影器材、数字电视(机顶盒)、游戏机等其它相关领域。目前, USB设备,简称为USB,均采用一个统一且支持热插拔的外接式传输界面,换言之,在所述供电终端开机的情况下,用户可随时连接或断开USB设备,达到真正的即插即用。该USB具有双头计算机式USB通用串行总线和1电脑式USB端口以及1手机式接口。The USB is a serial bus standard for connecting a computer system and an external device, and is also a technical specification of an input/output interface, and is widely used in information communication products such as personal computers and mobile devices, and is extended to photographic equipment and digital television. (Set top box), game consoles and other related fields. At present, USB devices, abbreviated as USB, adopt a unified external transfer interface that supports hot swapping. In other words, when the power supply terminal is powered on, the user can connect or disconnect the USB device at any time to achieve true Plug and play. The USB has a dual-headed computer USB universal serial bus and a computer-based USB port and a mobile phone interface.
其中,所述供电终端包括PC、电视机、平板电脑。The power supply terminal includes a PC, a television, and a tablet.
步骤S202,若WALL5V信号脚上存在电压,则确认与所述供电终端建立所述连接关系,并设置所述连接关系对应的连接模式为工作模式;Step S202, if there is a voltage on the signal pin of the WALL5V, confirm that the connection relationship is established with the power supply terminal, and set the connection mode corresponding to the connection relationship to be an operation mode;
具体地,当检测到WALL5V信号脚上存在电压时,分别提取D+信号脚上的电平值和D-信号脚上的电平值;当确认所述D+信号脚上的电平值不等于D-信号脚上的电平值时,执行设置所述连接关系对应的连接模式为工作模式的步骤。Specifically, when a voltage is detected on the WALL5V signal pin, the level value on the D+ signal pin and the level value on the D-signal pin are respectively extracted; when it is confirmed that the level value on the D+ signal pin is not equal to D - When the level value on the signal pin is set, the step of setting the connection mode corresponding to the connection relationship to the operation mode is performed.
步骤S203,若WALL5V信号脚上不存在电压,则确认未与供电终端建立连接关系,并控制终端屏幕显示未连接提示信息;Step S203, if there is no voltage on the WALL5V signal pin, it is confirmed that the connection relationship with the power supply terminal is not established, and the terminal screen is displayed to display the unconnected prompt information;
具体地,当检测到WALL5V信号脚上不存在电压时,则确认所述移动终端未连接到所述供电终端,以至于无法读取到所述移动终端的USB信号脚上的WALL5V信号电压,此时,所述移动终端控制所述终端屏幕显示所述未连接提示信息,以提醒用户未连接上所述供电终端(比如:PC)。Specifically, when it is detected that there is no voltage on the WALL5V signal pin, it is confirmed that the mobile terminal is not connected to the power supply terminal, so that the WALL5V signal voltage on the USB signal pin of the mobile terminal cannot be read. The mobile terminal controls the terminal screen to display the unconnected prompt information to remind the user that the power supply terminal (eg, a PC) is not connected.
其中,所述提示信息表明用户需重新将所述USB接口插入所述供电终端,以使所述移动终端与所述供电终端建立连接。The prompt information indicates that the user needs to re-insert the USB interface into the power supply terminal, so that the mobile terminal establishes a connection with the power supply terminal.
步骤S204,接收电压选择指令,并根据所述电压选择指令调整电压选择电平;Step S204, receiving a voltage selection instruction, and adjusting a voltage selection level according to the voltage selection instruction;
具体地,所述移动终端接收用户对所述终端界面执行的所述电压选择指令,并根据所述电压选择指令将电压选择电平由第一电平调整为第二电平;Specifically, the mobile terminal receives the voltage selection instruction executed by the user on the terminal interface, and adjusts the voltage selection level from the first level to the second level according to the voltage selection instruction;
其中,所述电压选择电平的调整是通过用户对所述终端屏幕执行点击操作,以控制所述电压选择电平对应的切换开关;当所述电压选择电平为所述第一电平时,默认所述切换开关将USB电路置于A状态,以使移动终端继续遵循USB协议,并将WALL5V上的电流限制到500mA;当所述电压选择电平为所述第二电平时,所述切换开关将所述USB电路由A状态切换为B状态,以使移动终端要求所述供电终端对其进行更大电流的充电;The adjusting of the voltage selection level is performed by a user performing a click operation on the terminal screen to control a switch corresponding to the voltage selection level; when the voltage selection level is the first level, By default, the switch puts the USB circuit in the A state, so that the mobile terminal continues to follow the USB protocol and limits the current on WALL5V to 500 mA; when the voltage selection level is the second level, the switch The switch switches the USB circuit from the A state to the B state, so that the mobile terminal requests the power supply terminal to charge it with a larger current;
其中,所述第一电平小于所述第二电平;所述切换开关可用于控制所述USB电路工作于A状态或B状态,以改变所述连接关系对应的连接模式;The first level is smaller than the second level; the switch can be used to control the USB circuit to work in an A state or a B state to change a connection mode corresponding to the connection relationship;
其中,所述A状态为所述工作模式下所述移动终端中所述USB电路的工作状态,相应地,所述B状态为所述充电模式下所述移动终端中所述USB电路的工作状态。The A state is an operating state of the USB circuit in the mobile terminal in the working mode, and correspondingly, the B state is an operating state of the USB circuit in the mobile terminal in the charging mode. .
比如,当手机检查到所述连接关系对应的连接模式为工作模式,即所述手机正处于按照USB协议的500mA限流电流进行充电,此时,用户可在手机界面上选择操作是否为限流情况下的工作模式,若用户选择限流时的工作模式,则采集到所述电压选择电平为第一电平;相反地,若用户选择充电模式,则所述手机将采集到所述电压选择电平由第一电平调整为第二电平,这意味着用户可通过设置电压选择电平来控制所述切换开关,以实现电压选择电平的电压切换。For example, when the mobile phone checks that the connection mode corresponding to the connection relationship is the working mode, that is, the mobile phone is charging according to the 500 mA current limiting current of the USB protocol, the user can select whether the operation is current limiting on the mobile phone interface. In the working mode, if the user selects the working mode when the current limiting is performed, the voltage selection level is collected as the first level; conversely, if the user selects the charging mode, the mobile phone will collect the voltage. The selection level is adjusted from the first level to the second level, which means that the user can control the switching switch by setting a voltage selection level to achieve voltage switching of the voltage selection level.
其中,所述点击操作指令是指用户针对所述移动终端选择界面区域进行的点击操作,且点击操作包括但不限于:按压操作、双击操作或者滑屏操作等各类型触摸触控屏的操作。通常,在具有触控屏功能的移动终端中,其触控屏的结构包括至少三层:屏幕玻璃层、触控面板层和显示面板层。其中屏幕玻璃层为保护层,触控面板层用于感知用户的触控操作,显示面板层用于显示图像。为了使得移动终端的机身更薄、更美观,如今已有技术使触控面板层和显示面板层融合。The click operation command refers to a click operation performed by the user for selecting an interface area of the mobile terminal, and the click operation includes, but is not limited to, a pressing operation, a double-click operation, or a sliding screen operation, and the like. Generally, in a mobile terminal having a touch screen function, the structure of the touch screen includes at least three layers: a screen glass layer, a touch panel layer, and a display panel layer. The screen glass layer is a protective layer, the touch panel layer is used to sense a user's touch operation, and the display panel layer is used to display an image. In order to make the body of the mobile terminal thinner and more beautiful, the prior art has merged the touch panel layer and the display panel layer.
步骤S205,当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流;Step S205, when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the working mode to the charging mode, and receiving the charging in the charging mode transmitted by the power supply terminal. Current
具体地,当所述电压选择电平由所述第一电平切换为所述第二电平时,将D+信号脚与D-信号脚进行短接,并提取所述移动终端上D+信号脚上的电平值和所述D-信号脚上的电平值,并判断所述D+信号脚上的电平值是否等于所述D-信号脚上的电平值。若所述D+信号脚上的电平值等于所述D-信号脚上的电平值,则将所述连接模式由工作模式切换为充电模式,以接收所述供电终端提供的充电模式下的充电电流。Specifically, when the voltage selection level is switched from the first level to the second level, shorting the D+ signal pin and the D-signal pin, and extracting the D+ signal pin on the mobile terminal The level value and the level value on the D-signal pin, and determining whether the level value on the D+ signal pin is equal to the level value on the D-signal pin. If the level value on the D+ signal pin is equal to the level value on the D-signal pin, switching the connection mode from the working mode to the charging mode to receive the charging mode provided by the power supply terminal recharging current.
由此可见,所述移动终端首先检测WALL5V信号脚上是否存在电压;且当WALL5V信号脚上存在电压时,确认与所述供电终端建立所述连接关系,并分别提取D+信号脚上的电平值和D-信号脚上的电平值;其次,当所述D+信号脚上的电平值不等于所述D-信号脚上的电平值时,设置所述连接关系对应的连接模式为工作模式;然后,接收电压选择指令,并根据所述电压选择指令调整电压选择电平;最后,当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流;鉴于此,用户通过对所述电压选择电平进行设置,可控制所述电压选择电平对应的切换开关,并使所述移动终端的连接模式由所述工作模式切换为所述充电模式,以改变USB连接PC充电的限流现状,实现USB对移动终端(如手机)的快速充电,以提高手机的充电效率。It can be seen that the mobile terminal first detects whether there is a voltage on the WALL5V signal pin; and when there is a voltage on the WALL5V signal pin, confirms that the connection relationship is established with the power supply terminal, and separately extracts the level on the D+ signal pin. a value and a level value on the D-signal pin; secondly, when the level value on the D+ signal pin is not equal to the level value on the D-signal pin, setting the connection mode corresponding to the connection relationship to Operating mode; then receiving a voltage selection command and adjusting a voltage selection level according to the voltage selection command; finally, when the voltage selection level is switched from the first level to the second level, the connection mode is The working mode is adjusted to the charging mode, and receives the charging current in the charging mode transmitted by the power supply terminal; in view of this, the user can control the switching of the voltage selection level by setting the voltage selection level Switching, and switching the connection mode of the mobile terminal from the working mode to the charging mode, to change the current limiting status of the USB connection PC charging, and implementing the USB to the mobile terminal ( Fast charging such as mobile phones to improve the charging efficiency of mobile phones.
进一步地,请一并参见图3,是本发明实施例提供的又一种充电方法的流程示意图。如图3所示,所述充电方法包括:Further, please refer to FIG. 3, which is a schematic flowchart of still another charging method according to an embodiment of the present invention. As shown in FIG. 3, the charging method includes:
步骤S301,采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;Step S301, establishing a connection relationship with the power supply terminal by using a universal serial bus USB data line, and setting a connection mode corresponding to the connection relationship to an operation mode;
具体地,在所述移动终端采用USB数据线与所述供电终端(比如:PC)建立连接时,所述移动终端会检测到所述移动终端的USB信号脚中的WALL5V信号脚上是否存在电压,若所述WALL5V信号脚上存在电压,则确认所述移动终端与所述供电终端建立连接关系,此时,设置所述连接关系对应的连接模式为工作模式,即所述移动终端的USB信号脚可连接到所述PC端的USB信号脚。Specifically, when the mobile terminal establishes a connection with the power supply terminal (such as a PC) by using a USB data line, the mobile terminal detects whether there is a voltage on the WALL5V signal pin in the USB signal pin of the mobile terminal. If the voltage is present on the WALL5V signal pin, it is confirmed that the mobile terminal establishes a connection relationship with the power supply terminal. At this time, the connection mode corresponding to the connection relationship is set to an operation mode, that is, the USB signal of the mobile terminal. The pin can be connected to the USB signal pin of the PC end.
步骤S302,接收电压选择指令,并按照所述电压选择指令将电压选择电平由第一电平切换为第二电平;Step S302, receiving a voltage selection command, and switching the voltage selection level from the first level to the second level according to the voltage selection instruction;
具体地,所述移动终端接收用户对所述终端界面执行的所述电压选择指令,并根据所述电压选择指令将电压选择电平由第一电平调整为第二电平;Specifically, the mobile terminal receives the voltage selection instruction executed by the user on the terminal interface, and adjusts the voltage selection level from the first level to the second level according to the voltage selection instruction;
其中,所述电压选择电平的调整是通过用户对所述终端屏幕执行点击操作,以控制所述电压选择电平对应的切换开关;当所述电压选择电平为所述第一电平时,默认所述切换开关将USB电路置于A状态,以使移动终端(比如:手机)继续遵循USB协议,并将WALL5V上的电流限制到500mA;当所述电压选择电平为所述第二电平时,所述切换开关将所述USB电路由A状态切换为B状态,以使移动终端要求所述供电终端对其进行更大电流的充电;The adjusting of the voltage selection level is performed by a user performing a click operation on the terminal screen to control a switch corresponding to the voltage selection level; when the voltage selection level is the first level, By default, the switch puts the USB circuit in the A state, so that the mobile terminal (such as a mobile phone) continues to follow the USB protocol and limits the current on the WALL5V to 500 mA; when the voltage selection level is the second power Usually, the switch switches the USB circuit from the A state to the B state, so that the mobile terminal requests the power supply terminal to charge it with a larger current;
其中,所述第一电平小于所述第二电平;所述切换开关可用于控制所述USB电路工作于A状态或B状态,以改变所述连接关系对应的连接模式。The first level is smaller than the second level; the switch can be used to control the USB circuit to operate in an A state or a B state to change a connection mode corresponding to the connection relationship.
其中,所述A状态为所述工作模式下的工作状态,相应地,所述B状态为所述充电模式下的工作状态。The A state is an operating state in the working mode, and correspondingly, the B state is an operating state in the charging mode.
步骤S303,当所述电压选择电平由第一电平切换为第二电平时,将D+信号脚与D-信号脚进行短接;Step S303, when the voltage selection level is switched from the first level to the second level, shorting the D+ signal pin and the D-signal pin;
具体地,当所述电压选择电平由所述第一电平切换为所述第二电平时,将D+信号脚与D-信号脚进行短接,以使所述移动终端的中央处理器CPU判断是连接上所述供电终端(如PC),还是连接上充电插头。Specifically, when the voltage selection level is switched from the first level to the second level, shorting the D+ signal pin and the D-signal to make the CPU of the mobile terminal It is judged whether the power supply terminal (such as a PC) is connected or the charging plug is connected.
步骤S304,分别提取D+信号脚上的电平值和D-信号脚上的电平值;Step S304, respectively extracting the level value on the D+ signal pin and the level value on the D-signal pin;
具体地,,并提取所述移动终端上D+信号脚上的电平值和所述D-信号脚上的电平值,并判断所述D+信号脚上的电平值是否等于所述D-信号脚上的电平值。Specifically, the level value on the D+ signal pin on the mobile terminal and the level value on the D-signal pin are extracted, and it is determined whether the level value on the D+ signal pin is equal to the D- The level value on the signal pin.
步骤S305,当所述D+信号脚上的电平值等于所述D-信号脚上的电平值时,将所述连接模式由工作模式调整为充电模式;Step S305, when the level value on the D+ signal pin is equal to the level value on the D-signal pin, adjusting the connection mode from the working mode to the charging mode;
具体地,所述D+信号脚上的电平值等于所述D-信号脚上的电平值,则所述移动终端控制所述CPU确认连接上与所述充电插头具有同等大电流功能的PC端,并将所述连接模式由工作模式切换为充电模式Specifically, the level value on the D+ signal pin is equal to the level value on the D-signal, and the mobile terminal controls the CPU to confirm that the PC connected to the charging plug has the same high current function. And switching the connection mode from the working mode to the charging mode
步骤S306,接收所述供电终端传输的所述充电模式下的充电电流;Step S306, receiving a charging current in the charging mode transmitted by the power supply terminal;
比如,A品牌手机终端,其电池的容量为2000mA,当采用PC为其进行充电时,由于A品牌手机终端与所述PC的连接模式为充电模式,则此时,所述A品牌手机终端中的USB电路中的所述D+信号脚上的电压等于所述D-信号脚上的电压,进而要求与其相连的所述PC为其提供大于所述工作模式下的电流,以加快为该A品牌手机的充电速度。For example, the A brand mobile phone terminal has a battery capacity of 2000 mA. When the PC is used for charging, since the connection mode of the A brand mobile phone terminal and the PC is the charging mode, at this time, the A brand mobile phone terminal The voltage on the D+ signal pin in the USB circuit is equal to the voltage on the D-signal pin, and the PC connected thereto is required to provide a current greater than the operating mode to speed up the brand A. The charging speed of the phone.
由此可见,所述移动终端首先通过通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;其次,接收电压选择指令,并按照所述电压选择指令将电压选择电平由第一电平切换为第二电平;然后,当所述电压选择电平由第一电平切换为第二电平时,将D+信号脚与D-信号脚进行短接,并分别提取D+信号脚上的电平值和D-信号脚上的电平值;最后,当所述D+信号脚上的电平值等于所述D-信号脚上的电平值时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流。由此可见,采用本发明,在所述移动终端接收电压选择指令,并检测到所述电压选择电由所述第一电平切换为所述第二电平时,将D+信号脚与D-信号脚进行短接,可使所述D+信号脚上的电平值等于所述D-信号脚上的电平值,以确认所述连接模式由工作模式调整为充电模式,此时,所述移动终端可接收所述供电终端传输的所述充电模式下的充电电流,以提升USB充电情况下的充电效率。It can be seen that the mobile terminal first establishes a connection relationship with the power supply terminal through the universal serial bus USB data line, and sets a connection mode corresponding to the connection relationship to an operation mode; secondly, receives a voltage selection command, and according to the voltage The selection command switches the voltage selection level from the first level to the second level; then, when the voltage selection level is switched from the first level to the second level, the D+ signal pin and the D-signal pin are performed. Shorting and extracting the level value on the D+ signal pin and the level value on the D-signal pin respectively; finally, when the level value on the D+ signal pin is equal to the level value on the D-signal pin And adjusting the connection mode from the operation mode to the charging mode, and receiving the charging current in the charging mode transmitted by the power supply terminal. It can be seen that, by using the present invention, when the mobile terminal receives a voltage selection command and detects that the voltage selection power is switched from the first level to the second level, the D+ signal pin and the D-signal are used. The pin is short-circuited, so that the level value on the D+ signal pin is equal to the level value on the D-signal pin to confirm that the connection mode is adjusted from the working mode to the charging mode, and at this time, the movement The terminal can receive the charging current in the charging mode transmitted by the power supply terminal to improve the charging efficiency in the case of USB charging.
进一步地,请参见图4,是本发明实施例提供的一种移动终端的结构示意图,如图4所示,所述移动终端1包括:模式设置模块10,电平调整模块20和电流接收模块30;Further, please refer to FIG. 4, which is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 4, the mobile terminal 1 includes: a mode setting module 10, a level adjusting module 20, and a current receiving module. 30;
所述模式设置模块10,设置为采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;The mode setting module 10 is configured to establish a connection relationship with the power supply terminal by using a universal serial bus USB data line, and set a connection mode corresponding to the connection relationship to an operation mode;
具体地,所述模式设置模块10,具体设置为检测WALL5V信号脚上是否存在电压;若WALL5V信号脚上存在电压,则确认与所述供电终端建立所述连接关系,并设置所述连接关系对应的连接模式为工作模式;若WALL5V信号脚上不存在电压,则确认未与供电终端建立连接关系,并控制终端屏幕显示未连接提示信息。Specifically, the mode setting module 10 is specifically configured to detect whether there is a voltage on the WALL5V signal pin; if there is a voltage on the WALL5V signal pin, confirm that the connection relationship is established with the power supply terminal, and set the connection relationship to correspond. The connection mode is the working mode; if there is no voltage on the WALL5V signal pin, it is confirmed that the connection relationship with the power supply terminal is not established, and the terminal screen displays the unconnected prompt information.
所述电平调整模块20,设置为接收电压选择指令,并根据所述电压选择指令调整电压选择电平;The level adjustment module 20 is configured to receive a voltage selection command, and adjust a voltage selection level according to the voltage selection instruction;
具体地,所述电平调整模块20,具体设置为接收电压选择指令,并按照所述电压选择指令将电压选择电平由第一电平切换为第二电平。Specifically, the level adjustment module 20 is specifically configured to receive a voltage selection command, and switch the voltage selection level from the first level to the second level according to the voltage selection instruction.
所述电流接收模块30,设置为当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,其中,所述第二电平高于所述第一电平。The current receiving module 30 is configured to adjust the connection mode from the working mode to the charging mode when the voltage selection level is switched from the first level to the second level, and receive the transmission by the power supply terminal A charging current in a charging mode, wherein the second level is higher than the first level.
具体地,所述电流接收模块30,具体设置为当所述电压选择电平由第一电平切换为第二电平时,将D+信号脚与D-信号脚进行短接;并分别提取D+信号脚上的电平值和D-信号脚上的电平值;并当所述D+信号脚上的电平值等于所述D-信号脚上的电平值时,将所述连接模式由工作模式调整为充电模式;并接收所述供电终端传输的所述充电模式下的充电电流。Specifically, the current receiving module 30 is specifically configured to short the D+ signal pin and the D-signal when the voltage selection level is switched from the first level to the second level; and respectively extract the D+ signal. a level value on the foot and a level value on the D-signal pin; and when the level value on the D+ signal pin is equal to the level value on the D-signal pin, the connection mode is operated The mode is adjusted to a charging mode; and receiving a charging current in the charging mode transmitted by the power supply terminal.
由此可见,所述移动终端首先采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;然后接收电压选择指令,并根据所述电压选择指令调整电压选择电平;最后,当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,其中,所述第二电平高于所述第一电平。鉴于此,采用本发明,可在采用USB数据线对所述移动终端进行充电的情况下,增大抵达移动终端处的充电电流,并提高所述移动终端的充电效率。Therefore, the mobile terminal first establishes a connection relationship with the power supply terminal by using a universal serial bus USB data line, and sets a connection mode corresponding to the connection relationship to an operation mode; then receives a voltage selection instruction, and selects according to the voltage Commanding to adjust the voltage selection level; finally, when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the operating mode to the charging mode, and receiving the transmission of the power supply terminal A charging current in a charging mode, wherein the second level is higher than the first level. In view of this, with the present invention, the charging current arriving at the mobile terminal can be increased and the charging efficiency of the mobile terminal can be improved in the case where the mobile terminal is charged by the USB data line.
进一步地,请参见图5,是本发明实施例提供的一种模式设置模块的结构示意图。如图5所示,所述模式设置模块10包括:检测单元101,模式设置单元102和信息显示单元103;Further, please refer to FIG. 5, which is a schematic structural diagram of a mode setting module according to an embodiment of the present invention. As shown in FIG. 5, the mode setting module 10 includes: a detecting unit 101, a mode setting unit 102, and an information display unit 103;
所述检测单元101,设置为检测WALL5V信号脚上是否存在电压;The detecting unit 101 is configured to detect whether a voltage is present on the WALL5V signal pin;
所述模式设置单元102,设置为若WALL5V信号脚上存在电压,则确认与所述供电终端建立所述连接关系,并设置所述连接关系对应的连接模式为工作模式;The mode setting unit 102 is configured to confirm that the connection relationship is established with the power supply terminal if a voltage exists on the signal pin of the WALL5V, and set the connection mode corresponding to the connection relationship to be an operation mode;
所述信息显示单元103,设置为若WALL5V信号脚上不存在电压,则确认未与供电终端建立连接关系,并控制终端屏幕显示未连接提示信息。The information display unit 103 is configured to confirm that no connection relationship is established with the power supply terminal if the voltage is not present on the WALL5V signal pin, and control the terminal screen to display the unconnected prompt information.
可见,所述移动终端在连接到所述供电终端时,所述检测单元101,首先设置为检测WALL5V信号脚上是否存在电压,以确认是否与所述供电终端建立连接;其次,所述模式设置单元102,设置为若所述WALL5V信号脚上存在电压,则确认与所述供电终端建立所述连接关系,并设置所述连接关系对应的连接模式为工作模式;或所述模式设置单元102,设置为若WALL5V信号脚上存在电压,则确认与所述供电终端建立所述连接关系,并设置所述连接关系对应的连接模式为工作模式;鉴于此,通过WALL5V信号脚上的电压状态,可判断所述移动终端是否连接到所述供电终端,并在连接到所述供电终端后,设置所述连接关系对应的连接模式为工作模式。It can be seen that, when the mobile terminal is connected to the power supply terminal, the detecting unit 101 is first configured to detect whether there is a voltage on the WALL5V signal pin to confirm whether a connection is established with the power supply terminal; secondly, the mode setting The unit 102 is configured to: if the voltage is present on the WALL5V signal pin, confirm that the connection relationship is established with the power supply terminal, and set the connection mode corresponding to the connection relationship to be an operation mode; or the mode setting unit 102, If the voltage is present on the signal pin of the WALL5V, it is confirmed that the connection relationship is established with the power supply terminal, and the connection mode corresponding to the connection relationship is set to the working mode; in view of this, the voltage state on the signal pin of the WALL5V can be Determining whether the mobile terminal is connected to the power supply terminal, and after connecting to the power supply terminal, setting a connection mode corresponding to the connection relationship to an operation mode.
进一步地,请参见图6,是本发明实施例提供的另一种移动终端的结构示意图。如图6所示,所述移动终端1包括上述图4所对应实施例中的模式设置模块10,电平调整模块20和电流接收模块30,还包括:电平值提取模块40和通知模块50;Further, please refer to FIG. 6, which is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention. As shown in FIG. 6, the mobile terminal 1 includes the mode setting module 10, the level adjusting module 20 and the current receiving module 30 in the embodiment corresponding to FIG. 4, and further includes: a level value extracting module 40 and a notification module 50. ;
所述电平值提取模块40,设置为分别提取D+信号脚上的电平值和D-信号脚上的电平值;The level value extraction module 40 is configured to separately extract a level value on the D+ signal pin and a level value on the D-signal pin;
所述通知模块50,设置为当确认所述D+信号脚上的电平值不等于D-信号脚上的电平值时,通知所述模式设置模块10设置所述连接关系对应的连接模式为工作模式。The notification module 50 is configured to notify the mode setting module 10 to set the connection mode corresponding to the connection relationship when the level value on the D+ signal pin is not equal to the level value on the D-signal pin. Operating mode.
可见,在所述移动终端将所述连接关系对应的连接模式设置为工作模式之前,所述移动终端中的所述电平值提取模块40,可设置为分别提取D+信号脚上的电平值和D-信号脚上的电平值,其次,当所述通知模块50,设置为当确认所述D+信号脚上的电平值不等于D-信号脚上的电平值时,通知所述模式设置模块10设置所述连接关系对应的连接模式为工作模式,然后,所述移动终端在通过USB连接所述供电终端的情况下,通过所述电平调整模块20调整所述电压选择电平;最后,当电流接收模块30检测到所述电压选择电平由第一电平切换为第二电平时,将所述工作模式调整为所述充电模式,以使所述供电终端(如PC)为该移动终端提供更大的充电电流,并提高连接PC时的充电速度。It can be seen that, before the mobile terminal sets the connection mode corresponding to the connection relationship to the working mode, the level value extraction module 40 in the mobile terminal may be configured to separately extract the level value on the D+ signal pin. And the level value on the D-signal pin, and secondly, when the notification module 50 is set to notify when the level value on the D+ signal pin is not equal to the level value on the D-signal pin The mode setting module 10 sets the connection mode corresponding to the connection relationship to an operation mode, and then, when the mobile terminal connects the power supply terminal through USB, adjusts the voltage selection level by the level adjustment module 20 Finally, when the current receiving module 30 detects that the voltage selection level is switched from the first level to the second level, the operating mode is adjusted to the charging mode to enable the power supply terminal (such as a PC) The mobile terminal is provided with a larger charging current and increases the charging speed when the PC is connected.
进一步地,请参见图7,是本发明实施例提供的一种电流接收模块的结构示意图。如图7所示,所述电流接收模块30,包括:信号脚短接单元301,电平值提取单元302,模式调整单元303和电流接收单元304;Further, please refer to FIG. 7, which is a schematic structural diagram of a current receiving module according to an embodiment of the present invention. As shown in FIG. 7, the current receiving module 30 includes: a signal pin shorting unit 301, a level value extracting unit 302, a mode adjusting unit 303, and a current receiving unit 304;
所述信号脚短接单元301,设置为当所述电压选择电平由第一电平切换为第二电平时,将D+信号脚与D-信号脚进行短接;The signal pin shorting unit 301 is configured to short the D+ signal pin and the D-signal pin when the voltage selection level is switched from the first level to the second level;
所述电平值提取单元302,设置为分别提取D+信号脚上的电平值和D-信号脚上的电平值;The level value extracting unit 302 is configured to respectively extract a level value on the D+ signal pin and a level value on the D-signal pin;
所述模式调整单元303,设置为当所述D+信号脚上的电平值等于所述D-信号脚上的电平值时,将所述连接模式由工作模式调整为充电模式;The mode adjusting unit 303 is configured to adjust the connection mode from an operation mode to a charging mode when a level value on the D+ signal pin is equal to a level value on the D-signal pin;
所述电流接收单元304,设置为接收所述供电终端传输的所述充电模式下的充电电流。The current receiving unit 304 is configured to receive a charging current in the charging mode transmitted by the power supply terminal.
由此可见,所述信号脚短接单元301,首先设置为当所述电压选择电平由第一电平切换为第二电平时,将D+信号脚与D-信号脚进行短接;其次,所述电平值提取单元302,设置为分别提取D+信号脚上的电平值和D-信号脚上的电平值;然后,所述模式调整单元303,设置为当所述D+信号脚上的电平值等于所述D-信号脚上的电平值时,将所述连接模式由工作模式调整为充电模式;最后,所述电流接收单元304,设置为接收所述供电终端传输的所述充电模式下的充电电流。可见,当所示电压选择电平为第二电平,且所述D+信号脚上的电平值等于所述D-信号脚上的电平值时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,以增加对移动终端(如手机)的充电电流,进而提高对手机的充电效率。Therefore, the signal pin shorting unit 301 is first configured to short the D+ signal pin and the D-signal pin when the voltage selection level is switched from the first level to the second level; secondly, The level value extracting unit 302 is configured to respectively extract a level value on the D+ signal pin and a level value on the D-signal pin; then, the mode adjusting unit 303 is configured to be on the D+ signal pin. When the level value is equal to the level value on the D-signal pin, the connection mode is adjusted from the operation mode to the charging mode; finally, the current receiving unit 304 is configured to receive the transmission of the power supply terminal The charging current in the charging mode. It can be seen that when the voltage selection level is the second level and the level value on the D+ signal pin is equal to the level value on the D-signal, the connection mode is adjusted from the working mode to And charging mode, and receiving the charging current in the charging mode transmitted by the power supply terminal to increase charging current to the mobile terminal (such as a mobile phone), thereby improving charging efficiency of the mobile phone.
进一步地,再请参见图8,是本发明实施例提供的另一种移动终端的结构示意图,如图8所示,所述移动终端1000可以包括:至少一个处理器1001,例如CPU,至少一个网络接口1004,用户接口1003,存储器1005,至少一个通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。其中,用户接口1003可以包括显示屏(Display)、键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1005可选的还可以是至少一个位于远离前述处理器1001的存储装置。如图8所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及设备控制应用程序。Further, please refer to FIG. 8 , which is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention. As shown in FIG. 8 , the mobile terminal 1000 may include: at least one processor 1001 , such as a CPU, at least one. Network interface 1004, user interface 1003, memory 1005, at least one communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 can include a display and a keyboard. The optional user interface 1003 can also include a standard wired interface and a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. The memory 1005 can also optionally be at least one storage device located remotely from the aforementioned processor 1001. As shown in FIG. 8, an operating system, a network communication module, a user interface module, and a device control application may be included in the memory 1005 as a computer storage medium.
在图8所示的移动终端1000中,而用户接口1003主要用于为用户提供输入的接口,获取用户输出的数据;而处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现:In the mobile terminal 1000 shown in FIG. 8, the user interface 1003 is mainly used to provide an input interface for the user to acquire data output by the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;Establishing a connection relationship with the power supply terminal by using a universal serial bus USB data line, and setting a connection mode corresponding to the connection relationship to an operation mode;
接收电压选择指令,并根据所述电压选择指令调整电压选择电平;Receiving a voltage selection command, and adjusting a voltage selection level according to the voltage selection instruction;
当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,其中,所述第二电平高于所述第一电平。When the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the operation mode to the charging mode, and receiving the charging current in the charging mode transmitted by the power supply terminal, wherein The second level is higher than the first level.
在一个实施例中,所述处理器1001在执行所述采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式时,还具体执行以下步骤:In an embodiment, when the processor 1001 establishes a connection relationship with the power supply terminal by using the universal serial bus USB data line, and sets the connection mode corresponding to the connection relationship to the working mode, the following steps are specifically performed. :
检测WALL5V信号脚上是否存在电压;Detect whether there is voltage on the WALL5V signal pin;
若WALL5V信号脚上存在电压,则确认与所述供电终端建立所述连接关系,并设置所述连接关系对应的连接模式为工作模式;If there is a voltage on the signal pin of the WALL5V, it is confirmed that the connection relationship is established with the power supply terminal, and the connection mode corresponding to the connection relationship is set to an operation mode;
若WALL5V信号脚上不存在电压,则确认未与供电终端建立连接关系,并控制终端屏幕显示未连接提示信息。If there is no voltage on the WALL5V signal pin, it is confirmed that the connection relationship with the power supply terminal is not established, and the terminal screen displays the unconnected prompt information.
在一个实施例中,可选地,所述处理器1001在执行在所述设置所述连接关系对应的连接模式为工作模式的步骤之前,还执行以下步骤:In an embodiment, the processor 1001 further performs the following steps before the step of setting the connection mode corresponding to the connection relationship to the working mode:
分别提取D+信号脚上的电平值和D-信号脚上的电平值;Extracting the level value on the D+ signal pin and the level value on the D-signal pin respectively;
当确认所述D+信号脚上的电平值不等于D-信号脚上的电平值时,执行设置所述连接关系对应的连接模式为工作模式的步骤。When it is confirmed that the level value on the D+ signal pin is not equal to the level value on the D-signal pin, the step of setting the connection mode corresponding to the connection relationship to the operation mode is performed.
在一个实施例中,所述处理器1001在执行所述接收电压选择指令,并根据所述电压选择指令调整电压选择电平时,还具体执行以下步骤:In an embodiment, when the processor 1001 executes the receiving voltage selection instruction and adjusts the voltage selection level according to the voltage selection instruction, the processor 1001 further performs the following steps:
接收电压选择指令,并按照所述电压选择指令将电压选择电平由第一电平切换为第二电平。A voltage selection command is received, and the voltage selection level is switched from the first level to the second level in accordance with the voltage selection command.
在一个实施例中,所述处理器1001在执行所述当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流时,还具体执行以下步骤:In one embodiment, the processor 1001 adjusts the connection mode from an operation mode to a charging mode when the voltage selection level is switched from a first level to a second level, and receives the When the charging current in the charging mode transmitted by the power supply terminal is described, the following steps are specifically performed:
当所述电压选择电平由第一电平切换为第二电平时,将D+信号脚与D-信号脚进行短接;When the voltage selection level is switched from the first level to the second level, the D+ signal pin is shorted to the D-signal pin;
分别提取D+信号脚上的电平值和D-信号脚上的电平值;Extracting the level value on the D+ signal pin and the level value on the D-signal pin respectively;
当所述D+信号脚上的电平值等于所述D-信号脚上的电平值时,将所述连接模式由工作模式调整为充电模式;When the level value on the D+ signal pin is equal to the level value on the D-signal pin, the connection mode is adjusted from the working mode to the charging mode;
接收所述供电终端传输的所述充电模式下的充电电流。Receiving a charging current in the charging mode transmitted by the power supply terminal.
可见,所述移动终端采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;然后,接收电压选择指令,并根据所述电压选择指令调整电压选择电平;最后,当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,其中,所述第二电平高于所述第一电平。所以,以所述移动终端为手机时为例,采用本发明,可在通过USB数据线与供电终端建立连接,并对手机进行手机供电时,增大手机接收端的接收电流,以提高手机的充电效率,并确保手机终端上各应用程序的运行。It can be seen that the mobile terminal establishes a connection relationship with the power supply terminal by using a universal serial bus USB data line, and sets a connection mode corresponding to the connection relationship to an operation mode; then, receives a voltage selection instruction, and adjusts according to the voltage selection instruction. a voltage selection level; finally, when the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the operation mode to the charging mode, and receiving the charging transmitted by the power supply terminal a charging current in mode, wherein the second level is higher than the first level. Therefore, taking the mobile terminal as a mobile phone as an example, according to the present invention, when the connection is established with the power supply terminal through the USB data line, and the mobile phone is powered by the mobile phone, the receiving current of the receiving end of the mobile phone is increased to improve the charging of the mobile phone. Efficiency and ensure the operation of each application on the mobile terminal.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (10)

  1. 一种充电方法,其特征在于,包括:A charging method, comprising:
    采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;Establishing a connection relationship with the power supply terminal by using a universal serial bus USB data line, and setting a connection mode corresponding to the connection relationship to an operation mode;
    接收电压选择指令,并根据所述电压选择指令调整电压选择电平;Receiving a voltage selection command, and adjusting a voltage selection level according to the voltage selection instruction;
    当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,其中,所述第二电平高于所述第一电平。When the voltage selection level is switched from the first level to the second level, adjusting the connection mode from the operation mode to the charging mode, and receiving the charging current in the charging mode transmitted by the power supply terminal, wherein The second level is higher than the first level.
  2. 根据权利要求1所述的充电方法,其特征在于,所述采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式,包括:The charging method according to claim 1, wherein the universal serial bus USB data line is used to establish a connection relationship with the power supply terminal, and the connection mode corresponding to the connection relationship is set to an operation mode, including:
    检测WALL5V信号脚上是否存在电压;Detect whether there is voltage on the WALL5V signal pin;
    若WALL5V信号脚上存在电压,则确认与所述供电终端建立所述连接关系,并设置所述连接关系对应的连接模式为工作模式;If there is a voltage on the signal pin of the WALL5V, it is confirmed that the connection relationship is established with the power supply terminal, and the connection mode corresponding to the connection relationship is set to an operation mode;
    若WALL5V信号脚上不存在电压,则确认未与供电终端建立连接关系,并控制终端屏幕显示未连接提示信息。If there is no voltage on the WALL5V signal pin, it is confirmed that the connection relationship with the power supply terminal is not established, and the terminal screen displays the unconnected prompt information.
  3. 根据权利要求1或2所述的充电方法,其特征在于,在所述设置所述连接关系对应的连接模式为工作模式之前,还包括:The charging method according to claim 1 or 2, further comprising: before the setting the connection mode corresponding to the connection relationship to the working mode, further comprising:
    分别提取D+信号脚上的电平值和D-信号脚上的电平值;Extracting the level value on the D+ signal pin and the level value on the D-signal pin respectively;
    当确认所述D+信号脚上的电平值不等于D-信号脚上的电平值时,执行设置所述连接关系对应的连接模式为工作模式的步骤。When it is confirmed that the level value on the D+ signal pin is not equal to the level value on the D-signal pin, the step of setting the connection mode corresponding to the connection relationship to the operation mode is performed.
  4. 根据权利要求1所述的充电方法,其特征在于,所述接收电压选择指令,并根据所述电压选择指令调整电压选择电平,包括;The charging method according to claim 1, wherein said receiving a voltage selection command and adjusting a voltage selection level according to said voltage selection command comprises:
    接收电压选择指令,并按照所述电压选择指令将电压选择电平由第一电平切换为第二电平。A voltage selection command is received, and the voltage selection level is switched from the first level to the second level in accordance with the voltage selection command.
  5. 根据权利要求1所述的充电方法,其特征在于,所述当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,包括:The charging method according to claim 1, wherein said connecting mode is adjusted from an operating mode to a charging mode when said voltage selection level is switched from a first level to a second level, and receiving The charging current in the charging mode transmitted by the power supply terminal includes:
    当所述电压选择电平由第一电平切换为第二电平时,将D+信号脚与D-信号脚进行短接;When the voltage selection level is switched from the first level to the second level, the D+ signal pin is shorted to the D-signal pin;
    分别提取D+信号脚上的电平值和D-信号脚上的电平值;Extracting the level value on the D+ signal pin and the level value on the D-signal pin respectively;
    当所述D+信号脚上的电平值等于所述D-信号脚上的电平值时,将所述连接模式由工作模式调整为充电模式;When the level value on the D+ signal pin is equal to the level value on the D-signal pin, the connection mode is adjusted from the working mode to the charging mode;
    接收所述供电终端传输的所述充电模式下的充电电流。Receiving a charging current in the charging mode transmitted by the power supply terminal.
  6. 一种移动终端,其特征在于,包括:A mobile terminal, comprising:
    模式设置模块,设置为采用通用串行总线USB数据线与供电终端建立连接关系,并设置所述连接关系对应的连接模式为工作模式;The mode setting module is configured to establish a connection relationship with the power supply terminal by using a universal serial bus USB data line, and set a connection mode corresponding to the connection relationship to an operation mode;
    电平调整模块,设置为接收电压选择指令,并根据所述电压选择指令调整电压选择电平;a level adjustment module configured to receive a voltage selection command and adjust a voltage selection level according to the voltage selection instruction;
    电流接收模块,设置为当所述电压选择电平由第一电平切换为第二电平时,将所述连接模式由工作模式调整为充电模式,并接收所述供电终端传输的所述充电模式下的充电电流,其中,所述第二电平高于所述第一电平。a current receiving module configured to adjust the connection mode from an operation mode to a charging mode when the voltage selection level is switched from a first level to a second level, and receive the charging mode transmitted by the power supply terminal a lower charging current, wherein the second level is higher than the first level.
  7. 根据权利要求6所述的移动终端,其特征在于,所述模式设置模块包括:The mobile terminal according to claim 6, wherein the mode setting module comprises:
    检测单元,设置为检测WALL5V信号脚上是否存在电压;a detecting unit configured to detect whether a voltage is present on the WALL5V signal pin;
    模式设置单元,设置为若WALL5V信号脚上存在电压,则确认与所述供电终端建立所述连接关系,并设置所述连接关系对应的连接模式为工作模式;a mode setting unit, configured to establish a connection relationship with the power supply terminal if a voltage exists on the signal pin of the WALL5V, and set a connection mode corresponding to the connection relationship to an operation mode;
    信息显示单元,设置为若WALL5V信号脚上不存在电压,则确认未与供电终端建立连接关系,并控制终端屏幕显示未连接提示信息。The information display unit is configured to confirm that no connection relationship is established with the power supply terminal if there is no voltage on the WALL5V signal pin, and control the terminal screen to display the unconnected prompt information.
  8. 根据权利要求6或7所述的移动终端,其特征在于,还包括:The mobile terminal according to claim 6 or 7, further comprising:
    电平值提取模块,设置为分别提取D+信号脚上的电平值和D-信号脚上的电平值;a level value extraction module configured to extract a level value on the D+ signal pin and a level value on the D-signal pin, respectively;
    通知模块,设置为当确认所述D+信号脚上的电平值不等于D-信号脚上的电平值时,通知所述模式设置模块执行设置所述连接关系对应的连接模式为工作模式。The notification module is configured to notify the mode setting module to perform setting the connection mode corresponding to the connection relationship to an operation mode when it is confirmed that the level value on the D+ signal pin is not equal to the level value on the D-signal pin.
  9. 根据权利要求6所述的移动终端,其特征在于,所述电平调整模块具体设置为接收电压选择指令,并按照所述电压选择指令将电压选择电平由第一电平切换为第二电平。The mobile terminal according to claim 6, wherein the level adjustment module is specifically configured to receive a voltage selection command, and switch the voltage selection level from the first level to the second level according to the voltage selection instruction. level.
  10. 根据权利要求6所述的移动终端,其特征在于,所述电流接收模块包括:The mobile terminal of claim 6, wherein the current receiving module comprises:
    信号脚短接单元,设置为当所述电压选择电平由第一电平切换为第二电平时,将D+信号脚与D-信号脚进行短接;The signal pin shorting unit is configured to short the D+ signal pin and the D-signal pin when the voltage selection level is switched from the first level to the second level;
    电平值提取单元,设置为分别提取D+信号脚上的电平值和D-信号脚上的电平值;a level value extracting unit configured to extract a level value on the D+ signal pin and a level value on the D-signal pin, respectively;
    模式调整单元,设置为当所述D+信号脚上的电平值等于所述D-信号脚上的电平值时,将所述连接模式由工作模式调整为充电模式;a mode adjusting unit configured to adjust the connection mode from an operation mode to a charging mode when a level value on the D+ signal pin is equal to a level value on the D-signal pin;
    电流接收单元,设置为接收所述供电终端传输的所述充电模式下的充电电流。And a current receiving unit configured to receive a charging current in the charging mode transmitted by the power supply terminal.
PCT/CN2016/107840 2016-10-31 2016-11-30 Charging method and mobile terminal WO2018076445A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610931927.6 2016-10-31
CN201610931927.6A CN106300564A (en) 2016-10-31 2016-10-31 A kind of charging method and mobile terminal

Publications (1)

Publication Number Publication Date
WO2018076445A1 true WO2018076445A1 (en) 2018-05-03

Family

ID=57719276

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/107840 WO2018076445A1 (en) 2016-10-31 2016-11-30 Charging method and mobile terminal

Country Status (2)

Country Link
CN (1) CN106300564A (en)
WO (1) WO2018076445A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343651B (en) * 2018-09-30 2021-01-12 广东爱玛车业科技有限公司 Working voltage adjusting method, controller, instrument display module and system
CN112214430B (en) * 2019-07-11 2022-10-14 纬联电子科技(中山)有限公司 USB Type-C connector detection method and dual-purpose port device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853970A (en) * 2010-06-21 2010-10-06 华为终端有限公司 Method and device for charging through universal serial bus (USB) interface
CN104269709A (en) * 2014-09-10 2015-01-07 天津三星电子有限公司 Quick charge adapter connector and control method thereof, and electronic devices
CN105071484A (en) * 2015-08-25 2015-11-18 广东欧珀移动通信有限公司 Charging method and apparatus of terminal having data exchange function

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203014451U (en) * 2013-01-09 2013-06-19 赖伟昌 USB charger
US20170005495A1 (en) * 2013-12-19 2017-01-05 Thomson Licensing Method and apparatus for charging electronic device with usb connection
CN104852412B (en) * 2014-02-18 2017-03-01 联想(北京)有限公司 A kind of charging current control method and electronic equipment
CN104393627B (en) * 2014-08-29 2017-06-30 展讯通信(上海)有限公司 USB charger, mobile terminal and charge control method
CN104283284B (en) * 2014-10-27 2017-10-20 北京元隆雅图文化传播股份有限公司 A kind of multi-functional data portable power source and charging method
CN105990874A (en) * 2015-05-26 2016-10-05 乐视致新电子科技(天津)有限公司 Charging method, charging device and charging control device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853970A (en) * 2010-06-21 2010-10-06 华为终端有限公司 Method and device for charging through universal serial bus (USB) interface
CN104269709A (en) * 2014-09-10 2015-01-07 天津三星电子有限公司 Quick charge adapter connector and control method thereof, and electronic devices
CN105071484A (en) * 2015-08-25 2015-11-18 广东欧珀移动通信有限公司 Charging method and apparatus of terminal having data exchange function

Also Published As

Publication number Publication date
CN106300564A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2016036128A1 (en) Electronic device, method of controlling charging by electronic device, and method of supplying power by power supply device
WO2018129977A1 (en) Charging control method and apparatus, storage medium, and computer device
WO2014182117A1 (en) Method and apparatus for displaying user interface through sub device that is connectable with portable electronic device
WO2011099713A2 (en) Screen control method and apparatus for mobile terminal having multiple touch screens
WO2018018772A1 (en) Background process management method and terminal device
WO2020085636A1 (en) Electronic device for displaying list of executable applications on split screen and operating method thereof
WO2018171534A1 (en) Mobile terminal-based dual camera power supply control method, system and mobile terminal
WO2013147448A1 (en) Adapter for connecting two mobile devices
WO2021054710A1 (en) Method, electronic device, and storage medium for displaying charging state in start of charging
WO2021261722A1 (en) Electronic device including flexible display
WO2018040170A1 (en) Charging method and apparatus
WO2017026835A1 (en) Mobile terminal and method for controlling mobile terminal by using touch input device
WO2021020900A1 (en) Electronic device for preventing damage of usb device and operating method thereof
WO2018018691A1 (en) Esim switching method and terminal device
WO2021107632A1 (en) Electronic device for managing multiple batteries connected in series and method for operating same
WO2018076445A1 (en) Charging method and mobile terminal
WO2020173249A1 (en) Charging system, electronic device, and charging control method
WO2018058835A1 (en) Call mode monitoring method, system and communication terminal
WO2021042565A1 (en) Quick charging system and method for handheld device, and handheld device
WO2021042566A1 (en) Quick charging system and method for handheld device, and handheld device
WO2019039729A1 (en) Method for changing the size of the content displayed on display and electronic device thereof
WO2012163216A1 (en) Method and apparatus for controlling input of mobile terminal for java program
WO2016095362A1 (en) Display terminal and displaying method for screen thereof
WO2019164098A1 (en) Apparatus and method for providing function associated with keyboard layout
WO2016085232A1 (en) Terminal controlling device and controlling method using same

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: 16920400

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16920400

Country of ref document: EP

Kind code of ref document: A1