Data updating method, system, device, medium and program product
By introducing the main chip into the energy storage device, the main chip receives and verifies the chip update data sent by the external device, and sends the verification data to the target chip for update, solving the cumbersome upgrade and error-prone in the existing technology. The problem of this achieves efficient and reliable data updates.
Patent Information
- Application Number
- CN202510075974.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-02-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The upgrade and update process of existing energy storage equipment is cumbersome and error-prone, resulting in low efficiency in upgrading and updating energy storage equipment.
By introducing the main chip into the energy storage device, the main chip receives the chip update data sent by the external device and verifies the data. If the verification is passed, the main chip sends the data to the target chip to make it update the data.
The data update process is simplified, the efficiency of chip data update of energy storage equipment is improved, and the update cost is reduced while ensuring update reliability and security.
Smart Images

Figure CN119473367A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip data processing technology, and in particular to a data updating method, system, device, medium and program product. Background Art
[0002] Energy storage devices are energy storage devices that can convert and store excess energy to provide electricity when needed. They require a large number of chips to work together. In order to improve the performance of the equipment and increase its functions, it is necessary to update the data of the chips in the energy storage device in a timely manner, such as upgrading the firmware of the chip to update the data of various chips in the energy storage device so that the performance of the energy storage device meets the requirements.
[0003] At present, the upgrade and update method of energy storage devices usually configures the simulator and installs the simulator driver. When the upgrade and update is needed, the simulator is driven to upgrade and update the data of the chip in the energy storage device. However, the upgrade and update of the simulator has high requirements for the operating environment. There are many chips in the energy storage device, and different chips need to install different operating environments. The upgrade and update process is cumbersome and prone to errors, resulting in low efficiency of energy storage device upgrade and update. Summary of the invention
[0004] The present invention provides a data updating method, system, device, medium and program product to solve the problem that the upgrading and updating process of the existing energy storage device is cumbersome and error-prone, resulting in low efficiency of upgrading and updating the energy storage device.
[0005] In a first aspect, an embodiment of the present application provides a data updating method, comprising: The main chip receives chip update data sent by the external device and performs data verification on the chip update data. The main chip is a chip among multiple chips of the energy storage device that can communicate with the external device through the network. The main chip is connected to other chips in the energy storage device. When the verification result of the chip update data is passed, if the main chip determines that the target chip corresponding to the chip update data is a chip other than the main chip in the energy storage device, the main chip sends the chip update data to the target chip so that the target chip updates the chip data according to the chip update data sent by the main chip.
[0006] Optionally, after performing data verification on the chip update data, the method further includes: When the verification result of the chip update data is verification failure, the master chip deletes the chip update data and sends target chip update failure information to the external device.
[0007] Optionally, before the main chip receives the chip update data sent by the external device, the method further includes: The main chip receives a chip update instruction sent by an external device, and the chip update instruction is used to notify the target chip to prepare for chip update; When the target chip corresponding to the chip update instruction is other chips in the energy storage device, the master chip responds to the chip update instruction to notify the target chip to enter the update state to wait for receiving chip update data sent by the external device.
[0008] Optionally, before the master chip responds to the chip update instruction to notify the target chip to enter the update state, the method further includes: The main chip performs information verification on the chip update instruction and obtains the information verification result; If the information verification result is that the information verification passes, the master chip responds to the chip update instruction to notify the target chip to enter the update state to wait for receiving the chip update data sent by the external device; If the information verification result is that the information verification fails, the main chip sends a reminder message to the external device to indicate that the instruction information is wrong and cannot be updated.
[0009] Optionally, when the target chip corresponding to the chip update instruction is another chip in the energy storage device, the master chip responds to the chip update instruction to notify the target chip to enter an update state to wait for receiving chip update data sent by an external device, including: When the target chip corresponding to the chip update instruction is another chip in the energy storage device, the main chip sends the chip update instruction to the target chip, so that the target chip performs consistency check on the preset instruction embedded in the target chip and the chip update instruction, and when it is verified that the preset instruction embedded in the target chip is consistent with the chip update instruction, the boot program is started to enter the update state, and a waiting update instruction of the target chip is sent to the main chip; The master chip receives the waiting update instruction sent by the target chip, and sends the waiting update instruction of the target chip to the external device, so as to wait for receiving the chip update data sent by the external device.
[0010] Optionally, after the main chip receives the chip update instruction sent by the external device, the method further includes: When the target chip corresponding to the chip update instruction is the main chip, the main chip performs consistency check between the preset instruction embedded in the main chip and the chip update instruction; When it is verified that the preset instruction embedded in the main chip is consistent with the chip update instruction, the main chip starts the boot program to enter the update state, and sends the main chip waiting update instruction to the external device to wait for receiving the chip update data sent by the external device; After verifying the chip update data, the method further includes: When the verification result of the chip update data is verification passed, if the master chip determines that the target chip is the master chip, the master chip updates the data of the master chip according to the chip update data.
[0011] Optionally, the master chip performs data verification on the chip update data, including: Extracting the chip update data to obtain the update software package and attribute information of the update software package in the chip update data, wherein the attribute information includes update version information and verification information of the update software package; The main chip verifies the chip identification code and the updated version information for accuracy, and verifies the data security of the updated software package based on the verification information; When the information accuracy check passes and the data security check passes, the main chip determines that the verification result of the chip update data is verification passed.
[0012] In a second aspect, an embodiment of the present application provides a data update system, including an energy storage device, wherein among multiple chips of the energy storage device, there is a main chip capable of communicating with an external device network, and the main chip is connected to other chips in the energy storage device; The main chip is used for: The main chip receives the chip update data sent by the external device and performs data verification on the chip update data; When the verification result of the chip update data is passed, if the main chip determines that the target chip corresponding to the chip update data is a chip other than the main chip in the energy storage device, the main chip sends the chip update data to the target chip so that the target chip updates the chip data according to the chip update data.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electronic device implements the steps of the above-mentioned device data update method.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned device data update method are implemented. In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run, the above-mentioned data updating method is executed.
[0015] In one solution provided by the above-mentioned data update method, system, device, medium and program product, the energy storage device includes multiple chips, among which there is a main chip capable of communicating with an external device network, and the main chip is connected to other chips in the energy storage device; the main chip receives chip update data sent by the external device, and performs data verification on the chip update data. When the verification result of the chip update data is verification passed, if the main chip determines that the target chip corresponding to the chip update data is a chip other than the main chip in the energy storage device, the main chip sends the chip update data to the target chip, so that the target chip performs chip data update according to the chip update data sent by the main chip. In this embodiment, the functions of sending, receiving and verifying chip update data are realized by the main chip, and the corresponding chip in the energy storage device can be updated when the verification result of the chip update data is verification passed. On the basis of ensuring the reliability and safety of the device update, the efficiency of chip data update of the energy storage device is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0017] Figure 1 is a structural diagram of a data updating system in one embodiment of the present invention; Figure 2 yes Figure 1 Schematic diagram of the structure of the main chip and other chips in the energy storage device; Figure 3 is a flow chart of a data updating method in one embodiment of the present invention; Figure 4 yes Figure 3 A schematic diagram of an implementation process of step S10; Figure 5 yes Figure 3 A schematic diagram of an implementation process of step S20; Figure 6 yes Figure 1 Another structural diagram of the main chip and other chips in the energy storage device; Figure 7 is another flow chart of a method for updating base data in one embodiment of the present invention; Figure 8 yes Figure 1 Schematic diagram of the chip structure of the energy storage device; Fig. 9 It is a schematic diagram of the structure of an electronic device in one embodiment of the present invention. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or their collections. It should also be understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0020] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0021] References to "one embodiment" or "some embodiments" etc. described in the present specification mean that one or more embodiments of the present invention include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0022] It should be understood that the order of execution of the steps in the following embodiments does not imply a precedence of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0023] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.
[0024] It should be understood that energy storage equipment refers to equipment or systems used to store and release energy, such as energy storage power stations, energy storage cabinets, etc. Energy storage equipment includes a large number of chips of different types for realizing different functions. Different types of chips have scattered application scenarios, and different types of chips require different update requirements. Limited by the structural particularity of energy storage equipment, the current upgrade and update methods of energy storage equipment are usually on-site manual upgrades or simulator upgrades; for example, professional technicians carry necessary upgrade tools to the location of the energy storage equipment to perform close-range firmware upgrades on the internal chips. Manual upgrades are time-consuming and labor-intensive, and simulator upgrades require the configuration of the simulator and the installation of the simulator driver. The requirements for the operating environment are high. Different chips need to install different operating environments. The upgrade and update process is cumbersome and prone to errors, resulting in low efficiency and high cost of energy storage equipment upgrades. Some manufacturers also upgrade chips through remote upgrades. However, in this remote upgrade method, the host computer needs to establish communication with each chip separately to transmit data to update the chip data. The update process is complicated and security risks are prone to occur during data transmission. The efficiency of energy storage device data update is not high. Moreover, due to the different operating environments of different chips, the host computer follows different protocols when establishing communication with each chip, which increases the communication cost of the energy storage device and the complexity of data transmission, and reduces the efficiency of energy storage device data update.
[0025] In view of the above problems, the data updating method provided by the embodiment of the present invention can be applied in Figure 1 In the data update system shown, the data update system includes an energy storage device and an external device, wherein the energy storage device includes multiple chips (such as N chips, N is an integer greater than 1), and there is a main chip among the multiple chips that can directly communicate with the external device network. The main chip of the energy storage device communicates with the external device through the network, and the main chip is connected to other chips in the energy storage device.
[0026] Among them, the main chip is used to: receive chip update data sent by an external device, and perform data verification on the chip update data. When the verification result of the chip update data is verification passed, if the main chip determines that the target chip corresponding to the chip update data is a chip other than the main chip in the energy storage device, the chip update data is sent to the target chip, so that the target chip updates the chip data according to the chip update data sent by the main chip.
[0027] like Figure 2As shown, the main chip is provided with a first communication interface for network communication with external devices, and multiple second communication interfaces for connecting with other chips in the energy storage device for internal communication; the main chip and other chips communicate internally through the second communication interface. Among them, the first communication interface of the main chip is a newly added network communication interface, and the first communication interface can communicate with external devices in accordance with the network communication protocol. The first communication interface and the second communication interface are arranged on the communication board of the main chip.
[0028] The main chip receives chip update data sent by the external device through the first communication interface, and performs data verification on the chip update data; when the verification result of the chip update data is verification passed, if the main chip determines that the target chip corresponding to the chip update data is a chip other than the main chip in the energy storage device, the main chip sends the chip update data to the target chip through the second communication interface. The target chip that receives the chip update data updates the chip data according to the chip update data; after updating the chip data, the target chip feeds back the chip update result (including chip update success or chip update failure) to the main chip, and the main chip sends the chip update result of the target chip to the external device.
[0029] In this embodiment, external device communication and internal device communication can be realized through the communication board of the main chip, so that the main chip can realize the functions of receiving, sending and verifying chip update data. The verification result of the chip update data is that the corresponding chip in the energy storage device can be updated if the verification passes. By adding a first communication interface of the main chip, the external device only needs to communicate with the main chip to realize the data update of other chips, which simplifies the data update process. On the basis of ensuring the reliability and safety of equipment updates, the efficiency of chip data updates of energy storage devices is improved, and the update cost of energy storage devices is reduced.
[0030] The first communication interface and the second communication interface may be a wired communication interface or a wireless communication interface. The external device refers to other devices outside the energy storage device, and the external device may be an external terminal device or a server. The terminal device includes but is not limited to various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. The server may be implemented as an independent server or a server cluster consisting of multiple servers.
[0031] In one embodiment, if Figure 3 As shown, a data updating method is provided, which is applied in Figure 1 The energy storage device in the example is used as an example to illustrate, including the following steps: S10: The main chip receives the chip update data sent by the external device, and performs data verification on the chip update data.
[0032] Among them, the energy storage device includes multiple chips, among which there is a main chip that can directly communicate with external devices through the network, that is, the main chip is a chip among the multiple chips of the energy storage device that can communicate with external devices through the network, and the main chip is connected to other chips in the energy storage device. The communication board of the main chip is provided with a first communication interface for network communication with external devices, and multiple second communication interfaces for connecting with other chips in the energy storage device for internal communication; the main chip and other chips communicate internally through the second communication interface. Among them, the first communication interface in the communication board of the main chip is a newly added network communication interface, and the first communication interface can communicate with external devices in accordance with the network communication protocol. When the chip in the energy storage device needs to be updated, such as when a chip software upgrade is required to add new software functions or optimize the performance of the original software, the user sends chip update data to the main chip in the energy storage device through an external device (host computer); the main chip receives the chip update data sent by the external device through the first communication interface of the communication board, and caches the chip update data in the flash memory of the main chip; then, the main chip performs data verification on the chip update data to determine the security of the chip update data, so as to execute different data processing strategies according to the verification results.
[0033] When the main chip performs data verification on the chip update data, a preset verification algorithm is used to perform security verification on the chip update data to obtain a data verification result, which includes the verification result of the chip update data being passed and the verification result of the chip update data being failed.
[0034] S20: When the verification result of the chip update data is verification passed, if the master chip determines that the target chip corresponding to the chip update data is a chip other than the master chip, the master chip sends the chip update data to the target chip.
[0035] When the verification result of the chip update data is passed, it means that the chip update data is accurate and safe data, then the main chip needs to determine whether the chip to which the chip update data belongs is the main chip itself. The chip update data may include the chip identification code (the unique identification number of the chip) of the target chip to be updated, and the main chip may compare the chip identification code in the chip update data with the chip identification code of the main chip itself. If the two chip identification codes are consistent, it is determined that the chip update data is the chip update data of the main chip, that is, the target chip corresponding to the chip update data is the main chip itself; if the two chip identification codes are inconsistent, it means that the chip update data is the chip update data of other chips, that is, the target chip corresponding to the chip update data is other chips other than the main chip.
[0036] When the verification result of the chip update data is verification passed, if the master chip determines that the target chip corresponding to the chip update data is a chip other than the master chip, the master chip reads the chip update data from the flash memory and sends the chip update data to the target chip.
[0037] S30: The target chip updates chip data according to the chip update data sent by the master chip.
[0038] The target chip receives the chip update data sent by the master chip, and updates the chip data according to the chip update data sent by the master chip, for example, directly updates the software data in the target chip according to the data update package in the chip update data. After the target chip updates the chip data, the target chip sends the chip update result to the master chip, so that the chip update result is fed back to the external device through the master chip, so that the user can obtain the chip update result of the target chip in time. Among them, the chip update result includes two results: update success and update failure.
[0039] Specifically, the target chip updates the chip data according to the chip update data sent by the master chip, including: the target chip extracts the update software package in the chip update data, and adopts the differential upgrade algorithm to update the software of the target chip based on the update software package. Among them, the update software package is a software differential package generated by the differential upgrade algorithm, that is, the update software package is a differential package produced by an external device (or user) through a differential upgrade (i.e., incremental upgrade) algorithm, extracting the difference between the current version of the software data of the target chip and the updated version of the software data. The differential upgrade algorithm is adopted to update the software of the target chip based on the update software package, and the data of the update version of the target chip is restored based on the current version of the software data of the target chip through the differential upgrade algorithm to obtain the software data of the updated version of the target chip, thereby completing the upgrade process. The differential upgrade method can not only save the upgrade time and the resource space inside the chip, but also save the data transmission time of the chip update data, and can improve the chip upgrade efficiency and the power consumption during the chip upgrade process.
[0040] Wherein, after receiving the chip update data sent by the main chip, the target chip needs to perform data verification on the chip update data again before updating the chip data according to the chip update data sent by the main chip. After the verification result of the data is verified, the target chip updates the chip data according to the chip update data to reduce the possibility of the chip update data being tampered with during the internal transmission process and improve the security of data update. Wherein, if the verification result of the target chip on the chip update data is verified, the target chip updates its own software according to the chip update data to achieve chip data update; after completing the chip data update, the target chip feeds back the information of the successful update of the target chip to the main chip, so that the information of the successful update of the target chip is fed back to the external device through the main chip, so that the user can timely know the data update result of the chip. If the verification result of the target chip on the chip update data is verified failed, it means that the data may be tampered with during the transmission process, there is a security problem and it cannot be updated, then the target chip determines that the update fails, and feeds back the information of the failed update of the target chip to the main chip, so that the information of the failed update of the target chip is fed back to the external device through the main chip, so that the user can timely know the chip update result of the chip.
[0041] The data update method in this embodiment is applied to an energy storage device. Among the multiple chips of the energy storage device, there is a main chip that can directly communicate with the external device network. The main chip is connected to other chips in the energy storage device. The main chip receives chip update data sent by the external device and performs data verification on the chip update data. When the verification result of the chip update data is verification passed, if the main chip determines that the target chip corresponding to the chip update data is a chip other than the main chip in the energy storage device, the main chip sends the chip update data to the target chip, so that the target chip updates the chip data according to the chip update data sent by the main chip. The functions of sending, receiving and verifying chip update data are realized by the main chip. If the verification result of the chip update data is verification passed, the corresponding chip in the energy storage device can be updated. On the basis of ensuring the reliability and safety of the equipment update, the efficiency of chip data update of the energy storage device is improved.
[0042] In one embodiment, after step S10, that is, after verifying the chip update data, the method further includes the following steps: S40: When the verification result of the chip update data is verification passed, if the master chip determines that the target chip is the master chip, the master chip updates the data of the master chip according to the chip update data.
[0043] Among them, when the verification result of the chip update data is verification passed, if the main chip determines that the target chip is the main chip, the main chip reads the chip update data from the flash memory and updates the data of the main chip according to the chip update data. After the main chip updates its own data, the main chip feeds back the chip update result to the external device so that the user can obtain the chip update result of the target chip in time.
[0044] Specifically, when the verification result of the chip update data is passed, if the main chip determines that the target chip is the main chip, the main chip reads the chip update data from the flash memory, extracts the update software package in the chip update data, and uses a differential upgrade algorithm to update the software of the main chip based on the update software package.
[0045] Among them, the update software package is a software differential package generated by a differential upgrade algorithm, that is, the update software package is a differential package produced by an external device (or user) through a differential upgrade (i.e., incremental upgrade) algorithm, which extracts the difference between the software data of the current version of the main chip and the software data of the updated version. The differential upgrade algorithm is adopted to update the data of the main chip based on the update software package, and the update process is completed by restoring the data of the update software package based on the current version of the target chip software data through the differential upgrade algorithm to obtain the software data of the updated version of the main chip. The differential upgrade method can not only save upgrade time and resource space inside the chip, but also save data transmission time of chip update data, which can improve chip upgrade efficiency and power consumption during chip upgrade.
[0046] In one embodiment, after step S10, that is, after verifying the chip update data, the method further includes the following steps: S50: When the verification result of the chip update data is verification failure, the master chip deletes the chip update data and sends target chip update failure information to the external device.
[0047] The main chip receives the chip update data sent by the external device and performs data verification on the chip update data. When the verification result of the chip update data is verification failure, it means that the chip update data may be incomplete or unsafe, and the data can be tampered with. The main chip deletes the chip update data and sends a message to the external device that the target chip update failed. Data verification and interception can be achieved in the main chip, and there is no need to send the chip update data that has not passed the data verification to other chips for data verification and update, which reduces the steps of data transmission to other chips, as well as the data processing and update process of other chips, improves chip update efficiency, and ensures chip security.
[0048] In one embodiment, the chip update data includes an update software package and attribute information of the update software package arranged in a preset data format, and the attribute information of the update software package includes a chip identification code, update version information, and verification information of the update software package. Figure 4 As shown, in step S10, data verification is performed on the chip update data, which specifically includes the following steps: S11: The master chip extracts data from the chip update data to obtain the update software package and attribute information of the update software package in the chip update data. The attribute information includes update version information and verification information of the update software package.
[0049] The main chip receives chip update data sent by an external device, and caches the chip update data in the Flash of the main chip; the main chip reads the chip update data in the Flash, and extracts information of the chip update data according to a pre-agreed preset data format to obtain an update software package and attribute information of the update software package, wherein the attribute information includes a chip identification code, update version information and verification information of the update software package, wherein the chip identification code is a unique identification number of a chip (i.e., a target chip) that needs to perform a data update, and the update version information is the chip version number corresponding to the update software package.
[0050] S12: The main chip verifies the accuracy of the chip identification code and the update version information, and verifies the data security of the update software package based on the verification information.
[0051] After obtaining the update software package and the attribute information of the update software package, the main chip verifies the chip identification code and the update version information for information accuracy, and verifies the data security of the update software package according to the verification information.
[0052] Among them, the main chip may pre-store basic chip information of the energy storage device, and the chip basic information includes the chip identification code of all chips on the energy storage device and the current version information of all chips. When the main chip verifies the accuracy of the chip identification code and the updated version information, the main chip needs to match the chip identification code in the chip update data with each chip identification code in the chip basic information. If the chip identification code in the chip update data matches (i.e. is the same as) any chip identification code in the chip basic information, it means that the chip identification code accuracy verification has passed, and the main chip compares the updated version information in the chip update data with the current version information of the matching chip. If the updated version information (i.e. the updated chip version number) in the chip update data is greater than the current version information of the matching chip (i.e. the current chip version number), it means that the updated version information verification has passed, and the main chip determines that the information accuracy verification has passed. If the chip identification code in the chip update data does not match (i.e. is not the same as) all the chip identification codes in the chip basic information, it means that the chip identification code in the chip update data is not the chip identification code of the chip in the energy storage device, and the chip identification code accuracy verification has failed, then the main chip determines that the information accuracy verification has failed. If the updated version information (i.e., the updated chip version number) in the chip update data is less than or equal to the current version information (i.e., the current chip version number) of the matching chip, indicating that the updated version information verification has failed, the main chip determines that the information accuracy verification has failed.
[0053] Among them, when the main chip performs data security verification on the update software package according to the verification information, it determines the first verification information in the verification information, and uses a preset verification algorithm to verify and calculate the update software package to obtain second verification information. When the first verification information is consistent with the second verification information, it indicates that the update software package is correct and complete, and the update software package has not been tampered with, then the main chip determines that the data security verification has passed; when the first verification information is inconsistent with the second verification information, it indicates that the update software package is wrong or incomplete, and the update software package may have been tampered with, then the main chip determines that the data security verification has failed.
[0054] Among them, the preset verification algorithm can be a 16-bit Cyclic Redundancy Check (CRC16) algorithm, that is, a CRC16 algorithm. Among them, the first verification information can be encrypted data generated by the update software package using the CRC16 algorithm, that is, the first verification information uses a 16-bit generator polynomial to verify the update software package to generate a verification code. After the main chip receives the chip update data and extracts the update software package, the main chip uses the CRC16 algorithm to perform verification calculations on the extracted update software package, that is, a pre-agreed 6-bit generator polynomial is used to generate a new verification code for the extracted update software package to obtain the second verification information; then determine whether the first verification information in the verification information is consistent with the second verification information generated by the main chip verification, thereby obtaining a data security verification result. The CRC16 verification algorithm is an error detection technology used for data transmission and storage, especially the integrity verification of small data blocks during data transmission, which can improve verification efficiency.
[0055] S13: When the information accuracy check passes and the data security check passes, the main chip determines that the verification result of the chip update data is verification passed.
[0056] After the main chip verifies the accuracy of the chip identification code and the updated version information, and verifies the data security of the update software package based on the verification information, when it is determined that the information accuracy verification has passed and the data security verification has passed, the main chip determines that the verification result of the chip update data is verification passed, thereby improving the accuracy of data verification.
[0057] Among them, after the main chip verifies the accuracy of the chip identification code and the updated version information, and verifies the data security of the update software package based on the verification information, when the information accuracy verification fails, or the data security verification fails, the main chip determines that the verification result of the chip update data is verification failure. This process can reduce the data texture caused by others changing the chip identification code or updating the version information, which causes the subsequent corresponding chip to update the chip update data.
[0058] In this embodiment, data extraction is performed on the chip update data to obtain the update software package and attribute information of the update software package in the chip update data, the attribute information including update version information and verification information of the update software package, and then the chip identification code and the update version information are verified for information accuracy, and the update software package is verified for data security based on the verification information. When the information accuracy verification passes and the data security verification passes, the main chip determines that the verification result of the chip update data is verification passed, thereby improving the accuracy of data verification.
[0059] In one embodiment, if Figure 5As shown, in step S20, the master chip sends the chip update data to the target chip, which specifically includes the following steps: S21: When the target chip is a first-level slave chip, the master chip sends the chip update data to the target chip through the second communication interface.
[0060] Among them, the first-level slave chip is a chip to which the second communication interface of the master chip can be directly connected; wherein, the second-level slave chip is a chip other than the master chip to which the second communication interface of the first-level slave chip can be directly connected.
[0061] When the verification result of the chip update data is passed, if the master chip determines that the target chip corresponding to the chip update data is a chip other than the master chip, when the target chip is a first-level slave chip, that is, the target chip is a chip that can be directly connected to the second communication interface of the master chip, the master chip sends the chip update data to the target chip through the second communication interface.
[0062] Among them, Figure 6 As shown, the multiple chips of the energy storage device include a master chip and multiple slave chips. The multiple slave chips include at least one first-level slave chip and at least one second-level slave chip. The first-level slave chip is a slave chip of the master chip, that is, the second communication interface of the master chip is directly connected to the second communication interface of the first-level slave chip; the second-level slave chip is a slave chip of the first-level slave chip (except the master chip), and the second communication interface of the first-level slave chip is directly connected to the second communication interface of the second-level slave chip. The second communication interface of the master chip cannot be directly connected to the second communication interface of the second-level slave chip, that is, the master chip cannot directly communicate with the second-level slave chip, and the master chip communicates with the second-level slave chip through the first-level slave chip. By analogy, in other embodiments, the multiple slave chips of the energy storage device may also include at least one first-level slave chip, at least one second-level slave chip...at least one N-level slave chip, where N is an integer greater than the number two. Due to the different types of different chips, their communication interface protocols are different. Compared with the master chip being able to directly connect and communicate with each chip through the second communication interface, the chip communication method of this embodiment can reduce the number of communication interfaces on the communication board of the master chip, reduce the complexity of the master chip communicating with other types of chips, and reduce the energy consumption during the chip upgrade process.
[0063] It is important to understand that, in order to ensure the normal operation of energy storage devices, chips of the same or different types in traditional energy storage devices will be set with different internal communication interfaces according to control requirements, that is, different chips in traditional energy storage devices are themselves provided with communication interfaces for communicating with corresponding chips. In order to reduce the number of communication interfaces between the main chip and other chips and reduce the cost of data update, the original communication interface of each chip in the energy storage device (that is, the interface already existing in the traditional chip design) can be used as the second communication interface, and multiple chips can be grouped according to the original communication interface of each chip in the energy storage device to obtain multiple multi-layer chipsets that communicate internally in sequence through the original communication interface, so that chips that cannot directly connect and communicate with the main chip through the original communication interface can achieve internal communication with the main chip through the slave chip of the main chip (that is, the chip that can directly connect and communicate with the main chip through the original communication interface).
[0064] That is, in one embodiment, the second communication interface for internal communication between the main chip and other chips in the energy storage device can be the original communication interface configured by the main chip according to the original communication requirements, and the second communication interface of other chips is also the original communication interface configured by each chip according to the original communication requirements. That is, the first communication interface in the communication board of the main chip is a newly added network communication interface, and the first communication interface can communicate with external devices in accordance with the network communication protocol. The second communication interface in the communication board of the main chip is an existing internal communication interface. Each chip uses the original communication interface as the second communication interface for internal communication, which can reduce the number of interfaces of each chip, reduce the overhead of chip interface communication, and reduce data update costs.
[0065] S22: When the target chip is a secondary slave chip, the master chip sends the chip update data to the primary slave chip connected to the target chip through the second communication interface, so that the primary slave chip sends the chip update data to the target chip through the second communication interface.
[0066] When the verification result of the chip update data is verification passed, if the master chip determines that the target chip corresponding to the chip update data is a chip other than the master chip, when the target chip is a secondary slave chip, that is, the target chip is a chip that the second communication interface of the master chip cannot directly connect to, the master chip sends the chip update data to the primary slave chip connected to the target chip through the second communication interface, so that the primary slave chip sends the chip update data to the target chip through the second communication interface. The master chip transmits chip update data through other chips, which can reduce the complexity of the communication between the master chip and other types of chips and reduce energy consumption during chip upgrades.
[0067] In this embodiment, when the target chip is a first-level slave chip, the master chip sends chip update data to the target chip through the second communication interface. The first-level slave chip is a chip that the second communication interface of the master chip can directly connect to, and the second-level slave chip is a chip that the second communication interface of the first-level slave chip can directly connect to; when the target chip is a second-level slave chip, the master chip sends chip update data to the first-level slave chip connected to the target chip through the second communication interface, so that the first-level slave chip sends chip update data to the target chip through the second communication interface. This process clarifies the specific steps for the master chip to send chip update data to the target chip. The master chip transmits chip update data through other chips, which can reduce the complexity of the master chip communicating with other types of chips and reduce energy consumption during chip upgrades.
[0068] In one embodiment, if Figure 7 As shown, before step S10, that is, before the main chip receives the chip update data sent by the external device, the method further includes the following steps: S01: The main chip receives a chip update instruction sent by an external device.
[0069] The chip update instruction is used to notify the target chip to prepare for chip update.
[0070] Before the main chip receives chip update data sent by the external device, the user can send a chip update instruction of the target chip to the main chip of the energy storage device through the external device, so as to notify the target chip to prepare for chip update in advance through the main chip.
[0071] After the master chip receives the chip update instruction sent by the external device, when the target chip corresponding to the chip update instruction is the master chip, the master chip directly responds to the chip update instruction notification and enters the update state to wait for receiving the chip update data sent by the external device.
[0072] S02: When the target chip corresponding to the chip update instruction is another chip in the energy storage device, the master chip responds to the chip update instruction to notify the target chip to enter an update state to wait for receiving chip update data sent by an external device.
[0073] After receiving a chip update instruction from an external device for a target chip, when the target chip corresponding to the chip update instruction is other chips in the energy storage device, the main chip responds to the chip update instruction to notify the target chip to enter an update state to wait for receiving chip update data sent by the external device, so that after subsequently receiving the chip update data sent by the external device, the main chip can quickly update the data according to the chip update data, thereby reducing the data update time and improving the data update efficiency.
[0074] For example, after the main chip receives a chip update instruction sent by an external device, when the target chip corresponding to the chip update instruction is other chips in the energy storage device, an update state entry instruction is sent to the target chip. When the target chip receives the update state entry instruction sent by the main chip, it directly enters the update state to wait for receiving the chip update data sent by the external device.
[0075] Among them, after receiving the chip update instruction of the target chip sent by the external device, when the target chip corresponding to the chip update instruction is other chips in the energy storage device, if the master chip determines that the target chip is a first-level slave chip, that is, the master chip determines that the chip update instruction is a chip update instruction of the first-level slave chip, then the master chip sends the chip update instruction to the first-level slave chip through the second communication interface, so that the first-level slave chip receives the chip update instruction and responds to the chip update instruction to enter the update state, waiting to receive the chip update data sent by the external device sent by the master chip. If the master chip determines that the target chip is a second-level slave chip, that is, the master chip determines that the chip update instruction is a chip update instruction of the second-level slave chip, then the master chip sends the chip update instruction to the first-level slave chip directly connected to the second-level slave chip through the second communication interface through the second communication interface, so that the first-level slave chip sends the chip update instruction to the second-level slave chip through the second communication interface, so that the second-level slave chip receives the chip update instruction and responds to the chip update instruction to enter the update state, waiting to receive the chip update data sent by the external device sent by the master chip through the first-level slave chip. In this implementation, the main chip transmits instructions through other chips, which can reduce the complexity of communication between the main chip and other types of chips and reduce energy consumption during chip upgrades.
[0076] In this embodiment, before the main chip receives chip update data sent by the external device, the main chip receives a chip update instruction sent by the external device. When the target chip corresponding to the chip update instruction is other chips in the energy storage device, the main chip responds to the chip update instruction to notify the target chip to enter the update state to wait for receiving the chip update data sent by the external device. Before sending the chip update data for data upgrade and update, the main chip forwards the chip update instruction to notify the target chip to prepare for the chip update in advance, so that after receiving the chip update data sent by the external device, the data can be quickly updated according to the chip update data, thereby reducing the data update time and improving the data update efficiency.
[0077] In one embodiment, before step S10, that is, before the master chip responds to the chip update instruction to notify the target chip to enter the update state, the method further includes the following steps: S001: The main chip performs information verification on the chip update instruction to obtain an information verification result.
[0078] After the master chip receives the chip update data sent by the external device, before the master chip responds to the chip update instruction to notify the target chip to enter the update state, the master chip needs to first perform information verification on the chip update instruction to obtain the information verification result.
[0079] Among them, the chip update instruction includes the chip identification code of the target chip and a pre-agreed instruction data segment with a specified format. The main chip performs information verification on the chip update instruction, mainly to verify whether the chip identification code in the chip update instruction is the chip identification code in the pre-stored chip basic information of the energy storage device. If the chip identification code in the chip update instruction is the chip identification code in the chip basic information of the energy storage device, the main chip determines that the chip update instruction information verification is passed, that is, the information verification result of the information verification is obtained. If the chip identification code in the chip update instruction is not the chip identification code in the chip basic information of the energy storage device, the main chip determines that the chip update instruction information verification is not passed, that is, the information verification result of the information verification is not passed. Information verification of the chip update instruction is performed by the chip identification code in the pre-stored chip basic information, which is simple and convenient, and can quickly eliminate the instruction information of the wrong chip identification code, reduce the risk of information tampering or instruction errors, and improve the accuracy of data upgrades and updates.
[0080] S002: If the information verification result is that the information verification passes, the master chip responds to the chip update instruction to notify the target chip to enter the update state to wait for receiving the chip update data sent by the external device.
[0081] S003: If the result of the information verification is that the information verification fails, the main chip sends a reminder message to the external device to indicate that the instruction information is wrong and cannot be updated.
[0082] After the main chip performs information verification on the chip update instruction and obtains the information verification result, if the information verification result is that the information verification passes, the main chip responds to the chip update instruction to notify the target chip to enter the update state, waiting to receive the chip update data sent by the external device; if the information verification result is that the information verification fails, the main chip sends a reminder message to the external device to indicate that the instruction information is wrong and cannot be updated.
[0083] In this embodiment, before the main chip responds to the chip update instruction to notify the target chip to enter the update state, the main chip performs information verification on the chip update instruction to obtain the information verification result; if the information verification result is that the information verification passes, the main chip responds to the chip update instruction to notify the target chip to enter the update state to wait for the chip update data sent by the external device; if the information verification result is that the information verification fails, the main chip sends a reminder message to the external device to indicate that the instruction information is wrong and cannot be updated. The main chip implements the function of data interception, and the main chip quickly removes the instruction information of the chip identification code, reduces the risk of information tampering or instruction errors, and improves the accuracy of data upgrade and update.
[0084] In one embodiment, in step S02, that is, when the target chip corresponding to the chip update instruction is another chip in the energy storage device, the master chip responds to the chip update instruction to notify the target chip to enter the update state, so as to wait for receiving the chip update data sent by the external device and update the chip data, specifically including the following steps: S021: When the target chip corresponding to the chip update instruction is another chip in the energy storage device, the main chip sends the chip update instruction to the target chip.
[0085] After the main chip receives the chip update instruction sent by the external device, the main chip performs information verification on the chip update instruction to obtain an information verification result. If the information verification result is that the information verification passes, when the target chip corresponding to the chip update instruction is other chips in the energy storage device, the main chip sends the chip update instruction to the target chip.
[0086] Among them, if the master chip determines that the target chip is a first-level slave chip, that is, the master chip determines that the chip update instruction is a chip update instruction of the first-level slave chip, the master chip sends the chip update instruction to the first-level slave chip through the second communication interface, so that the first-level slave chip receives the chip update instruction and responds to the chip update instruction to enter the update state, waiting to receive the chip update data sent by the external device sent by the master chip. If the master chip determines that the target chip is a second-level slave chip, that is, the master chip determines that the chip update instruction is a chip update instruction of the second-level slave chip, the master chip sends the chip update instruction to the first-level slave chip directly connected to the second-level slave chip through the second communication interface through the second communication interface, so that the first-level slave chip sends the chip update instruction to the second-level slave chip through the second communication interface, so that the second-level slave chip receives the chip update instruction and responds to the chip update instruction to enter the update state, waiting to receive the chip update data sent by the external device sent by the master chip through the first-level slave chip. In this embodiment, the master chip transmits instructions through other chips, which can reduce the complexity of the communication between the master chip and other types of chips and reduce the energy consumption during the chip upgrade process.
[0087] S022: The target chip performs consistency check on the preset instructions embedded in the target chip and the chip update instructions, and when it is verified that the preset instructions embedded in the target chip are consistent with the chip update instructions, starts the boot program to enter the update state, and sends the target chip's wait update instruction to the main chip.
[0088] After receiving the chip update instruction, the target chip performs consistency check on the preset instruction embedded in the target chip and the chip update instruction, wherein the consistency check process of the target chip refers to the consistency check process of the main chip and will not be repeated here.
[0089] When it is verified that the preset instructions embedded in the target chip are consistent with the chip update instructions, the target chip starts the boot program to enter the update state and sends the target chip's waiting update instructions to the main chip. In addition, the target chip will also send a shutdown instruction to other chips in the energy storage device (except the main chip), so that other chips enter the shutdown state after receiving the shutdown instruction, that is, the chip stops running, turns off the PWM wave, and disconnects the relay, and retrieves the data update that affects the subsequent main chip when other chips are running, so as to improve the success rate of subsequent target chip data upgrade and update.
[0090] S023: The master chip receives the waiting update instruction sent by the target chip, and sends the waiting update instruction of the target chip to the external device, so as to wait for receiving the chip update data sent by the external device.
[0091] The master chip receives the waiting update instruction sent by the target chip, and sends the waiting update instruction of the target chip to the external device, so as to wait for receiving the chip update data sent by the external device.
[0092] In this embodiment, when the target chip corresponding to the chip update instruction is other chips in the energy storage device, the main chip sends the chip update instruction to the target chip, so that the target chip performs consistency check on the preset instructions embedded in the target chip and the chip update instruction, so that when it is verified that the preset instructions embedded in the target chip are consistent with the chip update instruction, the boot program is started to enter the update state, and a waiting update instruction of the target chip is sent to the main chip; the main chip receives the waiting update instruction sent by the target chip, and sends the waiting update instruction of the target chip to the external device to wait for the chip update data sent by the external device, which can reduce the waiting time for data update and improve the data update efficiency.
[0093] In one embodiment, after step S01, that is, after the main chip receives the chip update instruction sent by the external device, the method further includes the following steps: S03: When the target chip corresponding to the chip update instruction is the main chip, the main chip performs a consistency check between the preset instruction embedded in the main chip and the chip update instruction.
[0094] The chip update instruction includes the chip identification code of the target chip and a pre-agreed instruction data segment with a specified format. After the master chip receives the chip update instruction sent by the external device, when the target chip corresponding to the chip update instruction is the master chip, the master chip directly responds to the chip update instruction notification and enters the update state to wait for receiving the chip update data sent by the external device.
[0095] Specifically, after the main chip receives the chip update instruction sent by the external device, the main chip performs information verification on the chip update instruction to obtain an information verification result. If the information verification result is that the information verification passes, the main chip determines whether the target chip corresponding to the chip update instruction is the main chip, that is, determines whether the chip identification code in the chip update instruction is the chip identification code of the main chip itself. If so, the target chip corresponding to the chip update instruction is the main chip; if not, the target chip corresponding to the chip update instruction is other chips in the energy storage device.
[0096] When the target chip corresponding to the chip update instruction is the main chip, the main chip performs a consistency check on the preset instructions embedded in the main chip and the chip update instructions. Among them, the preset instructions at least include an instruction data segment in a pre-agreed specified format. When performing the consistency check, the preset instructions embedded in the main chip and the instruction data segment in the chip update instruction are checked for consistency. If the two are completely consistent, the consistency check passes; if the two are inconsistent, the consistency check fails. In addition, the preset instructions may also include the chip identification code of the chip. When performing a consistency check on the preset instructions embedded in the main chip and the chip update instruction, it is necessary to check the consistency of the chip identification code and the instruction data segment at the same time. If the chip identification code and instruction data segment of the chip update instruction are consistent with the chip identification code and instruction data segment in the preset instruction, the consistency check passes; if they are inconsistent, the consistency check fails.
[0097] S04: When it is verified that the preset instruction embedded in the main chip is consistent with the chip update instruction, the main chip starts the boot program to enter the update state, and sends the main chip waiting update instruction to the external device to wait for receiving the chip update data sent by the external device.
[0098] When it is verified that the preset instructions embedded in the main chip are consistent with the chip update instructions, the main chip starts the boot program (Boot Loade) to enter the update state, and sends the main chip's waiting update instruction to the external device to wait for the chip update data sent by the external device. In addition, the main chip will also send a shutdown instruction to other chips in the energy storage device, so that other chips enter the shutdown state after receiving the shutdown instruction, that is, the chip stops running, turns off the PWM wave, and disconnects the relay, and searches for other chips that affect the subsequent data update of the main chip, thereby improving the success rate of the main chip data upgrade and update.
[0099] After the main chip starts the boot program to enter the update state and sends the main chip waiting update instruction to the external device to wait for receiving the chip update data sent by the external device, the main chip receives the chip update data sent by the external device and performs data verification on the chip update data. After the chip update data is verified, when the verification result of the chip update data is verification passed, if the main chip determines that the target chip corresponding to the chip update data is the main chip, the main chip directly updates the data of the main chip according to the chip update data.
[0100] In this embodiment, after the main chip receives the chip update instruction sent by the external device, when the target chip corresponding to the chip update instruction is the main chip, the main chip performs a consistency check on the preset instructions embedded in the main chip and the chip update instruction; when it is checked that the preset instructions embedded in the main chip are consistent with the chip update instruction, the main chip starts the boot program to enter the update state, and sends a waiting update instruction of the main chip to the external device to wait for receiving the chip update data sent by the external device, which can reduce the waiting time for subsequent data updates and improve data update efficiency.
[0101] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0102] In one embodiment, a chip of an energy storage device is provided, and the chip of the energy storage device corresponds one-to-one to the data updating method in the above embodiment. Figure 8 As shown, the chip of the energy storage device includes a verification module 801 and a determination module 802, and each functional module is described in detail as follows: The verification module 801 is used to perform data verification on the chip update data after receiving the chip update data sent by the external device through the communication board; Determination module 802 is used for sending the chip update data to the target chip through the communication board when the verification result of the chip update data is verification passed, if it is determined that the target chip corresponding to the chip update data is a chip other than the main chip in the energy storage device, so that the target chip updates the chip data according to the chip update data.
[0103] Optionally, the chip of the energy storage device also includes a deletion module 803, which is used to delete the chip update data after the verification module 801 verifies the chip update data. When the verification result of the chip update data is verification failure, the deletion module 803 is used to delete the chip update data and send information that the target chip update failed to an external device through the communication board.
[0104] Optionally, the chip of the energy storage device also includes an update module 804, which is used to update the data of the main chip according to the chip update data after the verification module 801 verifies the chip update data and when the verification result of the chip update data is passed, if it is determined that the target chip is the main chip.
[0105] Optionally, the verification module 801 is specifically used for: Extracting the chip update data to obtain the update software package and attribute information of the update software package in the chip update data, wherein the attribute information includes update version information and verification information of the update software package; Verify the chip identification code and update version information for accuracy, and verify the data security of the update software package based on the verification information; When the information accuracy check passes and the data security check passes, it is determined that the verification result of the chip update data is verification passed.
[0106] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0107] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0108] The present application also provides an electronic device, such as Fig. 9 As shown, the electronic device 2 includes: at least one processor 20, a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20, and when the processor 20 executes the computer program 22, the electronic device 2 implements the steps in any of the above-mentioned method embodiments, or when the processor 20 executes the computer program 22, the functions of each module / unit in the above-mentioned device embodiments are implemented.
[0109] Exemplarily, the computer program 22 may be divided into one or more modules / units, which are stored in the memory 21 and executed by the processor 21 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 22 in the electronic device 2.
[0110] Those skilled in the art will understand that Fig. 9 These are merely examples of the electronic device and do not constitute a limitation of the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0111] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0112] The memory may be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device. The memory may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Furthermore, the memory may also include both an internal storage unit of the electronic device and an external storage device.
[0113] An embodiment of the present application further provides a readable storage medium, wherein the readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0114] An embodiment of the present application provides a computer program product. When the computer program product is executed on an electronic device, the electronic device can implement the steps in the above-mentioned various method embodiments.
[0115] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0116] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0117] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0118] In the embodiments provided in the present application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are merely schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0120] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A data updating method, characterized in that: include: The main chip receives chip update data sent by the external device and performs data verification on the chip update data. The main chip is a chip among multiple chips of the energy storage device that can communicate with the external device through a network. The main chip is connected to other chips in the energy storage device. When the verification result of the chip update data is verification passed, if the main chip determines that the target chip corresponding to the chip update data is other chips in the energy storage device except the main chip, the main chip sends the chip update data to the target chip so that the target chip updates the chip data according to the chip update data sent by the main chip.
2. The data updating method according to claim 1, characterized in that: Before the main chip receives the chip update data sent by the external device, the method further includes: The main chip receives a chip update instruction sent by the external device; When the target chip corresponding to the chip update instruction is another chip in the energy storage device, the master chip responds to the chip update instruction to notify the target chip to enter an update state to wait for receiving chip update data sent by the external device.
3. The data updating method according to claim 2, characterized in that: Before the master chip responds to the chip update instruction to notify the target chip to enter the update state, the method further includes: The main chip performs information verification on the chip update instruction to obtain an information verification result; If the information verification result is that the information verification passes, the master chip responds to the chip update instruction to notify the target chip to enter an update state to wait for receiving chip update data sent by the external device; If the information verification result is that the information verification fails, the main chip sends a reminder message to the external device indicating that the instruction information is wrong and cannot be updated.
4. The data updating method according to claim 2, characterized in that: When the target chip corresponding to the chip update instruction is another chip in the energy storage device, the master chip responds to the chip update instruction to notify the target chip to enter an update state to wait for receiving chip update data sent by the external device, including: When the target chip corresponding to the chip update instruction is another chip in the energy storage device, the main chip sends the chip update instruction to the target chip, so that the target chip performs a consistency check on the preset instruction embedded in the target chip and the chip update instruction, and when it is verified that the preset instruction embedded in the target chip is consistent with the chip update instruction, the boot program is started to enter the update state, and a waiting update instruction of the target chip is sent to the main chip; The master chip receives the waiting update instruction sent by the target chip, and sends the waiting update instruction of the target chip to the external device, so as to wait for receiving chip update data sent by the external device.
5. The data updating method according to claim 2, characterized in that: After the main chip receives the chip update instruction sent by the external device, the method further includes: When the target chip corresponding to the chip update instruction is the master chip, the master chip performs a consistency check between the preset instruction embedded in the master chip and the chip update instruction; When it is verified that the preset instruction embedded in the main chip is consistent with the chip update instruction, the main chip starts the boot program to enter the update state, and sends the main chip waiting update instruction to the external device to wait for receiving the chip update data sent by the external device; After verifying the chip update data, the method further includes: When the verification result of the chip update data is verification passed, if the master chip determines that the target chip is the master chip, the master chip updates the data of the master chip according to the chip update data.
6. The data updating method according to any one of claims 1 to 5, characterized in that: The master chip performs data verification on the chip update data, including: The master chip extracts data from the chip update data to obtain an update software package in the chip update data and attribute information of the update software package, wherein the attribute information includes a chip identification code, update version information, and verification information of the update software package; The main chip performs information accuracy verification on the chip identification code and the update version information, and performs data security verification on the update software package according to the verification information; When the information accuracy check passes and the data security check passes, the master chip determines that the check result of the chip update data is the check passing.
7. A data updating system, characterized in that: An energy storage device is included, wherein among the multiple chips of the energy storage device, there is a main chip capable of communicating with an external device network, and the main chip is connected to the other chips in the energy storage device; the main chip is used for: The main chip receives chip update data sent by the external device and performs data verification on the chip update data; When the verification result of the chip update data is passed, if the main chip determines that the target chip corresponding to the chip update data is other chips in the energy storage device except the main chip, the main chip sends the chip update data to the target chip so that the target chip updates the chip data according to the chip update data.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic device implements the data updating method according to any one of claims 1 to 6.
9. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the data updating method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed, the data updating method according to any one of claims 1 to 6 is executed.
Citation Information
Patent Citations
Circuit upgrading method based on serial port
CN112905206A
Chip online upgrading method, chip equipment and computer readable storage medium
CN115794177A
Firmware upgrading method, intelligent equipment and storage medium
CN116339787A
Software upgrading method, device and system of controller system and storage medium
CN118012472A
Battery management system and update method therefor, and master node, slave node and storage medium
WO2023102733A1
Cited By
Starting method, PCIe card, computing device and computer readable storage medium
CN120848960A