[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113692065A - Firmware upgrading method and battery management system - Google Patents

Firmware upgrading method and battery management system Download PDF

Info

Publication number
CN113692065A
CN113692065A CN202110846021.5A CN202110846021A CN113692065A CN 113692065 A CN113692065 A CN 113692065A CN 202110846021 A CN202110846021 A CN 202110846021A CN 113692065 A CN113692065 A CN 113692065A
Authority
CN
China
Prior art keywords
firmware
data
upper computer
upgrade
upgrading
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
CN202110846021.5A
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.)
Dongguan Poweramp Technology Ltd
Original Assignee
Dongguan Poweramp Technology 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 Dongguan Poweramp Technology Ltd filed Critical Dongguan Poweramp Technology Ltd
Priority to CN202110846021.5A priority Critical patent/CN113692065A/en
Publication of CN113692065A publication Critical patent/CN113692065A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the field of batteries, and discloses a firmware upgrading method and a battery management system. The method comprises scanning a wireless local area network; if the wireless local area network of the upper computer is identified, establishing connection with the upper computer through the wireless local area network; the method comprises the steps of receiving upgrade data sent by an upper computer, upgrading firmware through the upgrade data, and enabling a battery management system to be connected with the battery management system through a wireless local area network scanning the upper computer, so that the upgrade data sent by the upper computer are received, and the firmware is upgraded. Therefore, when a plurality of battery management systems need to be upgraded, the wireless local area networks of the upper computers can be scanned to establish connection with the battery management systems respectively and receive upgrade data sent by the upper computers respectively, so that batch firmware upgrade is realized, and upgrade efficiency is improved.

Description

Firmware upgrading method and battery management system
Technical Field
The present disclosure relates to the field of batteries, and in particular, to a firmware upgrade method and a battery management system.
Background
The firmware upgrading of the battery management system in the current market generally needs to be accessed to a CAN card or an RS485 interface card or a U disk, the firmware upgrading mode CAN only realize point-to-point upgrading, and a large amount of manpower and time are consumed to finish batch upgrading in practical application.
For example, in the conventional technology, a usb disk is used for upgrading, the method needs to import an upgrade file into the usb disk, then the usb disk is inserted into a battery management system, and the battery management system copies the upgrade file from the usb disk and completes the upgrade.
Disclosure of Invention
The embodiment of the application provides a firmware upgrading method and a battery management system, which can improve upgrading efficiency and realize batch upgrading.
In a first aspect, an embodiment of the present application provides a firmware upgrade method, where the method includes: a wireless local area network is scanned. And if the wireless local area network of the upper computer is identified, establishing connection with the upper computer through the wireless local area network. And receiving the upgrading data sent by the upper computer, and upgrading the firmware through the upgrading data.
In some embodiments, the upgrade data includes version matching data and firmware upgrade data. The receiving the upgrade data that the host computer sent to through the upgrade data carries out firmware upgrading, include: and receiving the version matching data sent by the upper computer, and processing the version matching data to determine whether the versions are matched. And if the versions are matched, receiving firmware upgrading data sent by the upper computer, and upgrading the firmware through the firmware upgrading data.
In some embodiments, said processing said version match data to determine if the versions match comprises: decrypting the version matching data through a decryption algorithm, and performing fool-proofing diagnosis on the version matching data based on fool-proofing information to determine whether the versions are matched.
In some embodiments, the fool-proof information includes company information, an item number, and a fool-proof code. The performing fool-proofing diagnosis on the version matching data based on fool-proofing information to determine whether the versions match includes: and comparing whether the company information carried in the version matching data is consistent with the company information in the fool-proof information, comparing whether the item number carried in the version matching data is consistent with the item number in the fool-proof information, and comparing whether the fool-proof code carried in the version matching data is consistent with the fool-proof code in the fool-proof information. And if the company information, the item number and the fool-proof code carried in the version matching data are consistent with the company information, the item number and the fool-proof code in the fool-proof information, determining that the versions are matched.
In some embodiments, the receiving, if the versions match, firmware upgrade data sent by the upper computer includes: and if the versions are matched, encrypting the version matching success state. And sending the version matching success state after the encryption processing to an upper computer so that the upper computer sends firmware upgrading data to the battery management system. And receiving firmware upgrading data transmitted by the upper computer.
In some embodiments, the performing the firmware upgrade through the firmware upgrade data includes: and verifying the firmware upgrading data. And if the verification is passed, upgrading the firmware through the firmware upgrading data.
In some embodiments, after the firmware upgrade with the data, the method further comprises: and if the firmware is successfully upgraded, encrypting the upgrade success state, and sending the upgrade success state subjected to encryption processing to the upper computer so as to prompt the upper computer that the upgrade is successful. And if the firmware fails to be upgraded, encrypting the upgrading failure state, and sending the upgrading failure state subjected to encryption processing to the upper computer so as to enable the upper computer to display the serial number of the firmware which fails to be upgraded.
In a second aspect, an embodiment of the present application provides a firmware upgrade method, where the method includes confirming each battery management system connected to the upper computer through a wireless local area network. And sending upgrading data to each battery management system, wherein the upgrading data is used for upgrading the firmware of the battery management systems.
In some embodiments, the method further comprises: and acquiring an upgrade file, and encrypting and foolproof the upgrade file to acquire the upgrade data.
In a third aspect, an embodiment of the present application further provides a battery management system, including: and the wireless communication unit is used for establishing wireless communication connection with the upper computer. And the control unit is in communication connection with the wireless communication unit. Wherein the control unit includes: the system includes at least one processor, and a memory communicatively coupled to the at least one processor. Wherein the memory stores instructions executable by the at least one processor to enable the battery management system to perform the above method.
In a fourth aspect, embodiments of the present application further provide a non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a processor, cause the battery management system to perform the above method.
In the embodiment of the application, the wireless local area network is scanned, the wireless local area network of the upper computer is identified, if the wireless local area network of the upper computer is identified, the wireless local area network is connected with the upper computer through the wireless local area network, the upgrading data sent by the upper computer is received, and the firmware is upgraded through the upgrading data. The battery management system of the embodiment of the application can establish connection with the upper computer through the wireless local area network of the scanning upper computer, so that the upgrading data sent by the upper computer is received, and firmware upgrading is realized. Therefore, when a plurality of battery management systems need to be upgraded, the wireless local area networks of the upper computers can be scanned to establish connection with the battery management systems respectively and receive upgrade data sent by the upper computers respectively, so that batch firmware upgrade is realized, and upgrade efficiency is improved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a schematic diagram of an application scenario of a firmware upgrade method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a firmware upgrade method according to an embodiment of the present application;
FIG. 3 is a schematic flowchart of firmware upgrade by upgrade data according to an embodiment of the present application;
FIG. 4 is a flow diagram illustrating a process for determining whether versions match in one embodiment of the present application;
FIG. 5 is a schematic flow chart illustrating fool-proofing diagnosis performed in one embodiment of the present application;
FIG. 6 is a schematic flow chart illustrating the reception of firmware upgrade data in one embodiment of the present application;
FIG. 7 is a schematic flow chart illustrating encryption of firmware upgrade status according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating a firmware upgrade method according to another embodiment of the present application;
FIG. 9 is a schematic structural diagram of a firmware upgrading device according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a firmware upgrade apparatus according to another embodiment of the present application;
fig. 11 is a schematic diagram of a hardware structure of a control unit in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that, if not conflicted, the various features of the embodiments of the present application may be combined with each other within the scope of protection of the present application. Additionally, while functional block divisions are performed in apparatus schematics, with logical sequences shown in flowcharts, in some cases, steps shown or described may be performed in sequences other than block divisions in apparatus or flowcharts. In addition, the words "first", "second", "third", and the like used herein do not limit the data and execution order, but merely distinguish the same items or similar items having substantially the same functions and actions.
The firmware upgrading method provided by the embodiment of the application is suitable for the application scene shown in fig. 1 and comprises a battery management system 100 and an upper computer 200, wherein the battery management system 100 comprises a wireless communication unit 101 and a control unit 102, the control unit 102 is in communication connection with the wireless communication unit 101, the upper computer 200 is installed on mobile equipment or a server, and in actual application, the wireless communication unit 101 can work in an STA mode, the upper computer 200 can work in an AP mode, the AP mode is a wireless access point mode, and is a central node of a network, the STA mode can be a station for each equipment accessed into the wireless network, and the STA can join the wireless network formed by the STA. The battery management system 100 is in wireless communication connection with the upper computer 200 through a wireless communication unit 101, and the battery management system 100 is used for receiving upgrade data sent by the upper computer 200 and upgrading firmware through the upgrade data.
It should be noted that the method provided by the embodiment of the present application may be further extended to other suitable application environments, and is not limited to the application environment shown in fig. 1. In the actual application process, the application environment can also comprise more or fewer battery management systems and upper computers.
As shown in fig. 2, an embodiment of the present application provides a firmware upgrade method, where the method includes:
step 202, scanning for a wireless local area network.
In the embodiment of the application, the wireless local area network is actively scanned by the wireless communication unit in the battery management system. Optionally, before the wireless communication unit scans the wireless local area network, the wireless communication unit operates in the STA mode, where the STA mode may be a station for each device accessing the wireless network.
And 204, if the wireless local area network of the upper computer is identified, establishing connection with the upper computer through the wireless local area network.
In the embodiment of the application, the upper computer works in an AP mode, the AP mode is a wireless access point mode and is a central node of a network, and the STA can join the wireless network. In some embodiments, the wireless local area network name of the upper computer is a project number, and the password is a fixed access password. Because the item number has uniqueness and is solidified in the program of the battery management system, the readability can be improved by using the item number as the name of the wireless local area network, and meanwhile, the misconnection of the battery management system and an upper computer can be avoided.
Specifically, before a wireless communication unit in the battery management system scans a wireless local area network, the battery management system sends a project number to the wireless communication unit as a scanning name, when the wireless communication unit actively scans the wireless local area network, each wireless local area network can be identified, and if the wireless local area network of an upper computer is identified, a password is used to establish connection with the upper computer through the wireless local area network.
And step 206, receiving the upgrading data sent by the upper computer, and upgrading the firmware through the upgrading data.
Specifically, after the wireless communication unit is in communication connection with the upper computer, the wireless communication unit can receive upgrade data sent by the upper computer and then transmit the upgrade data to the battery management system for firmware upgrade.
In the embodiment of the application, through scanning the wireless local area network to discern the wireless local area network of host computer, if discern the wireless local area network of host computer, then establish the connection through wireless local area network with the host computer, receive the upgrading data that the host computer sent, and pass through the firmware upgrading is carried out to the upgrading data, and battery management system can establish the connection through the wireless local area network of scanning the host computer with it, thereby receives the upgrading data that the host computer sent, realizes the firmware upgrading. Therefore, when a plurality of battery management systems need to be upgraded, the wireless local area networks of the upper computers can be scanned to establish connection with the battery management systems respectively and receive upgrade data sent by the upper computers respectively, so that batch firmware upgrade is realized, and upgrade efficiency is improved.
In some embodiments, the upgrade data includes version matching data and firmware upgrade data, and as an implementation of step 206, as shown in fig. 3, the method includes:
and step 302, receiving the version matching data sent by the upper computer.
In the embodiment of the application, the version matching data is used for version matching, the upper computer sends the version matching data to the wireless communication unit of the battery management system in batch, and the wireless communication unit of the battery management system receives the version matching data sent by the upper computer.
Step 304, the version matching data is processed to determine whether the versions match.
Specifically, after receiving the version matching data sent by the upper computer, the wireless communication unit transmits the version matching data to the battery management system, so that the battery management system processes the version matching data, and thus whether the versions are matched is determined.
In some embodiments, as an implementation of step 304, as shown in fig. 4, the method includes:
step 402, decrypting the version matching data through a decryption algorithm.
In the embodiment of the present application, after the battery management system receives the version matching data transmitted by the wireless communication unit, the version matching data is decrypted, specifically, the version matching data is decrypted by a decryption algorithm.
And step 404, performing fool-proofing diagnosis on the version matching data based on the fool-proofing information to determine whether the versions are matched.
In the embodiment of the application, the fool-proof information includes company information, a project number and a fool-proof code, and in addition, the fool-proof information further includes a size of a firmware file to be upgraded, size verification information of the firmware to be upgraded, and the like. After the version matching data is decrypted, fool-proofing diagnosis needs to be performed on the version matching data. The purpose of performing fool-proof diagnosis on the version matching data is to prevent program exception caused by upgrading into programs of other items, and prevent uncontrollable exception of a system caused by unmatched upgraded program hardware, such as error triggering of a relay and the like. Specifically, after the battery management system decrypts the version matching data, fool-proofing processing is performed on the version matching data based on the fool-proofing information, and whether the versions are matched or not is finally determined.
In some embodiments, as an implementation of step 404, as shown in fig. 5, the method includes:
step 502, comparing whether the company information carried in the version matching data is consistent with the company information in the fool-proof information.
In the embodiment of the application, the battery management system performs fool-proof diagnosis on the version matching data based on the fool-proof information, and needs to compare whether company information carried in the version matching data is consistent with company information in the fool-proof information.
Step 504, comparing whether the item number carried in the version matching data is consistent with the item number in the fool-proof information.
In the embodiment of the present application, it is necessary to compare whether the company information carried in the version matching data is consistent with the company information in the fool-proof information, and also to compare whether the item number carried in the version matching data is consistent with the item number in the fool-proof information.
Step 506, comparing whether the fool-proof code carried in the version matching data is consistent with the fool-proof code in the fool-proof information.
In the embodiment of the present application, in addition to comparing whether the company information and the item number carried in the version matching data are consistent with the company information and the item number in the fool-proof information, it is also required to compare whether the fool-proof code carried in the version matching data is consistent with the fool-proof code in the fool-proof information.
Step 508, if the company information, the item number and the fool-proof code carried in the version matching data are consistent with the company information, the item number and the fool-proof code in the fool-proof information, determining that the versions are matched.
In the embodiment of the present application, the version matching is determined, and three conditions need to be satisfied, one of which is that the company information carried in the version matching data is consistent with the company information in the fool-proof information, the other of which is that the item number carried in the version matching data is consistent with the item number in the fool-proof information, the other of which is that the fool-proof code carried in the version matching data is consistent with the fool-proof code in the fool-proof information, and the three of which are satisfied simultaneously, and the versions are considered to be matched.
And step 306, if the versions are matched, receiving firmware upgrading data sent by the upper computer.
And 308, upgrading the firmware through the firmware upgrading data.
In the embodiment of the application, the firmware upgrading data is used for upgrading the firmware, and after the battery management system processes the version matching data, if the versions are matched, the firmware upgrading data sent by the upper computer is received, and the firmware is upgraded through the firmware upgrading data.
In some embodiments, as an implementation of step 306, as shown in fig. 6, the method further includes:
step 602, if the versions match, encrypting the version matching success status.
In the embodiment of the application, after the battery management system performs decryption processing and fool-proof diagnosis on the version matching data, the version matching is determined, the version matching success state is encrypted, the version matching success state can be encrypted through an encryption algorithm, and the encrypted version matching success state is sent to the wireless communication unit, so that the safety of the data can be ensured.
And step 604, sending the version matching success state after the encryption processing to an upper computer so that the upper computer sends firmware upgrading data to the battery management system.
Specifically, after the wireless communication unit receives the version matching success state which is sent by the battery management system and is subjected to the encryption processing, the version matching success state which is subjected to the encryption processing is sent to the upper computer in a wireless communication mode, and when the upper computer receives the version matching success state which is subjected to the encryption processing, the firmware upgrading data are sent to the battery management system.
And step 608, receiving the firmware upgrading data transmitted by the upper computer.
Specifically, when the upper computer receives the version matching success state after the encryption processing, the firmware upgrading data can be continuously sent to the wireless communication unit, the wireless communication unit receives the firmware upgrading data transmitted by the upper computer, and then the firmware upgrading data is sent to the battery management system.
In some embodiments, as an implementation of step 308, the method includes: verifying the firmware upgrading data; and if the verification is passed, upgrading the firmware through the firmware upgrading data.
In the embodiment of the application, after the battery management system receives the firmware upgrading data, the firmware upgrading data is verified. Specifically, the upper computer performs byte length calculation on the firmware upgrading data and CRC32 check calculation on the firmware upgrading data in advance, and then puts the calculation result and the fool-proof information together and sends the calculation result and the fool-proof information to the battery management system. The battery management system records the byte length of the firmware upgrade data and the CRC32 check code. After the battery management system receives all the firmware upgrading data, the length of the firmware upgrading data is calculated, CRC32 calculation is carried out on all the firmware upgrading data to obtain an actual check code, then the theoretical check code and the byte length sent by the wireless communication unit are compared with the actually calculated check code and the actually calculated byte length, if the theoretical check code and the actually calculated check code are equal to the actually calculated check code and the actually calculated byte length, the firmware upgrading data is considered to be received correctly, the check is passed, and then the firmware is upgraded through the firmware upgrading data.
In some embodiments, as shown in fig. 7, after the firmware upgrade is performed through the data, the method further includes:
step 702, if the firmware is successfully upgraded, encrypting the upgrade success state.
In the embodiment of the present application, if the firmware is successfully upgraded, the battery management system encrypts the upgrade successful status, and specifically, the upgrade successful status may be encrypted by a conventional encryption algorithm. Meanwhile, the battery management system can prompt a user that the firmware is upgraded successfully through the LED lamp.
And 704, sending the upgrade success state subjected to the encryption processing to the upper computer so as to prompt the upper computer that the upgrade is successful.
Specifically, after the battery management system encrypts the upgrade success state, the encrypted upgrade success state is sent to the wireless communication unit, and the wireless communication unit sends the upgrade success state subjected to encryption processing to the upper computer, so that the upper computer prompts that the upgrade is successful, and the user can clearly know that the upgrade is successful through the upper prompt.
Step 706, if the firmware fails to be upgraded, the upgrade failure status is encrypted.
In the embodiment of the application, whether the firmware upgrading is successful or not, the upgrading state needs to be encrypted and then sent to the upper computer. When the firmware of the battery management system fails to be upgraded, the battery management system can encrypt the upgrading failure state, and similarly, the upgrading failure state can be encrypted by adopting the existing encryption mode.
Step 708, sending the encrypted upgrade failure state to the upper computer, so that the upper computer displays the firmware serial number of the upgrade failure.
Specifically, after the battery management system encrypts the upgrade failure state, the encrypted upgrade failure state is sent to the wireless communication unit, the wireless communication unit sends the encrypted upgrade failure state to the upper computer in a wireless communication mode, and the upper computer displays the firmware serial number of the upgrade failure after receiving the upgrade failure state, and specifically, can mark the firmware serial number of the upgrade failure.
In other embodiments, as shown in fig. 8, an embodiment of the present application further provides a firmware upgrading method, where the method is executed by an upper computer, and the method includes:
and step 802, confirming each battery management system connected with the upper computer through a wireless local area network.
In the embodiment of the application, the number of the battery management systems can be multiple, the wireless communication unit in the battery management system scans the wireless local area network, the wireless local area network is connected with the upper computer through the wireless local area network, and then the upper computer confirms each battery management system connected with the upper computer through the wireless local area network.
Step 804, sending the upgrade data to each battery management system, where the upgrade data is used for firmware upgrade of the battery management systems.
In the embodiment of the application, the upgrade data is used for firmware upgrade of the battery management system, wherein the upgrade data includes version matching data and firmware upgrade data. Specifically, after the battery management system and the upper computer establish communication connection, the upper computer sends the upgrade data to the wireless communication units of the battery management systems, so that the wireless communication units send the upgrade data to the battery management systems.
In some embodiments, the method further comprises obtaining an upgrade file; and encrypting and fool-proof processing is carried out on the upgrade file to obtain the upgrade data.
Specifically, a user imports an upgrade file on an upper computer of the electronic device, the upper computer acquires the upgrade file, the upgrade file is encrypted and foolproof, upgrade data is generated, the upgrade data is acquired, and the upgrade data is sent to a battery management system for firmware upgrade.
In the embodiment of the application, the upper computer confirms each battery management system connected with the upper computer through the wireless local area network, and then sends the upgrading data to each battery management system, so that the battery management system upgrades the firmware through the upgrading data, therefore, batch firmware upgrading can be realized through the wireless local area network, the upgrading efficiency can be improved, and upgrading omission and upgrading errors can be avoided.
Correspondingly, an embodiment of the present application further provides a firmware upgrading apparatus 900, as shown in fig. 9, the apparatus 900 includes:
a scanning module 902, configured to scan a wireless local area network;
the connection module 904 is used for establishing connection with the upper computer through a wireless local area network if the wireless local area network of the upper computer is identified;
and the upgrading module 906 is configured to receive upgrading data sent by the upper computer, and upgrade firmware through the upgrading data.
In the embodiment of the application, the wireless local area network is scanned through the scanning module, if the wireless local area network of the upper computer is identified, the wireless local area network is connected with the upper computer through the connecting module, then the upgrading data sent by the upper computer is received, the firmware upgrading is carried out through the upgrading data through the upgrading module, the battery management system can be connected with the wireless local area network through the wireless local area network of the scanning upper computer, the upgrading data sent by the upper computer is received, and the firmware upgrading is achieved. Therefore, when a plurality of battery management systems need to be upgraded, the wireless local area networks of the upper computers can be scanned to establish connection with the battery management systems respectively and receive upgrade data sent by the upper computers respectively, so that batch firmware upgrade is realized, and upgrade efficiency is improved.
Optionally, in another embodiment of the apparatus, as shown in fig. 9, the apparatus 900 further includes:
a setting module 908 for operating the wireless communication unit in an STA mode. The upper computer works in an AP mode.
Optionally, in another embodiment of the apparatus, as shown in fig. 9, the apparatus 900 further includes:
the first encryption module 910 is configured to encrypt the upgrade success status if the firmware is upgraded successfully;
the prompt module 912 is configured to send the upgrade success status subjected to the encryption processing to the upper computer, so that the upper computer prompts that the upgrade is successful.
The second encryption module 914 is used for encrypting the upgrade failure state if the firmware upgrade fails;
the display module 916 is configured to send the encrypted upgrade failure status to the upper computer, so that the upper computer displays a firmware serial number of the upgrade failure.
Optionally, in other embodiments of the apparatus, the connection module 904 is specifically configured to:
and establishing connection with the upper computer through the wireless local area network by using the password.
Optionally, in other embodiments of the apparatus, the upgrade module 906 is specifically configured to:
receiving version matching data sent by the upper computer;
processing the version matching data to determine whether the versions match;
if the versions are matched, receiving firmware upgrading data sent by the upper computer;
and upgrading the firmware through the firmware upgrading data.
Decrypting the version matching data by a decryption algorithm; and the number of the first and second groups,
and performing fool-proofing diagnosis on the version matching data based on fool-proofing information to determine whether the versions are matched.
Comparing whether the company information carried in the version matching data is consistent with the company information in the fool-proof information or not; and the number of the first and second groups,
comparing whether the item number carried in the version matching data is consistent with the item number in the fool-proof information or not; and the number of the first and second groups,
comparing whether a fool-proof code carried in the version matching data is consistent with a fool-proof code in the fool-proof information;
and if the company information, the item number and the fool-proof code carried in the version matching data are consistent with the company information, the item number and the fool-proof code in the fool-proof information, determining that the versions are matched.
If the versions are matched, encrypting the version matching success state;
sending the version matching success state after the encryption processing to an upper computer so that the upper computer sends firmware upgrading data to the battery management system;
and receiving firmware upgrading data transmitted by the upper computer.
Verifying the firmware upgrading data;
and if the verification is passed, upgrading the firmware through the firmware upgrading data.
Optionally, in other embodiments of the apparatus, the battery management system comprises a wireless communication unit.
Optionally, in other embodiments of the apparatus, the name of the wireless local area network of the upper computer is a project number.
Optionally, in another embodiment of the apparatus, the upgrade data includes version matching data and firmware upgrade data.
Optionally, in other embodiments of the apparatus, the fool-proof information includes company information, an item number, and a fool-proof code.
Correspondingly, an embodiment of the present application further provides a firmware upgrading apparatus 1000, as shown in fig. 10, the apparatus 1000 includes:
a confirmation module 1002, configured to confirm each battery management system connected to the upper computer through a wireless local area network;
the upgrading module 1004 is configured to send upgrading data to each battery management system, where the upgrading data is used for upgrading firmware of the battery management systems.
In the embodiment of the application, each battery management system connected with the upper computer through a wireless local area network is confirmed through the confirmation module, then the upgrading data is sent to each battery management system, and firmware upgrading is carried out on the battery management systems through the upgrading data through the upgrading module, so that batch firmware upgrading can be realized, and the upgrading efficiency is improved.
Optionally, in another embodiment of the apparatus, as shown in fig. 10, the apparatus 1000 further includes:
an obtaining module 1006, configured to obtain an upgrade file;
the processing module 1008 is configured to encrypt and fool-proof the upgrade file to obtain the upgrade data.
It should be noted that the firmware upgrading apparatus can execute the firmware upgrading method provided by the embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in the embodiment of the firmware upgrading apparatus, reference may be made to the firmware upgrading method provided in the embodiment of the present invention.
Fig. 11 is a schematic diagram of a hardware structure of a control unit in the battery management system provided in the present invention, and as shown in fig. 11, the control unit 1100 includes:
one or more processors 1102, and a memory 1104, one processor 1102 being illustrated in fig. 11.
The processor 1102 and the memory 1104 may be coupled by a bus or other means, such as by a bus in FIG. 11.
The memory 1104, which is a non-volatile computer-readable storage medium, may be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the firmware upgrading method in the embodiment of the present invention. The processor 1102 executes various functional applications of the control unit and data processing, i.e., implements the firmware upgrade method in the above-described embodiment, by executing nonvolatile software programs, instructions, and modules stored in the memory 1104.
The memory 1104 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the firmware upgrade apparatus, and the like. Further, the memory 1104 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 1104 may optionally include memory located remotely from processor 1102, which may be connected to a firmware upgrade device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by one or more processors, the one or more processors may execute the firmware upgrade method in any of the method embodiments.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of firmware upgrade, the method comprising:
scanning a wireless local area network;
if the wireless local area network of the upper computer is identified, establishing connection with the upper computer through the wireless local area network;
and receiving the upgrading data sent by the upper computer, and upgrading the firmware through the upgrading data.
2. The method of claim 1, wherein the upgrade data comprises version matching data and firmware upgrade data;
the receiving the upgrade data that the host computer sent to through the upgrade data carries out firmware upgrading, include:
receiving version matching data sent by the upper computer;
processing the version matching data to determine whether the versions match;
if the versions are matched, receiving firmware upgrading data sent by the upper computer;
and upgrading the firmware through the firmware upgrading data.
3. The method of claim 2, wherein processing the version match data to determine whether the versions match comprises:
decrypting the version matching data by a decryption algorithm; and the number of the first and second groups,
and performing fool-proofing diagnosis on the version matching data based on fool-proofing information to determine whether the versions are matched.
4. The method of claim 3, wherein the fool-proof information includes company information, an item number, and a fool-proof code,
the performing fool-proofing diagnosis on the version matching data based on fool-proofing information to determine whether the versions match includes:
comparing whether the company information carried in the version matching data is consistent with the company information in the fool-proof information or not; and the number of the first and second groups,
comparing whether the item number carried in the version matching data is consistent with the item number in the fool-proof information or not; and the number of the first and second groups,
comparing whether a fool-proof code carried in the version matching data is consistent with a fool-proof code in the fool-proof information;
and if the company information, the item number and the fool-proof code carried in the version matching data are consistent with the company information, the item number and the fool-proof code in the fool-proof information, determining that the versions are matched.
5. The method of claim 2, wherein receiving firmware upgrade data sent by the upper computer if the versions match comprises:
if the versions are matched, encrypting the version matching success state;
sending the version matching success state after the encryption processing to an upper computer so that the upper computer sends firmware upgrading data to the battery management system;
and receiving firmware upgrading data transmitted by the upper computer.
6. The method of claim 2, wherein the performing a firmware upgrade via the firmware upgrade data comprises:
verifying the firmware upgrading data;
and if the verification is passed, upgrading the firmware through the firmware upgrading data.
7. The method of any of claims 1-6, wherein after the firmware upgrade with the data, the method further comprises:
if the firmware is successfully upgraded, encrypting the upgrade success state;
sending the upgrade success state subjected to encryption processing to the upper computer so as to prompt the upper computer that the upgrade is successful;
if the firmware fails to be upgraded, encrypting the upgrading failure state;
and sending the encrypted upgrading failure state to the upper computer so that the upper computer displays the serial number of the firmware which fails to be upgraded.
8. A method of firmware upgrade, the method comprising:
confirming each battery management system connected with the upper computer through a wireless local area network;
and sending upgrading data to each battery management system, wherein the upgrading data is used for upgrading the firmware of the battery management systems.
9. The method of claim 8, further comprising:
obtaining an upgrade file;
and encrypting and fool-proof processing is carried out on the upgrade file to obtain the upgrade data.
10. A battery management system, comprising:
the wireless communication unit is used for establishing wireless communication connection with the upper computer;
a control unit in communication connection with the wireless communication unit;
wherein the control unit includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the battery management system to perform the method of any of claims 1-7.
CN202110846021.5A 2021-07-26 2021-07-26 Firmware upgrading method and battery management system Pending CN113692065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110846021.5A CN113692065A (en) 2021-07-26 2021-07-26 Firmware upgrading method and battery management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110846021.5A CN113692065A (en) 2021-07-26 2021-07-26 Firmware upgrading method and battery management system

Publications (1)

Publication Number Publication Date
CN113692065A true CN113692065A (en) 2021-11-23

Family

ID=78577886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110846021.5A Pending CN113692065A (en) 2021-07-26 2021-07-26 Firmware upgrading method and battery management system

Country Status (1)

Country Link
CN (1) CN113692065A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449554A (en) * 2022-01-28 2022-05-06 深圳Tcl新技术有限公司 Equipment upgrading method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090119657A1 (en) * 2007-10-24 2009-05-07 Link Ii Charles M Methods and systems for software upgrades
CN110324193A (en) * 2019-07-31 2019-10-11 青岛海信医疗设备股份有限公司 A kind of terminal upgrade management method and device
CN111614487A (en) * 2020-04-16 2020-09-01 惠州市创荣发实业有限公司 Device upgrading system, method, electronic device and storage medium
CN111831311A (en) * 2019-04-18 2020-10-27 东莞新能安科技有限公司 Application program upgrading method, electronic equipment and storage medium
CN112540781A (en) * 2020-12-15 2021-03-23 东莞新能安科技有限公司 Software upgrading method of battery management system, electric equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090119657A1 (en) * 2007-10-24 2009-05-07 Link Ii Charles M Methods and systems for software upgrades
CN111831311A (en) * 2019-04-18 2020-10-27 东莞新能安科技有限公司 Application program upgrading method, electronic equipment and storage medium
CN110324193A (en) * 2019-07-31 2019-10-11 青岛海信医疗设备股份有限公司 A kind of terminal upgrade management method and device
CN111614487A (en) * 2020-04-16 2020-09-01 惠州市创荣发实业有限公司 Device upgrading system, method, electronic device and storage medium
CN112540781A (en) * 2020-12-15 2021-03-23 东莞新能安科技有限公司 Software upgrading method of battery management system, electric equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449554A (en) * 2022-01-28 2022-05-06 深圳Tcl新技术有限公司 Equipment upgrading method, device, equipment and storage medium
CN114449554B (en) * 2022-01-28 2024-01-19 深圳Tcl新技术有限公司 Equipment upgrading method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109358883B (en) Program upgrading method, system, application system and storage medium
US20200106775A1 (en) Method, device, system for authenticating an accessing terminal by server, server and computer readable storage medium
CN107239288B (en) Version upgrading method and device for mobile terminal
CN105512538B (en) Debugging method and system of intelligent mobile operating system
CN109976767B (en) Software burning method and device
CN104751105A (en) Fingerprint data verification method, fingerprint data verification device, related equipment and system
CN112202747A (en) Target device binding method and device, storage medium and electronic device
CN105468393A (en) Module version upgrading method and terminal apparatus
CN112688942B (en) Electric energy meter firmware program upgrading method, device, medium and equipment based on ESAM
CN109214221B (en) Authentication method of identity card reader, upper computer and identity card reader
CN109286502B (en) Method for recovering manager lock of encryption machine and encryption machine
CN113692065A (en) Firmware upgrading method and battery management system
CN105118100A (en) Vehicle-mounted electronic label program updating method, mobile terminal and program updating system
CN103714017A (en) Authentication method, authentication device and authentication equipment
CN108028767B (en) Method for upgrading adapter, mobile terminal and adapter
CN112564901B (en) Method and system for generating secret key, storage medium and electronic device
EP3657836B1 (en) Method and device for generating and injecting simlock password
CN117707578A (en) Beacon firmware upgrading method, device and system
CN109800565B (en) Software upgrading method and terminal equipment
WO2012092727A1 (en) Method, device and system for locking card in the mobile terminal
CN110636473A (en) Vehicle Bluetooth communication method and device, electronic equipment and readable storage medium
CN112637855B (en) Machine-card binding method based on block chain and server
CN111400699B (en) Terminal verification method, device and system and storage medium
CN115686559A (en) Intelligent lock upgrading method and device, storage medium and computer equipment
CN112256304A (en) DSP chip software online updating method and system

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