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

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

Info

Publication number
WO2017049553A1
WO2017049553A1 PCT/CN2015/090622 CN2015090622W WO2017049553A1 WO 2017049553 A1 WO2017049553 A1 WO 2017049553A1 CN 2015090622 W CN2015090622 W CN 2015090622W WO 2017049553 A1 WO2017049553 A1 WO 2017049553A1
Authority
WO
WIPO (PCT)
Prior art keywords
power adapter
mobile terminal
software
upgrade information
interface
Prior art date
Application number
PCT/CN2015/090622
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 CN201580013183.3A priority Critical patent/CN106415490B/zh
Priority to PCT/CN2015/090622 priority patent/WO2017049553A1/zh
Priority to US15/312,648 priority patent/US10412207B2/en
Priority to EP20179359.3A priority patent/EP3726925B1/en
Priority to EP15892060.3A priority patent/EP3258737B1/en
Priority to CN202010083891.7A priority patent/CN111209026B/zh
Publication of WO2017049553A1 publication Critical patent/WO2017049553A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • 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
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40045Details regarding the feeding of energy to the node from the bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/38Universal adapter
    • G06F2213/3852Converter between protocols
    • 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 data of an integrated circuit interconnection I2C format; the AP of the mobile terminal transmits the I2C format data to the micro processing unit MCU of the mobile terminal by using an I2C interface; The MCU of the mobile terminal converts the data in the I2C format into data in the UART format, and sends 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 software upgrade information is information that is downloaded by an AP in the mobile terminal from a network by using a radio frequency module.
  • 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 UART interface of the processor of the power adapter transmits the data in the UART format.
  • 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 Switching to a second link, the second link connecting the MCU of the mobile terminal to the charging interface; the MCU of the mobile terminal transmitting the UART format to a UART interface of a processor of the power adapter
  • the data includes: the MCU of the mobile terminal sends the UART interface of the processor of the power adapter through the second link The data in the UART format.
  • 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 method includes: receiving, by the power adapter, data in the UART format sent by an MCU of the mobile terminal by using a UART interface of the processor, where data of the UART format is obtained by an MCU of the mobile terminal
  • the software upgrade information of the integrated circuit interconnection I2C format received by the AP of the mobile terminal is converted.
  • 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 be used by the application processor AP of the mobile terminal Converting the software upgrade information into data of the integrated circuit interconnection I2C format; transmitting, by the AP of the mobile terminal, the data of the I2C format to the micro processing unit MCU of the mobile terminal by using the I2C interface;
  • the MCU converts the data in the I2C format into data in the UART format, and 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 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 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 pass the USB switch when determining that the inserted power supply device is a power adapter.
  • the first link is switched to the second link, and the second link is connected to the MCU of the mobile terminal and the charging interface; the first sending module is specifically configured to use the second link to The UART interface of the processor of the power adapter transmits 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 first sending module is specifically configured to: charge the mobile terminal by using the normal charging mode in the power adapter Transmitting, by the data line in the charging interface, the software upgrade information to a processor of the power adapter; the mobile terminal further includes: a switching module, configured to: when the power adapter is configured according to the software After the upgrade information upgrades the software of the power 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 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, by using a UART interface of the processor, an MCU of the mobile terminal. Transmitting the data in the UART format, wherein the data in the UART format is converted by software upgrade information of an integrated circuit interconnection I2C format received from an AP of the mobile terminal by an MCU of the mobile terminal .
  • 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 software currently used by the power adapter 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; the first receiving module is specifically configured to serve 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 mobile terminal receives the software upgrade information of the power adapter from the mobile terminal.
  • 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 through a cellular network or WIFI. Level information.
  • 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 mobile terminal converts the software upgrade information into data in a UART format, including: converting, by the AP of the mobile terminal, the downloaded software upgrade information into data in an I2C format;
  • the AP of the mobile terminal utilizes an I2C interface to connect the I2C Formatting data is sent to the MCU of the mobile terminal;
  • the MCU of the mobile terminal converts the data in the I2C format into data in the UART format, and the data line in the charging interface is sent to the power adapter
  • the UART interface of the processor transmits the data in the UART format.
  • the MCU of the mobile terminal converts the software upgrade information of the I2C format into the UART format.
  • the data, sent to the power adapter addresses a defect in the power adapter's dedicated interface.
  • a communication link is established between the MCU of the mobile terminal and the processor of the adapter, and therefore, the software upgrade information transmitted by the mobile terminal MCU to the power adapter can follow the existing communication link.
  • the conversion of the above format by the MCU of the mobile terminal can share the burden of the AP.
  • 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 the 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; the processor of the mobile terminal to the processor of the power adapter Transmitting, by the UART interface, the data in the UART format, when the software currently used by the power adapter needs to be upgraded, the MCU of the mobile terminal sends the UART format to a UART interface of a processor of the power adapter data.
  • 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 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 switches from the first link to the second link through a USB switch, and the second link is connected to the mobile terminal And transmitting, by the MCU of the mobile terminal, the data of the UART format to the UART interface of the processor of the power adapter, including: the MCU of the mobile terminal passes the second link, The UART interface of the processor of the power adapter transmits the data in the UART format.
  • the mobile terminal may send software upgrade information to the power adapter during charging, or the mobile terminal may send the software upgrade information before or after charging.
  • the embodiment of the present invention does not specifically limit this. 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 a 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 when 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.
  • USB switch It can be played on channel 1 by default.
  • the mobile phone AP can identify 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 an upgrade is required.
  • 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”.
  • FIG. 6 illustrates a communication link between the mobile phone AP, the mobile phone MCU, and the adapter MCU when the adapter firmware is upgraded, which is equivalent to directly establishing a UART serial connection between the MCU 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 the AP delays for a certain period of time, it starts sending I2C format data to the adapter MCU, and the mobile MCU converts the I2C format data into UART format data, and transmits the UART format data to the adapter through the USB interface.
  • 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 Data in the UART format sent by the MCU of the mobile terminal, wherein the data in the UART format is software upgrade information of an integrated circuit interconnection I2C format received from an AP of the mobile terminal by an MCU of the mobile terminal Converted.
  • 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 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 Software upgrade information,
  • the method 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 software upgrade information of the power adapter from the mobile terminal.
  • 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 UART Formatted data.
  • 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 an I2C format;
  • the AP of the mobile terminal 800 transmits the I2C format data to the micro processing unit MCU of the mobile terminal 800 by using an I2C interface; and converts the I2C format data into the UART format by the MCU of the mobile terminal 800. And transmitting, by the data line in the charging interface, 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 switch from the first link to the second link by using a USB switch when determining that the inserted power supply device is a power adapter, The second link is connected to the MCU of the mobile terminal and the charging interface; the first sending module 820 is specifically configured to send, by using the second link, the UART to a UART interface of a processor of the power adapter. Formatted data.
  • 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 switch from the first link to the second link by using a USB switch when determining that the inserted power supply device is a power adapter,
  • the second link is connected to the M
  • 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. Transmitting the software upgrade information to a processor of the power adapter; the mobile terminal 800 may further include: a switching module, configured to: when the power adapter is according to the software After the upgrade information upgrades the software of the power 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. 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 information that is downloaded by the AP in the mobile terminal from the network by using a radio frequency 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 Can be used specifically when the movement
  • the terminal determines, according to the latest version indicated by the software upgrade information, that the software currently used by the power adapter 900 needs to be upgraded, and receives software upgrade information of the power adapter 900 from the mobile terminal.
  • 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 convert the software upgrade information into data in a universal asynchronous transceiver UART format; to the power source through a data line in the charging interface.
  • the UART interface of the adapter's processor transmits the data in the UART format.
  • 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 an I2C format; using a general-purpose I2C interface, Data in the I2C format is sent to the MCU of the mobile terminal 1000; The MCU converts the data in the I2C format into data in the UART format, and 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 AP may be specifically configured to convert the downloaded software upgrade information into data in an I2C format
  • a general-purpose I2C interface Data in the I2C format is sent to the MCU of the mobile terminal 1000
  • the MCU converts the data in the I2C format into data in the UART format, and 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 processor 1020 includes an MCU, and 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.
  • 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 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, switching from the first link to the second link through a USB switch, the second link connecting the mobile An MCU of the terminal and the charging interface; the MCU sends the data in the UART format to a UART interface of a processor of the power adapter through the second link.
  • the AP determines, 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; when it is determined that the inserted power supply device is a power adapter, switching from the first link to the second link through a USB switch, the second link connecting the mobile An MCU of the terminal and the charging interface; the MCU sends the data in the UART format to a UART interface
  • 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 switch from the normal charging mode to the fast after the power adapter upgrades the software of the power adapter according to the software upgrade information.
  • a 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 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.
  • Figure 11 is a schematic block diagram of a power adapter of an embodiment of the present invention.
  • Figure 11 power adapter 1100 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, the data in the UART format sent by an MCU of the mobile terminal, where the UART format is The data is converted by the MCU of the mobile terminal from the software upgrade information of the integrated circuit interconnection I2C format received by the AP of the mobile terminal.
  • 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
  • the software upgrade information of the power adapter 1100 is received from the mobile terminal.
  • 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 supply is suitable The adapter 1100 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.
  • 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 unit.
  • 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 Several instructions are used to make a computer device (which can be a personal computer, a server, Or a network device or the like) performing all or part of the steps of the method of the 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将下载到的所述软件升级信息转换成集成电路互连I2C格式的数据;所述移动终端的AP利用I2C接口,将所述I2C格式的数据发送至所述移动终端的微处理单元MCU;所述移动终端的MCU将所述I2C格式的数据转换成所述UART格式的数据,通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第一方面或其上述实现方式的任一种,在第一方面的另一种实现方式中,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
结合第一方面或其上述实现方式的任一种,在第一方面的另一种实现方式中,所述方法还包括:所述移动终端的MCU向所述电源适配器发送握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;所述移动终端的MCU接收所述电源适配器发送的握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;所述移动终端的MCU根据所述电源适配器当前使用的软件的版本,以及下载到的所述软件升级信息指示的最新版本,确定所述电源适配器当前使用的软件是否需要升级;所述移动终端的MCU向所述电源适配器的处理器的UART接口发送所述UART格式的数据,包括:当确定所述电源适配器当前使用的软件需要升级时,所述移动终端的MCU向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第一方面或其上述实现方式的任一种,在第一方面的另一种实现方式中,所述方法还包括:所述移动终端的AP通过第一链路,判断插入的供电设备是否为所述电源适配器,其中,所述第一链路连接所述AP的USB接口与所述充电接口;当判断插入的供电设备为电源适配器时,所述移动终端通过USB开关从所述第一链路切换至第二链路,所述第二链路连接所述移动终端的MCU与所述充电接口;所述移动终端的MCU向所述电源适配器的处理器的UART接口发送所述UART格式的数据,包括:所述移动终端的MCU通过所述第二链路,向所述电源适配器的处理器的UART接口发送 所述UART格式的数据。
结合第一方面或其上述实现方式的任一种,在第一方面的另一种实现方式中,所述在所述移动终端通过充电接口与所述电源适配器连接的过程中,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,包括:在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,所述移动终端通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息;所述方法还包括:当所述电源适配器根据所述软件升级信息升级所述电源适配器的软件后,所述移动终端从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
结合第一方面或其上述实现方式的任一种,在第一方面的另一种实现方式中,所述充电接口为USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
第二方面,提供一种电源适配器的升级方法,包括:在所述电源适配器通过充电接口与移动终端连接的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;所述电源适配器的处理器根据所述软件升级信息,升级所述电源适配器的软件。
结合第二方面,在第二方面的一种实现方式中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息,包括:所述电源适配器通过所述处理器的UART接口接收所述移动终端发送的UART格式的数据,其中,所述UART格式的数据由所述移动终端基于所述软件升级信息转换而成。
结合第二方面或其上述实现方式的任一种,在第二方面的另一种实现方式中,所述电源适配器通过所述处理器的UART接口接收所述移动终端发送的UART格式的数据,包括:所述电源适配器通过所述处理器的UART接口接收所述移动终端的MCU发送的所述UART格式的数据,其中,所述UART格式的数据是通过所述移动终端的MCU将从所述移动终端的AP接收到的集成电路互连I2C格式的软件升级信息转换而成的。
结合第二方面或其上述实现方式的任一种,在第二方面的另一种实现方式中,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
结合第二方面或其上述实现方式的任一种,在第二方面的另一种实现方式中,所述方法还包括:所述电源适配器从所述移动终端接收握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;所述电源适配器向所述移动终端发送握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;所述电源适配器从所述移动终端接收所述电源适配器的软件升级信息,包括:当所述移动终端根据所述软件升级信息指示的最新版本确定所述电源适配器当前使用的软件需要升级时,所述电源适配器从所述移动终端接收所述电源适配器的软件升级信息。
结合第二方面或其上述实现方式的任一种,在第二方面的另一种实现方式中,所述在所述电源适配器通过充电接口与移动终端连接的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息,包括:在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;所述方法还包括:当所述电源适配器根据所述软件升级信息对所述电源适配器的软件升级后,所述电源适配器从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
结合第二方面或其上述实现方式的任一种,在第二方面的另一种实现方式中,所述充电接口为USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
第三方面,提供一种移动终端,包括:下载模块,用于下载所述电源适配器的软件升级信息,所述软件升级信息用于升级所述电源适配器的软件;第一发送模块,用于在所述移动终端通过充电接口与所述电源适配器连接的过程中,通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息,以便所述处理器根据所述软件升级信息,升级所述电源适配器的软件。
结合第三方面,在第三方面的一种实现方式中,所述第一发送模块具体用于将所述软件升级信息转换成UART格式的数据;通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述第一发送模块具体用于通过所述移动终端的应用处理器AP将下载到的所述软件升级信息转换成集成电路互连I2C格式的数据;通过所述移动终端的AP利用I2C接口,将所述I2C格式的数据发送至所述移动终端的微处理单元MCU;通过所述移动终端的MCU将所述I2C格式的数据转换成所述UART格式的数据,通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述移动终端还包括:第二发送模块,用于通过所述移动终端的MCU向所述电源适配器发送握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;接收模块,用于通过所述移动终端的MCU接收所述电源适配器发送的握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;确定模块,用于根据所述电源适配器当前使用的软件的版本,以及下载到的所述软件升级信息指示的最新版本,确定所述电源适配器当前使用的软件是否需要升级;所述第一发送模块具体用于当确定所述电源适配器当前使用的软件需要升级时,通过所述移动终端的MCU向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述移动终端还包括:判断模块,用于通过第一链路,判断插入的供电设备是否为所述电源适配器,其中,所述第一链路连接所述AP的USB接口与所述充电接口;链路转换模块,用于当判断插入的供电设备为电源适配器时,通过USB开关从所述第一链路切换至第二链路,所述第二链路连接所述移动终端的MCU与所述充电接口;所述第一发送模块具体用于通过所述第二链路,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中 下载到的信息。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述第一发送模块具体用于在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,通过所述充电接口中的数据线,向所述电源适配器的处理器发送所述软件升级信息;所述移动终端还包括:切换模块,用于当所述电源适配器根据所述软件升级信息升级所述电源适配器的软件后,从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
结合第三方面或其上述实现方式的任一种,在第三方面的另一种实现方式中,所述充电接口为USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
第四方面,提供一种电源适配器,包括:第一接收模块,用于在所述电源适配器通过充电接口与移动终端连接的过程中,通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;升级模块,用于通过所述电源适配器的处理器,根据所述软件升级信息,升级所述电源适配器的软件。
结合第四方面,在第四方面的一种实现方式中,所述第一接收模块具体用于通过所述处理器的UART接口接收所述移动终端发送的UART格式的数据,其中,所述UART格式的数据由所述移动终端基于所述软件升级信息转换而成。
结合第四方面或其上述实现方式的任一种,在第四方面的另一种实现方式中,所述第一接收模块具体用于通过所述处理器的UART接口接收所述移动终端的MCU发送的所述UART格式的数据,其中,所述UART格式的数据是通过所述移动终端的MCU将从所述移动终端的AP接收到的集成电路互连I2C格式的软件升级信息转换而成的。
结合第四方面或其上述实现方式的任一种,在第四方面的另一种实现方式中,其特征在于,所述软件升级信息是由所述移动终端中的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将下载到的所述软件升级信息转换成I2C格式的数据;所述移动终端的AP利用I2C接口,将所述I2C 格式的数据发送至所述移动终端的MCU;所述移动终端的MCU将所述I2C格式的数据转换成所述UART格式的数据,通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
本发明实施例中,当移动终端的AP将下载到的软件升级信息通过处理器间的I2C口发送至移动终端的MCU之后,由移动终端的MCU将I2C格式的软件升级信息转换成UART格式的数据,发送至电源适配器,解决了电源适配器专用接口不足的缺陷。此外,现有技术中,移动终端的MCU与适配器的处理器之间建立有通信链路,因此,由移动终端MCU将软件升级信息发送至电源适配器可以沿用现有的通信链路。此外,由移动终端的MCU完成上述格式的转换可以分担AP的负担。
可选地,作为一个实施例,图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适配器的固件需要升级。
210、手机MCU在收到AP的需要升级适配器固件的答复后,上报适配器“需要对固件进行升级”。
具体地,参见图6,图6描述的是适配器固件升级时手机AP、手机MCU、适配器MCU之间的通信链路,相当于在MCU与适配器MCU之间直接建立了UART串口连接。
211、适配器MCU在收到手机MCU通知的需要升级的信息后,进入下载模式,将适配器与手机MCU的D+/D-通信口设置为串口,并等待AP传输数据。
212、AP在延时一定时间后,开始向适配器MCU发送I2C格式的数据,手机MCU将I2C格式的数据转换成UART格式的数据,并将该UART格式的数据通过USB接口传到适配器中。
可以预设延迟时间,当延迟时间达到时,AP可以认为手机MCU与适配器MCU都已准备好,开始向适配器MCU发送UART格式的数据。
213、AP发送完I2C数据后,适配器MCU将获取到的数据回传给AP,由AP完成对数据的校验,判断是否升级成功,当判断升级成功时,执行步骤208;当判断升级失败时,执行步骤212。
上文中结合图1,从移动终端的角度详细描述了根据本发明实施例的电源适配器的升级方法,下面将结合图7,从电源适配器的角度描述根据本发明实施例的电源适配器的升级方法。
应理解,移动终端侧描述的电源适配器与移动终端的交互及相关特性、功能等与电源适配器侧的描述相应,为了简洁,适当省略重复的描述。
图7是本发明实施例的电源适配器的升级方法的示意性流程图。图7的方法包括:
710、在所述电源适配器通过充电接口与移动终端连接的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息。
720、所述电源适配器的处理器根据所述软件升级信息,升级所述电源适配器的软件。
本发明实施例中,利用移动终端下载电源适配器的软件升级信息,并在移动终端和电源适配器连接的过程中,将最新的软件升级信息发送至电源适配器,对电源适配器进行升级,解决了电源适配器升级困难的问题。
可选地,作为一个实施例,步骤710可包括:所述电源适配器通过所述处理器的UART接口接收所述移动终端发送的UART格式的数据,其中,所述UART格式的数据由所述移动终端基于所述软件升级信息转换而成。
可选地,作为一个实施例,所述电源适配器通过所述处理器的UART接口接收所述移动终端发送的UART格式的数据,包括:所述电源适配器通过所述处理器的UART接口接收所述移动终端的MCU发送的所述UART格式的数据,其中,所述UART格式的数据是通过所述移动终端的MCU将从所述移动终端的AP接收到的集成电路互连I2C格式的软件升级信息转换而成的。
可选地,作为一个实施例,所述软件升级信息是由所述移动终端中的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将下载到的所述软件升级信息转换成I2C格式的数据;通过所述移动终端800的AP利用I2C接口,将所述I2C格式的数据发送至所述移动终端800的微处理单元MCU;通过所述移动终端800的MCU将所述I2C格式的数据转换成所述UART格式的数据,通过所述充电接口中的数据线,向所述电源适配器的处理器的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可具体用于将下载到的所述软件升级信息转换成I2C格式的数据;利用通用I2C接口,将所述I2C格式的数据发送至所述移动终端1000的MCU;所述 MCU将所述I2C格式的数据转换成所述UART格式的数据,通过所述充电接口中的数据线,向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述处理器1020包括MCU,所述MCU向所述电源适配器发送握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;所述MCU接收所述电源适配器发送的握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;所述MCU根据所述电源适配器当前使用的软件的版本,以及下载到的所述软件升级信息指示的最新版本,确定所述电源适配器当前使用的软件是否需要升级;当确定所述电源适配器当前使用的软件需要升级时,所述MCU向所述电源适配器的处理器的UART接口发送所述UART格式的数据。
可选地,作为一个实施例,所述处理器1020还可包括AP,所述AP通过通过第一链路,判断插入的供电设备是否为所述电源适配器,其中,所述第一链路连接所述AP的USB接口与所述充电接口;当判断插入的供电设备为电源适配器时,通过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接口接收所述移动终端的MCU发送的所述UART格式的数据,其中,所述UART格式的数据是通过所述移动终端的MCU将从所述移动终端的AP接收到的集成电路互连I2C格式的软件升级信息转换而成的。
可选地,作为一个实施例,所述软件升级信息可以是由所述移动终端中的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将下载到的所述软件升级信息转换成集成电路互连I2C格式的数据;
    所述移动终端的AP利用I2C接口,将所述I2C格式的数据发送至所述移动终端的微处理单元MCU;
    所述移动终端的MCU将所述I2C格式的数据转换成所述UART格式的数据,通过所述充电接口中的数据线,向所述电源适配器的处理器的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接口接收所述移动终端的MCU发送的所述UART格式的数据,其中,所述UART格式的数据是通过所述移动终端的MCU将从所述移动终端的AP接收到的集成电路互连I2C格式的软件升级信息转换而成的。
  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将下载到的所述软件升级信息转换成集成电路互连I2C格式的数据;通过所述移动终端的AP利用I2C接口,将所述I2C格式的数据发送至所述移动终端的微处理单元MCU;通过所述移动终端的MCU将所述I2C格式的数据转换成所述UART格式的数 据,通过所述充电接口中的数据线,向所述电源适配器的处理器的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接口接收所述移动终端的MCU发送的所述UART格式的数据,其中,所述UART格式的数据是通过所述移动终端的MCU将从所述移动终端的AP接收到的集成电路互连I2C格式的软件升级信息转换而成的。
  27. 如权利要求24-26中任一项所述的电源适配器,其特征在于,所述软件升级信息是由所述移动终端中的AP通过射频模块从网络中下载到的信息。
  28. 如权利要求24-27中任一项所述的电源适配器,其特征在于,所述电源适配器还包括:
    第二接收模块,用于从所述移动终端接收握手请求消息,所述握手请求消息用于询问所述电源适配器当前使用的软件的版本;
    发送模块,用于向所述移动终端发送握手响应消息,所述握手响应消息包括用于指示所述电源适配器当前使用的软件的版本的信息;
    所述第一接收模块具体用于当所述移动终端根据所述软件升级信息指 示的最新版本确定所述电源适配器当前使用的软件需要升级时,从所述移动终端接收所述电源适配器的软件升级信息。
  29. 如权利要求24-28中任一项所述的电源适配器,其特征在于,所述第一接收模块具体用于在所述电源适配器采用普通充电模式为所述移动终端充电的过程中,所述电源适配器通过所述充电接口中的数据线,从所述移动终端接收所述电源适配器的软件升级信息;
    所述电源适配器还包括:
    切换模块,用于当所述电源适配器根据所述软件升级信息对所述电源适配器的软件升级后,所述电源适配器从所述普通充电模式切换至快速充电模式,其中,所述快速充电模式的充电速度大于所述普通充电模式的充电速度。
  30. 如权利要求24-29中任一项所述的电源适配器,其特征在于,所述充电接口为通用串行总线USB接口,所述充电接口中的数据线为所述USB接口中的D+线和D-线中的至少一根。
PCT/CN2015/090622 2015-09-24 2015-09-24 移动终端、电源适配器及其升级方法 WO2017049553A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
CN201580013183.3A CN106415490B (zh) 2015-09-24 2015-09-24 移动终端、电源适配器及其升级方法
PCT/CN2015/090622 WO2017049553A1 (zh) 2015-09-24 2015-09-24 移动终端、电源适配器及其升级方法
US15/312,648 US10412207B2 (en) 2015-09-24 2015-09-24 Mobile terminal, power adapter, and upgrade method thereof
EP20179359.3A EP3726925B1 (en) 2015-09-24 2015-09-24 Mobile terminal, power adapter, and upgrade method thereof
EP15892060.3A EP3258737B1 (en) 2015-09-24 2015-09-24 Mobile terminal, power supply adapter, and upgrading method thereof
CN202010083891.7A CN111209026B (zh) 2015-09-24 2015-09-24 移动终端、电源适配器及其升级方法

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=58008273

Family Applications (1)

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

Country Status (4)

Country Link
US (1) US10412207B2 (zh)
EP (2) EP3726925B1 (zh)
CN (2) CN111209026B (zh)
WO (1) WO2017049553A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106415973B (zh) * 2014-11-11 2020-08-28 Oppo广东移动通信有限公司 通信方法、电源适配器和终端
EP3726925B1 (en) * 2015-09-24 2022-03-30 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Mobile terminal, power adapter, and upgrade method thereof
US9912799B2 (en) * 2016-01-10 2018-03-06 Apple Inc. Switching between watches or other accessories
US10083146B2 (en) * 2016-11-22 2018-09-25 Hewlett Packard Enterprise Development Lp Shared USB ports
CN106849263B (zh) * 2017-03-23 2023-06-09 深圳市乐迪高科技有限公司 一种供电设备、供电系统、供电方法
CN109861351A (zh) * 2017-11-30 2019-06-07 南京德朔实业有限公司 适配器及便携式电源系统
CN110504717B (zh) * 2018-05-17 2023-04-25 海信视像科技股份有限公司 一种虚拟现实独立一体机
CN109495644A (zh) * 2018-11-02 2019-03-19 青岛云世纪信息科技有限公司 一种基于大文件传输的设备终端wifi升级方法
CN110457055B (zh) * 2019-07-29 2023-06-09 珠海一微半导体股份有限公司 一种面向快充协议的固件升级控制方法、系统及控制终端
CN110543319A (zh) * 2019-09-05 2019-12-06 广州极飞科技有限公司 一种充电器固件升级方法及相关装置
CN112181460B (zh) * 2020-09-27 2024-01-16 深圳市豪恩声学股份有限公司 程序固件升级方法、装置、电子设备及存储介质
CN113676496B (zh) * 2021-10-21 2022-04-08 江铃汽车股份有限公司 数据传递方法、系统、可读存储介质及计算机设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1175112A1 (en) * 2000-07-17 2002-01-23 Lucent Technologies Inc. Loading software into a mobile device
CN102185942A (zh) * 2011-04-28 2011-09-14 杭州芯赛微电子有限公司 一种手机充电备份器专用微处理器芯片
CN204424942U (zh) * 2015-01-08 2015-06-24 深圳市华夏双赢通信有限公司 移动设备充电装置
CN104753130A (zh) * 2015-01-08 2015-07-01 深圳市华夏双赢通信有限公司 移动设备充电装置及其软件安装方法

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3474850B2 (ja) * 2000-01-12 2003-12-08 松下電器産業株式会社 電池電源装置
CN2620413Y (zh) * 2003-05-21 2004-06-09 无敌科技(西安)有限公司 一种具有充电器功能的便携式电子装置
US7612527B2 (en) * 2006-11-27 2009-11-03 Eveready Battery Co., Inc. Communicative and virtual battery chargers and methods
US8545039B2 (en) * 2007-04-20 2013-10-01 Bharat Patel Lamp base with upgradeable recharging port and method
US20090240852A1 (en) * 2008-03-20 2009-09-24 Aten International Co., Ltd. Uart/usb converting apparatus
CN101937414B (zh) * 2010-08-26 2013-05-15 惠州Tcl移动通信有限公司 Uart和usb共用微型usb接口的方法及装置
US9092623B2 (en) * 2011-11-09 2015-07-28 Kaprica Security, Inc. System and method for bidirectional trust between downloaded applications and mobile devices including a secure charger and malware scanner
US9021159B2 (en) * 2012-09-07 2015-04-28 Apple Inc. Connector adapter
CN103683977A (zh) 2012-09-18 2014-03-26 联想(北京)有限公司 电源适配器
WO2014043812A1 (en) * 2012-09-20 2014-03-27 Delta-Q Technologies Corp. System and method for data transfer with a battery charger
CN102931709B (zh) 2012-11-21 2015-04-29 福建钧石能源有限公司 一种电源适配器的工作方法
CN104796011A (zh) * 2014-01-21 2015-07-22 中兴通讯股份有限公司 一种充电方法、交流电适配器、充电管理装置及终端
US9431831B1 (en) * 2014-07-25 2016-08-30 Google Inc. Updating firmware for charging device
CN104239097B (zh) 2014-09-03 2018-01-16 广东欧珀移动通信有限公司 一种通过移动终端升级配件的方法、系统及移动终端
EP3726925B1 (en) * 2015-09-24 2022-03-30 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Mobile terminal, power adapter, and upgrade method thereof
US10318270B2 (en) 2015-09-24 2019-06-11 Guangdong Oppo Mobile Telecommunications Corp, Ltd. Method for upgrading firmware of adapter, apparatus, and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1175112A1 (en) * 2000-07-17 2002-01-23 Lucent Technologies Inc. Loading software into a mobile device
CN102185942A (zh) * 2011-04-28 2011-09-14 杭州芯赛微电子有限公司 一种手机充电备份器专用微处理器芯片
CN204424942U (zh) * 2015-01-08 2015-06-24 深圳市华夏双赢通信有限公司 移动设备充电装置
CN104753130A (zh) * 2015-01-08 2015-07-01 深圳市华夏双赢通信有限公司 移动设备充电装置及其软件安装方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3258737A4 *

Also Published As

Publication number Publication date
CN106415490B (zh) 2020-03-13
CN106415490A (zh) 2017-02-15
EP3726925B1 (en) 2022-03-30
CN111209026B (zh) 2023-07-04
EP3726925A1 (en) 2020-10-21
EP3258737A1 (en) 2017-12-20
US20170289334A1 (en) 2017-10-05
CN111209026A (zh) 2020-05-29
US10412207B2 (en) 2019-09-10
EP3258737B1 (en) 2020-08-05
EP3258737A4 (en) 2018-02-21

Similar Documents

Publication Publication Date Title
WO2017049553A1 (zh) 移动终端、电源适配器及其升级方法
WO2017049548A1 (zh) 移动终端、电源适配器及其升级方法
CN108695921B (zh) 数据备份方法、无线充电装置、移动终端及存储介质
WO2017049549A1 (zh) 移动终端、电源适配器及其升级方法
WO2016179817A1 (zh) 快速充电方法、电源适配器和移动终端
WO2017049550A1 (zh) 适配器和适配器升级的方法
CN110457055B (zh) 一种面向快充协议的固件升级控制方法、系统及控制终端
CN108475241B (zh) 一种基于spi的数据传输方法及装置
WO2017049556A1 (zh) 数据传输方法和移动终端
EP2515601B1 (en) Dial-up connection method and device of mobile data terminal
JP6124167B2 (ja) データ端末、データ送信システム、およびホットスワップ制御方法
CN211296223U (zh) 电源适配装置
CN101998691A (zh) 一种数据传输的方法、系统和装置
CN108009110B (zh) 设备识别方法及装置
CN104618653A (zh) 一种新型蓝牙自拍控制装置
CN111338671A (zh) 一种移动终端的硬件升级装置、移动终端和硬件升级方法
CN204044751U (zh) 输入系统
WO2017132864A1 (zh) 一种vr设备usb主从切换方法以及系统
CN115955728A (zh) 蓝牙自动配对方法、装置及计算机设备
CN102082795A (zh) 数据处理方法、服务器和终端

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 15312648

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2015892060

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2015892060

Country of ref document: EP

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

Ref document number: 15892060

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE