WO2017049551A1 - 终端设备和控制充电的方法 - Google Patents

终端设备和控制充电的方法 Download PDF

Info

Publication number
WO2017049551A1
WO2017049551A1 PCT/CN2015/090620 CN2015090620W WO2017049551A1 WO 2017049551 A1 WO2017049551 A1 WO 2017049551A1 CN 2015090620 W CN2015090620 W CN 2015090620W WO 2017049551 A1 WO2017049551 A1 WO 2017049551A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
firmware
terminal device
communication interface
adapter
Prior art date
Application number
PCT/CN2015/090620
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 CN201580016869.8A priority Critical patent/CN108352581B/zh
Priority to PCT/CN2015/090620 priority patent/WO2017049551A1/zh
Priority to EP15898475.7A priority patent/EP3176865B1/en
Priority to US15/325,724 priority patent/US10403938B2/en
Publication of WO2017049551A1 publication Critical patent/WO2017049551A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/446Initial charging measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Definitions

  • the present invention relates to the field of charging technology and, more particularly, to a terminal device and a method of controlling charging.
  • a charging technology based on terminal device control for example, a fast charging technology
  • a terminal device can communicate with an adapter to transmit related parameters for controlling charging (for example, temperature or power of the battery, etc.)
  • related parameters for controlling charging for example, temperature or power of the battery, etc.
  • the action and processing of the terminal device depend on the control instructions recorded by the processor in the terminal device for the stored firmware, and the firmware is at the terminal device or the processor
  • the generated manufacturing process is stored in the processor by the generator. Therefore, in the fast technology, the terminal device can only perform the charging process such as the above communication with the adapter that can be controlled by the stored firmware, which seriously affects the above-mentioned terminal-based device.
  • the practicality and versatility of the controlled charging technology are examples of the
  • the present invention provides a terminal device and a method of controlling charging that can improve the practicability and versatility of a charging method based on control of a terminal device.
  • the first aspect provides a terminal device, including: a first processor, having a first communication interface, where the first processor is configured to receive a second process by using the first communication interface when the first communication interface is enabled
  • the first communication interface is in an open state; the second processor is configured to acquire firmware from the server, and transmit the firmware to the first processor through the first communication interface when the first communication interface is turned on.
  • the first communication interface is in a closed state when firmware is stored in the first processor.
  • the first processor further has a second communication interface that is kept in an open state, and the first processor is further configured to receive, by the second communication interface, trigger information, according to the trigger information, when the first communication interface is in a closed state. Opening the first communication interface, and receiving, by the first communication interface, a firmware update file for the stored firmware transmitted by the second processor, and updating the stored firmware according to the firmware update file; the second processing The device is further configured to obtain a firmware update file for the firmware stored by the first processor from the server, and transmit the firmware update file to the first processor through the first communication interface when the first communication interface is turned on.
  • the first trigger information is specifically sent by the second processor.
  • the first trigger information is specifically sent by the second processor after acquiring the firmware update file.
  • the first trigger information is specifically sent by the adapter.
  • the first processor is further configured to send, by using the first communications interface, version indication information, the version, to the second processor
  • the indication information is used to indicate a version of the firmware stored by the first processor; the second processor is further configured to determine to transmit the firmware update file to the first processor according to the version indication information.
  • the first processor is specifically configured to: after determining that the terminal device is connected to the adapter for the first time after the last reboot, The first communication interface sends the version indication information to the second processor.
  • the adapter is configured to perform fast charging on the terminal device.
  • the second processor is further configured to disable the first processing before determining that the adapter is configured to perform fast charging on the terminal device Communication between the device and the adapter.
  • a method for controlling charging for use in a terminal device including at least two processors, the method comprising: a second processor of the at least two processors, acquiring firmware from a server, and And when the first communication interface in the first processor of the at least two processors is turned on, transmitting the firmware to the first processor through the first communication interface, where not stored in the first processor In the firmware, the first communication interface is in an open state; when the terminal device is connected to the adapter, the first processor reads a control command recorded in the firmware to control the adapter pair The terminal device is charged.
  • the first communication interface is in a closed state when firmware is stored in the first processor.
  • the first processor further has a second communication interface that is kept in an open state
  • the method further includes: the second processor further Obtaining, from the server, a firmware update file for firmware stored by the first processor; when the first communication interface is in a closed state, the first processor receives trigger information through the second communication interface; the first processor Transmitting, according to the trigger information, the first communication interface; the first processor receiving, by the first communication interface, a firmware update file for the stored firmware transmitted by the second processor; the first processor according to the firmware update file , update the stored firmware.
  • the first trigger information is specifically sent by the second processor.
  • the first trigger information is specifically sent by the second processor after acquiring the firmware update file.
  • the first trigger information is specifically sent by the adapter.
  • the method further includes: the first processor sending the version indication information to the second processor by using the first communications interface, The version indication information is used to indicate a version of the firmware stored by the first processor; the second processor transmits a firmware update file to the first processor according to the version indication information.
  • the method further The method includes: the first processor determines that the current connection state of the terminal device is: the terminal device is connected to the adapter for the first time after the last reboot.
  • the adapter is configured to perform fast charging on the terminal device.
  • the method further includes: the second processor prohibiting the second device before determining that the adapter is used for fast charging the terminal device Communication between a processor and the adapter.
  • the first communication interface is set in the first processor of the terminal, and the first communication interface is not stored in the first processor
  • the second processor can transmit the firmware acquired from the server to the first processor through the first communication interface, and further, the second processor can Reading the control instruction recorded in the firmware to control the adapter to charge the terminal device, and acquiring firmware corresponding to the adapter from the server according to the connected adapter, thereby improving terminal device-based control
  • the practicality and versatility of the charging method is provided in the first processor of the terminal, and the first communication interface is not stored in the first processor
  • the second processor can transmit the firmware acquired from the server to the first processor through the first communication interface, and further, the second processor can Reading the control instruction recorded in the firmware to control the adapter to charge the terminal device, and acquiring firmware corresponding to the adapter from the server according to the connected adapter, thereby improving terminal device-based control The practicality and versatility of the charging method.
  • FIG. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a connection manner between a terminal device and an adapter according to an embodiment of the invention.
  • FIG. 3 is a schematic diagram of a connection manner of a terminal device and an adapter according to another embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of a method of controlling charging according to an embodiment of the invention.
  • FIG. 5 is a schematic flow chart of a method of controlling charging according to another embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a terminal device 100 according to an embodiment of the present invention. As shown in FIG. 1, the terminal device 100 includes:
  • the first processor 110 has a first communication interface 115, and the first processor 110 is configured to receive the firmware transmitted by the second processor 120 through the first communication interface 115 when the first communication interface 115 is turned on, and When the terminal device 100 is connected to the adapter, the control command recorded in the firmware is read, and communicates with the adapter to control the adapter to charge the terminal device 100, wherein the first processor 110 does not store In the firmware, the first communication interface 115 is in an open state;
  • the second processor 120 is configured to acquire firmware from the server, and transmit the firmware to the first processor 110 through the first communication interface 115 when the first communication interface 115 is turned on.
  • a communication connection can be formed such that the first processor 110 can communicate data (eg, temperature, voltage, or amount of power of the battery of the terminal device) or instructions with the adapter (eg, an instruction indicating a current or voltage output by the adapter) And so on, thereby controlling the charging of the terminal device 100 by the adapter.
  • data e.g, temperature, voltage, or amount of power of the battery of the terminal device
  • instructions e.g, an instruction indicating a current or voltage output by the adapter
  • the method and process for the first processor 110 to control the charging of the terminal device 100 by the adapter may be similar to the prior art.
  • detailed description thereof is omitted.
  • the communication connection between the terminal device 100 and the adapter may be constituted by the channel 2, the switch and the channel 3 shown in FIG. 2 or FIG. 3, wherein the switch may be used to make the channel
  • the connection state of 3 is switched to be connected to channel 1 (i.e., the channel used by second processor 120) or to channel 2 (i.e., the channel used by first processor 110).
  • the implementation method of the communication connection between the terminal device 100 and the adapter shown in FIG. 2 or FIG. 3 is merely an exemplary description, and the present invention is not limited thereto. Others can implement the terminal device 100 and the adapter.
  • the manner of communication connection falls within the protection scope of the present invention.
  • the switch 3 may be omitted, and the channel 3 may be connected to the channel 1 and the channel 2 at the same time.
  • the first processor 110 may implement a method and a process for controlling charging of the terminal device 100 by the adapter by executing a control instruction recorded in the firmware, and, in the embodiment of the present invention, the firmware
  • the generation method and process can be similar to the prior art, and a detailed description thereof will be omitted herein. The method and process of acquiring and updating the firmware by the first processor 110 are then described in detail.
  • the first processor 110 may be a micro control unit (MCU), a micro control unit, or a single chip microcomputer (Single Chip Microcomputer) or a single chip microcomputer, which is a central processing unit ( Central Process Unit; CPU) frequency and specifications are properly reduced, and memory (memory), counter (Timer), USB and other peripheral interfaces are integrated on a single chip to form a chip-level computer for different applications Different combinations of controls.
  • MCU micro control unit
  • CPU Central Process Unit
  • memory memory
  • timer timer
  • USB USB and other peripheral interfaces
  • the second processor 120 may control the terminal device (for example, a transceiver of the terminal device, etc.) to obtain firmware from a server for providing the firmware by using, for example, wireless communication or wired communication.
  • the terminal device for example, a transceiver of the terminal device, etc.
  • the identity of the server may be pre-stored in the terminal device 100 (eg, In the memory of the terminal device 100 connected to the second processor 120, the second processor 120 can transmit request information for requesting the server to send firmware to the terminal device according to the identifier of the server.
  • the request information may further include related information of the terminal device 100 (for example, a mobile phone number of the terminal device 100, etc.), so that the server is in accordance with the terminal device.
  • the related information of 100 is authenticated and verified by the terminal device 100, and after being verified, the firmware is delivered to the terminal device 100.
  • the request information may carry related information of the terminal device 100 (for example, a brand, a model, a manufacturer, or the like of the terminal device 100), so that the server may determine the related information according to the terminal device 100.
  • the firmware corresponding to the adapter to which the terminal device 100 may be connected Thereby, the practicability and reliability of the present invention can be further improved.
  • the adapter is used to quickly charge the terminal device.
  • the second processor 120 can communicate with the adapter through, for example, the channel 1 and the channel 3 shown in FIG. 2, thereby determining
  • the type of the adapter for example, is an adapter for quickly charging the terminal device 100.
  • the method and the process of determining the type of the adapter by the second processor 120 may be similar to the prior art. Here, in order to avoid redundancy, detailed description thereof is omitted.
  • fast charging means that the adapter can charge the terminal device with a larger current or voltage than the normal charging mode.
  • the second processor is further configured to prohibit communication between the first processor and the adapter before determining that the adapter is used to quickly charge the terminal device.
  • the second processor 120 may determine the type of the external device.
  • the type of the external device Ordinary adapter (ie, charging of the terminal device 100 is not Control of the first processor 110), a fast charger or other terminal device (eg, a computer device).
  • the first processor 110 may be allowed to communicate with the external device, for example, the first process
  • the switch 110 can control the switch shown in FIG. 2 to allow the channel 2 to communicate with the channel 3.
  • the first processor 110 may be prohibited from communicating with the external device, for example, the first The processor 110 can control the switch shown in Figure 2 to make the channel 2 non-communicating with the channel 3.
  • the second processor 120 is further configured to determine information about an adapter connected to the terminal device 100, and obtain firmware related to the adapter according to related information of the adapter.
  • the second processor 120 may also acquire related information of the adapter (for example, the brand, model, manufacturer, etc. of the adapter).
  • the information related to the adapter may be sent by the adapter to the second processor 120, or the related information of the adapter may be input to the second processor 120 by the user through an input device of the terminal device, etc., and the present invention does not Specially limited.
  • the second processor 120 may further send related information of the adapter (for example, carrying the request message to the same message) to the server, so that the server may determine, according to the adapter related information, that the adapter can be implemented. Controlled firmware. Thereby, the practicability and reliability of the present invention can be further improved.
  • the process of acquiring the firmware in the second processor 120 may be automatically completed after being powered on, or may be completed according to an instruction input by the user, may be performed periodically, or may be triggered by a server, and the invention is not particularly limited. .
  • the first communication interface 115 is disposed in the first processor 110, and the first communication interface 115 can be used to transfer firmware between the first processor 110 and the second processor 120. Also, for example, when the terminal device 100 is shipped from the factory, the firmware upgrade fails, or is formatted to restore the factory configuration, the firmware is not stored in the first processor 110.
  • the first communication interface 115 when the firmware is not stored in the first processor 110, the first communication interface 115 is in an on state.
  • the second processor 120 can transmit the acquired firmware to the second processor 120 through the first communication interface 115.
  • the first communication interface 115 may transmit other data or information in addition to the firmware or firmware update file (hereinafter, the "firmware update file" is described in detail), and the present invention is not particularly limited. .
  • the first communication interface 115 may be an Inter-Integrated Circuit (I2C) interface
  • I2C Inter-Integrated Circuit
  • the I2C is an interface of a two-wire serial bus for connecting the processor and its peripheral devices. It is a bus standard widely used in the field of microelectronic communication control. It is a special form of synchronous communication, which has the advantages of less interface lines, simple control mode, small device package form and high communication rate.
  • the first communication interface is set in the first processor of the terminal, and the first communication interface is in an open state when the firmware is not stored in the first processor, and thus, the first
  • the second processor can transmit the firmware acquired from the server to the first processor through the first communication interface, and further, the second processor can read the control command recorded in the firmware.
  • the first processor 110 may store the firmware after acquiring the firmware.
  • the “storing” means that the first processor 110 may The firmware is stored in a storage medium built in the first processor 110, or the first processor 110 may also store the firmware in a memory in the terminal device 100 communicatively coupled to the first processor 110.
  • the invention is not particularly limited.
  • the first communication interface is in a closed state.
  • the first communication interface 115 when the firmware is stored in the first processor 110, the first communication interface 115 is in a closed state, thereby avoiding repeated transmission of the firmware, saving energy consumption of the terminal device, and reducing The burden of the first processor 110 and the second processor 120.
  • the present invention also provides a method of upgrading firmware stored in the first processor 110. which is:
  • the first processor further has a second communication interface that is kept in an open state, where the first processor is further configured to receive trigger information by using the second communication interface when the first communication interface is in a closed state, And opening the first communication interface according to the trigger information, and receiving, by the first communication interface, a firmware update file for the stored firmware transmitted by the second processor, and updating the stored firmware according to the firmware update file. ;
  • the second processor is further configured to acquire a firmware update file for the firmware stored by the first processor from the server, and transmit the firmware to the first processor through the first communication interface when the first communication interface is turned on Update the file.
  • the second processor 120 may control the terminal device (for example, a transceiver of the terminal device, etc.) to obtain a firmware update file by using a server such as wireless communication or wired communication.
  • a server such as wireless communication or wired communication.
  • the firmware update file is used for updating and upgrading the firmware
  • the method for generating the firmware update file and the process for upgrading the firmware update may be similar to the prior art, and a detailed description thereof is omitted herein for avoiding redundancy. .
  • the identity of the server may be pre-stored in the terminal device 100 (eg, in the terminal device 100)
  • the second processor 120 can transmit request information for requesting the server to issue the firmware update file to the terminal device 100 according to the identifier of the server, and
  • the request information may further include related information of the terminal device 100 (for example, a mobile phone number of the terminal device 100, etc.), so that the server performs authentication verification on the terminal device 100 according to related information of the terminal device 100, and is passing After the verification, the firmware update file is delivered to the terminal device 100.
  • the request information may carry related information of the terminal device 100 (for example, a brand, a model, a manufacturer, or the like of the terminal device 100), so that the server may determine the related information according to the terminal device 100.
  • a firmware update file corresponding to the adapter to which the terminal device 100 may be connected Thereby, the practicability and reliability of the present invention can be further improved.
  • the firmware update file may be the second processor 120 according to the second processor 120.
  • the user can obtain the request from the server, and the second processor 120 can periodically initiate a request to the server and obtain the request from the server.
  • the server can also be actively sent to the second processor 120.
  • the server can The update file of the operating system of the terminal device 100 is sent to the terminal device 100.
  • the first processor 110 is provided with a first communication interface 115, and the first communication interface 115 can be used to transfer firmware or firmware update between the first processor 110 and the second processor 120. file. And, when the firmware is stored in the first processor 110, the first communication interface 115 is in a closed state.
  • the first processor 110 is further provided with a second communication interface 117 that is kept open, and the second communication interface 117 is configured to transmit trigger information for triggering the first communication interface 115 to be turned on.
  • the trigger information may be a level signal having a predetermined mode, for example, one or more low level signals, one or more high level signals, or a combination of high and low level signals.
  • the trigger information may be a digital signal or an analog signal, and the invention is not particularly limited.
  • the second communication interface 117 may be a General Purpose Input Output (GPIO) interface.
  • GPIO General Purpose Input Output
  • the trigger information may be sent by the second processor 120 (ie, case 1), or may be sent by the adapter (ie, case 2).
  • the second processor 120 ie, case 1
  • the adapter ie, case 2
  • the first trigger information is specifically sent by the second processor.
  • the second processor 120 can be connected to the first processor 110 through the second communication interface 117, so that the second processor 120 can pass the second The communication interface 117 transmits the trigger information to the first processor 110.
  • the first trigger information is specifically sent by the second processor after acquiring the firmware update file.
  • the second processor 120 may send the trigger information to the first processor 110 after acquiring the firmware update file as described above, so that the second processor 120 can be stored in the first processor 110 in time. Update of the firmware.
  • the timing of the above-mentioned second processor 120 transmitting the above trigger information to the first processor 110 is merely exemplary.
  • the present invention is not limited thereto.
  • the second processor 120 may also periodically or in the After the terminal device 100 restarts, the trigger information is sent to the first processor 110.
  • the first trigger information is specifically sent by the adapter.
  • the adapter may pass through the second communication interface 117 and the first A processor 110 is coupled such that the adapter can transmit the trigger information to the processor 110 to the first processor 110.
  • the first processor is further configured to send, by using the first communications interface, version indication information to the second processor, where the version indication information is used to indicate a version of the firmware stored by the first processor;
  • the second processor is further configured to determine to transmit the firmware update file to the first processor according to the version indication information.
  • the first processor 110 after receiving the trigger information, turns on the first communication interface 115, and may send the storage to the second processor 120 through the first communication interface 115. Version information of the firmware in the first processor 110 (or the memory connected to the first processor 110).
  • the second processor 120 may determine whether the acquired firmware update file can be used to update the firmware stored in the first processor 110, for example, if the firmware is updated by the firmware update file. Is an upgraded version of the firmware stored in the first processor 110 (eg, the version number of the firmware updated by the firmware update file is greater than the version number of the firmware stored in the first processor 110), then the second processor 120 It may be determined that the acquired firmware update file can be used for an update upgrade of firmware stored in the first processor 110, such that the firmware update file can be sent to the first processor 110 via the first communication interface 115.
  • the first processor is specifically configured to send the version indication information to the second processor by using the first communication interface after determining that the terminal device is connected to the adapter for the first time after the last restart.
  • the terminal device 100 restarts after the operating system upgrade, and the firmware used by the first processor 110 is usually upgraded simultaneously with the operating system. After the terminal device 100 is restarted, the firmware is more likely to be upgraded, and the first processor 110 is used to control the connected adapter. Therefore, in the embodiment of the present invention, the first processor 110 may be The restart condition of the terminal device 100 and the connection status of the adapter determine whether it is necessary to transmit the firmware version information of the currently stored firmware to the second processor 120.
  • the firmware version information of the currently stored firmware is transmitted to the second processor 120.
  • the firmware version information of the currently stored firmware is prohibited from being transmitted to the second processor 120.
  • a counter may be set, the counter is incremented each time the adapter is connected, and, after the terminal device 100 is restarted, the The counter is set to zero and recounted.
  • the function of the counter may be integrated in the second processor 120 or the first processor 110, and the present invention is not particularly limited.
  • the first processor 110 may update the stored firmware, and the process of the update may be similar to the prior art. Here, in order to avoid redundancy, detailed description thereof is omitted. .
  • FIG. 4 shows a specific process of the terminal device 100 acquiring firmware and updating the firmware according to an embodiment of the present invention, as shown in FIG. 4:
  • the second processor 120 may obtain firmware and/or firmware update files from the server;
  • the second processor 120 may determine whether the first communication interface 115 in the first processor 110 is turned on. For example, the second processor 120 may send a detection signal to the first processor 110 through the first communication interface 115.
  • the second processor 120 if the second processor 120 is capable of obtaining the response of the first processor 110, it may be determined that the first communication interface 115 is in an on state, that is, the firmware is not stored in the first processor 110, and thus, at S230, the second The processor 120 can transmit firmware to the first processor 110 through the first communication interface 115. And, after the firmware transmission is completed, the first processor 110 may send the verification information to the second processor 120 to indicate whether the transmitted firmware can be used normally, thereby S235. The second processor 120 detects the verification information. If it is determined that the firmware can be used normally, the process goes to S240. If it is determined that the firmware cannot be used normally (for example, the transmission fails), the firmware is retransmitted.
  • the second processor 120 determines if there is an adapter insertion for fast charging.
  • the second processor 120 determines that there is an adapter insertion, then at S250, the second processor 120 controls to enable the first processor 110 to communicate with the adapter, and the second processor 120 or adapter may The first processor 110 transmits trigger information to cause the first communication interface 115 to be turned on.
  • the second processor 120 determines that no adapter is inserted, it continues to wait.
  • the first processor 110 may determine whether the state of the terminal device 100 is the first time to connect with the adapter after the last reboot.
  • the first processor 110 may report the firmware version information of the stored firmware to the second processor 120.
  • the second processor 120 determines whether the firmware of the firmware stored by the first processor 110 needs to be updated according to the firmware version information reported by the first processor 110.
  • the second processor 120 transmits the firmware update file to the first processor 110 via the first communication interface 115 at S290. And, after the firmware update file transmission is completed, the first processor 110 may send the verification information to the second processor 120 to indicate whether the transmitted firmware can be used normally, and the second processor 120 detects the verification at S295. Information, if it is determined that the firmware can be used normally, then go to S240, if it is determined that the firmware cannot be used normally (for example, the transmission fails), the firmware is retransmitted.
  • the first communication interface is set in the first processor of the terminal, and the first communication interface is in a closed state when the firmware is stored in the first processor, and thus, in the first
  • the second processor or the adapter can send trigger information to the first processor to enable the first communication interface to be enabled, and the second processor can obtain the slave device from the server through the first communication interface.
  • the firmware update file is transmitted to the first processor, thereby completing the firmware upgrade, and the utility and general purpose of the charging method based on the control of the terminal device can be improved. Sex.
  • the reliability of charging can be improved.
  • the terminal device may be any device that has a built-in battery and is capable of acquiring current from the outside to charge the battery, such as a mobile phone, a tablet computer, a computing device, or an information display device.
  • the terminal device of the present invention is introduced by taking a mobile phone as an example.
  • the mobile phone may include a radio frequency circuit, a memory, an input unit, a wireless fidelity (WiFi) module, a display unit, a sensor, an audio circuit, a processor, a projection unit, a photographing unit, a battery, and the like.
  • WiFi wireless fidelity
  • the radio frequency circuit can be used for receiving and transmitting signals during the transmission and reception of information or a call, in particular, after receiving the downlink information of the base station, and processing the data to the processor; in addition, transmitting the uplink data of the mobile phone to the base station.
  • radio frequency circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the RF circuit can communicate with the network and other devices through wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (CDMA). Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System for Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA
  • the memory can be used to store software programs and modules, and the processor executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory.
  • the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the storage data area may be stored according to the mobile phone. Use the created data (such as audio data, phone book, etc.).
  • the memory may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit can be used to receive input numeric or character information and to generate key signals related to user settings and function controls of the handset.
  • the input unit may include a touch panel and other input devices.
  • a touch panel also known as a touch screen, collects touch operations on or near the user (eg, the user uses a finger, stylus, etc., any suitable object or accessory on the touch panel or on the touch The operation near the panel), and the corresponding connection device is driven according to a preset program.
  • the touch panel may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • touch panels can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit can be used to display information input by the user or information provided to the user and various menus of the mobile phone.
  • the display unit may include a display panel.
  • the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
  • the touch panel may cover the display panel, and when the touch panel detects a touch operation on or near the touch panel, the touch panel transmits to the processor to determine the type of the touch event, and then the processor is on the display panel according to the type of the touch event. Provide the corresponding visual output.
  • the position in the display panel outside the visual output that the human eye can recognize can be used as a "display area" to be described later.
  • the touch panel and the display panel can be used as two independent components to realize the input and output functions of the mobile phone, and the touch panel and the display panel can be integrated to realize the input and output functions of the mobile phone.
  • the handset may also include at least one type of sensor, such as a voltage sensor, a temperature sensor, an attitude sensor, a light sensor, and other sensors.
  • the attitude sensor may also be referred to as a motion sensor, and as one type of the motion sensor, a gravity sensor may be cited, which uses a resilient sensor to form a cantilever type shifter and uses an elastic sensor to store energy. A spring drives the electrical contacts to effect a change in the change in gravity into an electrical signal.
  • an accelerometer sensor can be cited.
  • the accelerometer sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest, which can be used to identify the gesture of the mobile phone ( For example, horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping).
  • the motion sensor listed above can be used as the "pose” described later.
  • "Parameter parameter” element but is not limited thereto, other sensors capable of obtaining "attitude parameter” fall within the protection scope of the present invention, for example, a gyroscope, etc., and the working principle and data processing process of the gyroscope can be Similar to the prior art, detailed descriptions thereof are omitted herein to avoid redundancy.
  • sensors such as a barometer, a hygrometer, a thermometer, and an infrared sensor may be disposed as the sensor, and details are not described herein again.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and/or the backlight when the mobile phone moves to the ear.
  • Audio circuitry, speakers, and microphones provide an audio interface between the user and the handset.
  • the audio circuit can transmit the converted electrical signal of the received audio data to the speaker and convert it into a sound signal output by the speaker; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit and converted into audio.
  • the data is then processed by the audio data output processor, sent via a radio frequency circuit to, for example, another handset, or the audio data is output to a memory for further processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module. It provides users with wireless broadband Internet access.
  • the module can be omitted as needed within the scope of not changing the essence of the invention.
  • the second processor can be used as a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, by running or executing software programs and/or modules stored in the memory, and calling the storage.
  • the data in the memory performs various functions of the mobile phone and processes the data, thereby performing overall monitoring of the mobile phone.
  • the second processor may include one or more processing units; preferably, the processor may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications.
  • modem processor may not be integrated into the second processor.
  • the phone also includes a power source (such as a battery) that supplies power to the various components.
  • a power source such as a battery
  • the power source can be connected to the processor logic through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a Bluetooth module and the like, and details are not described herein again.
  • the mobile phone is only an example of a terminal device, and the present invention is not limited thereto.
  • the present invention can be applied to an electronic device such as a mobile phone or a tablet computer, which is not limited by the present invention.
  • FIG. 5 is a schematic flow diagram of a method 300 of controlling charging in accordance with another embodiment of the present invention.
  • the method 300 is applied to a terminal device including at least two processors. As shown in FIG. 5, the method 300 includes:
  • the second processor of the at least two processors acquires firmware from the server, and passes the first communication when the first communication interface disposed in the first processor of the at least two processors is turned on.
  • the interface transmits the firmware to the first processor, wherein the first communication interface is in an open state when no firmware is stored in the first processor;
  • the first processor reads a control command recorded in the firmware, and communicates with the adapter to control the adapter to charge the terminal device.
  • the first communication interface is in a closed state.
  • the first processor further has a second communication interface that is kept in an open state, the method further includes:
  • the second processor is further configured to obtain, from the server, a firmware update file for the firmware stored by the first processor;
  • the first processor receives the trigger information through the second communication interface when the first communication interface is in the off state
  • the first processor starts the first communication interface according to the trigger information
  • the first processor receives, by the first communication interface, a firmware update file for the stored firmware transmitted by the second processor;
  • the first processor updates the stored firmware according to the firmware update file.
  • the first trigger information is specifically sent by the second processor.
  • the first trigger information is specifically sent by the second processor after acquiring the firmware update file.
  • the first trigger information is specifically sent by the adapter.
  • the method further includes:
  • the first processor sends, by using the first communication interface, version indication information to the second processor, where the version indication information is used to indicate a version of the firmware stored by the first processor;
  • the second processor transmits a firmware update file to the first processor according to the version indication information.
  • the method further includes:
  • the first processor determines that the current connection status of the terminal device is: the terminal device is connected to the adapter for the first time after the last reboot.
  • the adapter is used to quickly charge the terminal device.
  • the method further includes:
  • the second processor disables communication between the first processor and the adapter before determining that the adapter is to quickly charge the terminal device.
  • the operation and processing procedure of the first processor are similar to the operations and processing procedures of the first processor 110 in the terminal device.
  • detailed description thereof will be omitted.
  • the operation and processing procedure of the second processor are similar to the operations and processing procedures of the second processor 120 in the terminal device.
  • detailed description thereof will be omitted.
  • a first communication interface is set in a first processor of the terminal, and the first communication interface is in an on state when no firmware is stored in the first processor, thereby
  • the second processor is capable of transmitting the firmware acquired from the server to the first processor through the first communication interface, and further, the second processor is capable of reading the record.
  • a control command in the firmware to control the adapter to charge the terminal device and can obtain firmware corresponding to the adapter from the server according to the connected adapter, thereby improving the utility of the charging method based on the control of the terminal device And versatility.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and The method can be implemented in other ways.
  • 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
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Electrochemistry (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • General Chemical & Material Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

一种终端设备(100)和控制充电的方法,该终端设备(100)包括:第一处理器(110),具有第一通信接口(115),该第一处理器(110)用于在该第一通信接口(115)开启时,通过该第一通信接口(115),接收第二处理器(120)传输的固件,并在该终端设备(100)与适配器连接时,读取记录在固件中的控制指令,以控制该适配器对该终端设备(100)进行充电,其中,在该第一处理器(110)中未存储固件时,该第一通信接口(115)处于开启状态;第二处理器(120),用于从服务器获取固件,并在该第一通信接口(115)开启时,通过该第一通信接口(115)向该第一处理器(110)传输固件,从而,能够提高基于终端设备(100)的控制的充电方式的实用性和通用性。

Description

终端设备和控制充电的方法 技术领域
本发明涉及充电技术领域,并且更具体地,涉及终端设备和控制充电的方法。
背景技术
目前,已知一种基于终端设备的控制的充电技术(例如,快速充电技术),例如,终端设备可以与适配器进行通信,传输用于控制充电的相关参数(例如,电池的温度或电量等),从而能够基于该相关参数对充电进行控制,以能够提高充电的速度或安全性。
但是,在该技术中,终端设备的动作和处理过程依赖于配置在该终端设备中的处理器对所存储的固件所记录的控制指令,并且该固件是在该终端设备的或者该处理器的生成制造过程中由生成商存储在该处理器中,因此,在该快速技术中,上述终端设备只能与所存储的固件能够控制的适配器进行上述通信等充电过程,严重影响了上述基于终端设备的控制的充电技术的实用性和通用性。
发明内容
本发明提供一种终端设备和控制充电的方法能够提高基于终端设备的控制的充电方式的实用性和通用性。
第一方面,提供了一种终端设备,包括:第一处理器,具有第一通信接口,该第一处理器用于在该第一通信接口开启时,通过该第一通信接口,接收第二处理器传输的固件,并在该终端设备与适配器连接时,读取记录在固件中的控制指令,以控制该适配器对该终端设备进行充电,其中,在该第一处理器中未存储固件时,该第一通信接口处于开启状态;第二处理器,用于从服务器获取固件,并在该第一通信接口开启时,通过该第一通信接口向该第一处理器传输固件。
结合第一方面,在第一方面的第一种实现方式中,在该第一处理器中存储有固件时,该第一通信接口处于关闭状态。
结合第一方面及其上述实现方式,在第一方面的第二种实现方式中,该 第一处理器还具有保持开启状态的第二通信接口,该第一处理器还用于在该第一通信接口处于关闭状态时,通过该第二通信接口接收触发信息,用于根据该触发信息,开启该第一通信接口,并通过该第一通信接口,接收该第二处理器传输的针对所存储固件的固件更新文件,根据固件更新文件,对所存储的固件进行更新;该第二处理器还用于从服务器获取针对该第一处理器所存储的固件的固件更新文件,并在该第一通信接口开启时,通过该第一通信接口向该第一处理器传输固件更新文件。
结合第一方面及其上述实现方式,在第一方面的第三种实现方式中,该第一触发信息具体是该第二处理器发送的。
结合第一方面及其上述实现方式,在第一方面的第四种实现方式中,该第一触发信息具体是该第二处理器在获取固件更新文件后发送的。
结合第一方面及其上述实现方式,在第一方面的第五种实现方式中,该第一触发信息具体是该适配器发送的。
结合第一方面及其上述实现方式,在第一方面的第六种实现方式中,该第一处理器还用于通过该第一通信接口,向该第二处理器发送版本指示信息,该版本指示信息用于指示该第一处理器所存储的固件的版本;该第二处理器还用于根据该版本指示信息,确定向该第一处理器传输固件更新文件。
结合第一方面及其上述实现方式,在第一方面的第七种实现方式中,该第一处理器具体用于在确定该终端设备在最近一次重新启动后,首次与该适配器连接之后,通过该第一通信接口,向该第二处理器发送该版本指示信息。
结合第一方面及其上述实现方式,在第一方面的第八种实现方式中,该适配器用于对该终端设备进行快速充电。
结合第一方面及其上述实现方式,在第一方面的第九种实现方式中,该第二处理器还用于在确定该适配器用于对该终端设备进行快速充电之前,禁止该第一处理器与该适配器之间的通信。
第二方面,提供了一种控制充电的方法,应用于包括至少两个处理器的终端设备中,该方法包括:该至少两个处理器中的第二处理器,从服务器获取固件,并在设置在该至少两个处理器中的第一处理器中的第一通信接口开启时,通过该第一通信接口向该第一处理器传输该固件,其中,在该第一处理器中未存储固件时,该第一通信接口处于开启状态;在该终端设备与适配器连接时,该第一处理器读取记录在固件中的控制指令,以控制该适配器对 该终端设备进行充电。
结合第二方面,在第二方面的第一种实现方式中,在该第一处理器中存储有固件时,该第一通信接口处于关闭状态。
结合第二方面及其上述实现方式,在第二方面的第二种实现方式中,该第一处理器还具有保持开启状态的第二通信接口,该方法还包括:该第二处理器还用于从服务器获取针对该第一处理器所存储的固件的固件更新文件;在该第一通信接口处于关闭状态时,该第一处理器通过该第二通信接口接收触发信息;该第一处理器根据该触发信息,开启该第一通信接口;该第一处理器通过该第一通信接口,接收该第二处理器传输的针对所存储固件的固件更新文件;该第一处理器根据固件更新文件,对所存储的固件进行更新。
结合第二方面及其上述实现方式,在第二方面的第三种实现方式中,该第一触发信息具体是该第二处理器发送的。
结合第二方面及其上述实现方式,在第二方面的第四种实现方式中,该第一触发信息具体是该第二处理器在获取固件更新文件后发送的。
结合第二方面及其上述实现方式,在第二方面的第五种实现方式中,该第一触发信息具体是该适配器发送的。
结合第二方面及其上述实现方式,在第二方面的第六种实现方式中,该方法还包括:该第一处理器通过该第一通信接口,向该第二处理器发送版本指示信息,该版本指示信息用于指示该第一处理器所存储的固件的版本;该第二处理器根据该版本指示信息,向该第一处理器传输固件更新文件。
结合第二方面及其上述实现方式,在第二方面的第七种实现方式中,在该第一处理器通过该第一通信接口,向该第二处理器发送版本指示信息之前,该方法还包括:该第一处理器确定该终端设备当前的连接状态为:该终端设备在最近一次重新启动后,首次与该适配器连接。
结合第二方面及其上述实现方式,在第二方面的第八种实现方式中,该适配器用于对该终端设备进行快速充电。
结合第二方面及其上述实现方式,在第二方面的第九种实现方式中,该方法还包括:该第二处理器在确定该适配器用于对该终端设备进行快速充电之前,禁止该第一处理器与该适配器之间的通信。
根据本发明实施例的终端设备和控制充电的方法,在终端的第一处理器设置第一通信接口,并使该第一通信接口在该第一处理器中未存储固件时处 于开启状态,从而,在该第一处理器中未存储固件时,第二处理器能够通过该第一通信接口将从服务器获取的固件传输至该第一处理器,进而,第二处理器能够读取该记录在固件中的控制指令,以控制该适配器对该终端设备进行充电,能够根据所连接的适配器,从服务器获取与该适配器相对应的固件,从而,能够提高基于终端设备的控制的充电方式的实用性和通用性。
附图说明
为了更清楚地说明本实用新型实施例的技术方案,下面将对本实用新型实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本实用新型的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是根据本发明一实施例的终端设备的示意性结构图。
图2是根据本发明一实施例的终端设备与适配器的连接方式的示意图。
图3是根据本发明另一实施例的终端设备与适配器的连接方式的示意图。
图4是根据本发明一实施例的控制充电的方法的示意性流程图。
图5是根据本发明另一实施例的控制充电的方法的示意性流程图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1是根据本发明实施例的终端设备100的示意性结构图。如图1所示,该终端设备100包括:
第一处理器110,具有第一通信接口115,该第一处理器110用于在该第一通信接口115开启时,通过该第一通信接口115,接收第二处理器120传输的固件,并在该终端设备100与适配器连接时,读取记录在固件中的控制指令,与该适配器进行通信,以控制该适配器对该终端设备100进行充电,其中,在该第一处理器110中未存储固件时,该第一通信接口115处于开启状态;
第二处理器120,用于从服务器获取固件,并在该第一通信接口115开启时,通过该第一通信接口115向该第一处理器110传输固件。
下面,分别对该终端设备100的各部件进行详细说明
A.第一处理器110
在该终端设备100与适配器连接(例如,通过通用串行总线(英文全称可以为“Universal Serial Bus”,缩写可以为“USB”)线缆连接)时,该第一处理器110与适配器之间能够形成通信连接,从而,该第一处理器110能够与该适配器传输数据(例如,终端设备的电池的温度、电压或电量等)或指令(例如,指示适配器所需要输出的电流或电压的指令等),从而控制适配器对该终端设备100的充电。
需要说明的是,在本发明实施例中,该第一处理器110控制适配器对该终端设备100的充电的方法和过程可以与现有技术相似,这里,为了避免赘述,省略其详细说明。
另外,在本发明实施例中,例如,该终端设备100与适配器之间的通信连接可以由图2或图3所示的通道2、开关和通道3构成,其中,该开关可以用于使通道3的连接状态切换于与通道1(即,第二处理器120所使用的通道)连接或与通道2(即,第一处理器110所使用的通道)连接。
应理解,图2或图3所示的该终端设备100与适配器之间的通信连接的实现方法仅为示例性说明,本发明并未限定于此,其他能够实现该终端设备100与适配器之间的通信连接的方式均落入本发明的保护范围内,例如,也可以不配置该开关,而使通道3同时与通道1和通道2连接。
在本发明实施例中,该第一处理器110可以通过执行记录在固件中的控制指令来实现控制适配器对该终端设备100的充电的方法和过程,并且,在本发明实施例中,该固件的生成方法和过程可以与现有技术相似,这里,省略其详细说明。随后对该第一处理器110获取和更新该固件的方法和过程进行详细说明。
在本发明实施例中,该该第一处理器110可以为微控制单元(MCU,Microcontroller Unit),微控制单元,又称单片微型计算机(Single Chip Microcomputer)或者单片机,是把中央处理器(Central Process Unit;CPU)的频率与规格做适当缩减,并将内存(memory)、计数器(Timer)、USB等周边接口都整合在单一芯片上,形成芯片级的计算机,为不同的应用场合做 不同组合控制。
B.第二处理器120
在本发明实施例中,该第二处理器120可以控制该终端设备(例如,终端设备的收发器等)通过例如无线通信或有线通信等方式从用于提供上述固件的服务器获取固件。
作为示例而非限定,该服务器的标识(或者说,能够唯一标识该服务器的信息,例如,该服务器的统一资源定位符URL地址或网际协议IP地址)可以预先存储在该终端设备100(例如,在该终端设备100中与该第二处理器120相连接的存储器)内,从而,第二处理器120可以根据该服务器的标识,将用于请求服务器下发固件的请求信息传输至该终端设备100(具体地说,是该第二处理器120),并且,该请求信息还可以包括该终端设备100的相关信息(例如,终端设备100的手机号码等),以便于服务器在根据该终端设备100的相关信息对该终端设备100进行鉴权验证,并在通过验证后,将固件下发至终端设备100。
作为示例而非限定,该请求信息中可以携带该终端设备100的相关信息(例如,该终端设备100的品牌、型号或制造商等)从而,服务器可以根据该终端设备100的相关信息,确定该终端设备100可能连接的适配器所对应的固件。从而,能够进一步提高本发明的实用性和可靠性。
可选地,该适配器用于对该终端设备进行快速充电。
具体地说,在本发明实施例中,当终端设备100与适配器连接时,该第二处理器120可以通过,例如,图2所示的通道1和通道3与适配器通信连接,从而,可以确定该适配器的类型,例如,是否是用于对该终端设备100进行快速充电的适配器。并且,该第二处理器120确定该适配器的类型的方法和过程可以与现有技术相似,这里,为了避免赘述,省略其详细说明。
另外,在本发明实施例中,快速充电是指适配器能够使用较普通充电模式更大的电流或电压对终端设备进行充电
可选地,该第二处理器还用于在确定该适配器用于对该终端设备进行快速充电之前,禁止该第一处理器与该适配器之间的通信。
具体地说,在本发明实施例中,当该终端设备100通过例如USB接口与外部设备连接时,该第二处理器120可以判定该外部设备的类型,作为该外部设备的类型,可以列举:普通适配器(即,对终端设备100的充电不受 第一处理器110的控制)、快速充电器或其他终端设备(例如,计算机设备)。
并且,当第二处理器120判定所连接的外部设备的类型为用于对该终端设备100进行快速充电的适配器时,可以允许第一处理器110与该外部设备进行通信,例如,第一处理器110可以控制图2中所示开关,以使通道2与通道3连通。
或者,当第二处理器120判定所连接的外部设备的类型不是为用于对该终端设备100进行快速充电的适配器时,可以禁止第一处理器110与该外部设备进行通信,例如,第一处理器110可以控制图2中所示开关,以使通道2与通道3非连通。
可选地,该第二处理器120还用于确定与该终端设备100连接的适配器的相关信息,并根据该适配器的相关信息获取与用于控制该适配器的固件。
具体地说,在本发明实施例中,第二处理器120还可以获取适配器的相关信息(例如,该适配器的品牌、型号或制造商等)。这里,该适配器的相关信息可以是该适配器发送给第二处理器120的,或者,该适配器的相关信息可以是用户通过终端设备的输入器件等输入至第二处理器120的,本发明并未特别限定。
从而,在第二处理器120还可以将该适配器的相关信息(例如,与上述请求信息承载于同一报文)发送至服务器,从而,服务器可以根据该适配器相关信息,确定能够实现对该适配器的控制的固件。从而,能够进一步提高本发明的实用性和可靠性。
另外,上述在第二处理器120获取固件的过程可以是开机后自动完成,也可以是根据用户输入的指令完成,可以是周期性执行,还可以是由服务器触发完成,本发明并未特别限定。
下面,对该第一处理器110从第二处理器120获取固件的过程进行详细说明。
在本发明实施例中,该第一处理器110中设置有第一通信接口115,该第一通信接口115可以用于该第一处理器110与第二处理器120之间传输固件。并且,例如,在终端设备100刚出厂、固件升级失败或被格式化而还原出厂配置时,第一处理器110中未存储固件。
在本发明实施例中,当第一处理器110中未存储固件时,该第一通信接口115处于开启状态。
从而,第二处理器120可以通过该第一通信接口115,将所获取的固件传输至第二处理器120。
另外,在本发明实施例中,该第一通信接口115除了固件或固件更新文件(随后,对该“固件更新文件”进行详细说明)以外还可以传输其他数据或信息,本发明并未特别限定。
需要说明的是,在本发明实施例中,该第一通信接口115可以为I2C(Inter-Integrated Circuit)接口,I2C为两线式串行总线的接口,用于连接处理器及其外围设备。是微电子通信控制领域广泛采用的一种总线标准。它是同步通信的一种特殊形式,具有接口线少,控制方式简单,器件封装形式小,通信速率较高等优点。
根据本发明实施例的终端设备,在终端的第一处理器设置第一通信接口,并使该第一通信接口在该第一处理器中未存储固件时处于开启状态,从而,在该第一处理器中未存储固件时,第二处理器能够通过该第一通信接口将从服务器获取的固件传输至该第一处理器,进而,第二处理器能够读取该记录在固件中的控制指令,以控制该适配器对该终端设备进行充电,能够根据所连接的适配器,从服务器获取与该适配器相对应的固件,从而,能够提高基于终端设备的控制的充电方式的实用性和通用性。
需要说明的是,在本发明实施例中,第一处理器110在获取固件后,可以对该固件进行存储,在本发明实施例中,该“存储”是指,第一处理器110可以将该固件存储在内置与该第一处理器110中的存储介质内,或者,第一处理器110也可以将该固件存储在该终端设备100中与该第一处理器110通信连接的存储器中,本发明并未特别限定。
可选地,在该第一处理器中存储有固件时,该第一通信接口处于关闭状态。
具体地说,在本发明实施例中,当第一处理器110中存储有固件时,该第一通信接口115处于关闭状态,从而,能够避免固件的重复传输,节约终端设备的能耗,减少第一处理器110和第二处理器120的负担。
随着硬件产品的更新换代以及技术的发展,可能存在原有固件不能满足用户需求的情况(例如,固件出现漏洞等情况),因此,需要对固件进行升级。
现有技术中,由于固件是在终端设备的生产制造时存储在处理器中,因 此,如果需要对固件进行升级,只能将终端设备返厂维修,严重影响了用户的正常使用,并且提高了产品的成本。
鉴于以上问题,本发明还提供了为第一处理器110中存储的固件进行升级的方法。即:
可选地,该第一处理器还具有保持开启状态的第二通信接口,该第一处理器还用于在该第一通信接口处于关闭状态时,通过该第二通信接口接收触发信息,用于根据该触发信息,开启该第一通信接口,并通过该第一通信接口,接收该第二处理器传输的针对所存储固件的固件更新文件,根据固件更新文件,对所存储的固件进行更新;
该第二处理器还用于从服务器获取针对该第一处理器所存储的固件的固件更新文件,并在该第一通信接口开启时,通过该第一通信接口向该第一处理器传输固件更新文件。
具体地说,在本发明实施例中,该第二处理器120可以控制该终端设备(例如,终端设备的收发器等)通过例如无线通信或有线通信等方式服务器获取固件更新文件。
在本发明实施例中,固件更新文件用于对固件进行更新升级,并且,该固件更新文件的生成方法以及对固件更新升级的过程可以与现有技术相似,这里为了避免赘述,省略其详细说明。
作为示例而非限定,该服务器的标识(或者说,能够唯一标识该服务器的信息,例如,该服务器的URL地址或IP地址)可以预先存储在该终端设备100(例如,在该终端设备100中与该第二处理器120相连接的存储器)内,从而,第二处理器120可以根据该服务器的标识,将用于请求服务器下发固件更新文件的请求信息传输至该终端设备100,并且,该请求信息还可以包括该终端设备100的相关信息(例如,终端设备100的手机号码等),以便于服务器在根据该终端设备100的相关信息对该终端设备100进行鉴权验证,并在通过验证后,将固件更新文件下发至终端设备100。
作为示例而非限定,该请求信息中可以携带该终端设备100的相关信息(例如,该终端设备100的品牌、型号或制造商等)从而,服务器可以根据该终端设备100的相关信息,确定该终端设备100可能连接的适配器所对应的固件更新文件。从而,能够进一步提高本发明的实用性和可靠性。
另外,在本发明实施例中,该固件更新文件可以是第二处理器120根据 用户操作而从服务器获取,也可以是第二处理器120周期性向服务器发起请求,并从服务器获取,还可以是服务器主动下发至第二处理器120,例如,服务器可以将固件更新文件连同针对该终端设备100的操作系统的更新文件一同下发至终端设备100。
下面,对该第一处理器110从第二处理器120获取固件更新文件的过程进行详细说明。
在本发明实施例中,该第一处理器110中设置有第一通信接口115,该第一通信接口115可以用于该第一处理器110与第二处理器120之间传输固件或固件更新文件。并且,当第一处理器110中存储有固件时,该第一通信接口115处于关闭状态。
在本发明实施例中,第一处理器110中还设置有保持开启状态的第二通信接口117,该第二通信接口117用于传输用于触发第一通信接口115开启的触发信息。
在本发明实施例中,该触发信息可以是具有规定模式的电平信号,例如,一个或多个低电平信号、一个或多个高电平信,或者高低电平信号的组合。或者,该触发信息也可以是数字信号或模拟信号,本发明并未特别限定。
作为示例而非限定,在本发明实施例中,该第二通信接口117可以为通用输入/输出(General Purpose Input Output,GPIO)接口。
在本发明实施例中,该触发信息可以是第二处理器120发送的(即,情况1),也可以是适配器发送的(即,情况2),下面,分别对以上两种情况下的处理过程进行详细说明。
情况1
可选地,该第一触发信息具体是该第二处理器发送的。
具体地说,如图2所示,在本发明实施例中,第二处理器120可以通过该第二通信接口117与该第一处理器110连接,从而,第二处理器120可以通过第二通信接口117向第一处理器110发送上述触发信息。
可选地,该第一触发信息具体是该第二处理器在获取固件更新文件后发送的。
具体地说,在本发明实施例中,第二处理器120可以在如上所述获取固件更新文件之后,向第一处理器110发送上述触发信息,从而能够及时对存储在第一处理器110中的固件的更新。
应理解,以上列举的第二处理器120向第一处理器110发送上述触发信息的时机仅为示例性说明,本发明并未限定于此,例如,第二处理器120也可以周期性或在终端设备100重启动后向第一处理器110发送上述触发信息。
情况2
可选地,该第一触发信息具体是该适配器发送的。
具体地说,如图3所示,在本发明实施例中,在终端设备100与用于快速充电的适配器连接后,在本发明实施例中,适配器可以通过该第二通信接口117与该第一处理器110连接,从而,适配器可以向该处理器110向第一处理器110发送上述触发信息。
可选地,该第一处理器还用于通过该第一通信接口,向该第二处理器发送版本指示信息,该版本指示信息用于指示该第一处理器所存储的固件的版本;
该第二处理器还用于根据该版本指示信息,确定向该第一处理器传输固件更新文件。
具体地说,在本发明实施例中,第一处理器110在接收到触发信息之后,开启上述第一通信接口115,并且,可以通过该第一通信接口115向第二处理器120发送存储在第一处理器110(或者说,存储在与该第一处理器110相连接的存储器)中的固件的版本信息。
第二处理器120在接收到该版本信息后,可以确定所获取的固件更新文件是否能够用于对存储在第一处理器110中的固件进行更新,例如,如果通过固件更新文件更新后的固件是存储在第一处理器110中的固件的升级版本(例如,通过固件更新文件更新后的固件的版本号大于存储在第一处理器110中的固件的版本号),则第二处理器120可以判定所获取的固件更新文件能够用于针对存储在第一处理器110中的固件的更新升级,从而,可以通过第一通信接口115向第一处理器110发送固件更新文件。
可选地,该第一处理器具体用于在确定该终端设备在最近一次重新启动后,首次与该适配器连接之后,通过该第一通信接口,向该第二处理器发送该版本指示信息。
具体地说,通常情况下,在终端设备100进行操作系统升级后会重新启动,并且,第一处理器110所使用的固件通常会随操作系统同时升级,因此, 在终端设备100重新启动后,该固件需要升级的可能性较高,并且,该第一处理器110用于控制所连接的适配器,因此,在本发明实施例中,第一处理器110可以根据终端设备100的重新启动情况和适配器的连接情况,判定是否需要向第二处理器120发送当前存储的固件的固件版本信息。
例如,如果终端设备100当前的状态为:终端设备100在最近一次重新启动后,首次与用于快速充电的适配器连接,则向第二处理器120发送当前存储的固件的固件版本信息。
或者,如果终端设备100当前的状态为:终端设备100在最近一次重新启动后,非首次与用于快速充电的适配器连接,则禁止向第二处理器120发送当前存储的固件的固件版本信息。
从而,能够减少第二处理器120和第一处理器110之间的无谓交互,减少能耗和处理负担。
并且,作为判定该终端设备100是否是在最近一次重新启动后首次与该适配器连接的的方法,可以设置计数器,每次与适配器连接后,该计数器增加,并且,当终端设备100重启后,该计数器置零,并重新计数。
在本发明实施例中,该计数器的功能可以集成在第二处理器120或第一处理器110中,本发明并未特别限定。
第一处理器110在从第二处理器120获得固件更新文件后,可以对所存储的固件进行更新,并且,该更新的过程可以与现有技术相似,这里,为了避免赘述,省略其详细说明。
图4示出了本发明实施例的终端设备100获取固件以及对该固件进行更新的具体流程,如图4所示:
在S210,第二处理器120可以从服务器获取固件和/或固件更新文件;
在S220,第二处理器120可以确定第一处理器110中的第一通信接口115是否开启,例如,第二处理器120可以通过第一通信接口115向第一处理器110发送检测信号,
在S220,如果第二处理器120能够获得第一处理器110的响应,则可以判定第一通信接口115处于开启状态,即,第一处理器110中未存储固件,从而,在S230,第二处理器120可以通过该第一通信接口115向第一处理器110传输固件。并且,在固件传输完成后,第一处理器110可以向第二处理器120发送校验信息,以指示所传输的固件是否能够正常使用,从而,在 S235,第二处理器120检测该校验信息,如果判定固件能够正常使用,则转至S240,如果判定固件不能够正常使用(例如,传输失败),则重新传输固件。
在S220,如果第二处理器120不能够获得第一处理器110的响应,则可以判定第一通信接口115处于关闭状态,即,第一处理器110中存储有固件,从而在S240,第二处理器120判定是否有用于快速充电的适配器插入。
在S240,如果第二处理器120判定为有适配器插入,则在S250,第二处理器120进行控制,以使第一处理器110与适配器通信连接,并且,第二处理器120或适配器可以向第一处理器110发送触发信息,以使第一通信接口115开启。
在S240,如果第二处理器120判定为没有适配器插入,则继续等待。
在S260,第一处理器110可以判定为终端设备100的状态是否为最近一次重新启动后首次与适配器连接。
在S260,如果判定为是,则在S270,第一处理器110可以向第二处理器120上报所存储的固件的固件版本信息。
在S260,如果判定为否,则在S275,进行快速充电。
在S280,第二处理器120根据第一处理器110上报的固件版本信息,判定是否需要对第一处理器110所存储的固件的固件进行更新。
在S280,如果判定为否,则在S275,进行快速充电。
在S280,如果判定为是,则,在S290,第二处理器120通过该第一通信接口115向第一处理器110传输固件更新文件。并且,在固件更新文件传输完成后,第一处理器110可以向第二处理器120发送校验信息,以指示所传输的固件是否能够正常使用,在S295,第二处理器120检测该校验信息,如果判定固件能够正常使用,则转至S240,如果判定固件不能够正常使用(例如,传输失败),则重新传输固件。
根据本发明实施例的终端设备,在终端的第一处理器设置第一通信接口,并使该第一通信接口在该第一处理器中存储有固件时处于关闭状态,从而,在该第一处理器中存储有固件时,第二处理器或适配器,能够向该第一处理器发送触发信息,以使该第一通信接口开启,第二处理器能够通过该第一通信接口将从服务器获取的固件更新文件传输至该第一处理器,从而能够完成固件升级,能够提高基于终端设备的控制的充电方式的实用性和通用 性。
并且,通过使获取固件或固件更新文件的过程以及基于该固件控制适配器的过程由不同处理器完成,能够提高充电的可靠性。
在本发明实施例中,该终端设备可以是各种内置有电池,并能够从外部获取电流对该电池进行充电的设备,例如,手机、平板电脑、计算设备或信息显示设备等。
以手机为例对本发明的终端设备进行介绍。在本发明实施例中,手机可以包括射频电路、存储器、输入单元、无线保真(WiFi,wireless fidelity)模块、显示单元、传感器、音频电路、处理器、投影单元、拍摄单元、电池等部件。
射频电路可用于在收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器处理;另外,将手机上行的数据发送给基站。通常,射频电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频电路还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GSM,Global System for Mobile communication)、通用分组无线服务(GPRS,General Packet Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long Term Evolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。
其中,存储器可用于存储软件程序以及模块,处理器通过运行存储在存储器的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号。具体地,输入单元可包括触控面板以及其他输入设备。触控面板,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控 面板附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器,并能接收处理器发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板。除了触控面板,输入单元还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
其中,显示单元可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元可包括显示面板,可选的,可以采用液晶显示单元(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触控面板可覆盖显示面板,当触控面板检测到在其上或附近的触摸操作后,传送给处理器以确定触摸事件的类型,随后处理器根据触摸事件的类型在显示面板上提供相应的视觉输出。
其中,该人眼能够识别的该视觉输出外显示面板中的位置,可以作为后述“显示区域”。可以将触控面板与显示面板作为两个独立的部件来实现手机的输入和输出功能,也可以将触控面板与显示面板集成而实现手机的输入和输出功能。
另外,手机还可包括至少一种传感器,比如电压传感器,温度传感器,姿态传感器、光传感器、以及其他传感器。
具体地,姿态传感器也可以称为运动传感器,并且,作为该运动传感器的一种,可以列举重力传感器,重力传感器采用弹性敏感元件制成悬臂式位移器,并采用弹性敏感元件制成的储能弹簧来驱动电触点,从而实现将重力变化转换成为电信号的变化。
作为运动传感器的另一种,可以列举加速计传感器,加速计传感器可检测各方向上(一般为三轴)加速度大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。
在本发明实施例中,可以采用以上列举的运动传感器作为获得后述“姿 态参数”元件,但并不限定于此,其他能够获得“姿态参数”的传感器均落入本发明的保护范围内,例如,陀螺仪等,并且,该陀螺仪的工作原理和数据处理过程可以与现有技术相似,这里,为了避免赘述,省略其详细说明。
此外,在本发明实施例中,作为传感器,还可配置气压计、湿度计、温度计和红外线传感器等其他传感器,在此不再赘述。
光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在手机移动到耳边时,关闭显示面板和/或背光。
音频电路、扬声器和传声器可提供用户与手机之间的音频接口。音频电路可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路接收后转换为音频数据,再将音频数据输出处理器处理后,经射频电路以发送给比如另一手机,或者将音频数据输出至存储器以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。另外,该模块可以根据需要在不改变发明的本质的范围内而省略。
在本发明实施例中,第二处理器可以作为手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,第二处理器可包括一个或多个处理单元;优选的,处理器可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。
可以理解的是,上述调制解调处理器也可以不集成到第二处理器中。
手机还包括给各个部件供电的电源(比如电池)。
优选的,电源可以通过电源管理系统与处理器逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。尽管未示出,手机还可以包括蓝牙模块等,在此不再赘述。
需要说明的是,手机仅为一种终端设备的举例,本发明并未特别限定,本发明可以应用于手机、平板电脑等电子设备,本发明对此不做限定。
图5是根据本发明另一实施例的控制充电的方法300的示意性流程图。 该方法300应用于包括至少两个处理器的终端设备中,如图5所示,该方法300包括:
S310,该至少两个处理器中的第二处理器,从服务器获取固件,并在设置在该至少两个处理器中的第一处理器中的第一通信接口开启时,通过该第一通信接口向该第一处理器传输该固件,其中,在该第一处理器中未存储固件时,该第一通信接口处于开启状态;
S320,在该终端设备与适配器连接时,该第一处理器读取记录在固件中的控制指令,与该适配器进行通信,以控制该适配器对该终端设备进行充电。
可选地,在该第一处理器中存储有固件时,该第一通信接口处于关闭状态。
可选地,该第一处理器还具有保持开启状态的第二通信接口,该方法还包括:
该第二处理器还用于从服务器获取针对该第一处理器所存储的固件的固件更新文件;
在该第一通信接口处于关闭状态时,该第一处理器通过该第二通信接口接收触发信息;
该第一处理器根据该触发信息,开启该第一通信接口;
该第一处理器通过该第一通信接口,接收该第二处理器传输的针对所存储固件的固件更新文件;
该第一处理器根据固件更新文件,对所存储的固件进行更新。
可选地,该第一触发信息具体是该第二处理器发送的。
可选地,该第一触发信息具体是该第二处理器在获取固件更新文件后发送的。
可选地,该第一触发信息具体是该适配器发送的。
可选地,该方法还包括:
该第一处理器通过该第一通信接口,向该第二处理器发送版本指示信息,该版本指示信息用于指示该第一处理器所存储的固件的版本;
该第二处理器根据该版本指示信息,向该第一处理器传输固件更新文件。
可选地,在该第一处理器通过该第一通信接口,向该第二处理器发送版本指示信息之前,该方法还包括:
该第一处理器确定该终端设备当前的连接状态为:该终端设备在最近一次重新启动后,首次与该适配器连接。
可选地,该适配器用于对该终端设备进行快速充电。
可选地,该方法还包括:
该第二处理器在确定该适配器用于对该终端设备进行快速充电之前,禁止该第一处理器与该适配器之间的通信。
上述方法300中,第一处理器的动作和处理过程与上述终端设备中的第一处理器110的动作和处理过程相似,这里,为了避免赘述,省略其详细说明。
并且,上述方法300中,第二处理器的动作和处理过程与上述终端设备中的第二处理器120的动作和处理过程相似,这里,为了避免赘述,省略其详细说明。
根据本发明实施例的终端设备和控制充电的方法,在终端的第一处理器设置第一通信接口,并使该第一通信接口在该第一处理器中未存储固件时处于开启状态,从而,在该第一处理器中未存储固件时,第二处理器能够通过该第一通信接口将从服务器获取的固件传输至该第一处理器,进而,第二处理器能够读取该记录在固件中的控制指令,以控制该适配器对该终端设备进行充电,能够根据所连接的适配器,从服务器获取与该适配器相对应的固件,从而,能够提高基于终端设备的控制的充电方式的实用性和通用性。
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
本领普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
所属领的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和 方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (20)

  1. 一种终端设备,其特征在于,包括第一处理器和第二处理器,其中,
    所述第一处理器,具有第一通信接口,所述第一处理器用于在所述第一通信接口开启时,通过所述第一通信接口,接收所述第二处理器传输的固件,并在所述终端设备与适配器连接时,读取记录在固件中的控制指令,以控制所述适配器对所述终端设备进行充电,其中,在所述第一处理器中未存储固件时,所述第一通信接口处于开启状态;
    所述第二处理器,用于从服务器获取固件,并在所述第一通信接口开启时,通过所述第一通信接口向所述第一处理器传输固件。
  2. 根据权利要求1所述的终端设备,其特征在于,在所述第一处理器中存储有固件时,所述第一通信接口处于关闭状态。
  3. 根据权利要求2所述的终端设备,其特征在于,所述第一处理器还具有保持开启状态的第二通信接口,所述第一处理器还用于在所述第一通信接口处于关闭状态时,通过所述第二通信接口接收触发信息,用于根据所述触发信息,开启所述第一通信接口,并通过所述第一通信接口,接收所述第二处理器传输的针对所存储固件的固件更新文件,根据固件更新文件,对所存储的固件进行更新;
    所述第二处理器还用于从服务器获取针对所述第一处理器所存储的固件的固件更新文件,并在所述第一通信接口开启时,通过所述第一通信接口向所述第一处理器传输固件更新文件。
  4. 根据权利要求3所述的终端设备,其特征在于,所述第一触发信息具体是所述第二处理器发送的。
  5. 根据权利要求4所述的终端设备,其特征在于,所述第一触发信息具体是所述第二处理器在获取固件更新文件后发送的。
  6. 根据权利要求3所述的终端设备,其特征在于,所述第一触发信息具体是所述适配器发送的。
  7. 根据权利要求3至6中任一项所述的终端设备,其特征在于,所述第一处理器还用于通过所述第一通信接口,向所述第二处理器发送版本指示信息,所述版本指示信息用于指示所述第一处理器所存储的固件的版本;
    所述第二处理器还用于根据所述版本指示信息,确定向所述第一处理器传输固件更新文件。
  8. 根据权利要求7所述的终端设备,其特征在于,所述第一处理器具体用于在确定所述终端设备在重新启动后,首次与所述适配器连接之后,通过所述第一通信接口,向所述第二处理器发送所述版本指示信息。
  9. 根据权利要求1至8中任一项所述的终端设备,其特征在于,所述适配器用于通过快速充电模式对所述终端设备进行充电。
  10. 根据权利要求1至9中任一项所述的终端设备,其特征在于,所述第二处理器还用于在确定所述适配器用于通过快速充电模式对所述终端设备进行充电,禁止所述第一处理器与所述适配器之间的通信。
  11. 一种控制充电的方法,其特征在于,应用于包括至少两个处理器的终端设备中,所述方法包括:
    所述至少两个处理器中的第二处理器,从服务器获取固件,并在设置在所述至少两个处理器中的第一处理器中的第一通信接口开启时,通过所述第一通信接口向所述第一处理器传输所述固件,其中,在所述第一处理器中未存储固件时,所述第一通信接口处于开启状态;
    在所述终端设备与适配器连接时,所述第一处理器读取记录在固件中的控制指令,以控制所述适配器对所述终端设备进行充电。
  12. 根据权利要求11所述的方法,其特征在于,在所述第一处理器中存储有固件时,所述第一通信接口处于关闭状态。
  13. 根据权利要求12所述的方法,其特征在于,所述第一处理器还具有保持开启状态的第二通信接口,所述方法还包括:
    所述第二处理器还用于从服务器获取针对所述第一处理器所存储的固件的固件更新文件;
    在所述第一通信接口处于关闭状态时,所述第一处理器通过所述第二通信接口接收触发信息;
    所述第一处理器根据所述触发信息,开启所述第一通信接口;
    所述第一处理器通过所述第一通信接口,接收所述第二处理器传输的针对所存储固件的固件更新文件;
    所述第一处理器根据固件更新文件,对所存储的固件进行更新。
  14. 根据权利要求13所述的方法,其特征在于,所述第一触发信息具体是所述第二处理器发送的。
  15. 根据权利要求14所述的方法,其特征在于,所述第一触发信息具 体是所述第二处理器在获取固件更新文件后发送的。
  16. 根据权利要求13所述的方法,其特征在于,所述第一触发信息具体是所述适配器发送的。
  17. 根据权利要求13至16中任一项所述的方法,其特征在于,所述方法还包括:
    所述第一处理器通过所述第一通信接口,向所述第二处理器发送版本指示信息,所述版本指示信息用于指示所述第一处理器所存储的固件的版本;
    所述第二处理器根据所述版本指示信息,向所述第一处理器传输固件更新文件。
  18. 根据权利要求17所述的方法,其特征在于,在所述第一处理器通过所述第一通信接口,向所述第二处理器发送版本指示信息之前,所述方法还包括:
    所述第一处理器确定所述终端设备当前的连接状态为:所述终端设备在重新启动后,首次与所述适配器连接。
  19. 根据权利要求11至18中任一项所述的方法,其特征在于,所述适配器用于通过快速充电模式对所述终端设备进行充电。
  20. 根据权利要求11至19中任一项所述的方法,其特征在于,所述方法还包括:
    所述第二处理器在确定所述适配器用于通过快速充电模式对所述终端设备进行充电之前,禁止所述第一处理器与所述适配器之间的通信。
PCT/CN2015/090620 2015-09-24 2015-09-24 终端设备和控制充电的方法 WO2017049551A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201580016869.8A CN108352581B (zh) 2015-09-24 2015-09-24 终端设备和控制充电的方法
PCT/CN2015/090620 WO2017049551A1 (zh) 2015-09-24 2015-09-24 终端设备和控制充电的方法
EP15898475.7A EP3176865B1 (en) 2015-09-24 2015-09-24 Terminal device and charging control method
US15/325,724 US10403938B2 (en) 2015-09-24 2015-09-24 Terminal device and charge control method using dual processor with bidirectional communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/090620 WO2017049551A1 (zh) 2015-09-24 2015-09-24 终端设备和控制充电的方法

Publications (1)

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

Family

ID=58385577

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/090620 WO2017049551A1 (zh) 2015-09-24 2015-09-24 终端设备和控制充电的方法

Country Status (4)

Country Link
US (1) US10403938B2 (zh)
EP (1) EP3176865B1 (zh)
CN (1) CN108352581B (zh)
WO (1) WO2017049551A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111564673B (zh) * 2020-05-28 2021-05-18 惠州市盛微电子有限公司 锂电池管理系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1253663A1 (en) * 2000-01-12 2002-10-30 Matsushita Electric Industrial Co., Ltd. Battery pack
US20030135705A1 (en) * 2001-12-27 2003-07-17 Montero Adolfo S. Battery firmware customer/field update method
CN1551617A (zh) * 2003-05-07 2004-12-01 索尼株式会社 电池组和电子设备
CN101814635A (zh) * 2009-02-20 2010-08-25 三洋电机株式会社 电池组的更新方法
CN102033593A (zh) * 2009-10-08 2011-04-27 联想(新加坡)私人有限公司 电池组、电池组固件更新方法以及电池组系统
CN103942061A (zh) * 2013-01-22 2014-07-23 纬创资通股份有限公司 电池固件更新方法、便携式电子装置及充电电池模块

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005228123A (ja) * 2004-02-13 2005-08-25 Sharp Corp 通信方法及び通信システム並びにその通信システムに使用される情報受給側装置
TW200634717A (en) * 2005-03-24 2006-10-01 Coretronic Corp Display with the capability of firmware upgrade
US20080052699A1 (en) * 2006-08-02 2008-02-28 Baker Steven T Syncronized dual-processor firmware updates
US20120221703A1 (en) * 2009-09-01 2012-08-30 Sony Corporation Method and system for data exchange between a vehicle and a server
US9283857B2 (en) * 2010-10-27 2016-03-15 The Aes Corporation Methods and apparatus for identifying a grid connection point using a tag
EP2702666A4 (en) * 2011-04-28 2014-10-29 Zoll Circulation Inc VIRAL DISTRIBUTION OF BATTERY MANAGEMENT PARAMETERS
JP5772310B2 (ja) * 2011-07-05 2015-09-02 富士通株式会社 電子機器、充電制御方法およびプログラム
JP5494633B2 (ja) * 2011-12-02 2014-05-21 コニカミノルタ株式会社 電子機器および画像形成装置
US9720478B2 (en) * 2012-03-19 2017-08-01 Panasonic Intellectual Property Management Co., Ltd. Storage battery monitoring method, storage battery monitoring system, and storage battery system
JP6217169B2 (ja) * 2013-06-21 2017-10-25 富士通株式会社 携帯端末装置、端末制御プログラム及び端末制御方法
TWI536706B (zh) * 2014-03-11 2016-06-01 登騰電子股份有限公司 智慧型電源轉接器及其供電控制方法
JP6381304B2 (ja) * 2014-06-10 2018-08-29 キヤノン株式会社 電子機器

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1253663A1 (en) * 2000-01-12 2002-10-30 Matsushita Electric Industrial Co., Ltd. Battery pack
US20030135705A1 (en) * 2001-12-27 2003-07-17 Montero Adolfo S. Battery firmware customer/field update method
CN1551617A (zh) * 2003-05-07 2004-12-01 索尼株式会社 电池组和电子设备
CN101814635A (zh) * 2009-02-20 2010-08-25 三洋电机株式会社 电池组的更新方法
CN102033593A (zh) * 2009-10-08 2011-04-27 联想(新加坡)私人有限公司 电池组、电池组固件更新方法以及电池组系统
CN103942061A (zh) * 2013-01-22 2014-07-23 纬创资通股份有限公司 电池固件更新方法、便携式电子装置及充电电池模块

Also Published As

Publication number Publication date
US10403938B2 (en) 2019-09-03
CN108352581A (zh) 2018-07-31
EP3176865B1 (en) 2021-08-04
CN108352581B (zh) 2021-06-04
EP3176865A4 (en) 2018-04-25
US20170294690A1 (en) 2017-10-12
EP3176865A1 (en) 2017-06-07

Similar Documents

Publication Publication Date Title
CN104383681B (zh) 游戏进程控制方法、装置和移动终端
WO2017101047A1 (zh) 控制充电的方法、装置、电源适配器和移动终端
WO2017049552A1 (zh) 终端设备和控制充电的方法
WO2018166204A1 (zh) 一种控制指纹识别模组的方法、移动终端及存储介质
WO2015058510A1 (zh) 电池、电池保护方法、装置和系统
CN106487984B (zh) 一种调整音量的方法和装置
WO2014154119A1 (zh) 移动终端的振动调节方法及移动终端
US11381100B2 (en) Method for controlling multi-mode charging, mobile terminal, and storage medium
WO2014206138A1 (zh) 一种更新网页数据的方法、装置和终端设备
CN106532876B (zh) 供电控制方法、装置和计算机设备
WO2017206860A1 (zh) 移动终端的处理方法及移动终端
CN108448177B (zh) 一种充电方法及终端
WO2019104956A1 (zh) 摇晃式启动式电池、应用装置及服务器
WO2019129108A1 (zh) 移动终端及otg控制配置方法、及存储介质
CN106528231B (zh) 一种启动应用程序的方法和装置
JP6535690B2 (ja) オンライン・アカウントを関連付ける方法
WO2017049551A1 (zh) 终端设备和控制充电的方法
CN105159655B (zh) 行为事件的播放方法和装置
CN111308303A (zh) 一种移动终端射频功率放大器检测方法及装置
CN106033358B (zh) 一种应用程序的批量安装方法和装置
CN105278967B (zh) 一种移动终端的系统更新方法、装置和系统
CN106126201B (zh) 一种终端充电的方法和装置
WO2023004662A1 (zh) 延迟产生方法及相关设备
JP6445718B2 (ja) プロセス管理方法、装置、およびデバイス
CN106484455A (zh) 一种更新应用程序的安装数据的方法、装置和系统

Legal Events

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

Ref document number: 15325724

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2015898475

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2015898475

Country of ref document: EP

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

Ref document number: 15898475

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE