Summary of the invention
In view of drawbacks described above in the prior art or deficiency, it is intended to provide one kind and does not need manual intervention, can be realized intelligence
The automatic upgrading of energy battery firmware, and upgrade intelligent battery charging method and intelligently fill that efficiency is not influenced by intelligent battery quantity
Electric appliance.
In a first aspect, the present invention provides a kind of intelligent battery charging method based on intelligent charger, specifically include:
When intelligent battery is inserted on intelligent charger, intelligent charger inquires the version letter of intelligent battery current firmware
Breath, and compare to obtain comparing result with the firmware stored in intelligent charger;
Determine whether to upgrade intelligent battery firmware according to comparing result;
It directly charges to the intelligent battery if not needing upgrading;Alternatively,
If desired upgrade, then it is after the completion of firmware upgrade or during upgrading, it charges to the intelligent battery.
In one or more embodiment of the invention, when intelligent battery is inserted on intelligent charger, intelligent charger inquiry
The version information of intelligent battery current firmware, and compare to obtain comparing result packet with the firmware stored in intelligent charger
It includes:
Judge the firmware stored in the version information and intelligent charger of intelligent battery current firmware version information whether
Unanimously.
In one or more embodiment of the invention, determined whether to carry out upgrade package to intelligent battery firmware according to comparing result
It includes:
When version of the version of intelligent battery current firmware lower than the firmware stored in intelligent charger, to intelligent battery
Firmware upgraded.
In one or more embodiment of the invention, this method further include:
Before intelligent battery is inserted on intelligent charger, intelligent charger obtains the firmware of latest edition.
In one or more embodiment of the invention, the firmware that intelligent charger obtains latest edition includes: intelligent charger
By network or it is locally-downloaded to obtain the firmware of latest edition.
Second aspect, the present invention provide a kind of intelligent charger, comprising:
Memory module, for storing the version information of firmware and firmware;
Inquire contrast module: for inquiring intelligent battery current firmware when intelligent battery is inserted on intelligent charger
Version information, and compare to obtain comparing result with the firmware stored in the memory module;
Upgraded module: for determining whether to upgrade intelligent battery firmware according to comparing result;
Charging module: it is after the completion or during upgrading for firmware upgrade, it charges to intelligent battery.
In one or more embodiment of the invention, inquiry contrast module is used for,
Judging the version information of the firmware stored in the version information and the memory module of intelligent battery current firmware is
It is no consistent.
In one or more embodiment of the invention, upgraded module is used for,
When version of the version of intelligent battery current firmware lower than the firmware stored in the memory module, to intelligent electricity
The firmware in pond is upgraded.
In one or more embodiment of the invention, which further includes obtaining module, for inserting when intelligent battery
Before on to intelligent charger, the firmware of latest edition is obtained, and the version information of the firmware and firmware is stored in described
In memory module.
In one or more embodiment of the invention, which further includes display module, for showing intelligent battery
Firmware version or upgrade status.
Intelligent battery charging method provided in an embodiment of the present invention and intelligent charger, when intelligent battery is inserted into intelligent charge
When on device, intelligent charger inquires the version information of intelligent battery current firmware, and with the firmware that is stored in intelligent charger into
Row comparison obtains comparing result;Determine whether to upgrade intelligent battery firmware according to comparing result;After the completion of firmware upgrade
Or it is during upgrading, it charges to intelligent battery.Its automatic upgrading for realizing intelligent battery firmware, does not need manual intervention, solution
Manpower is put;The automatic inquiry for supporting intelligent battery current version of firmware information, the problem of avoiding staging error or omit;It adopts
Intelligent battery firmware is upgraded with intelligent charger, upgrading efficiency will not be influenced by intelligent battery quantity.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
The embodiment of the invention provides a kind of intelligent charger, which supports the automatic liter of intelligent battery program
Grade, if Fig. 1 is the structural schematic diagram of the intelligent charger.
As shown in Figure 1, the intelligent charger includes obtaining module 110, memory module 120, is risen inquiry contrast module 130
Grade module 140 and charging module 150.
Module 110 is obtained, for obtaining the firmware of latest edition before intelligent battery is inserted on intelligent charger, and
The version information of the firmware and firmware is stored in memory module 120.
It should be noted that obtaining module 110 may be, but not limited to, 4G (the whole network is logical) remote communication module, or
RS232 Local Communication Module etc..
Module 110 is obtained by network or is locally-downloaded to obtain the firmware of latest edition.
Memory module 120, for storing the version information of firmware and firmware.
Allow to store the firmware of multi-model number in memory module 120, intelligent charger can be according to the version inquired
Firmware is automatically selected to be upgraded.
It should be noted that memory module 120 may be, but not limited to, random access memory (Random Access
Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable
Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Me-
Mory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Program-mable Read-Only
Memory, EEPROM) etc..Wherein memory module 120 is used to store the version information of firmware updating and firmware, such as version number
Etc..
Contrast module 130 is inquired, for inquiring intelligent battery current firmware when intelligent battery is inserted on intelligent charger
Version information, and compare to obtain comparing result with the firmware stored in memory module 120.
Whether judge the version information of firmware stored in the version information and memory module 120 of intelligent battery current firmware
Unanimously.Such as the version number of intelligent battery current firmware whether the version number one with the firmware stored in memory module 120
It causes.
Upgraded module 140, for determining whether to upgrade intelligent battery firmware according to comparing result.
When version of the version of intelligent battery current firmware lower than the firmware stored in memory module 120, upgraded module
The firmware of 140 pairs of intelligent batteries upgrades.
It should be noted that the intelligent charger can also be customized by way of configuration parameter according to practical situations
Escalation policy.
Charging module 150, it is during upgrading or during upgrading after the completion for firmware upgrade, it charges to intelligent battery.
The intelligent charger further includes display module, for showing the firmware version or upgrade status of intelligent battery.
It should be noted that display module may be, but not limited to, display screen or indicator light etc..
It should be noted that intelligent charger and intelligent battery use identical communication interface, may be, but not limited to,
RS232 interface or gpib interface etc..
One intelligent charger supports the control of one or more communication interface, can control multiple pass using a MCU
Believe interface, multiple sub- MCU can also be controlled using a total MCU, sub- MCU reconnects battery.Topological structure is according to the actual situation
It is adjustable.
The intelligent battery charging method based on intelligent charger that the embodiment of the invention provides a kind of, if Fig. 2 is the intelligence
The flow chart of method for charging batteries.
As shown in Fig. 2, the intelligent battery charging method specifically includes the following steps:
S210, when intelligent battery is inserted on intelligent charger, intelligent charger inquires the version of intelligent battery current firmware
This information, and compare to obtain comparing result with the firmware stored in intelligent charger.
In the present embodiment, step S210 is executed by inquiry contrast module 130.Specifically: when intelligent battery is inserted into intelligence
When on charger, inquiry contrast module 130 inquires the version information of the current firmware of intelligent battery storage, and and memory module
The firmware stored in 120 compares, and judges that is stored in the version information and memory module 120 of intelligent battery current firmware consolidates
Whether the version information of part is consistent.Such as the version number of intelligent battery current firmware whether with stored in memory module 120
Firmware version number it is consistent.
It should be noted that needing to obtain most by obtaining module 110 before intelligent battery is inserted on intelligent charger
The firmware of new version, and the version information of the firmware and firmware is stored in memory module 120.
Obtaining module 110 and obtaining the firmware of latest edition includes: by network or to be locally-downloaded to obtain consolidating for latest edition
Part.
Allow to store the firmware of multi-model number in memory module 120, intelligent charger can be according to the version inquired
Firmware is automatically selected to be upgraded.
S220 determines whether to upgrade intelligent battery firmware according to comparing result.
In the present embodiment, step S220 is executed by upgraded module 140.Specifically:
When version of the version of intelligent battery current firmware lower than the firmware stored in memory module 120, upgraded module
The firmware of 140 pairs of intelligent batteries upgrades;
When the version of intelligent battery current firmware is more than or equal to the version of the firmware stored in memory module 120,
Upgraded module 140 does not upgrade the firmware of intelligent battery.
It should be noted that the intelligent charger can also be customized by way of configuration parameter according to practical situations
Escalation policy.
S230, it is after the completion of firmware upgrade or during upgrading, it charges to intelligent battery.
In the present embodiment, step S230 is executed by charging module 150.
In conclusion a kind of intelligent battery charging method provided in an embodiment of the present invention and intelligent charger, when intelligent electricity
When pond is inserted on intelligent charger, intelligent charger inquires the version information of intelligent battery current firmware, and and intelligent charger
The firmware of middle storage compares to obtain comparing result;Determine whether to upgrade intelligent battery firmware according to comparing result;
It is after the completion of firmware upgrade or during upgrading, it charges to intelligent battery.Its automatic upgrading for realizing intelligent battery firmware, is not required to
Manual intervention is wanted, manpower has been liberated;Support intelligent battery current version of firmware information automatic inquiry, avoid staging error or
The problem of omission;Intelligent battery firmware is upgraded using intelligent charger, upgrading efficiency will not be by intelligent battery quantity
It influences.
In embodiment provided by the present application, it should be understood that disclosed device and method can also pass through others
Mode is realized.Arrangement described above embodiment is only schematical, for example, the flow chart and block diagram in the drawings show roots
According to the device of multiple embodiments of the invention, system frame structure, function and the behaviour in the cards of method and computer program product
Make.In this regard, each box in flowchart or block diagram can represent a part of a module, section or code, institute
The a part for stating module, section or code includes one or more executable instructions for implementing the specified logical function.
It should also be noted that function marked in the box can also be to be different from attached drawing in some implementations as replacement
The sequence marked occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes can also be by
Opposite sequence executes, and this depends on the function involved.It is also noted that each box in block diagram and or flow chart,
And the combination of the box in block diagram and/or process, can function or movement as defined in executing it is dedicated hardware based
System is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in the embodiment of the present application can integrate one independent part of formation together,
It can be modules individualism, an independent part can also be integrated to form with two or more modules.
Being described in the embodiment of the present application involved unit or module can be realized by way of software, can also be with
It is realized by way of hardware.Described unit or module also can be set in the processor, for example, each unit can be with
It is the software program being arranged in computer or intelligent movable equipment, is also possible to the hardware device being separately configured.Wherein, these
The title of unit or module does not constitute the restriction to the unit or module the application under certain conditions.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.