CN113659663A - Charging device - Google Patents

Charging device Download PDF

Info

Publication number
CN113659663A
CN113659663A CN202110859578.2A CN202110859578A CN113659663A CN 113659663 A CN113659663 A CN 113659663A CN 202110859578 A CN202110859578 A CN 202110859578A CN 113659663 A CN113659663 A CN 113659663A
Authority
CN
China
Prior art keywords
charging device
module
firmware
detection module
power supply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110859578.2A
Other languages
Chinese (zh)
Inventor
胡庆炎
闫超
刁祝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anker Innovations Co Ltd
Original Assignee
Anker Innovations Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anker Innovations Co Ltd filed Critical Anker Innovations Co Ltd
Priority to CN202110859578.2A priority Critical patent/CN113659663A/en
Publication of CN113659663A publication Critical patent/CN113659663A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/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
    • 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/00045Authentication, i.e. circuits for checking compatibility between one component, e.g. a battery or a battery charger, and another component, e.g. a power source

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Telephone Function (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

A charging device comprises a detection module, a master control processor, a private protocol module, an analog switch and an interface, wherein: the detection module is used for detecting whether the charging device is connected with an alternating current power supply or not or detecting user input; the master processor is configured to: when the detection module detects that the charging device is connected with an alternating current power supply or detects that a first user inputs, the detection module controls the analog switch to connect positive and negative data signal pins in the interface to the private protocol module, so that the charging device enters a charger mode; when the detection module detects that the charging device is not connected with the alternating current power supply or detects that a second user inputs, the detection module controls the analog switch to connect the positive and negative data signal pins to the universal serial bus protocol module in the main control processor, so that the charging device enters a firmware upgrading mode; the firmware upgrade mode is as follows: an upgraded version of the firmware is received from a terminal connected to the interface and overrides the original firmware in the master processor. The firmware upgrading method and the firmware upgrading device can conveniently realize firmware upgrading.

Description

Charging device
Technical Field
The application relates to the technical field of charging, and more particularly relates to a charging device.
Background
Existing charging devices such as chargers or mobile power supplies (power banks) may remove the case to upgrade the firmware during development, but after the charging device is sold to the consumer, the consumer may not upgrade the firmware. However, since consumer electronics are fast in iteration, numerous in types, and only limited devices in the current market are used for testing and ensuring compatibility in the early stage of development of new devices, the compatibility problem of the new devices is easy to occur, after a charger is sold to a consumer, if the charger has the compatibility problem or has firmware defects, the firmware cannot be upgraded, and in the aspect of after-sale processing, the defects can only be recalled or acknowledged.
Currently, some portable power sources use a Universal Serial Bus (USB) to Serial chip to upgrade firmware in the main control processor of the portable power source. The method specifically comprises the steps that the USB-to-serial port chip is built in the mobile power supply, the USB-to-serial port chip is enabled through combined operations of long-press, short-press and the like of keys of the mobile power supply, and therefore the mobile power supply enters an upgrading mode and is connected with a computer software upgrading program. However, this requires the portable power source to have a USB to serial port chip built in, which adds extra cost, and the computer needs to be pre-loaded with software and drivers. In addition, because the mobile phone/tablet computer does not support serial port operation, the mobile phone or tablet computer cannot be adopted for upgrading, and the upgrading scene is limited.
Disclosure of Invention
The present application is proposed to solve the above problems. According to an aspect of the present application, there is provided a charging device, the charging device including a detection module, a master processor, a private protocol module, an analog switch, and an interface, wherein: the detection module is used for detecting whether the charging device is connected with an alternating current power supply or not, or detecting user input; the master processor is configured to: when the detection module detects that the charging device is connected with an alternating current power supply or detects first user input, the detection module controls the analog switch to connect a positive signal pin and a negative signal pin of data in the interface to the private protocol module, so that the charging device enters a charger mode; when the detection module detects that the charging device is not connected with an alternating current power supply or detects second user input, the detection module controls the analog switch to connect the positive and negative data signal pins to a universal serial bus protocol module in the main control processor, so that the charging device enters a firmware upgrading mode; wherein, the firmware upgrading mode is as follows: an upgraded version of firmware is received from a terminal connected to the interface and overrides the original firmware in the master processor.
In one embodiment of the present application, the private protocol module is a chip separate from the master processor.
In one embodiment of the application, the private protocol module is included in the master processor.
In one embodiment of the application, the analog switch is implemented by a chip.
In one embodiment of the application, the analog switch is implemented as a discrete device comprised of metal-oxide semiconductor field effect transistors.
In an embodiment of the present application, the detection module is an ac-dc power supply module, and the ac-dc power supply module is configured to detect whether the charging device is connected to an ac power supply, and further configured to output power to a device to be charged according to a control instruction of the main control processor.
In an embodiment of the present application, the detection module is a key module, the key module is configured to detect the user input, and the charging device further includes a dc-dc power supply module, and the dc-dc power supply module is configured to output power to the device to be charged according to a control instruction of the main control processor.
In an embodiment of the application, the main control processor further includes a public protocol module, so that the charging device can charge the device to be charged according to a public protocol provided by the public protocol module.
In one embodiment of the application, the upgraded version of the firmware is pushed to the terminal by a server.
In one embodiment of the present application, the data positive and negative signal pins are connected to the universal serial bus protocol module by default.
According to the charging device, the firmware in the charging device can be upgraded through the mobile phone, the computer and other terminals, the later-stage compatibility maintenance of products is facilitated, the product period is prolonged, a USB-to-serial port chip does not need to be installed, and the cost is saved; in addition, when the firmware in the charging device is upgraded through terminals such as a mobile phone and a computer, the charging device is plug-and-play, a driver does not need to be installed, and the operation is convenient.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in more detail embodiments of the present application with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 shows a schematic block diagram of a charging device according to an embodiment of the present application.
Fig. 2 shows a schematic block diagram of a charging device according to another embodiment of the present application.
Fig. 3 is a schematic block diagram of a charging device according to still another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, exemplary embodiments according to the present application will be described in detail below with reference to the accompanying drawings. It should be understood that the described embodiments are only some embodiments of the present application and not all embodiments of the present application, and that the present application is not limited by the example embodiments described herein. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the application described in the application without inventive step, shall fall within the scope of protection of the application.
First, a charging device according to an embodiment of the present application is described with reference to fig. 1. Fig. 1 shows a schematic block diagram of a charging device 100 according to an embodiment of the present application. As shown in fig. 1, the charging device 100 includes a detection module 110, a master processor 120, a private protocol module 130, an analog switch 140, and an interface 150. Wherein: the detection module 110 is used to detect whether the charging device 100 is connected to an ac power source or to detect a user input. The master processor 120 is configured to: when the detection module 110 detects that the charging device 100 is connected to the ac power source or detects a first user input, the analog switch 140 is controlled to connect the positive and negative data signal pins in the interface 150 to the private protocol module 130, so that the charging device 100 enters the charger mode; when the detection module 110 detects that the charging device 100 is not connected to the ac power source or detects a second user input, the analog switch 140 is controlled to connect the data positive and negative signal pins in the interface 150 to a Universal Serial Bus (USB) protocol module (not shown) in the main control processor 120, so that the charging device 100 enters a firmware upgrade mode. The firmware upgrading mode is as follows: an upgraded version of the firmware is received from a terminal connected to the interface 150 and overrides the original firmware in the master processor 120.
In the embodiment of the present application, the charging device 100 includes the detection module 110, and the detection module 110 can detect the connection condition of the charging device 100 and the ac power source. If the charging apparatus 100 is connected to the ac power source so that the charging apparatus 100 is powered on, it indicates that the charging apparatus 100 is to be used as a charger to charge the power of the ac power source to the device to be charged. If the charging device 100 is not connected to an ac power source but is also powered up, it indicates that the charging device 100 is connected to a terminal, such as a cell phone, a computer, etc., that is being powered by such a terminal. In this case, a terminal such as a mobile phone or a computer is usually in data communication with the charging device 100. In the embodiment of the present application, the analog switch 140 is provided, and the main control processor 120 controls the analog switch 140 to perform the path switching according to the two conditions: when the detection module 110 detects that the charging apparatus 100 is connected to the ac power source, the analog switch 140 may be controlled to connect a positive/negative data signal pin (generally denoted as D +/D-, as shown in fig. 2 and 3) in the interface 150 to the private protocol module 130 providing the private charging protocol, so that the charging apparatus 100 may enter a charger mode to charge the device to be charged according to the private protocol; when the detection module 110 detects that the charging device 100 is not connected to the ac power supply, the analog switch 140 may be controlled to connect the positive and negative data signal pins in the interface 150 to the USB protocol module in the main control processor 120, so that the charging device 100 may perform data communication with the terminal connected to the interface 150, thereby providing a possibility for the firmware upgrade proposed by the present application, i.e., the charging device 100 enters a firmware upgrade mode, receives a firmware upgrade version from the terminal, and covers the original firmware, thereby implementing firmware upgrade on the charging device 100 through a terminal such as a mobile phone, a computer, etc. under the conditions of plug-and-play and no need of installing a driver. The positive and negative data signal pins in the interface 150 may be connected to the USB protocol module in the main control processor 120 by default, so as to prevent the charging device 100 from being powered up when the charging device 100 is connected to a terminal such as a mobile phone or a computer.
Furthermore, in the embodiment of the present application, the user input may also be detected by the detection module 110. If a first user input is detected (the specific content of the first user input may be set as required, for example, when the detection module 110 is a key, the first user input is a short-press key, which is only an example, and any other user input representation is possible), it indicates that the user wishes the charging apparatus 100 to charge the device. If a second user input is detected (the specific content of the second user input may be set as required and may be distinguished from the first user input, for example, when the detection module 110 is a key, the first user input is a short-press key, and the second user input is a long-press key, which is only an example, and any other user input representation is possible), it indicates that the user wishes the charging apparatus 100 to perform data communication with a terminal connected to the interface 150 or perform firmware upgrade on the charging apparatus 100 through the terminal. Therefore, in the embodiment of the present application, the analog switch 140 is provided, and the analog switch 140 is controlled by the main control processor 120 to perform the path switching according to the two cases: when the detection module 110 detects a first user input, the analog switch 140 may be controlled to connect a data positive/negative signal pin (generally denoted as D +/D-as shown in fig. 2 and 3) in the interface 150 to the private protocol module 130 providing a private charging protocol, so that the charging apparatus 100 may enter a charger mode to charge a device to be charged according to the private protocol; when the detection module 110 detects a second user input, the analog switch 140 may be controlled to connect the positive and negative data signal pins in the interface 150 to the USB protocol module in the main control processor 120, so that the charging device 100 may perform data communication with the terminal connected to the interface 150, thereby providing a possibility for the firmware upgrade proposed by the present application, i.e., the charging device 100 enters a firmware upgrade mode, receives a firmware upgrade version from the terminal, and covers the original firmware, thereby implementing firmware upgrade on the charging device 100 through a terminal such as a mobile phone, a computer, etc. under the condition of plug-and-play and no need of installing a driver. The positive and negative data signal pins in the interface 150 may be connected to the USB protocol module in the main control processor 120 by default, so as to prevent the charging device 100 from being powered up when the charging device 100 is connected to a terminal such as a mobile phone or a computer.
In one embodiment of the present application, the aforementioned detection module 110 may be an alternating current-direct current (AC-DC) power module. In this embodiment, the aforementioned charging device 100 may be a charger (power adapter) that performs charging by alternating current, and therefore, the AC-DC power supply module may be used to detect whether the charging device 100 is connected to alternating current power to determine whether to control the charging device 100 to enter a charger mode or a firmware upgrade mode. In addition, the AC-DC power supply module may also be configured to output power to the device to be charged according to a control instruction of the main control processor 120, for example, after the main control processor 120 and the device to be charged perform a handshake protocol, determine a charging parameter applicable to the device to be charged, and send a control instruction based on the charging parameter, so that the AC-DC power supply module outputs appropriate power to the device to be charged.
In another embodiment of the present application, the aforementioned detection module 110 may be a key module. In this embodiment, the charging device 100 may be a mobile power supply. Accordingly, the key module may be used to detect a user input to determine whether to control the charging device 100 to enter the charger mode or the firmware upgrade mode. In addition, in this embodiment, the charging device 100 further includes a direct current-direct current (DC-DC) power supply module. The DC-DC power supply module may be configured to output power to the device to be charged according to a control instruction of the main control processor 120, for example, after the main control processor 120 performs a handshake protocol with the device to be charged, determine a charging parameter applicable to the device to be charged, and send a control instruction based on the charging parameter, so that the DC-DC power supply module outputs appropriate power to the device to be charged.
In one embodiment of the present application, the private protocol module 130 may be a chip separate from the master processor 120. In this embodiment, the private protocol module 130 is independent of the master processor 120, i.e., the master processor 120 may not need to include the private protocol module 130, and thus the structure and function may be simpler and easier to implement. In another embodiment of the present application, the private protocol module 130 may also be included in the master processor 120. In this embodiment, the master processor 120 includes both the proprietary protocol module 130 and the USB protocol module, which are relatively complex in structure and function, but may also be implemented.
In an embodiment of the present application, the master processor 120 may further include a public protocol module, such as a power output (PD) protocol module, so that the charging apparatus 100 can charge the device to be charged according to a public protocol provided by the public protocol module.
In the embodiment of the present application, the analog switch 140 may be implemented by a chip or a discrete device composed of a metal-oxide semiconductor field effect transistor (MOS transistor).
In the embodiment of the application, the upgraded version of the firmware can be pushed to the terminal by the server, so that a user does not need to pay attention to an official website to download the upgraded version, and the user experience is improved.
Generally, the charging device 100 according to the embodiment of the application can upgrade the firmware in the charging device through the terminals such as the mobile phone and the computer, so that the later-stage compatibility maintenance of the product is facilitated, the product period is prolonged, a USB-to-serial port chip is not required to be installed, and the cost is saved; in addition, when the firmware in the charging device is upgraded through terminals such as a mobile phone and a computer, the charging device is plug-and-play, a driver does not need to be installed, and the operation is convenient.
Charging devices according to other embodiments of the present application are described below with reference to fig. 2 to 3, which may be regarded as more specific implementation examples of the embodiment shown in fig. 1.
Fig. 2 shows a schematic block diagram of a charging device 200 according to another embodiment of the present application. As shown in fig. 2, the charging device 200 includes an AC-DC power supply module (i.e., AC-DC power supply module) 210, a main control processor 220, a proprietary protocol module 230, an analog switch 240, and an interface 250. Wherein: the AC-DC power supply module 210 is used to detect whether the charging device 200 is connected to an AC power supply. The master processor 220 may further include a master core 221 and a USB protocol module 222, wherein the master core 221 is configured to: when the AC-DC power supply module 210 detects that the charging device 200 is connected to the AC power supply, the analog switch 240 is controlled to connect the positive and negative data signal pins in the interface 250 to the private protocol module 230, so that the charging device 200 enters the charger mode; when the AC-DC power supply module 210 detects that the charging device 200 is not connected to the AC power supply, the analog switch 240 is controlled to connect the positive and negative data signal pins in the interface 250 to the USB protocol module 222 in the main processor 220, so that the charging device 200 enters the firmware upgrade mode. The firmware upgrading mode is as follows: an upgraded version of the firmware is received from a terminal connected to the interface 250 and overwrites the original firmware in the master kernel 221 with the upgraded version. In this case, the data positive and negative signal pins in the interface 250 may be connected to the USB protocol module 221 in the host processor 220 by default, so as to prevent the charging device 200 from being powered up when the charging device 200 is connected to a terminal such as a mobile phone or a computer.
In the embodiment of the present application, the charging device 200 includes an AC-DC power module 210, and the connection condition of the charging device 200 to the AC power source can be detected by the AC-DC power module 210. If the charging device 200 is connected to the ac power source so that the charging device 200 is powered on, it indicates that the charging device 200 is to be used as a charger to charge the power of the ac power source to the device to be charged. If the charging device 200 is not connected to an ac power source but is also powered up, it indicates that the charging device 200 is connected to a terminal, such as a cell phone, a computer, etc., that is being powered by such a terminal. In this case, a terminal such as a mobile phone or a computer is usually in data communication with the charging device 200. In the embodiment of the present application, the analog switch 240 is provided, and the analog switch 240 is controlled by the main control processor 220 to perform the path switching according to the two cases: when the AC-DC power module 210 detects that the charging apparatus 200 is connected to an AC power source, the analog switch 240 may be controlled to connect a positive/negative data signal pin (generally denoted as D +/D-as shown in fig. 2) in the interface 250 to the private protocol module 230 providing a private charging protocol, so that the charging apparatus 200 may enter a charger mode to charge a device to be charged according to the private protocol; when the AC-DC power supply module 210 detects that the charging device 200 is not connected to the AC power supply, the analog switch 240 may be controlled to connect the positive and negative data signal pins in the interface 250 to the USB protocol module in the main control processor 220, so that the charging device 200 may perform data communication with the terminal connected to the interface 250, thereby providing a possibility for the firmware upgrade proposed by the present application, i.e., the charging device 200 enters a firmware upgrade mode, receives a firmware upgrade version from the terminal, and covers the original firmware, thereby implementing firmware upgrade on the charging device 200 through a terminal such as a mobile phone, a computer, etc. under the conditions of plug-and-play and no need of driver installation.
In an embodiment of the present application, the aforementioned AC-DC power supply module 210 may also be configured to output power to a device to be charged according to a control instruction of the main control core 221, for example, after a handshake protocol is performed between the main control core 221 and the device to be charged, determine a charging parameter applicable to the device to be charged, and send a control instruction based on the charging parameter, so that the AC-DC power supply module 210 outputs appropriate power to the device to be charged.
In the embodiment shown in fig. 2, private protocol module 230 is a chip separate from master processor 220. In this embodiment, the private protocol module 230 is independent of the master processor 220, i.e., the master processor 220 may not need to include the private protocol module 230, and thus the structure and function may be simpler and easier to implement. In other embodiments, the private protocol module 230 may also be included in the master processor 220. In this embodiment, the master processor 220 includes both the proprietary protocol module 230 and the USB protocol module, which are relatively complex in structure and function, but may also be implemented. In an embodiment of the present application, the master processor 220 may further include a public protocol module, such as a power output protocol module (i.e., PD protocol module) 223, so that the charging apparatus 200 can charge the device to be charged according to a public protocol provided by the public protocol module.
In the embodiment of the present application, the analog switch 240 may be implemented by a chip or a discrete device composed of a metal-oxide semiconductor field effect transistor (MOS transistor).
In the embodiment of the application, the upgraded version of the firmware can be pushed to the terminal by the server, so that a user does not need to pay attention to an official website to download the upgraded version, and the user experience is improved.
Generally, the charging device 200 according to the embodiment of the application can upgrade the firmware in the charging device through the terminals such as the mobile phone and the computer, so that the later-stage compatibility maintenance of the product is facilitated, the product period is prolonged, a USB-to-serial port chip is not required to be installed, and the cost is saved; in addition, when the firmware in the charging device is upgraded through terminals such as a mobile phone and a computer, the charging device is plug-and-play, a driver does not need to be installed, and the operation is convenient.
Fig. 3 shows a schematic block diagram of a charging device 300 according to another embodiment of the present application. As shown in fig. 3, the charging device 300 includes a key module 310, a main control processor 320, a private protocol module 330, an analog switch 340, and an interface 350. Wherein: the key module 310 is used to detect user input. The master processor 320 may include a master core 321 and a USB protocol module 322, wherein the master core 321 is configured to: when the key module 310 detects a first user input, the analog switch 340 is controlled to connect the data positive and negative signal pins in the interface 350 to the private protocol module 330, so that the charging device 300 enters the charger mode; when the key module 310 detects the second user input, the analog switch 340 is controlled to connect the data positive and negative signal pins in the interface 350 to the USB protocol module 322, so that the charging apparatus 300 enters the firmware upgrade mode. The firmware upgrading mode is as follows: an upgraded version of the firmware is received from a terminal connected to the interface 350 and overwrites the original firmware in the main control kernel 321 with the upgraded version. In which the data positive and negative signal pins in the interface 350 may be connected to the USB protocol module 322 in the main control processor 320 by default, so as to prevent the charging device 300 from being powered up when the charging device 300 is connected to a terminal such as a mobile phone or a computer.
In the embodiment of the present application, the charging device 300 includes a key module 310, and the user input may be detected through the key module 310. If a first user input is detected (the specific content of the first user input may be set as desired, for example, the first user input is a short-press of a key, which is only an example, and any other representation of the user input is possible), it indicates that the user wishes the charging apparatus 300 to charge the device. If a second user input is detected (the specific content of the second user input may be set as required and may be distinguished from the first user input, for example, the first user input is a short-press key, and the second user input is a long-press key, for example only, and any other user input representation is possible), it indicates that the user wishes the charging apparatus 300 to perform data communication with a terminal connected to the interface 350 or perform firmware upgrade on the charging apparatus 300 through the terminal. Therefore, in the embodiment of the present application, the analog switch 340 is provided, and the analog switch 340 is controlled by the main control processor 320 to perform the path switching according to the two cases: when the key module 310 detects a first user input, the analog switch 340 may be controlled to connect a data positive/negative signal pin (generally denoted as D +/D-, as shown in fig. 3) in the interface 350 to the private protocol module 330 providing a private charging protocol, so that the charging apparatus 300 may enter a charger mode to charge a device to be charged according to the private protocol; when the key module 310 detects a second user input, the analog switch 340 may be controlled to connect the positive and negative data signal pins in the interface 350 to the USB protocol module in the main processor 320, so that the charging device 300 may perform data communication with the terminal connected to the interface 350, thereby providing a possibility for the firmware upgrade proposed by the present application, i.e., the charging device 300 enters a firmware upgrade mode, receives a firmware upgrade version from the terminal, and covers the original firmware, thereby implementing firmware upgrade on the charging device 300 through a terminal such as a mobile phone, a computer, etc. under the condition of plug-and-play and no need of installing a driver.
In another embodiment of the present application, the aforementioned charging device 300 may further include a DC-DC power supply module (i.e., a DC-DC power supply module) 360. The DC-DC power module 360 may be configured to output power to the device to be charged according to the control instruction of the main control core 321, for example, after the main control core 321 and the device to be charged perform a handshake protocol, determine a charging parameter applicable to the device to be charged, and send a control instruction based on the charging parameter, so that the DC-DC power module outputs appropriate power to the device to be charged.
In the embodiment shown in FIG. 3, private protocol module 330 is a chip separate from master processor 320. In this embodiment, the private protocol module 330 is independent of the master processor 320, i.e., the master processor 320 may not need to include the private protocol module 330, and thus the structure and function may be simpler and easier to implement. In other embodiments, private protocol module 330 may also be included in master processor 320. In this embodiment, the master processor 320 includes both the proprietary protocol module 330 and the USB protocol module, which are relatively complex in structure and function, but may also be implemented. In an embodiment of the present application, the main control processor 320 may further include a public protocol module, a power output protocol module (i.e., the PD protocol module 323), so that the charging apparatus 300 can charge the device to be charged according to the public protocol provided by the public protocol module.
In the embodiment of the present application, the analog switch 340 may be implemented by a chip or a discrete device composed of a metal-oxide semiconductor field effect transistor (MOS transistor).
In the embodiment of the application, the upgraded version of the firmware can be pushed to the terminal by the server, so that a user does not need to pay attention to an official website to download the upgraded version, and the user experience is improved.
Generally, the charging device 300 according to the embodiment of the application can upgrade the firmware in the charging device through the terminals such as the mobile phone and the computer, so that the later-stage compatibility maintenance of the product is facilitated, the product period is prolonged, a USB-to-serial port chip is not required to be installed, and the cost is saved; in addition, when the firmware in the charging device is upgraded through terminals such as a mobile phone and a computer, the charging device is plug-and-play, a driver does not need to be installed, and the operation is convenient.
Although the example embodiments have been described herein with reference to the accompanying drawings, it is to be understood that the above-described example embodiments are merely illustrative and are not intended to limit the scope of the present application thereto. Various changes and modifications may be effected therein by one of ordinary skill in the pertinent art without departing from the scope or spirit of the present application. All such changes and modifications are intended to be included within the scope of the present application as claimed in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another device, or some features may be omitted, or not executed.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the description of exemplary embodiments of the present application, various features of the present application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the application and aiding in the understanding of one or more of the various inventive aspects. However, the method of the present application should not be construed to reflect the intent: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
It will be understood by those skilled in the art that all of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where such features are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some of the modules according to embodiments of the present application. The present application may also be embodied as apparatus programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present application may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only for the specific embodiments of the present application or the description thereof, and the protection scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope disclosed in the present application, and shall be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A charging device, comprising a detection module, a master processor, a private protocol module, an analog switch, and an interface, wherein:
the detection module is used for detecting whether the charging device is connected with an alternating current power supply or not, or detecting user input;
the master processor is configured to:
when the detection module detects that the charging device is connected with the alternating current power supply or detects first user input, the detection module controls the analog switch to connect a data positive and negative signal pin in the interface to the private protocol module, so that the charging device enters a charger mode;
when the detection module detects that the charging device is not connected with the alternating current power supply or detects second user input, the detection module controls the analog switch to connect the data positive and negative signal pins to a universal serial bus protocol module in the main control processor, so that the charging device enters a firmware upgrading mode;
wherein, the firmware upgrading mode is as follows: the master processor receives an upgraded version of firmware from a terminal connected to the interface and overwrites the original firmware in the master processor with the upgraded version of firmware.
2. The charging device of claim 1, wherein the private protocol module comprises a chip separate from the master processor; alternatively, the private protocol module is included in the master processor.
3. The charging device of claim 1, wherein the analog switch comprises a switch chip; alternatively, the analog switch comprises a discrete device composed of metal-oxide semiconductor field effect transistors.
4. The charging device according to any one of claims 1 to 3, wherein the detection module includes an AC-DC power supply module that detects whether the charging device is connected to the AC power supply.
5. The charging device of claim 4, wherein the AC-DC power supply module further outputs power to the equipment to be charged according to the control instruction of the main control processor.
6. A charging arrangement as claimed in any of claims 1 to 3, in which the detection module comprises a key module for detecting the user input.
7. The charging device of claim 6, further comprising a DC-DC power supply module for outputting power to a device to be charged according to a control command of the main control processor.
8. The charging apparatus according to any one of claims 1-3, 5, and 7, wherein the master processor further comprises a public protocol module, such that the charging apparatus can charge the device to be charged according to a public protocol provided by the public protocol module.
9. A charging arrangement as claimed in any of claims 1 to 3, 5 or 7, in which the upgraded version of firmware is pushed to the terminal by a server.
10. The charging apparatus of any of claims 1-3, 5, 7, wherein the data positive and negative signal pins are connected to the universal serial bus protocol module by default.
CN202110859578.2A 2021-07-28 2021-07-28 Charging device Pending CN113659663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110859578.2A CN113659663A (en) 2021-07-28 2021-07-28 Charging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110859578.2A CN113659663A (en) 2021-07-28 2021-07-28 Charging device

Publications (1)

Publication Number Publication Date
CN113659663A true CN113659663A (en) 2021-11-16

Family

ID=78490791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110859578.2A Pending CN113659663A (en) 2021-07-28 2021-07-28 Charging device

Country Status (1)

Country Link
CN (1) CN113659663A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114967894A (en) * 2022-07-27 2022-08-30 荣耀终端有限公司 Electronic device, device identification method and charging system
CN117850565A (en) * 2024-03-08 2024-04-09 闪极科技(深圳)有限公司 Power supply device, firmware upgrade method, and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206147592U (en) * 2016-08-23 2017-05-03 深圳市金立通信设备有限公司 Charger and firmware burns record circuit thereof
US20170293483A1 (en) * 2015-09-24 2017-10-12 Guangdong OPPO Mobile Telecommunications Corp. Ltd Mobile terminal, power adapter, and upgrade method thereof
CN107733720A (en) * 2017-11-09 2018-02-23 顺丰科技有限公司 Portable firmware upgrade method and device
CN110134414A (en) * 2019-04-04 2019-08-16 上海挚想科技有限公司 The mobile power source of firmware upgrade is supported to lease equipment and its upgrade method
CN110457055A (en) * 2019-07-29 2019-11-15 珠海市一微半导体有限公司 A kind of firmware upgrade control method, system and controlling terminal towards fast charge agreement
CN211124020U (en) * 2020-01-09 2020-07-28 深圳市新龙鹏科技有限公司 Portable display remote upgrade control circuit
CN112202941A (en) * 2020-09-30 2021-01-08 努比亚技术有限公司 Accessory control circuit and method based on mobile terminal and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170293483A1 (en) * 2015-09-24 2017-10-12 Guangdong OPPO Mobile Telecommunications Corp. Ltd Mobile terminal, power adapter, and upgrade method thereof
CN206147592U (en) * 2016-08-23 2017-05-03 深圳市金立通信设备有限公司 Charger and firmware burns record circuit thereof
CN107733720A (en) * 2017-11-09 2018-02-23 顺丰科技有限公司 Portable firmware upgrade method and device
CN110134414A (en) * 2019-04-04 2019-08-16 上海挚想科技有限公司 The mobile power source of firmware upgrade is supported to lease equipment and its upgrade method
CN110457055A (en) * 2019-07-29 2019-11-15 珠海市一微半导体有限公司 A kind of firmware upgrade control method, system and controlling terminal towards fast charge agreement
CN211124020U (en) * 2020-01-09 2020-07-28 深圳市新龙鹏科技有限公司 Portable display remote upgrade control circuit
CN112202941A (en) * 2020-09-30 2021-01-08 努比亚技术有限公司 Accessory control circuit and method based on mobile terminal and terminal equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114967894A (en) * 2022-07-27 2022-08-30 荣耀终端有限公司 Electronic device, device identification method and charging system
CN114967894B (en) * 2022-07-27 2023-01-17 荣耀终端有限公司 Electronic device, device identification method and charging system
CN117850565A (en) * 2024-03-08 2024-04-09 闪极科技(深圳)有限公司 Power supply device, firmware upgrade method, and readable storage medium

Similar Documents

Publication Publication Date Title
US9923390B2 (en) Method and apparatus for performing charging port detection control
US9721447B2 (en) Display of rechargeable battery charge notification
CN113659663A (en) Charging device
CN103618356B (en) The charging system of a kind of mobile terminal and charging method thereof
CN104662765B (en) Battery charges and interrupts
US20100109602A1 (en) Charging device and method of operating the same
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
US20100060233A1 (en) Charger with USB detection
JP5005845B2 (en) Electronics
CN108141056A (en) Electronic equipment, charge control method and computer readable recording medium storing program for performing
KR20190000690A (en) Electronic device and method for controlling a charging thereof
US10651663B2 (en) Charging system and method
CN105518967A (en) Apparatus and method to change current limit
CN109254210B (en) Electronic equipment port type detection method and device, detection circuit and electronic equipment
EP2993757A1 (en) Method of managing the charging of battery and electronic device adapted thereto
EP3771987A1 (en) Electronic device for preventing damage of usb device and operating method thereof
US10324512B2 (en) Device power management based on detected power source
US20170063105A1 (en) Charging method, charging controller and charging system
CN107277906B (en) Mode selecting method, device, terminal and computer readable storage medium
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
CN107370196B (en) Charging device and charging method
CN110800168B (en) Method and apparatus for changing impedance of terminal included in connector
CN106776400B (en) Electronic equipment and circuit thereof, switching equipment and circuit thereof and signal control system
JP2014102693A (en) Portable terminal apparatus and power supply method
CN113991804A (en) Charging protocol handshaking circuit and electronic equipment

Legal Events

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