Disclosure of Invention
In view of the above-mentioned defects or shortcomings in the prior art, it is desirable to provide an intelligent battery charging method and an intelligent charger, which can realize automatic upgrade of the firmware of an intelligent battery without manual intervention and the upgrade efficiency is not affected by the number of intelligent batteries.
In a first aspect, the present invention provides an intelligent battery charging method based on an intelligent charger, specifically including:
when the intelligent battery is plugged into the intelligent charger, the intelligent charger inquires the version information of the current firmware of the intelligent battery and compares the version information with the firmware stored in the intelligent charger to obtain a comparison result;
determining whether to upgrade the firmware of the intelligent battery according to the comparison result;
if the intelligent battery does not need to be upgraded, the intelligent battery is directly charged; or,
and if the firmware needs to be upgraded, charging the intelligent battery after the firmware is upgraded or in the upgrading process.
In one or more embodiments of the present invention, when the smart battery is plugged into the smart charger, the smart charger queries version information of the current firmware of the smart battery, and compares the version information with the firmware stored in the smart charger to obtain a comparison result, where the comparison result includes:
and judging whether the version information of the current firmware of the intelligent battery is consistent with the version information of the firmware stored in the intelligent charger.
In one or more embodiments of the present invention, determining whether to upgrade the firmware of the smart battery according to the comparison result includes:
and when the version of the current firmware of the intelligent battery is lower than that of the firmware stored in the intelligent charger, upgrading the firmware of the intelligent battery.
In one or more embodiments of the invention, the method further comprises:
before the intelligent battery is plugged into the intelligent charger, the intelligent charger acquires the latest version of firmware.
In one or more embodiments of the present invention, the obtaining, by the smart charger, the latest version of the firmware includes: the intelligent charger obtains the latest firmware version through network or local download.
In a second aspect, the present invention provides a smart charger comprising:
the storage module is used for storing firmware and the version information of the firmware;
the query comparison module: the intelligent battery management system is used for inquiring the version information of the current firmware of the intelligent battery when the intelligent battery is inserted into the intelligent charger and comparing the version information with the firmware stored in the storage module to obtain a comparison result;
an upgrading module: the intelligent battery firmware updating device is used for determining whether to update the intelligent battery firmware according to the comparison result;
a charging module: the intelligent battery charging method is used for charging the intelligent battery after the firmware is upgraded or in the upgrading process.
In one or more embodiments of the invention, the query comparison module is configured to,
and judging whether the version information of the current firmware of the intelligent battery is consistent with the version information of the firmware stored in the storage module.
In one or more embodiments of the invention, the upgrade module is configured to,
and when the version of the current firmware of the intelligent battery is lower than the version of the firmware stored in the storage module, upgrading the firmware of the intelligent battery.
In one or more embodiments of the present invention, the intelligent charger further includes an obtaining module, configured to obtain a latest version of firmware before the intelligent battery is plugged into the intelligent charger, and store the firmware and version information of the firmware in the storage module.
In one or more embodiments of the present invention, the intelligent charger further includes a display module for displaying a firmware version or an upgrade status of the intelligent battery.
According to the intelligent battery charging method and the intelligent charger, when the intelligent battery is plugged into the intelligent charger, the intelligent charger inquires the version information of the current firmware of the intelligent battery and compares the version information with the firmware stored in the intelligent charger to obtain a comparison result; determining whether to upgrade the firmware of the intelligent battery according to the comparison result; and after the firmware is upgraded or in the upgrading process, charging the intelligent battery. The intelligent battery firmware upgrading system realizes automatic upgrading of the intelligent battery firmware, does not need manual intervention, and liberates manpower; the automatic query of the current firmware version information of the intelligent battery is supported, and the problem of upgrade error or omission is avoided; the intelligent charger is adopted to upgrade the firmware of the intelligent battery, and the upgrading efficiency is not influenced by the quantity of the intelligent batteries.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
An embodiment of the present invention provides an intelligent charger, which supports automatic upgrade of an intelligent battery program, and fig. 1 is a schematic structural diagram of the intelligent charger.
As shown in fig. 1, the intelligent charger includes an acquisition module 110, a storage module 120, a query comparison module 130, an upgrade module 140, and a charging module 150.
The obtaining module 110 is configured to obtain the firmware of the latest version before the smart battery is plugged into the smart charger, and store the firmware and the version information of the firmware in the storage module 120.
It should be noted that the obtaining module 110 may be, but is not limited to, a 4G (full internet access) remote communication module, or an RS232 local communication module.
The obtaining module 110 obtains the latest version of firmware through network or local download.
The storage module 120 is used for storing the firmware and the version information of the firmware.
The storage module 120 allows the firmware of multiple types of batteries to be stored, and the intelligent charger can automatically select the firmware to be upgraded according to the inquired version.
The Memory module 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The storage module 120 is used for storing the upgraded firmware and version information of the firmware, such as version number and the like.
The query and comparison module 130 is configured to query version information of the current firmware of the smart battery when the smart battery is plugged into the smart charger, and compare the version information with the firmware stored in the storage module 120 to obtain a comparison result.
And judging whether the version information of the current firmware of the intelligent battery is consistent with the version information of the firmware stored in the storage module 120. For example, whether the version number of the current firmware of the smart battery is consistent with the version number of the firmware stored in the storage module 120.
And the upgrading module 140 is configured to determine whether to upgrade the smart battery firmware according to the comparison result.
When the version of the current firmware of the smart battery is lower than the version of the firmware stored in the storage module 120, the upgrade module 140 upgrades the firmware of the smart battery.
It should be noted that the intelligent charger may also customize the upgrade policy according to the actual application situation by means of configuration parameters.
And the charging module 150 is used for charging the intelligent battery after the firmware is upgraded or during the upgrading or the upgrading.
The intelligent charger also comprises a display module for displaying the firmware version or the upgrading state of the intelligent battery.
It should be noted that the display module may be, but is not limited to, a display screen or an indicator light.
The intelligent charger and the intelligent battery use the same communication interface, which may be, but not limited to, an RS232 interface, a GPIB interface, or the like.
An intelligent charger supports the control of one or more communication interfaces, can adopt an MCU to control the multiple communication interfaces, also can adopt a total MCU to control a plurality of sub-MCUs, and the sub-MCUs are connected with batteries. The topology can be adjusted according to actual conditions.
An embodiment of the present invention provides an intelligent battery charging method based on an intelligent charger, and fig. 2 is a flowchart of the intelligent battery charging method.
As shown in fig. 2, the intelligent battery charging method specifically includes the following steps:
s210, when the intelligent battery is plugged into the intelligent charger, the intelligent charger inquires the version information of the current firmware of the intelligent battery and compares the version information with the firmware stored in the intelligent charger to obtain a comparison result.
In this embodiment, step S210 is performed by the query comparing module 130. The method specifically comprises the following steps: when the intelligent battery is plugged into the intelligent charger, the query and comparison module 130 queries the version information of the current firmware stored in the intelligent battery, compares the version information with the firmware stored in the storage module 120, and determines whether the version information of the current firmware of the intelligent battery is consistent with the version information of the firmware stored in the storage module 120. For example, whether the version number of the current firmware of the smart battery is consistent with the version number of the firmware stored in the storage module 120.
Before the smart battery is plugged into the smart charger, the latest version of firmware needs to be acquired by the acquisition module 110, and the firmware and the version information of the firmware need to be stored in the storage module 120.
The obtaining module 110 obtains the latest version of firmware including: the latest version of the firmware is obtained through network or local download.
The storage module 120 allows the firmware of multiple types of batteries to be stored, and the intelligent charger can automatically select the firmware to be upgraded according to the inquired version.
And S220, determining whether to upgrade the firmware of the intelligent battery according to the comparison result.
In the present embodiment, step S220 is performed by the upgrade module 140. The method specifically comprises the following steps:
when the version of the current firmware of the smart battery is lower than the version of the firmware stored in the storage module 120, the upgrade module 140 upgrades the firmware of the smart battery;
when the version of the current firmware of the smart battery is greater than or equal to the version of the firmware stored in the storage module 120, the upgrade module 140 does not upgrade the firmware of the smart battery.
It should be noted that the intelligent charger may also customize the upgrade policy according to the actual application situation by means of configuration parameters.
And S230, after the firmware is upgraded or in the upgrading process, charging the intelligent battery.
In this embodiment, step S230 is executed by the charging module 150.
In summary, according to the intelligent battery charging method and the intelligent charger provided by the embodiments of the present invention, when the intelligent battery is plugged into the intelligent charger, the intelligent charger queries the version information of the current firmware of the intelligent battery, and compares the version information with the firmware stored in the intelligent charger to obtain a comparison result; determining whether to upgrade the firmware of the intelligent battery according to the comparison result; and after the firmware is upgraded or in the upgrading process, charging the intelligent battery. The intelligent battery firmware upgrading system realizes automatic upgrading of the intelligent battery firmware, does not need manual intervention, and liberates manpower; the automatic query of the current firmware version information of the intelligent battery is supported, and the problem of upgrade error or omission is avoided; the intelligent charger is adopted to upgrade the firmware of the intelligent battery, and the upgrading efficiency is not influenced by the quantity of the intelligent batteries.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. The names of these units or modules do not in some cases form a limitation of the present application.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.