WO2017049548A1 - 移动终端、电源适配器及其升级方法 - Google Patents

移动终端、电源适配器及其升级方法 Download PDF

Info

Publication number
WO2017049548A1
WO2017049548A1 PCT/CN2015/090617 CN2015090617W WO2017049548A1 WO 2017049548 A1 WO2017049548 A1 WO 2017049548A1 CN 2015090617 W CN2015090617 W CN 2015090617W WO 2017049548 A1 WO2017049548 A1 WO 2017049548A1
Authority
WO
WIPO (PCT)
Prior art keywords
power adapter
mobile terminal
interface
software
upgrade information
Prior art date
Application number
PCT/CN2015/090617
Other languages
English (en)
French (fr)
Inventor
田晨
张加亮
张俊
廖福椿
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to DK15891032.3T priority Critical patent/DK3171484T3/da
Priority to US15/310,105 priority patent/US10474452B2/en
Priority to CN201580004316.0A priority patent/CN107148715B/zh
Priority to PT15891032T priority patent/PT3171484T/pt
Priority to EP15891032.3A priority patent/EP3171484B1/en
Priority to EP19157625.5A priority patent/EP3518383A1/en
Priority to ES15891032T priority patent/ES2730761T3/es
Priority to PCT/CN2015/090617 priority patent/WO2017049548A1/zh
Publication of WO2017049548A1 publication Critical patent/WO2017049548A1/zh

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/00047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with provisions for charging different types of batteries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/24Loading of the microprogram
    • 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/00036Charger exchanging data with battery
    • 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/0042Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • 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

Definitions

  • Embodiments of the present invention relate to the field of mobile terminals, and, more particularly, to a mobile terminal, a power adapter, and an upgrade method thereof.
  • some mobile terminal such as mobile phone
  • power adapters are designed as intelligent power adapters.
  • the control core of the power adapter is a Microcontroller Unit (MCU).
  • MCU Microcontroller Unit
  • Oppo's power adapter can adjust its working mode according to the current state.
  • the MCU is characterized by programmable, that is, by changing the software code, it can be implemented with different functions, and only the MCU that downloads the new program has new functions. Therefore, in order for the MCU to become the control core of the power adapter, it is necessary to download the corresponding program.
  • the download of the program is completed on the production line, so there is a problem. If the program is buggy after the power adapter is sold, the program needs to be modified, or the power adapter adds a new function, then according to the current situation. The power adapter sold to the user must be returned to the factory for upgrade, and it takes time and effort to return to the factory. Therefore, the problem of difficulty in upgrading the power adapter needs to be solved.
  • the embodiment of the invention provides a mobile terminal, a power adapter and an upgrade method thereof, so as to solve the problem that the power adapter is difficult to upgrade.
  • the first aspect provides a method for upgrading a power adapter, including: downloading, by a mobile terminal, software upgrade information of the power adapter, where the software upgrade information is used to upgrade software of the power adapter; and the mobile terminal passes a charging interface In the process of connecting with the power adapter, the mobile terminal sends the software upgrade information to a processor of the power adapter through a data line in the charging interface, so that the processor upgrades information according to the software , upgrade the software of the power adapter.
  • the mobile terminal sends the software upgrade information to a processor of the power adapter by using a data line in the charging interface, including: the moving The terminal converts the software upgrade information into data in a UART format; The mobile terminal transmits the data in the UART format to a UART interface of a processor of the power adapter through a data line in the charging interface.
  • the mobile terminal converts the software upgrade information into data in a UART format, including: the mobile terminal The AP converts the downloaded software upgrade information into the UART format data; the AP of the mobile terminal uses the GPIO port to simulate the UART interface, and sends the UART format data to the mobile terminal's micro processing unit MCU.
  • the MCU of the mobile terminal transmits the data in the UART format to a UART interface of a processor of the power adapter through a data line in the charging interface.
  • the method further includes: the MCU of the mobile terminal sends a handshake request message to the power adapter, The handshake request message is used to query a version of software currently used by the power adapter; the MCU of the mobile terminal receives a handshake response message sent by the power adapter, and the handshake response message includes a current indication for indicating that the power adapter is currently used. Information of the version of the software; the MCU of the mobile terminal determines whether the software currently used by the power adapter needs to be upgraded according to the version of the software currently used by the power adapter and the latest version indicated by the downloaded software upgrade information.
  • the MCU of the mobile terminal sends the data in the UART format to the UART interface of the processor of the power adapter through a data line in the charging interface, including: when determining that the software currently used by the power adapter needs to be upgraded At the time, the MCU of the mobile terminal passes the data line in the charging interface to the UART UART data format of the transmission of the source adapter interface processor.
  • the method further includes: determining, by the AP of the mobile terminal, whether the inserted power supply device is In the power adapter, the first link is connected to the USB interface of the AP and the charging interface; when it is determined that the inserted power supply device is a power adapter, the mobile terminal passes the USB switch from the first The link is switched to the second link, the second link is connected to the MCU of the mobile terminal and the charging interface; the MCU of the mobile terminal is connected to the power adapter through a data line in the charging interface
  • the UART interface of the processor sends the data in the UART format, including: the MCU of the mobile terminal sends the data in the UART format to a UART interface of a processor of the power adapter through the second link.
  • the software upgrade information is information downloaded by the AP in the mobile terminal from the network through the radio frequency module.
  • the mobile terminal is in the process of connecting the mobile terminal to the power adapter through a charging interface Transmitting, by the data line in the charging interface, the software upgrade information to a processor of the power adapter, including: in the process of charging the mobile terminal by using the normal charging mode, the mobile terminal Transmitting, by the data line in the charging interface, the software upgrade information to a processor of the power adapter; the method further comprising: after the power adapter upgrades the software of the power adapter according to the software upgrade information And the mobile terminal switches from the normal charging mode to a fast charging mode, wherein a charging speed of the fast charging mode is greater than a charging speed of the normal charging mode.
  • the charging interface is a USB interface
  • the data line in the charging interface is D+ in the USB interface.
  • a second aspect provides a method for upgrading a power adapter, including: in a process of connecting the power adapter to a mobile terminal through a charging interface, the power adapter passes through a data line in the charging interface, from the mobile terminal Receiving software upgrade information of the power adapter; the processor of the power adapter upgrades software of the power adapter according to the software upgrade information.
  • the power adapter receives software upgrade information of the power adapter from the mobile terminal by using a data line in the charging interface, including: the power source
  • the adapter receives data in a UART format sent by the mobile terminal through a UART interface of the processor, where the data in the UART format is converted by the mobile terminal based on the software upgrade information.
  • the power adapter receives data in a UART format sent by the mobile terminal by using a UART interface of the processor, The power adapter receives the data in the UART format sent by the GPIO port of the AP of the mobile terminal through a UART interface of the processor, where the GPIO port is used to send the UART format by using an analog UART interface. data.
  • the software upgrade information is information that is downloaded by the AP in the mobile terminal from the network by using the radio frequency module. .
  • the method further includes: the power adapter receiving a handshake request message from the mobile terminal, the handshake request a message for querying a version of software currently being used by the power adapter; the power adapter transmitting a handshake response message to the mobile terminal, the handshake response message including information indicating a version of software currently being used by the power adapter Receiving the software upgrade information of the power adapter from the mobile terminal, when the power adapter determines that the software currently used by the power adapter needs to be upgraded according to the latest version indicated by the software upgrade information, The power adapter receives software upgrade information of the power adapter from the mobile terminal.
  • the power adapter passes through the power adapter when the power adapter is connected to the mobile terminal through the charging interface Receiving the data line in the charging interface, receiving the software upgrade information of the power adapter from the mobile terminal, including: in the process of charging the mobile terminal by using the normal charging mode, the power adapter passes through the a data line in the charging interface, receiving software upgrade information of the power adapter from the mobile terminal; the method further includes: after the power adapter upgrades the software of the power adapter according to the software upgrade information, The power adapter is switched from the normal charging mode to a fast charging mode, wherein the charging speed of the fast charging mode is greater than the charging speed of the normal charging mode.
  • the charging interface is a USB interface
  • the data line in the charging interface is D+ in the USB interface.
  • the third aspect provides a mobile terminal, including: a downloading module, configured to download software upgrade information of the power adapter, where the software upgrade information is used to upgrade software of the power adapter; and the first sending module is configured to Transmitting, by the mobile terminal, the software upgrade information to a processor of the power adapter through a data line in the charging interface during a connection between the mobile terminal and the power adapter, so that the processor is configured according to the Software upgrade information, upgrade the software of the power adapter.
  • the first sending module is specifically configured to convert the software upgrade information into data in a UART format, and use a data line in the charging interface to The UART interface of the processor of the power adapter transmits the data in the UART format.
  • the first sending module is specifically configured to upgrade the downloaded software by using an AP of the mobile terminal Transmitting information into data in the UART format; transmitting, by the AP of the mobile terminal, the UART interface to the MCU of the mobile terminal by using a GPIO port analog UART interface; and transmitting, by the MCU of the mobile terminal A data line in the charging interface transmits the data in the UART format to a UART interface of a processor of the power adapter.
  • the mobile terminal further includes: a second sending module, configured to use the MCU of the mobile terminal to The power adapter sends a handshake request message, the handshake request message is used to query a version of software currently used by the power adapter, and a receiving module is configured to receive, by using an MCU of the mobile terminal, a handshake response message sent by the power adapter.
  • a second sending module configured to use the MCU of the mobile terminal to The power adapter sends a handshake request message, the handshake request message is used to query a version of software currently used by the power adapter
  • a receiving module is configured to receive, by using an MCU of the mobile terminal, a handshake response message sent by the power adapter.
  • the handshake response message includes information indicating a version of software currently used by the power adapter; a determination module, configured to update according to a version of software currently used by the power adapter, and the software upgrade information indicated to be downloaded a version, determining whether the software currently used by the power adapter needs to be upgraded; the first sending module is specifically configured to: when determining that the software currently used by the power adapter needs to be upgraded, to the power adapter by using the MCU of the mobile terminal.
  • the UART interface of the processor transmits the data in the UART format.
  • the mobile terminal further includes: a determining module, configured to determine, by using the first link, whether the inserted power supply device is In the power adapter, the first link is connected to the USB interface of the AP and the charging interface; and the link conversion module is configured to: when determining that the inserted power supply device is a power adapter, the mobile terminal passes The USB switch is switched from the first link to the second link, the second link is connected to the MCU of the mobile terminal and the charging interface; the first sending module is specifically configured to pass the second chain And transmitting the data in the UART format to a UART interface of a processor of the power adapter.
  • a determining module configured to determine, by using the first link, whether the inserted power supply device is In the power adapter, the first link is connected to the USB interface of the AP and the charging interface
  • the link conversion module is configured to: when determining that the inserted power supply device is a power adapter, the mobile terminal passes The USB switch is switched from the first link to the second link, the second link is connected to the
  • the software upgrade information is information that is downloaded by the AP in the mobile terminal from the network by using the radio frequency module. .
  • the first sending module is specifically configured to: charge the mobile terminal by using the normal charging mode in the power adapter a process of adapting to the power supply through a data line in the charging interface
  • the processor of the device sends the software upgrade information;
  • the mobile terminal further includes: a switching module, configured to switch from the normal charging mode after the power adapter upgrades the software of the power adapter according to the software upgrade information To a fast charging mode, wherein the charging speed of the fast charging mode is greater than the charging speed of the normal charging mode.
  • the charging interface is a USB interface
  • the data line in the charging interface is D+ in the USB interface.
  • a power adapter including: a first receiving module, configured to pass from a data line in the charging interface, from the mobile terminal, in a process of connecting the power adapter to a mobile terminal through a charging interface Receiving software upgrade information of the power adapter; and an upgrade module, configured to upgrade software of the power adapter according to the software upgrade information by using a processor of the power adapter.
  • the first receiving module is configured to receive, by using a UART interface of the processor, data in a UART format sent by the mobile terminal, where the UART is The formatted data is converted by the mobile terminal based on the software upgrade information.
  • the first receiving module is specifically configured to receive an AP of the mobile terminal by using a UART interface of the processor.
  • the GPIO port sends the data in the UART format, wherein the GPIO port is used to simulate the UART interface to send the data in the UART format.
  • the software upgrade information is that the AP in the mobile terminal passes the radio frequency module from the network. Downloaded information.
  • the power adapter further includes: a second receiving module, configured to receive a handshake request message from the mobile terminal, The handshake request message is used to query a version of software currently used by the power adapter, and a sending module is configured to send a handshake response message to the mobile terminal, where the handshake response message is used to indicate that the power adapter is currently used.
  • Information of the version of the software is configured to receive, when the mobile terminal determines that the software currently used by the power adapter needs to be upgraded according to the latest version indicated by the software upgrade information, Software upgrade information for the power adapter.
  • the first receiving module is specifically configured to: charge the mobile terminal by using a normal charging mode in the power adapter
  • the power adapter receives software upgrade information of the power adapter from the mobile terminal through a data line in the charging interface; the power adapter further includes: a switching module, configured to be used as the power adapter After the software upgrade of the power adapter is performed according to the software upgrade information, the power adapter is switched from the normal charging mode to a fast charging mode, wherein the charging speed of the fast charging mode is greater than the charging of the normal charging mode. speed.
  • the charging interface is a USB interface
  • the data line in the charging interface is D+ in the USB interface.
  • the software upgrade information of the power adapter is downloaded by using the mobile terminal, and the latest software upgrade information is sent to the power adapter during the process of connecting the mobile terminal and the power adapter, and the power adapter is upgraded to solve the power adapter.
  • the difficulty of upgrading is the case of upgrading.
  • FIG. 1 is a schematic flowchart of a method for upgrading a power adapter according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for upgrading a power adapter according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a system of a mobile phone and a power adapter according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a communication link between a mobile phone AP and a power adapter according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a communication link between a mobile phone MCU and a power adapter according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a data link of a mobile phone AP transmitting adapter firmware to a power adapter according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of a method for upgrading a power adapter according to an embodiment of the present invention.
  • FIG. 8 is a schematic block diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 9 is a schematic block diagram of a power adapter of an embodiment of the present invention.
  • FIG. 10 is a schematic block diagram of a mobile terminal according to an embodiment of the present invention.
  • Figure 11 is a schematic block diagram of a power adapter of an embodiment of the present invention.
  • the power adapter is not equipped with a radio frequency module, and it is not possible to download the upgrade information through the OTA (over the air) technology as the mobile terminal can be upgraded.
  • the embodiment of the present invention uses the mobile terminal to download the software upgrade information of the power adapter, and sends the downloaded software upgrade information to the downloaded interface between the mobile terminal and the power adapter during the connection between the mobile terminal and the power adapter.
  • the power adapter is in the processor so that the processor of the power adapter can use the software upgrade information to upgrade.
  • FIG. 1 is a schematic flowchart of a method for upgrading a power adapter according to an embodiment of the present invention.
  • the method of Figure 1 includes:
  • the mobile terminal downloads software upgrade information of the power adapter, where the software upgrade information is used to upgrade software of the power adapter.
  • the specific form of the software upgrade information of the power adapter is not limited in the embodiment of the present invention.
  • the software upgrade information may serve as firmware of a processor inside the power adapter.
  • the mobile terminal can be a mobile phone, a pad, or the like.
  • the mobile terminal may include an application processor (AP) and an MCU (such as a baseband processor), wherein the AP of the mobile terminal may be responsible for functions related to the smart terminal, such as downloading and management of the APP; and the MCU of the mobile terminal. Can be responsible for some basic functions, such as SMS, call function.
  • the software upgrade information may be information downloaded by the AP in the mobile terminal from the network through the radio frequency module. For example, the AP downloads software upgrade information via a cellular network or WIFI.
  • the mobile terminal sends the software upgrade information to a processor of the power adapter through a data line in the charging interface during a process in which the mobile terminal is connected to the power adapter through a charging interface.
  • the processor upgrades software of the power adapter according to the software upgrade information.
  • the software upgrade information of the power adapter is downloaded by using the mobile terminal, and the latest software upgrade information is sent to the power adapter during the process of connecting the mobile terminal and the power adapter, and the power adapter is upgraded to solve the power adapter.
  • the difficulty of upgrading Specifically, when a bug occurs in the power adapter, or the software of the adapter is upgraded, there is no need to return to the factory for repair, and the mobile terminal can be directly downloaded from the network to download new software upgrade information.
  • the charging interface may be a Universal Serial Bus (USB) interface, and the USB interface may be a normal USB interface or a micro USB interface.
  • the data line in the charging interface is at least one of a D+ line and a D- line in the USB interface.
  • the type of the processor in the power adapter is not specifically limited in the embodiment of the present invention, and may be, for example, a certain type of MCU.
  • the main interfaces of the power adapter's processor such as the I2C (Inter-Integrated Circuit) port, are occupied. These interfaces have their own tasks or functions to be completed.
  • the power adapter The Universal Asynchronous Receiver/Transmitter (UART) interface of the processor is underutilized.
  • UART Universal Asynchronous Receiver/Transmitter
  • the above software upgrade information can be converted into data in the UART format, and then the data of the UART format is received by the UART interface of the processor of the power adapter.
  • the embodiment of the present invention does not limit the specific manner in which the software upgrade information is converted into the UART format data. Specifically, the software upgrade information may be converted into data in the UART format by the mobile terminal.
  • the mobile terminal passes through the charging interface.
  • the data line transmits the data in the UART format to a UART interface of a processor of the power adapter.
  • the software upgrade information may be converted by the AP of the mobile terminal, or the software upgrade information may be converted by the MCU of the mobile terminal. The following is an example of converting the software upgrade information by using the AP of the mobile terminal as an example.
  • the converting, by the mobile terminal, the software upgrade information into data in a UART format may include: converting, by the application processor AP of the mobile terminal, the downloaded software upgrade information into the Data in the UART format; the AP of the mobile terminal transmits a data of the UART format to a micro processing unit MCU of the mobile terminal by using a general purpose input output (GPIO) port analog UART interface; The MCU of the mobile terminal transmits the data in the UART format to the UART interface of the processor of the power adapter through a data line in the charging interface.
  • GPIO general purpose input output
  • the dedicated interface of the AP of the mobile terminal (such as a mobile phone) is insufficient, and many dedicated interfaces
  • the port is occupied.
  • the UART interface in the AP is already occupied, and the port log function is mainly implemented.
  • the AP of the mobile terminal converts the software upgrade information into the data of the UART format, if the UART interface of the AP is used to output the data of the UART format, the function is confused.
  • the GPIO port of the AP is used to simulate the UART interface, so that the AP of the mobile terminal realizes the conversion and output of the UART format data, and the GPIO analog UART interface is used to solve the problem that the existing AP dedicated interface is insufficient.
  • the function of the GPIO port analog UART interface can be realized by the AP by delay control data and clock transmission. For example, each time the 1btye data is sent, the control AP is delayed for a period of time, and the cycle is repeated.
  • the MCU of the mobile terminal functions as a "transfer", that is, equivalent to a wire, and the data of the UART format transmitted by the AP from the GPIO port is transmitted to the power adapter end via the MCU of the mobile terminal.
  • the method of FIG. 1 may further include: the MCU of the mobile terminal sends a handshake request message to the power adapter, where the handshake request message is used to query software currently used by the power adapter. a version; the MCU of the mobile terminal receives a handshake response message sent by the power adapter, the handshake response message includes information indicating a version of software currently used by the power adapter; the MCU of the mobile terminal is according to the a version of the software currently used by the power adapter, and a latest version of the software upgrade information indicated by the download, determining whether the software currently used by the power adapter needs to be upgraded; and the MCU of the mobile terminal passes the data in the charging interface Transmitting the data in the UART format to a UART interface of a processor of the power adapter, including: when determining that the software currently used by the power adapter needs to be upgraded, the MCU of the mobile terminal passes through the charging interface a data line, transmitting the UART format to a UART interface of a
  • the method of FIG. 1 may further include: determining, by the AP of the mobile terminal, whether the inserted power supply device is the power adapter by using the first link, where the first link is connected. a USB interface of the AP and the charging interface; when it is determined that the inserted power supply device is a power adapter, the mobile terminal switches from the first link to the second link by using a USB switch, and the second link Connecting an MCU of the mobile terminal to the charging interface; the MCU of the mobile terminal passes through a data line in the charging interface to a processor of the power adapter
  • the UART interface sends the data in the UART format, including: the MCU of the mobile terminal sends the data in the UART format to a UART interface of a processor of the power adapter through the second link.
  • the mobile terminal may send software upgrade information to the power adapter during charging, or the mobile terminal may send the software upgrade information to the power adapter before or after charging, which is used by the embodiment of the present invention. No specific limitation. A specific implementation is given below.
  • the step 120 may include: in the process of charging the mobile terminal by using the normal charging mode, the mobile terminal passes the data line in the charging interface to the The processor of the power adapter sends the software upgrade information; the method of FIG. 1 may further include: after the power adapter upgrades the software of the power adapter according to the software upgrade information, the mobile terminal is from the normal charging mode Switching to the fast charging mode, wherein the charging speed of the fast charging mode is greater than the charging speed of the normal charging mode.
  • the power adapter first adopts the normal charging mode for the mobile terminal, and in the process of the normal charging, the mobile terminal sends the software upgrade information to the power adapter, and after the power adapter is upgraded, the normal charging mode is performed. Switching to the fast charge mode ensures a timely upgrade of the power adapter and ensures that the power adapter always uses the latest software features to provide charging for the mobile terminal.
  • the mobile terminal is a mobile phone
  • the mobile phone includes an AP and an MCU
  • the processor of the power adapter (hereinafter referred to as an adapter) is an MCU
  • the software upgrade information of the adapter is The adapter MCU firmware
  • the mobile phone downloads the adapter MCU firmware to the AP through OTA technology.
  • FIG. 2 is a schematic flowchart of a method for upgrading a power adapter according to an embodiment of the present invention.
  • the method of Figure 2 includes:
  • the mobile phone AP determines whether the power supply device is an adapter. If the power supply device is not an adapter, go to step 203. If the power supply device is an adapter, go to step 204.
  • the mobile phone includes an AP and an MCU, and the AP and MCU of the mobile phone can communicate with the adapter MCU.
  • a USB switch can be set inside the mobile phone to switch between channel 1 and channel 2.
  • the mobile phone AP can pass the D+/D- of the charging interface.
  • the adapter MCU communicates; when the USB switch is switched to channel 2, the handset MCU can communicate with the adapter MCU through the D+/D- of the charging interface.
  • the USB switch can be played on channel 1 by default.
  • the mobile phone AP can recognize whether it is an adapter.
  • the communication link of the mobile phone AP identification adapter is shown in FIG.
  • the computer when the device is powered, the computer is plugged into the computer, and the computer can be used to power the mobile phone.
  • the mobile phone MCU and the adapter MCU complete the handshake matching, and query the adapter MCU firmware version number.
  • the communication link of the handshake negotiation process of the mobile phone MCU and the adapter may be as shown in FIG. 5, and at this time, the USB switch is on the channel 2.
  • the mobile phone MCU reports the version number of the adapter MCU firmware received to the AP.
  • the AP determines whether to upgrade the adapter MCU firmware. When the adapter MCU firmware is not required to be upgraded, step 208 is performed. When the adapter MCU firmware needs to be upgraded, step 209 is performed.
  • the AP notifies the firmware of the mobile phone MCU adapter that the AP needs to be upgraded, and the AP sets the GPIO port of the mobile phone MCU as an analog UART interface.
  • the mobile phone MCU After receiving the reply of the AP that needs to upgrade the adapter firmware, the mobile phone MCU reports the adapter “need to upgrade the firmware”, and then sets the mobile phone MCU to the wire mode.
  • the above-mentioned wire mode can be understood as short-circuiting the GPIO port of the mobile phone MCU and the AP and the D+/D- port of the mobile phone MCU and the adapter communication.
  • FIG. 6 illustrates a communication link between the mobile phone AP and the adapter MCU when the adapter firmware is upgraded, which is equivalent to directly establishing a serial port connection between the AP and the adapter MCU.
  • the adapter MCU After receiving the information that needs to be upgraded by the mobile phone MCU, the adapter MCU enters the download mode, sets the D+/D- communication port of the adapter and the mobile phone MCU as a serial port, and waits for the AP to transmit data.
  • the AP After delaying the certain time, the AP starts to send data in the UART format to the adapter MCU.
  • the delay time can be preset. When the delay time is reached, the AP can assume that both the mobile MCU and the adapter MCU are ready to start transmitting data in the UART format to the adapter MCU.
  • step 208 is performed; when the upgrade fails. Go to step 212.
  • FIG. 7 is a schematic flowchart of a method for upgrading a power adapter according to an embodiment of the present invention.
  • the method of Figure 7 includes:
  • the power adapter receives software upgrade information of the power adapter from the mobile terminal through a data line in the charging interface during a process in which the power adapter is connected to the mobile terminal through a charging interface.
  • the processor of the power adapter upgrades software of the power adapter according to the software upgrade information.
  • the software upgrade information of the power adapter is downloaded by using the mobile terminal, and the latest software upgrade information is sent to the power adapter during the process of connecting the mobile terminal and the power adapter, and the power adapter is upgraded to solve the power adapter.
  • the difficulty of upgrading is the case of upgrading.
  • step 710 may include: the power adapter receiving data in a UART format sent by the mobile terminal by using a UART interface of the processor, where the data in the UART format is used by the mobile The terminal is converted based on the software upgrade information.
  • the power adapter receives data in a UART format sent by the mobile terminal by using a UART interface of the processor, where: the power adapter receives the UART interface through the processor The data in the UART format sent by the GPIO port of the AP of the mobile terminal, where the GPIO port is used to send data of the UART format to the analog UART interface.
  • the software upgrade information is used by the mobile terminal.
  • the method of FIG. 7 may further include: the power adapter receiving a handshake request message from the mobile terminal, the handshake request message being used to query a version of software currently used by the power adapter;
  • the power adapter transmits a handshake response message to the mobile terminal, the handshake response message including information indicating a version of software currently used by the power adapter; the power adapter receiving the power adapter from the mobile terminal
  • the software upgrade information includes: when the mobile terminal determines that the software currently used by the power adapter needs to be upgraded according to the latest version indicated by the software upgrade information, the power adapter receives the power adapter from the mobile terminal Software upgrade information.
  • the power adapter receives the power from the mobile terminal through a data line in the charging interface during a process in which the power adapter is connected to a mobile terminal through a charging interface.
  • Software upgrade information of the adapter the power adapter receiving the power from the mobile terminal through a data line in the charging interface during charging of the mobile terminal by using a normal charging mode
  • Software upgrade information of the adapter the method further includes: after the power adapter upgrades the software of the power adapter according to the software upgrade information, the power adapter switches from the normal charging mode to a fast charging mode, wherein The charging speed of the fast charging mode is greater than the charging speed of the normal charging mode.
  • the charging interface is a universal serial bus USB interface
  • the data line in the charging interface is at least one of a D+ line and a D- line in the USB interface.
  • FIGS. 1-7 The method for upgrading a power adapter according to an embodiment of the present invention is described in detail above with reference to FIGS. 1-7.
  • a mobile terminal and a power adapter according to an embodiment of the present invention will be described in detail with reference to FIGS. 8-11. It should be understood that the mobile terminal and the power adapter of FIGS. 8-11 can implement the various steps performed by the mobile terminal and the power adapter in FIGS. 1-7, and to avoid repetition, details are not described herein.
  • FIG. 8 is a schematic block diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal 800 of FIG. 8 includes:
  • the downloading module 810 is configured to download software upgrade information of the power adapter, where the software upgrade information is used to upgrade software of the power adapter;
  • a first sending module 820 configured to send, by the data line in the charging interface, the software upgrade to a processor of the power adapter during a process in which the mobile terminal 800 is connected to the power adapter through a charging interface Information for the processor to upgrade the software of the power adapter based on the software upgrade information.
  • the software upgrade information of the power adapter is downloaded by using the mobile terminal, and the latest software upgrade information is sent to the power adapter during the process of connecting the mobile terminal and the power adapter, and the power adapter is upgraded to solve the power adapter.
  • the difficulty of upgrading is the case of upgrading.
  • the first sending module 820 may be specifically configured to convert the software upgrade information into data in a universal asynchronous transceiver UART format; through a data line in the charging interface, The UART interface of the processor of the power adapter transmits the data in the UART format.
  • the first sending module 820 may be specifically configured to convert, by using an application processor AP of the mobile terminal 800, the downloaded software upgrade information into data in the UART format;
  • the AP of the mobile terminal 800 transmits the UART format data to the micro processing unit MCU of the mobile terminal 800 by using a general-purpose input/output GPIO port analog UART interface; and the charging is performed by the MCU of the mobile terminal 800.
  • a data line in the interface transmits the data in the UART format to a UART interface of a processor of the power adapter.
  • the mobile terminal 800 may further include: a second sending module, configured to send, by using an MCU of the mobile terminal, a handshake request message to the power adapter, where the handshake request message is used to query a version of the software currently used by the power adapter; a receiving module, configured to receive, by using an MCU of the mobile terminal, a handshake response message sent by the power adapter, where the handshake response message is used to indicate that the power adapter is currently used The information of the software version; the determining module, configured to determine, according to the version of the software currently used by the power adapter, and the latest version indicated by the downloaded software upgrade information, whether the software currently used by the power adapter needs to be upgraded; The first sending module 820 may be specifically configured to: when determining that the software currently used by the power adapter needs to be upgraded, send the data in the UART format to the UART interface of the processor of the power adapter by using an MCU of the mobile terminal. .
  • the mobile terminal 800 may further include: a determining module, configured to determine, by using the first link, whether the inserted power supply device is the power adapter, where the first link is connected a USB interface of the AP and the charging interface; a link conversion module, configured to: when determining that the inserted power supply device is a power adapter, the mobile terminal switches from the first link to the second link by using a USB switch The second link is connected to the MCU of the mobile terminal and the charging interface; the first sending module 820 may be specifically configured to send, by using the second link, a UART interface to a processor of the power adapter. Send the data in the UART format.
  • a determining module configured to determine, by using the first link, whether the inserted power supply device is the power adapter, where the first link is connected a USB interface of the AP and the charging interface
  • a link conversion module configured to: when determining that the inserted power supply device is a power adapter, the mobile terminal switches from the first link to the second link by using a USB switch
  • the software upgrade information is information that is downloaded by the AP in the mobile terminal from the network by using a radio frequency module.
  • the first sending module 820 may be specifically configured to pass the data line in the charging interface during charging of the mobile terminal 800 by using the normal charging mode by the power adapter.
  • Sending the software upgrade information to the processor of the power adapter; the mobile terminal 800 may further include: a switching module, configured to: after the power adapter upgrades the software of the power adapter according to the software upgrade information, The normal charging mode is switched to a fast charging mode, wherein the charging speed of the fast charging mode is greater than the charging speed of the normal charging mode.
  • the charging interface may be a universal serial bus USB interface
  • the data line in the charging interface is at least one of a D+ line and a D- line in the USB interface.
  • FIG. 9 is a schematic block diagram of a power adapter of an embodiment of the present invention.
  • the power adapter 900 of Figure 9 includes:
  • the first receiving module 910 is configured to receive, by the data terminal in the charging interface, the software upgrade information of the power adapter 900 from the mobile terminal during the process of connecting the power adapter 900 to the mobile terminal through the charging interface. ;
  • the upgrade module 920 is configured to upgrade software of the power adapter 900 according to the software upgrade information by using a processor of the power adapter 900.
  • the software upgrade information of the power adapter is downloaded by using the mobile terminal, and the latest software upgrade information is sent to the power adapter during the process of connecting the mobile terminal and the power adapter, and the power adapter is upgraded to solve the power adapter.
  • the difficulty of upgrading is the case of upgrading.
  • the first receiving module 910 may be specifically configured to receive data in a UART format sent by the mobile terminal by using a universal asynchronous transceiver UART interface of the processor, where the UART The formatted data is converted by the mobile terminal based on the software upgrade information.
  • the first receiving module 910 may be specifically configured to receive, by using a UART interface of the processor, the UART sent by a universal input/output GPIO port of an application processor AP of the mobile terminal. Formatted data, wherein the GPIO port is used to simulate the UART interface to transmit data in the UART format.
  • the software upgrade information may be used by the mobile terminal.
  • the AP downloads information from the network through the RF module.
  • the power adapter 900 may further include: a second receiving module, configured to receive a handshake request message from the mobile terminal, where the handshake request message is used to query the power adapter 900 for current use. a version of the software; a sending module, configured to send a handshake response message to the mobile terminal, where the handshake response message includes information indicating a version of software currently used by the power adapter 900; the first receiving module 910
  • the software upgrade information of the power adapter 900 may be received from the mobile terminal when the mobile terminal determines that the software currently used by the power adapter 900 needs to be upgraded according to the latest version indicated by the software upgrade information.
  • the first receiving module 910 may be specifically configured to: when the power adapter 900 charges the mobile terminal by using a normal charging mode, the power adapter 900 passes the charging interface. a data line in which the software upgrade information of the power adapter 900 is received; the power adapter 900 further includes: a switching module, configured to: when the power adapter 900 is configured according to the software upgrade information After the software upgrade of the power adapter 900, the power adapter 900 switches from the normal charging mode to the fast charging mode, wherein the charging speed of the fast charging mode is greater than the charging speed of the normal charging mode.
  • the charging interface is a universal serial bus USB interface
  • the data line in the charging interface is at least one of a D+ line and a D- line in the USB interface.
  • FIG. 10 is a schematic block diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal 1000 of FIG. 10 includes:
  • a memory 1010 configured to store a program
  • the processor 1020 is configured to execute a program, when the program is executed, the processor 1020 is configured to download software upgrade information of the power adapter, where the software upgrade information is used to upgrade software of the power adapter;
  • the mobile terminal 1000 sends the software upgrade information to a processor of the power adapter through a data line in the charging interface during a connection between the mobile terminal and the power adapter, so that the processor is configured according to the Software upgrade information, upgrade the software of the power adapter.
  • the software upgrade information of the power adapter is downloaded by using the mobile terminal, and the latest software upgrade information is sent to the power adapter during the process of connecting the mobile terminal and the power adapter, and the power adapter is upgraded to solve the power adapter.
  • the difficulty of upgrading is the case of upgrading.
  • the processor 1020 may be specifically configured to The level information is converted into data in a universal asynchronous transceiver transmitter UART format; the data in the UART format is transmitted to a UART interface of a processor of the power adapter through a data line in the charging interface.
  • the processor 1020 includes an AP and an MCU, where the AP may be specifically configured to convert the downloaded software upgrade information into data in the UART format; using a general-purpose input/output GPIO a port analog UART interface, the data in the UART format is sent to a micro processing unit MCU of the mobile terminal 1000; the MCU sends a data line in the charging interface to a UART interface of a processor of the power adapter The data in the UART format.
  • the processor 1020 may include an MCU, where the MCU sends a handshake request message to the power adapter, where the handshake request message is used to query a version of software currently used by the power adapter; Receiving, by the MCU, a handshake response message sent by the power adapter, where the handshake response message includes information indicating a version of software currently used by the power adapter; the MCU is based on a version of software currently used by the power adapter And downloading the latest version of the software upgrade information indication, determining whether the software currently used by the power adapter needs to be upgraded; and when determining that the software currently used by the power adapter needs to be upgraded, the MCU is to the power adapter
  • the UART interface of the processor transmits the data in the UART format.
  • the processor 1020 may further include an AP, where the AP determines, by using the first link, whether the inserted power supply device is the power adapter, where the first link connection is The USB interface of the AP and the charging interface; when it is determined that the inserted power supply device is a power adapter, the AP switches from the first link to the second link through a USB switch, and the second link connection
  • the MCU of the mobile terminal and the charging interface the MCU may be specifically configured to send, by using the second link, data in the UART format to a UART interface of a processor of the power adapter.
  • the software upgrade information is information that is downloaded by the AP in the mobile terminal from the network by using a radio frequency module.
  • the processor 1020 may be specifically configured to pass through a data line in the charging interface during charging of the mobile terminal 1000 by using the normal charging mode.
  • the processor of the power adapter sends the software upgrade information; the processor 1020 is further configured to: when the power adapter upgrades the power according to the software upgrade information After the software of the source adapter, the normal charging mode is switched to the fast charging mode, wherein the charging speed of the fast charging mode is greater than the charging speed of the normal charging mode.
  • the charging interface may be a universal serial bus USB interface
  • the data line in the charging interface is at least one of a D+ line and a D- line in the USB interface.
  • FIG. 11 is a schematic block diagram of a power adapter of an embodiment of the present invention.
  • the power adapter 1100 of Figure 11 includes:
  • a memory 1110 configured to store a program
  • the processor 1120 is configured to execute a program. When the program is executed, the processor 1120 is specifically configured to pass data in the charging interface during the process of connecting the power adapter 1100 to the mobile terminal through a charging interface. And receiving software upgrade information of the power adapter 1100 from the mobile terminal; and upgrading software of the power adapter 1100 according to the software upgrade information.
  • the software upgrade information of the power adapter is downloaded by using the mobile terminal, and the latest software upgrade information is sent to the power adapter during the process of connecting the mobile terminal and the power adapter, and the power adapter is upgraded to solve the power adapter.
  • the difficulty of upgrading is the case of upgrading.
  • the processor 1120 may be specifically configured to receive, by using a UART interface of the processor 1120, data in a UART format sent by the mobile terminal, where the data in the UART format is The mobile terminal is converted based on the software upgrade information.
  • the processor 1120 may be specifically configured to receive, by using a UART interface of the processor 1120, data in the UART format sent by a GPIO port of an AP of the mobile terminal, where The GPIO port is used to simulate the UART interface to send data in the UART format.
  • the software upgrade information may be information that is downloaded by the AP in the mobile terminal from the network by using a radio frequency module.
  • the processor 1120 is further configured to receive, from the mobile terminal, a handshake request message, where the handshake request message is used to query a version of software currently used by the power adapter 1100;
  • the mobile terminal sends a handshake response message, the handshake response message includes information indicating a version of software currently used by the power adapter 1100; and determining, when the mobile terminal determines the power adapter according to the latest version indicated by the software upgrade information Receiving the power adapter 1100 from the mobile terminal when the software currently used by 1100 needs to be upgraded Software upgrade information.
  • the processor 1120 may be specifically configured to: when the power adapter 1100 charges the mobile terminal by using a normal charging mode, the power adapter 1100 passes through the charging interface. a data line, the software upgrade information of the power adapter 1100 is received from the mobile terminal; the processor 1120 is further configured to: after the power adapter 1100 upgrades the software of the power adapter 1100 according to the software upgrade information, The power adapter 1100 switches from the normal charging mode to a fast charging mode, wherein the charging speed of the fast charging mode is greater than the charging speed of the normal charging mode.
  • the charging interface is a universal serial bus USB interface
  • the data line in the charging interface is at least one of a D+ line and a D- line in the USB interface.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one single unit. Yuanzhong.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

本发明提供一种移动终端、电源适配器及其升级方法,该方法包括:移动终端下载电源适配器的软件升级信息,软件升级信息用于升级电源适配器的软件;在移动终端通过充电接口与电源适配器连接的过程中,移动终端通过充电接口中的数据线,向电源适配器的处理器发送软件升级信息,以便处理器根据软件升级信息,升级电源适配器的软件。本发明实施例中,利用移动终端下载电源适配器的软件升级信息,并在移动终端和电源适配器连接的过程中,将最新的软件升级信息发送至电源适配器,对电源适配器进行升级,解决了电源适配器升级困难的问题。

Description

移动终端、电源适配器及其升级方法 技术领域
本发明实施例涉及移动终端领域,并且更具体地,涉及一种移动终端、电源适配器及其升级方法。
背景技术
目前,为了满足快速充电的要求,有些移动终端(如手机)厂商的电源适配器设计成智能的电源适配器。以Oppo的VOOC闪充为例,其电源适配器的控制核心是微控制单元(Microcontroller Unit,MCU),在该MCU的控制下,Oppo的电源适配器可以根据当前状态调整自身的工作模式。
众所周知,MCU的特点就是可编程,即通过更改软件代码可以让其实现不同的功能,也只有下载了新的程序的MCU才具备新的功能。因此,为了让MCU成为电源适配器的控制核心,必须要给其下载相应的程序。
目前程序的下载都是在生产线上完成的,这样就存在一个问题,如果在电源适配器售出后,发现程序有bug,需要修改程序,或者,电源适配器添加了新的功能,那么按照现在的情况,卖到用户手中的电源适配器必须要返厂升级,而返厂的话费时费力。因此,电源适配器升级难的问题亟待解决。
发明内容
本发明实施例提供一种移动终端、电源适配器及其升级方法,以解决电源适配器升级难的问题。
第一方面,提供一种电源适配器的升级方法,包括:移动终端下载所述电源适配器的软件升级信息,所述软件升级信息用于升级所述电源适配器的软件;在所述移动终端通过充电接口与所述电源适配器连接的过程中,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,以便所述处理器根据所述软件升级信息,升级所述电源适配器的软件。
结合第一方面,在第一方面的一种实现方式中,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,包括:所述移动终端将所述软件升级信息转换成UART格式的数据;所述移 动终端通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第一方面或其上述实现方式的任一种,在第一方面的另一种实现方式中,所述移动终端将所述软件升级信息转换成UART格式的数据,包括:所述移动终端的AP将下载到的所述软件升级信息转换成所述UART格式的数据;所述移动终端的AP利用GPIO口模拟UART接口,将所述UART格式的数据发送至所述移动终端的微处理单元MCU;所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第一方面或其上述实现方式的任一种,在第一方面的另一种实现方式中,所述方法还包括:所述移动终端的MCU向所述电源适配器发送握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;所述移动终端的MCU接收所述电源适配器发送的握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;所述移动终端的MCU根据所述电源适配器当前使用的软件的版本,以及下载到的所述软件升级信息指示的最新版本,确定所述电源适配器当前使用的软件是否需要升级;所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据,包括:当确定所述电源适配器当前使用的软件需要升级时,所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第一方面或其上述实现方式的任一种,在第一方面的另一种实现方式中,所述方法还包括:所述移动终端的AP通过第一链路,判断插入的供电设备是否为所述电源适配器,其中,所述第一链路连接所述AP的USB接口与所述充电接口;当判断插入的供电设备为电源适配器时,所述移动终端通过USB开关从所述第一链路切换至第二链路,所述第二链路连接所述移动终端的MCU与所述充电接口;所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据,包括:所述移动终端的MCU通过所述第二链路,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第一方面或其上述实现方式的任一种,在第一方面的另一种实现方 式中,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
结合第一方面或其上述实现方式的任一种,在第一方面的另一种实现方式中,所述在所述移动终端通过充电接口与所述电源适配器连接的过程中,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,包括:在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息;所述方法还包括:当所述电源适配器根据所述软件升级信息升级所述电源适配器的软件后,所述移动终端从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
结合第一方面或其上述实现方式的任一种,在第一方面的另一种实现方式中,所述充电接口为USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
第二方面,提供一种电源适配器的升级方法,包括:在所述电源适配器通过充电接口与移动终端连接的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;所述电源适配器的处理器根据所述软件升级信息,升级所述电源适配器的软件。
结合第二方面,在第二方面的一种实现方式中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息,包括:所述电源适配器通过所述处理器的UART接口接收所述移动终端发送的UART格式的数据,其中,所述UART格式的数据由所述移动终端基于所述软件升级信息转换而成。
结合第二方面或其上述实现方式的任一种,在第二方面的另一种实现方式中,所述电源适配器通过所述处理器的UART接口接收所述移动终端发送的UART格式的数据,包括:所述电源适配器通过所述处理器的UART接口接收所述移动终端的AP的GPIO口发送的所述UART格式的数据,其中,所述GPIO口用于模拟UART接口发送所述UART格式的数据。
结合第二方面或其上述实现方式的任一种,在第二方面的另一种实现方式中,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
结合第二方面或其上述实现方式的任一种,在第二方面的另一种实现方式中,所述方法还包括:所述电源适配器从所述移动终端接收握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;所述电源适配器向所述移动终端发送握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;所述电源适配器从所述移动终端接收所述电源适配器的软件升级信息,包括:当所述移动终端根据所述软件升级信息指示的最新版本确定所述电源适配器当前使用的软件需要升级时,所述电源适配器从所述移动终端接收所述电源适配器的软件升级信息。
结合第二方面或其上述实现方式的任一种,在第二方面的另一种实现方式中,所述在所述电源适配器通过充电接口与移动终端连接的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息,包括:在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;所述方法还包括:当所述电源适配器根据所述软件升级信息对所述电源适配器的软件升级后,所述电源适配器从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
结合第二方面或其上述实现方式的任一种,在第二方面的另一种实现方式中,所述充电接口为USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
第三方面,提供一种移动终端,包括:下载模块,用于下载所述电源适配器的软件升级信息,所述软件升级信息用于升级所述电源适配器的软件;第一发送模块,用于在所述移动终端通过充电接口与所述电源适配器连接的过程中,通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,以便所述处理器根据所述软件升级信息,升级所述电源适配器的软件。
结合第三方面,在第三方面的一种实现方式中,所述第一发送模块具体用于将所述软件升级信息转换成UART格式的数据;通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述第一发送模块具体用于通过所述移动终端的AP将下载到的所述软件升级信息转换成所述UART格式的数据;通过所述移动终端的AP利用GPIO口模拟UART接口,将所述UART格式的数据发送至所述移动终端的MCU;通过所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述移动终端还包括:第二发送模块,用于通过所述移动终端的MCU向所述电源适配器发送握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;接收模块,用于通过所述移动终端的MCU接收所述电源适配器发送的握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;确定模块,用于根据所述电源适配器当前使用的软件的版本,以及下载到的所述软件升级信息指示的最新版本,确定所述电源适配器当前使用的软件是否需要升级;所述第一发送模块具体用于当确定所述电源适配器当前使用的软件需要升级时,通过所述移动终端的MCU向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述移动终端还包括:判断模块,用于通过第一链路,判断插入的供电设备是否为所述电源适配器,其中,所述第一链路连接所述AP的USB接口与所述充电接口;链路转换模块,用于当判断插入的供电设备为电源适配器时,所述移动终端通过USB开关从所述第一链路切换至第二链路,所述第二链路连接所述移动终端的MCU与所述充电接口;所述第一发送模块具体用于通过所述第二链路,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述第一发送模块具体用于在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,通过所述充电接口中的数据线,向所述电源适配 器的处理器发送所述软件升级信息;所述移动终端还包括:切换模块,用于当所述电源适配器根据所述软件升级信息升级所述电源适配器的软件后,从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述充电接口为USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
第四方面,提供一种电源适配器,包括:第一接收模块,用于在所述电源适配器通过充电接口与移动终端连接的过程中,通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;升级模块,用于通过所述电源适配器的处理器,根据所述软件升级信息,升级所述电源适配器的软件。
结合第四方面,在第四方面的一种实现方式中,所述第一接收模块具体用于通过所述处理器的UART接口接收所述移动终端发送的UART格式的数据,其中,所述UART格式的数据由所述移动终端基于所述软件升级信息转换而成。
结合第四方面或其上述实现方式的任一种,在第四方面的另一种实现方式中,所述第一接收模块具体用于通过所述处理器的UART接口接收所述移动终端的AP的GPIO口发送的所述UART格式的数据,其中,所述GPIO口用于模拟UART接口发送所述UART格式的数据。
结合第四方面或其上述实现方式的任一种,在第四方面的另一种实现方式中,其特征在于,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
结合第四方面或其上述实现方式的任一种,在第四方面的另一种实现方式中,所述电源适配器还包括:第二接收模块,用于从所述移动终端接收握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;发送模块,用于向所述移动终端发送握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;所述第一接收模块具体用于当所述移动终端根据所述软件升级信息指示的最新版本确定所述电源适配器当前使用的软件需要升级时,从所述移动终端接收所述电源适配器的软件升级信息。
结合第四方面或其上述实现方式的任一种,在第四方面的另一种实现方式中,所述第一接收模块具体用于在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;所述电源适配器还包括:切换模块,用于当所述电源适配器根据所述软件升级信息对所述电源适配器的软件升级后,所述电源适配器从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
结合第四方面或其上述实现方式的任一种,在第四方面的另一种实现方式中,所述充电接口为USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
本发明实施例中,利用移动终端下载电源适配器的软件升级信息,并在移动终端和电源适配器连接的过程中,将最新的软件升级信息发送至电源适配器,对电源适配器进行升级,解决了电源适配器升级困难的问题。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例的电源适配器的升级方法的示意性流程图。
图2是本发明实施例的电源适配器的升级方法的示意性流程图。
图3是本发明实施例的手机与电源适配器的系统结构示意图。
图4是本发明实施例的手机AP与电源适配器之间的通信链路示意图。
图5是本发明实施例的手机MCU与电源适配器之间的通信链路示意图。
图6是本发明实施例的手机AP向电源适配器发送适配器固件的数据链路示意图。
图7是本发明实施例的电源适配器的升级方法的示意性流程图。
图8是本发明实施例的移动终端的示意性框图。
图9是本发明实施例的电源适配器的示意性框图。
图10是本发明实施例的移动终端的示意性框图。
图11是本发明实施例的电源适配器的示意性框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。
目前的电源适配器均不设置有射频模块,无法像移动终端一样,能够通过OTA(over the air)技术方便地下载升级信息,实现升级。为此,本发明实施例利用移动终端下载电源适配器的软件升级信息,并在移动终端和电源适配器连接的过程中,通过移动终端和电源适配器之间的充电接口将下载到的软件升级信息发送至电源适配器的处理器中,以便电源适配器的处理器利用该软件升级信息进行升级。下文结合具体的实施例,详细描述本发明实施例的电源适配器的升级方法。
图1是本发明实施例的电源适配器的升级方法的示意性流程图。图1的方法包括:
110、移动终端下载所述电源适配器的软件升级信息,所述软件升级信息用于升级所述电源适配器的软件。
应理解,本发明实施例对电源适配器的软件升级信息的具体形式不作限定,例如,该软件升级信息可以作为电源适配器内部的处理器的固件(firmware)。
应理解,移动终端可以是手机、pad等。
应理解,移动终端可以包括应用处理器(Application Processor,AP)和MCU(如基带处理器),其中,移动终端的AP可以负责智能终端相关的功能,如APP的下载与管理;移动终端的MCU可以负责一些基本功能,如短信、通话功能。所述软件升级信息可以是由所述移动终端中的AP通过射频模块从网络中下载到的信息。例如,AP通过蜂窝网或者WIFI等下载软件升级信息。
120、在所述移动终端通过充电接口与所述电源适配器连接的过程中,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,以便所述处理器根据所述软件升级信息,升级所述电源适配器的软件。
本发明实施例中,利用移动终端下载电源适配器的软件升级信息,并在移动终端和电源适配器连接的过程中,将最新的软件升级信息发送至电源适配器,对电源适配器进行升级,解决了电源适配器升级困难的问题。具体地,当电源适配器出现bug,或者适配器的软件进行了升级,就无需返厂维修,直接利用移动终端从网上下载新的软件升级信息即可。
应理解,上述充电接口可以为通用串行总线(Universal Serial Bus,USB)接口,该USB接口可以是正常的USB接口,也可以是micro USB接口。所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
还应理解,本发明实施例对电源适配器中的处理器的类型不作具体限定,例如,可以是某种型号的MCU。
目前,在快速充电领域中,电源适配器的处理器的主要接口,如I2C(Inter-Integrated Circuit)口,都被占用,这些接口具有各自需要完成的任务或实现的功能,一般情况下,电源适配器的处理器的通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)接口未被充分利用。那么,要完成电源适配器的升级,可以将上述软件升级信息转换成为UART格式的数据,然后由电源适配器的处理器的UART接口接收该UART格式的数据。本发明实施例对软件升级信息转换成为UART格式数据的具体方式不作限定,具体地,可以由移动终端将所述软件升级信息转换成UART格式的数据;然后,该移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。具体地,可以由移动终端的AP完成上述软件升级信息的转换,或者,可以由移动终端的MCU完成上述软件升级信息的转换。下面以移动终端的AP进行软件升级信息的转换为例,进行详细说明。
可选地,作为一个实施例,所述移动终端将所述软件升级信息转换成UART格式的数据可包括:所述移动终端的应用处理器AP将下载到的所述软件升级信息转换成所述UART格式的数据;所述移动终端的AP利用通用输入/输出(General Purpose Input Output,GPIO)口模拟UART接口,将所述UART格式的数据发送至所述移动终端的微处理单元MCU;所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
现有技术中,移动终端(如手机)的AP的专用接口不足,很多专用接 口都被占用,例如,AP中的UART接口已经被占用,主要实现抓端口log功能。移动终端的AP将软件升级信息转换成为UART格式的数据之后,如果使用AP的UART接口输出该UART格式的数据,则会造成功能的混乱。本发明实施中,利用AP的GPIO口来模拟UART接口,从而利用移动终端的AP实现了UART格式数据的转换与输出,利用GPIO模拟UART接口,解决了现有AP专用接口不足的问题。
应理解,GPIO口模拟UART接口的功能可以由AP通过延时控制数据和时钟的发送来实现。如每发送1btye数据,控制AP延迟一段时间,如此周期往复。
还应理解,在上述过程中,移动终端的MCU起到“传话”功能,即相当于导线,将AP从GPIO口发送出来的UART格式的数据经由移动终端的MCU传送至电源适配器端。这样可以利用现有技术中的移动终端的MCU和电源适配器的MCU之间的通路,无需建立新的通信链路。
可选地,作为一个实施例,图1的方法还可包括:所述移动终端的MCU向所述电源适配器发送握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;所述移动终端的MCU接收所述电源适配器发送的握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;所述移动终端的MCU根据所述电源适配器当前使用的软件的版本,以及下载到的所述软件升级信息指示的最新版本,确定所述电源适配器当前使用的软件是否需要升级;所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据,包括:当确定所述电源适配器当前使用的软件需要升级时,所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
应理解,上述握手过程也可以由移动终端的AP执行。
可选地,作为一个实施例,图1的方法还可包括:所述移动终端的AP通过第一链路,判断插入的供电设备是否为所述电源适配器,其中,所述第一链路连接所述AP的USB接口与所述充电接口;当判断插入的供电设备为电源适配器时,所述移动终端通过USB开关从所述第一链路切换至第二链路,所述第二链路连接所述移动终端的MCU与所述充电接口;所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的 UART接口发送所述UART格式的数据,包括:所述移动终端的MCU通过所述第二链路,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
应理解,步骤120中,移动终端可以在充电过程中向电源适配器发送软件升级信息,或者,移动终端可以在充电前或充电后将该软件升级信息发送至电源适配器处,本发明实施例对此不作具体限定。下面给出一种具体的实现方式。
可选地,作为一个实施例,步骤120可包括:在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息;图1的方法还可包括:当所述电源适配器根据所述软件升级信息升级所述电源适配器的软件后,所述移动终端从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
本发明实施例中,电源适配器先采用普通充电模式为移动终端进行,并在该普通充电的过程中,移动终端将软件升级信息发送至电源适配器处,当电源适配器完成升级之后,从普通充电模式切换至快速充电模式,这样能够保证电源适配器的及时升级,并保证电源适配器总是采用最新的软件功能为移动终端提供充电服务。
下面结合具体例子,更加详细地描述本发明实施例,在下面的例子中,移动终端为手机,手机包括AP和MCU,电源适配器(以下简称适配器)的处理器为MCU,适配器的软件升级信息为适配器MCU固件,手机通过OTA技术将适配器MCU固件下载到AP中。应注意,图2至图6的例子仅仅是为了帮助本领域技术人员理解本发明实施例,而非要将本发明实施例限于所例示的具体数值或具体场景。本领域技术人员根据所给出的图2至图6的例子,显然可以进行各种等价的修改或变化,这样的修改或变化也落入本发明实施例的范围内。
图2是本发明实施例的电源适配器的升级方法的示意性流程图。图2的方法包括:
201、手机插入供电设备。
202、手机AP判断该供电设备是否为适配器,如果供电设备不是适配器,转到步骤203,如果供电设备时适配器,转到步骤204。
手机包括AP和MCU,手机的AP和MCU均可以与适配器MCU进行通信。具体地,如图3所示,手机内部可以设置一个USB开关,在通道1和通道2之间进行切换,当该USB开关切换至通道1时,手机AP可以通过充电接口的D+/D-与适配器MCU进行通信;当该USB开关切换至通道2时,手机MCU可以通过充电接口的D+/D-与适配器MCU进行通信。USB开关可以默认打在通道1上,当插入供电设备时,手机AP可以识别其是否为适配器。手机AP识别适配器的通信链路如图4所示。
203、进入非适配器充电模式。
例如,供电设备时电脑,手机插到电脑上,可以利用电脑为手机供电。
204、将手机的USB开关从AP端切换到手机MCU端。
205、手机MCU与适配器MCU完成握手匹配,并询问适配器MCU固件版本号。
具体地,手机MCU与适配器的握手协商过程的通信链路可以如图5所示,此时,USB开关打在通道2上。
206、手机MCU将收到的适配器MCU固件版本号上报给AP。
207、AP判断是否要升级适配器MCU固件,当不需要对适配器MCU固件进行升级时,执行步骤208;当需要对适配器MCU固件进行升级时,执行步骤209。
208、直接进入快充。
209、AP通知手机MCU适配器的固件需要升级,AP将与手机MCU的GPIO口设置为模拟UART接口。
210、手机MCU在收到AP的需要升级适配器固件的答复后,上报适配器“需要对固件进行升级”,然后将手机MCU设置为导线模式。
上述导线模式可以理解为将手机MCU与AP通信的GPIO口与手机MCU与适配器通信的D+/D-口短接在一起。
具体地,参见图6,图6描述的是适配器固件升级时手机AP和适配器MCU之间的通信链路,相当于在AP与适配器MCU之间直接建立了串口连接。
211、适配器MCU在收到手机MCU通知的需要升级的信息后,进入下载模式,将适配器与手机MCU的D+/D-通信口设置为串口,并等待AP传输数据。
212、AP在延时一定时间后,开始向适配器MCU发送UART格式的数据。
可以预设延迟时间,当延迟时间达到时,AP可以认为手机MCU与适配器MCU都已准备好,开始向适配器MCU发送UART格式的数据。
213、AP发送完串口数据后,适配器MCU将获取到的数据回传给AP,由AP完成对数据的校验,判断是否升级成功,当判断升级成功时,执行步骤208;当判断升级失败时,执行步骤212。
上文中结合图1,从移动终端的角度详细描述了根据本发明实施例的电源适配器的升级方法,下面将结合图7,从电源适配器的角度描述根据本发明实施例的电源适配器的升级方法。
应理解,移动终端侧描述的电源适配器与移动终端的交互及相关特性、功能等与电源适配器侧的描述相应,为了简洁,适当省略重复的描述。
图7是本发明实施例的电源适配器的升级方法的示意性流程图。图7的方法包括:
710、在所述电源适配器通过充电接口与移动终端连接的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息。
720、所述电源适配器的处理器根据所述软件升级信息,升级所述电源适配器的软件。
本发明实施例中,利用移动终端下载电源适配器的软件升级信息,并在移动终端和电源适配器连接的过程中,将最新的软件升级信息发送至电源适配器,对电源适配器进行升级,解决了电源适配器升级困难的问题。
可选地,作为一个实施例,步骤710可包括:所述电源适配器通过所述处理器的UART接口接收所述移动终端发送的UART格式的数据,其中,所述UART格式的数据由所述移动终端基于所述软件升级信息转换而成。
可选地,作为一个实施例,所述电源适配器通过所述处理器的UART接口接收所述移动终端发送的UART格式的数据,包括:所述电源适配器通过所述处理器的UART接口接收所述移动终端的AP的GPIO口发送的所述UART格式的数据,其中,所述GPIO口用于模拟UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述软件升级信息是由所述移动终端中的 AP通过射频模块从网络中下载到的信息。
可选地,作为一个实施例,图7的方法还可包括:所述电源适配器从所述移动终端接收握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;所述电源适配器向所述移动终端发送握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;所述电源适配器从所述移动终端接收所述电源适配器的软件升级信息,包括:当所述移动终端根据所述软件升级信息指示的最新版本确定所述电源适配器当前使用的软件需要升级时,所述电源适配器从所述移动终端接收所述电源适配器的软件升级信息。
可选地,作为一个实施例,所述在所述电源适配器通过充电接口与移动终端连接的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息,包括:在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;所述方法还包括:当所述电源适配器根据所述软件升级信息对所述电源适配器的软件升级后,所述电源适配器从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
可选地,作为一个实施例,所述充电接口为通用串行总线USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
上文结合图1-图7,详细描述了根据本发明实施例的电源适配器的升级方法,下文结合图8-图11,详细描述根据本发明实施例的移动终端和电源适配器。应理解,图8-图11中的移动终端和电源适配器能够实现图1-图7中的由移动终端和电源适配器执行的各个步骤,为避免重复,此处不再详述。
图8是本发明实施例的移动终端的示意性框图。图8的移动终端800包括:
下载模块810,用于下载所述电源适配器的软件升级信息,所述软件升级信息用于升级所述电源适配器的软件;
第一发送模块820,用于在所述移动终端800通过充电接口与所述电源适配器连接的过程中,通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,以便所述处理器根据所述软件升级信息,升级所述电源适配器的软件。
本发明实施例中,利用移动终端下载电源适配器的软件升级信息,并在移动终端和电源适配器连接的过程中,将最新的软件升级信息发送至电源适配器,对电源适配器进行升级,解决了电源适配器升级困难的问题。
可选地,作为一个实施例,所述第一发送模块820可具体用于将所述软件升级信息转换成通用异步收发传输器UART格式的数据;通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述第一发送模块820可具体用于通过所述移动终端800的应用处理器AP将下载到的所述软件升级信息转换成所述UART格式的数据;通过所述移动终端800的AP利用通用输入/输出GPIO口模拟UART接口,将所述UART格式的数据发送至所述移动终端800的微处理单元MCU;通过所述移动终端800的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述移动终端800还可包括:第二发送模块,用于通过所述移动终端的MCU向所述电源适配器发送握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;接收模块,用于通过所述移动终端的MCU接收所述电源适配器发送的握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;确定模块,用于根据所述电源适配器当前使用的软件的版本,以及下载到的所述软件升级信息指示的最新版本,确定所述电源适配器当前使用的软件是否需要升级;所述第一发送模块820可具体用于当确定所述电源适配器当前使用的软件需要升级时,通过所述移动终端的MCU向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述移动终端800还可包括:判断模块,用于通过第一链路,判断插入的供电设备是否为所述电源适配器,其中,所述第一链路连接所述AP的USB接口与所述充电接口;链路转换模块,用于当判断插入的供电设备为电源适配器时,所述移动终端通过USB开关从所述第一链路切换至第二链路,所述第二链路连接所述移动终端的MCU与所述充电接口;所述第一发送模块820可具体用于通过所述第二链路,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
可选地,作为一个实施例,所述第一发送模块820可具体用于在所述电源适配器采用普通充电模式为所述移动终端800充电的过程中,通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息;所述移动终端800还可包括:切换模块,用于当所述电源适配器根据所述软件升级信息升级所述电源适配器的软件后,从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
可选地,作为一个实施例,所述充电接口可以为通用串行总线USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
图9是本发明实施例的电源适配器的示意性框图。图9的电源适配器900包括:
第一接收模块910,用于在所述电源适配器900通过充电接口与移动终端连接的过程中,通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器900的软件升级信息;
升级模块920,用于通过所述电源适配器900的处理器,根据所述软件升级信息,升级所述电源适配器900的软件。
本发明实施例中,利用移动终端下载电源适配器的软件升级信息,并在移动终端和电源适配器连接的过程中,将最新的软件升级信息发送至电源适配器,对电源适配器进行升级,解决了电源适配器升级困难的问题。
可选地,作为一个实施例,所述第一接收模块910可具体用于通过所述处理器的通用异步收发传输器UART接口接收所述移动终端发送的UART格式的数据,其中,所述UART格式的数据由所述移动终端基于所述软件升级信息转换而成。
可选地,作为一个实施例,所述第一接收模块910可具体用于通过所述处理器的UART接口接收所述移动终端的应用处理器AP的通用输入/输出GPIO口发送的所述UART格式的数据,其中,所述GPIO口用于模拟UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述软件升级信息可以是由所述移动终端中 的AP通过射频模块从网络中下载到的信息。
可选地,作为一个实施例,所述电源适配器900还可包括:第二接收模块,用于从所述移动终端接收握手请求消息,所述握手请求消息用于询问所述电源适配器900当前使用的软件的版本;发送模块,用于向所述移动终端发送握手响应消息,所述握手响应消息包括用于指示所述电源适配器900当前使用的软件的版本的信息;所述第一接收模块910可具体用于当所述移动终端根据所述软件升级信息指示的最新版本确定所述电源适配器900当前使用的软件需要升级时,从所述移动终端接收所述电源适配器900的软件升级信息。
可选地,作为一个实施例,所述第一接收模块910可具体用于在所述电源适配器900采用普通充电模式为所述移动终端充电的过程中,所述电源适配器900通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器900的软件升级信息;所述电源适配器900还可包括:切换模块,用于当所述电源适配器900根据所述软件升级信息对所述电源适配器900的软件升级后,所述电源适配器900从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
可选地,作为一个实施例,所述充电接口为通用串行总线USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
图10是本发明实施例的移动终端的示意性框图。图10的移动终端1000包括:
存储器1010,用于存储程序;
处理器1020,用于执行程序,当所述程序被执行时,所述处理器1020用于下载所述电源适配器的软件升级信息,所述软件升级信息用于升级所述电源适配器的软件;在所述移动终端1000通过充电接口与所述电源适配器连接的过程中,通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,以便所述处理器根据所述软件升级信息,升级所述电源适配器的软件。
本发明实施例中,利用移动终端下载电源适配器的软件升级信息,并在移动终端和电源适配器连接的过程中,将最新的软件升级信息发送至电源适配器,对电源适配器进行升级,解决了电源适配器升级困难的问题。
可选地,作为一个实施例,所述处理器1020可具体用于将所述软件升 级信息转换成通用异步收发传输器UART格式的数据;通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述处理器1020包括AP和MCU,所述AP可具体用于将下载到的所述软件升级信息转换成所述UART格式的数据;利用通用输入/输出GPIO口模拟UART接口,将所述UART格式的数据发送至所述移动终端1000的微处理单元MCU;所述MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述处理器1020可包括MCU,所述MCU向所述电源适配器发送握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;所述MCU接收所述电源适配器发送的握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;所述MCU根据所述电源适配器当前使用的软件的版本,以及下载到的所述软件升级信息指示的最新版本,确定所述电源适配器当前使用的软件是否需要升级;当确定所述电源适配器当前使用的软件需要升级时,所述MCU向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述处理器1020还可包括AP,所述AP通过第一链路,判断插入的供电设备是否为所述电源适配器,其中,所述第一链路连接所述AP的USB接口与所述充电接口;当判断插入的供电设备为电源适配器时,所述AP通过USB开关从所述第一链路切换至第二链路,所述第二链路连接所述移动终端的MCU与所述充电接口;所述MCU可具体用于通过所述第二链路,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
可选地,作为一个实施例,所述处理器1020可具体用于在所述电源适配器采用普通充电模式为所述移动终端1000充电的过程中,通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息;所述处理器1020还可用于当所述电源适配器根据所述软件升级信息升级所述电 源适配器的软件后,从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
可选地,作为一个实施例,所述充电接口可以为通用串行总线USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
图11是本发明实施例的电源适配器的示意性框图。图11的电源适配器1100包括:
存储器1110,用于存储程序;
处理器1120,用于执行程序,当所述程序被执行时,所述处理器1120具体用于在所述电源适配器1100通过充电接口与移动终端连接的过程中,通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器1100的软件升级信息;根据所述软件升级信息,升级所述电源适配器1100的软件。
本发明实施例中,利用移动终端下载电源适配器的软件升级信息,并在移动终端和电源适配器连接的过程中,将最新的软件升级信息发送至电源适配器,对电源适配器进行升级,解决了电源适配器升级困难的问题。
可选地,作为一个实施例,所述处理器1120可具体用于通过所述处理器1120的UART接口接收所述移动终端发送的UART格式的数据,其中,所述UART格式的数据由所述移动终端基于所述软件升级信息转换而成。
可选地,作为一个实施例,所述处理器1120可具体用于通过所述处理器1120的UART接口接收所述移动终端的AP的GPIO口发送的所述UART格式的数据,其中,所述GPIO口用于模拟UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述软件升级信息可以是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
可选地,作为一个实施例,所述处理器1120还可用于从所述移动终端接收握手请求消息,所述握手请求消息用于询问所述电源适配器1100当前使用的软件的版本;向所述移动终端发送握手响应消息,所述握手响应消息包括用于指示所述电源适配器1100当前使用的软件的版本的信息;当所述移动终端根据所述软件升级信息指示的最新版本确定所述电源适配器1100当前使用的软件需要升级时,从所述移动终端接收所述电源适配器1100的 软件升级信息。
可选地,作为一个实施例,所述处理器1120可具体用于在所述电源适配器1100采用普通充电模式为所述移动终端充电的过程中,所述电源适配器1100通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器1100的软件升级信息;所述处理器1120还可用于当所述电源适配器1100根据所述软件升级信息对所述电源适配器1100的软件升级后,所述电源适配器1100从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
可选地,作为一个实施例,所述充电接口为通用串行总线USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单 元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。

Claims (30)

  1. 一种电源适配器的升级方法,其特征在于,包括:
    移动终端下载所述电源适配器的软件升级信息,所述软件升级信息用于升级所述电源适配器的软件;
    在所述移动终端通过充电接口与所述电源适配器连接的过程中,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,以便所述处理器根据所述软件升级信息,升级所述电源适配器的软件。
  2. 如权利要求1所述的方法,其特征在于,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,包括:
    所述移动终端将所述软件升级信息转换成通用异步收发传输器UART格式的数据;
    所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
  3. 如权利要求1或2所述的方法,其特征在于,所述移动终端将所述软件升级信息转换成UART格式的数据,包括:
    所述移动终端的应用处理器AP将下载到的所述软件升级信息转换成所述UART格式的数据;
    所述移动终端的AP利用通用输入/输出GPIO口模拟UART接口,将所述UART格式的数据发送至所述移动终端的微处理单元MCU;
    所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
  4. 如权利要求3所述的方法,其特征在于,所述方法还包括:
    所述移动终端的MCU向所述电源适配器发送握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;
    所述移动终端的MCU接收所述电源适配器发送的握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;
    所述移动终端的MCU根据所述电源适配器当前使用的软件的版本,以及下载到的所述软件升级信息指示的最新版本,确定所述电源适配器当前使用的软件是否需要升级;
    所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据,包括:
    当确定所述电源适配器当前使用的软件需要升级时,所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
  5. 如权利要求4所述的方法,其特征在于,所述方法还包括:
    所述移动终端的AP通过第一链路,判断插入的供电设备是否为所述电源适配器,其中,所述第一链路连接所述AP的USB接口与所述充电接口;
    当判断插入的供电设备为电源适配器时,所述移动终端通过USB开关从所述第一链路切换至第二链路,所述第二链路连接所述移动终端的MCU与所述充电接口;
    所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据,包括:
    所述移动终端的MCU通过所述第二链路,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
  6. 如权利要求1-5中任一项所述的方法,其特征在于,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
  7. 如权利要求1-6中任一项所述的方法,其特征在于,所述在所述移动终端通过充电接口与所述电源适配器连接的过程中,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,包括:
    在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息;
    所述方法还包括:
    当所述电源适配器根据所述软件升级信息升级所述电源适配器的软件后,所述移动终端从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
  8. 如权利要求1-7中任一项所述的方法,其特征在于,所述充电接口为通用串行总线USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
  9. 一种电源适配器的升级方法,其特征在于,包括:
    在所述电源适配器通过充电接口与移动终端连接的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;
    所述电源适配器的处理器根据所述软件升级信息,升级所述电源适配器的软件。
  10. 如权利要求9所述的方法,其特征在于,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息,包括:
    所述电源适配器通过所述处理器的通用异步收发传输器UART接口接收所述移动终端发送的UART格式的数据,其中,所述UART格式的数据由所述移动终端基于所述软件升级信息转换而成。
  11. 如权利要求9或10所述的方法,其特征在于,所述电源适配器通过所述处理器的UART接口接收所述移动终端发送的UART格式的数据,包括:
    所述电源适配器通过所述处理器的UART接口接收所述移动终端的应用处理器AP的通用输入/输出GPIO口发送的所述UART格式的数据,其中,所述GPIO口用于模拟UART接口发送所述UART格式的数据。
  12. 如权利要求9-11中任一项所述的方法,其特征在于,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
  13. 如权利要求9-12中任一项所述的方法,其特征在于,所述方法还包括:
    所述电源适配器从所述移动终端接收握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;
    所述电源适配器向所述移动终端发送握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;
    所述电源适配器从所述移动终端接收所述电源适配器的软件升级信息,包括:
    当所述移动终端根据所述软件升级信息指示的最新版本确定所述电源适配器当前使用的软件需要升级时,所述电源适配器从所述移动终端接收所述电源适配器的软件升级信息。
  14. 如权利要求9-13中任一项所述的方法,其特征在于,所述在所述电源适配器通过充电接口与移动终端连接的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息,包括:
    在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;
    所述方法还包括:
    当所述电源适配器根据所述软件升级信息对所述电源适配器的软件升级后,所述电源适配器从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
  15. 如权利要求9-14中任一项所述的方法,其特征在于,所述充电接口为通用串行总线USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
  16. 一种移动终端,其特征在于,包括:
    下载模块,用于下载所述电源适配器的软件升级信息,所述软件升级信息用于升级所述电源适配器的软件;
    第一发送模块,用于在所述移动终端通过充电接口与所述电源适配器连接的过程中,通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,以便所述处理器根据所述软件升级信息,升级所述电源适配器的软件。
  17. 如权利要求16所述的移动终端,其特征在于,所述第一发送模块具体用于将所述软件升级信息转换成通用异步收发传输器UART格式的数据;通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
  18. 如权利要求16或17所述的移动终端,其特征在于,所述第一发送模块具体用于通过所述移动终端的应用处理器AP将下载到的所述软件升级信息转换成所述UART格式的数据;通过所述移动终端的AP利用通用输入/输出GPIO口模拟UART接口,将所述UART格式的数据发送至所述移动终端的微处理单元MCU;通过所述移动终端的MCU通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式 的数据。
  19. 如权利要求18所述的移动终端,其特征在于,所述移动终端还包括:
    第二发送模块,用于通过所述移动终端的MCU向所述电源适配器发送握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;
    接收模块,用于通过所述移动终端的MCU接收所述电源适配器发送的握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;
    确定模块,用于根据所述电源适配器当前使用的软件的版本,以及下载到的所述软件升级信息指示的最新版本,确定所述电源适配器当前使用的软件是否需要升级;
    所述第一发送模块具体用于当确定所述电源适配器当前使用的软件需要升级时,通过所述移动终端的MCU向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
  20. 如权利要求19所述的移动终端,其特征在于,所述移动终端还包括:
    判断模块,用于通过第一链路,判断插入的供电设备是否为所述电源适配器,其中,所述第一链路连接所述AP的USB接口与所述充电接口;
    链路转换模块,用于当判断插入的供电设备为电源适配器时,所述移动终端通过USB开关从所述第一链路切换至第二链路,所述第二链路连接所述移动终端的MCU与所述充电接口;
    所述第一发送模块具体用于通过所述第二链路,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
  21. 如权利要求16-20中任一项所述的移动终端,其特征在于,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
  22. 如权利要求16-21中任一项所述的移动终端,其特征在于,所述第一发送模块具体用于在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息;所述移动终端还包括:
    切换模块,用于当所述电源适配器根据所述软件升级信息升级所述电源 适配器的软件后,从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
  23. 如权利要求16-22中任一项所述的移动终端,其特征在于,所述充电接口为通用串行总线USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
  24. 一种电源适配器,其特征在于,包括:
    第一接收模块,用于在所述电源适配器通过充电接口与移动终端连接的过程中,通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;
    升级模块,用于通过所述电源适配器的处理器,根据所述软件升级信息,升级所述电源适配器的软件。
  25. 如权利要求24所述的电源适配器,其特征在于,所述第一接收模块具体用于通过所述处理器的通用异步收发传输器UART接口接收所述移动终端发送的UART格式的数据,其中,所述UART格式的数据由所述移动终端基于所述软件升级信息转换而成。
  26. 如权利要求24或25所述的电源适配器,其特征在于,所述第一接收模块具体用于通过所述处理器的UART接口接收所述移动终端的应用处理器AP的通用输入/输出GPIO口发送的所述UART格式的数据,其中,所述GPIO口用于模拟UART接口发送所述UART格式的数据。
  27. 如权利要求24-26中任一项所述的电源适配器,其特征在于,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
  28. 如权利要求24-27中任一项所述的电源适配器,其特征在于,所述电源适配器还包括:
    第二接收模块,用于从所述移动终端接收握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;
    发送模块,用于向所述移动终端发送握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;
    所述第一接收模块具体用于当所述移动终端根据所述软件升级信息指示的最新版本确定所述电源适配器当前使用的软件需要升级时,从所述移动终端接收所述电源适配器的软件升级信息。
  29. 如权利要求24-28中任一项所述的电源适配器,其特征在于,所述第一接收模块具体用于在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;
    所述电源适配器还包括:
    切换模块,用于当所述电源适配器根据所述软件升级信息对所述电源适配器的软件升级后,所述电源适配器从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
  30. 如权利要求24-29中任一项所述的电源适配器,其特征在于,所述充电接口为通用串行总线USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
PCT/CN2015/090617 2015-09-24 2015-09-24 移动终端、电源适配器及其升级方法 WO2017049548A1 (zh)

Priority Applications (8)

Application Number Priority Date Filing Date Title
DK15891032.3T DK3171484T3 (da) 2015-09-24 2015-09-24 Mobilterminal, adapter til strømtilførsel og fremgangsmåde til opgradering deraf
US15/310,105 US10474452B2 (en) 2015-09-24 2015-09-24 Firmware upgrade through GPIO port via UART protocol
CN201580004316.0A CN107148715B (zh) 2015-09-24 2015-09-24 移动终端、电源适配器及其升级方法
PT15891032T PT3171484T (pt) 2015-09-24 2015-09-24 Terminal móvel, adaptador de corrente, e método de actualização respectivo
EP15891032.3A EP3171484B1 (en) 2015-09-24 2015-09-24 Mobile terminal, power supply adapter, and upgrading method thereof
EP19157625.5A EP3518383A1 (en) 2015-09-24 2015-09-24 Mobile terminal, power adapter, and upgrading method thereof
ES15891032T ES2730761T3 (es) 2015-09-24 2015-09-24 Terminal móvil, adaptador de suministro de alimentación y método de actualización de los mismos
PCT/CN2015/090617 WO2017049548A1 (zh) 2015-09-24 2015-09-24 移动终端、电源适配器及其升级方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/090617 WO2017049548A1 (zh) 2015-09-24 2015-09-24 移动终端、电源适配器及其升级方法

Publications (1)

Publication Number Publication Date
WO2017049548A1 true WO2017049548A1 (zh) 2017-03-30

Family

ID=58385643

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/090617 WO2017049548A1 (zh) 2015-09-24 2015-09-24 移动终端、电源适配器及其升级方法

Country Status (7)

Country Link
US (1) US10474452B2 (zh)
EP (2) EP3518383A1 (zh)
CN (1) CN107148715B (zh)
DK (1) DK3171484T3 (zh)
ES (1) ES2730761T3 (zh)
PT (1) PT3171484T (zh)
WO (1) WO2017049548A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019105466A1 (zh) * 2017-11-30 2019-06-06 南京德朔实业有限公司 可远程升级的便携式电源及远程升级方法
CN111381853A (zh) * 2020-03-16 2020-07-07 Oppo广东移动通信有限公司 适配器升级方法和装置、电子设备及计算机可读存储介质
CN111459516A (zh) * 2020-03-12 2020-07-28 深圳乐动机器人有限公司 一种固件升级的方法及充电基座

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3220506B1 (en) * 2014-11-11 2020-02-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Communication method, power adaptor and terminal
CN107391205B (zh) * 2017-07-28 2021-09-21 京东方科技集团股份有限公司 有线数字电视网络转换设备及基于其的系统升级方法
CN110489137B (zh) * 2018-05-15 2024-04-09 恩智浦美国有限公司 用于更新无线充电器中的固件的系统和方法
CN109617158A (zh) * 2018-12-07 2019-04-12 顺丰科技有限公司 一种智能电池充电方法及智能充电器
US11048479B2 (en) * 2019-03-28 2021-06-29 Sap Se Software conversion simulation mode
CN110543319A (zh) * 2019-09-05 2019-12-06 广州极飞科技有限公司 一种充电器固件升级方法及相关装置
CN111800767B (zh) * 2020-06-15 2024-04-05 易兆微电子(杭州)股份有限公司 一种基于bnep蓝牙实现终端产品ota升级的系统及其方法
WO2022086555A1 (en) * 2020-10-23 2022-04-28 Hewlett-Packard Development Company, L.P. Firmware upgrade using multi-unit charging stations
CN113659663A (zh) * 2021-07-28 2021-11-16 安克创新科技股份有限公司 充电装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5689825A (en) * 1995-07-28 1997-11-18 Motorola, Inc. Method and apparatus for downloading updated software to portable wireless communication units
CN1652626A (zh) * 2004-02-03 2005-08-10 日本电气株式会社 移动电话机
US20050253554A1 (en) * 2004-05-14 2005-11-17 Interdigital Technology Corporation Apparatus for backing up data stored in a portable device
CN201868931U (zh) * 2010-12-06 2011-06-15 景嘉有限公司 一种具有蓝牙及Wi-Fi的连接的无线充电器
US20140081940A1 (en) * 2012-09-20 2014-03-20 Delta-Q Technologies Corp. System and Method for Data Transfer with a Battery Charger

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3474850B2 (ja) 2000-01-12 2003-12-08 松下電器産業株式会社 電池電源装置
JP2006065857A (ja) * 2004-08-24 2006-03-09 Lg Electronics Inc 移動通信端末機のプログラム強制ダウンロード方法及び装置
JP2010044500A (ja) * 2008-08-11 2010-02-25 Kenwood Corp ソフトウェアダウンロード機能を備えた充電器
JP5305975B2 (ja) * 2009-02-20 2013-10-02 三洋電機株式会社 電池パックのアップデート方法
WO2011022887A1 (zh) * 2009-08-27 2011-03-03 华为终端有限公司 一种实现终端远程访问通用串行总线设备的方法和装置
US8886849B2 (en) * 2012-05-11 2014-11-11 Apple Inc. Multi-mode adapter
CN101980159B (zh) * 2010-10-18 2013-10-30 中颖电子股份有限公司 U盘固件的更新装置及更新方法
US8890469B2 (en) * 2010-11-17 2014-11-18 Texas Instruments Incorporated Devices and methods for detecting USB devices attached to a USB charging port
KR101254875B1 (ko) * 2011-05-18 2013-04-15 삼성에스디아이 주식회사 배터리 팩 관리시스템
US20150221414A1 (en) * 2012-06-27 2015-08-06 Google Inc. Power adapter for a computing device
US9021159B2 (en) * 2012-09-07 2015-04-28 Apple Inc. Connector adapter
CN103683977A (zh) 2012-09-18 2014-03-26 联想(北京)有限公司 电源适配器
CN102931709B (zh) 2012-11-21 2015-04-29 福建钧石能源有限公司 一种电源适配器的工作方法
CN103136101A (zh) 2012-12-31 2013-06-05 博彦科技(上海)有限公司 软件自动化测试统一运营平台
US9257893B2 (en) * 2013-07-29 2016-02-09 City University Of Hong Kong USB power supply
US9667074B2 (en) * 2014-03-28 2017-05-30 Symbol Technologies, Llc Apparatus and method for updating remote standalone firmware
CN104239097B (zh) 2014-09-03 2018-01-16 广东欧珀移动通信有限公司 一种通过移动终端升级配件的方法、系统及移动终端
WO2016048329A1 (en) * 2014-09-25 2016-03-31 Micro Motion, Inc. Stack timing adjustment for serial communications
US9722864B2 (en) * 2015-06-26 2017-08-01 Intel Corporation Systems, methods, and apparatus to configure embedded devices
EP3171269B1 (en) * 2015-09-24 2022-04-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data transmission method and mobile terminal
WO2017088138A1 (zh) * 2015-11-26 2017-06-01 广东欧珀移动通信有限公司 移动终端的充电装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5689825A (en) * 1995-07-28 1997-11-18 Motorola, Inc. Method and apparatus for downloading updated software to portable wireless communication units
CN1652626A (zh) * 2004-02-03 2005-08-10 日本电气株式会社 移动电话机
US20050253554A1 (en) * 2004-05-14 2005-11-17 Interdigital Technology Corporation Apparatus for backing up data stored in a portable device
CN201868931U (zh) * 2010-12-06 2011-06-15 景嘉有限公司 一种具有蓝牙及Wi-Fi的连接的无线充电器
US20140081940A1 (en) * 2012-09-20 2014-03-20 Delta-Q Technologies Corp. System and Method for Data Transfer with a Battery Charger

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019105466A1 (zh) * 2017-11-30 2019-06-06 南京德朔实业有限公司 可远程升级的便携式电源及远程升级方法
CN111459516A (zh) * 2020-03-12 2020-07-28 深圳乐动机器人有限公司 一种固件升级的方法及充电基座
CN111381853A (zh) * 2020-03-16 2020-07-07 Oppo广东移动通信有限公司 适配器升级方法和装置、电子设备及计算机可读存储介质
CN111381853B (zh) * 2020-03-16 2024-01-30 Oppo广东移动通信有限公司 适配器升级方法和装置、电子设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN107148715A (zh) 2017-09-08
EP3518383A1 (en) 2019-07-31
PT3171484T (pt) 2019-06-19
US10474452B2 (en) 2019-11-12
EP3171484A4 (en) 2017-12-27
EP3171484A1 (en) 2017-05-24
ES2730761T3 (es) 2019-11-12
CN107148715B (zh) 2019-10-22
DK3171484T3 (da) 2019-05-27
US20170293483A1 (en) 2017-10-12
EP3171484B1 (en) 2019-04-17

Similar Documents

Publication Publication Date Title
WO2017049548A1 (zh) 移动终端、电源适配器及其升级方法
WO2017049553A1 (zh) 移动终端、电源适配器及其升级方法
CN108695998B (zh) 数据传输方法、装置、存储介质及电子设备
CN110489137B (zh) 用于更新无线充电器中的固件的系统和方法
TWI601016B (zh) 轉接器升級的方法、轉接器、轉換器以及轉接器升級的系統
EP3367582A1 (en) Data processing method, charging device and mobile terminal
WO2017049549A1 (zh) 移动终端、电源适配器及其升级方法
WO2016179817A1 (zh) 快速充电方法、电源适配器和移动终端
US20170117735A1 (en) Charging Control Method and Mobile Terminal
WO2022161004A1 (zh) 一种uart通信的波特率切换方法、装置及发起方终端
CN108475241B (zh) 一种基于spi的数据传输方法及装置
WO2017049556A1 (zh) 数据传输方法和移动终端
EP2515601B1 (en) Dial-up connection method and device of mobile data terminal
JP6124167B2 (ja) データ端末、データ送信システム、およびホットスワップ制御方法
CN211296223U (zh) 电源适配装置
CN104618653A (zh) 一种新型蓝牙自拍控制装置
CN101998691A (zh) 一种数据传输的方法、系统和装置
CN204408488U (zh) 一种新型蓝牙自拍控制装置
CN102082795A (zh) 数据处理方法、服务器和终端

Legal Events

Date Code Title Description
REEP Request for entry into the european phase

Ref document number: 2015891032

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2015891032

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 15310105

Country of ref document: US

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

Ref document number: 15891032

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE