A DSP chip software online update method and system

Through the online update method, the problem of DSP chips being unable to be updated in harsh environments is solved. The security and reliability of data transmission are ensured through encryption and verification, and the efficiency and integrity of online updates are achieved.

CN112256304BActive Publication Date: 2024-09-10SHENZHEN HPMONT TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011205714.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-02
Publication Date
2024-09-10
Estimated Expiration
2040-11-02

AI Technical Summary

Technical Problem

Existing DSP chip software update methods are difficult to achieve online updates in harsh environments, and there are issues with the security and reliability of data transmission.

Method used

By establishing a communication connection with the DSP chip, the chip information and update list are obtained, the encrypted data to be updated is obtained and verified, decrypted and sent to the chip, and feedback verification data is received to verify the integrity and consistency of the updated data, using the data group Segmented transmission and CRC check ensure the security and reliability of transmission.

Benefits of technology

It achieves the reliability and security of online update of DSP chip software, avoids return to factory processing, and improves update efficiency and data transmission integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112256304B
    Figure CN112256304B
Patent Text Reader

Abstract

The present application discloses a DSP chip software online update method, which is used to perform online data update on the DSP chip. First, a communication connection is established with the DSP chip and the chip information of the DSP chip is obtained. Then, an update list and a communication key of the DSP chip software corresponding to the chip information are obtained from a cloud server, so as to obtain the encrypted data to be updated from the server according to the update list, and verify the data to be updated sent by the server through the communication key. Then, the encrypted data to be updated is decrypted and sent to the DSP chip, and the feedback verification data sent back by the DSP chip is received. The sent data to be updated is verified to be the same as the data to be updated obtained by the DSP chip according to the feedback verification data, and the update is terminated when the verification is successful. Since verification and encryption are performed when obtaining the data to be updated from the server and sending the data to be updated to the DSP chip, the reliability and security of the online update of the DSP chip software are higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of embedded DSP system, and in particular to a DSP chip software online updating method and system. Background Art

[0002] At present, embedded DSP systems are widely used in electromechanical equipment. The DSP chip in the DSP system first solidifies the executable code in FLASH. After the DSP chip is powered on and reset, it automatically loads the executable code in FLASH and runs it. When the executable code needs to be updated, the usual practice is to use an emulator connected to the printed circuit board to update the program, or to use a general programmer to update the executable code in the FLASH chip. However, sometimes the product has been integrated into the whole machine or the working environment conditions are relatively bad, and it is impossible to directly connect the emulator or use a general programmer, which brings great trouble to the code solidification operator, and sometimes even requires the equipment to be returned to the factory for processing. Summary of the invention

[0003] The main technical problem solved by the present invention is how to realize online updating of DSP chip software.

[0004] According to the first aspect, an embodiment provides a DSP chip software online update method, comprising:

[0005] Establish communication connection with DSP chip;

[0006] Obtain chip information of the DSP chip;

[0007] Obtaining an update list and a communication key of the DSP chip software corresponding to the chip information from a cloud server;

[0008] Acquire the encrypted data to be updated from the server according to the update list, and verify the data to be updated sent by the server according to the communication key during the acquisition process;

[0009] decrypting the encrypted data to be updated;

[0010] Sending the decrypted data to be updated to the DSP chip;

[0011] Receiving feedback verification data sent back by the DSP chip, and verifying the sent data to be updated according to the feedback verification data;

[0012] The update is completed after the verification is successful; the verification is successful when the data to be updated sent to the DSP chip is the same as the data to be updated acquired by the DSP chip.

[0013] In one embodiment, the data to be updated includes a BootLoader file and a Hex file;

[0014] The step of sending the decrypted data to be updated to the DSP chip comprises:

[0015] Sending the BootLoader file to the DSP chip;

[0016] Receive the BootLoader file sent back by the DSP chip;

[0017] Verify the BootLoader file sent to the DSP chip and the BootLoader file received from the DSP chip;

[0018] If the verification is successful, the Hex file is sent to the DSP chip.

[0019] In one embodiment, sending the Hex file to the DSP chip includes:

[0020] Divide the Hex file into at least one data group according to the data sequence; each data group includes at least two data segments arranged in the data sequence of the data group;

[0021] Sending a first transmission encryption method to the DSP chip, and receiving a second transmission encryption method fed back by the DSP chip;

[0022] Sending the data groups to the DSP chip in sequence according to the data sequence of the Hex file, so as to send all the Hex files to the DSP chip;

[0023] The process of sending each data group includes:

[0024] Sending the data group to be sent to the DSP chip in the first transmission encryption mode;

[0025] receiving the data group sent back by the DSP chip according to the second transmission encryption mode;

[0026] Verifying the data group sent to the DSP chip and the data group sent back by the DSP chip;

[0027] If the verification is successful, the next data group is sent.

[0028] In one embodiment, the process of sending each of the data groups further includes:

[0029] The data group transmission process exceeds a preset time and is then resent;

[0030] When the number of resending is greater than a preset value, the updating is terminated.

[0031] In one embodiment, it further includes:

[0032] When the number of times that the verification of the data group sent to the DSP chip and the data group sent back by the DSP chip fails is greater than a preset value, the updating is terminated.

[0033] In one embodiment, sending the data group to be sent to the DSP chip in the first transmission encryption mode includes:

[0034] Rearranging the data segments of the data group to be sent according to a first arrangement order;

[0035] sending the data group in which the data segments are rearranged according to the first arrangement order to the DSP chip;

[0036] The receiving the data group sent back by the DSP chip according to the second transmission encryption method comprises:

[0037] The DSP chip restores the arrangement order of the data segments of the received data group according to the first arrangement order, and rearranges the arrangement order of the data segments of the data group according to the second arrangement order;

[0038] sending back the data group in which the data segments are rearranged according to the second arrangement sequence;

[0039] The checking of the data group sent and the data group acquired by the DSP chip includes:

[0040] Restore the arrangement order of the data segments of the data group received from the DSP chip according to the second arrangement order;

[0041] The data group to be sent is checked against the data group in which the arrangement order of the data segments is restored.

[0042] In one embodiment, the step of obtaining an update list and a communication key of the DSP chip software corresponding to the chip information from a cloud server includes:

[0043] Log into the server according to a preset ID information; the ID information includes account and password information;

[0044] Obtain an update list and a communication key of the DSP chip software corresponding to the chip information under the ID information in the server.

[0045] In one embodiment, the receiving feedback verification data sent back by the DSP chip and verifying the sent data to be updated according to the feedback verification data includes:

[0046] The DSP chip performs CRC check algorithm calculation on the received data to be updated, and sends back the CRC check algorithm calculation result; performs CRC check algorithm calculation on the sent data to be updated, and verifies the obtained CRC check algorithm result with the CRC check algorithm calculation result sent back by the DSP chip;

[0047] Or, the DSP chip performs a sum verification algorithm calculation on the received data to be updated, and sends back the sum verification algorithm calculation result; performs a sum verification algorithm calculation on the sent data to be updated, and verifies the obtained sum verification algorithm calculation result with the sum verification algorithm calculation result sent back by the DSP chip.

[0048] According to the second aspect, an embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement the steps of the method described in the first aspect.

[0049] According to the third aspect, an embodiment provides a DSP chip software online update device, comprising:

[0050] Communication module, used to establish communication connection with DSP chip;

[0051] An update list acquisition module, used to acquire chip information of the DSP chip through the communication module, and also used to acquire an update list and a communication key of the DSP chip software corresponding to the chip information from a cloud server;

[0052] A data acquisition module, used for acquiring the encrypted data to be updated from the server according to the update list, and verifying the data to be updated sent by the server according to the communication key during the acquisition process; the data acquisition module is also used for decrypting the encrypted data to be updated;

[0053] A sending module, used for sending the decrypted data to be updated to the DSP chip;

[0054] A receiving module, used for receiving feedback verification data sent back by the DSP chip;

[0055] The verification module is used to verify the sent data to be updated according to the feedback verification data, and end the update when the verification is successful; the successful verification means that the data to be updated sent to the DSP chip is the same as the data to be updated obtained by the DSP chip.

[0056] According to the DSP chip software online update method of the above embodiment, since verification and encryption are performed when obtaining the data to be updated from the server and sending the data to be updated to the DSP chip, the reliability and security of the DSP chip software online update are higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A schematic diagram of the connection of a DSP chip software online update device in an embodiment;

[0058] Figure 2 A schematic diagram of a DSP chip software online update method flow in an embodiment;

[0059] Figure 3 A schematic diagram of a process of sending a BootLoader file in an embodiment;

[0060] Figure 4 A schematic diagram of a flow chart of a method for sending a Hex file in an embodiment;

[0061] Figure 5 The figure is a flowchart of the sending process of each data group in an embodiment. DETAILED DESCRIPTION

[0062] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.

[0063] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.

[0064] The serial numbers assigned to the components herein, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning. The "connection" and "coupling" mentioned in this application, unless otherwise specified, include direct and indirect connections (couplings).

[0065] Definitions of terms used in this application:

[0066] DSP: Digital Signal Processor.

[0067] APP: Application, mobile application.

[0068] CRC: Cyclic Redundancy Check, cyclic redundancy check.

[0069] Windows: Windows operating system.

[0070] USB: Universal Serial Bus.

[0071] 485 interface: A standard for the electrical characteristics of drivers and receivers in balanced digital multipoint systems.

[0072] Hex: Inter HEX, usually used to transfer programs or data to be stored in ROM or EPROM, an ASCII text file consisting of lines of text that conform to the Inter HEX file format.

[0073] http:Hyper Text Transfer Protocol, Hypertext Transfer Protocol.

[0074] BootLoader: boot loader.

[0075] DSP chips have been widely used in signal processing, instrumentation, automatic control and other fields due to their high precision and high stability. The existing DSP chip software uses EPROM memory as a carrier to store programs. The software needs to be burned into the EPROM memory before system testing. When the system is tested, if the software needs to be upgraded, the system must be disassembled, the hardware device that fixes the DSP software must be removed, and the EPROM memory must be re-burned to replace the software. In recent years, DSP software is mostly stored and run in FLASH memory, but due to different hardware interfaces, the designed software upload and update methods are also diverse, such as using the JTAG interface for connection upgrades. In particular, some DSP software contains operations for directly erasing and writing FLASH memory, which poses the risk of accidentally deleting and rewriting the DSP software in the FLASH memory. With the continuous increase in terminal devices and the wide distribution of devices in various places, different users have different requirements for the software functions of their own products, and the management of software versions has also emerged. In order to facilitate the upload and update of each DSP chip software, online remote management is adopted. The corresponding upload update files need to consider their security, reliability and integrity during remote transmission. Therefore, it is necessary to provide a DSP chip software online update method with a small system integration scale and improved reliability and efficiency of DSP software upload and update.

[0076] In an embodiment of the present invention, a DSP chip software online update method is disclosed, which is used to perform online data update on the DSP chip. First, a communication connection is established with the DSP chip and the chip information of the DSP chip is obtained. Then, an update list and a communication key of the DSP chip software corresponding to the chip information are obtained from a cloud server, so as to obtain the encrypted data to be updated from the server according to the update list, and verify the data to be updated sent by the server through the communication key. Then, the encrypted data to be updated is decrypted and sent to the DSP chip, and the feedback verification data sent back by the DSP chip is received. The sent data to be updated is verified to be the same as the data to be updated obtained by the DSP chip according to the feedback verification data, and the update is terminated when the verification is successful. Since verification and encryption are performed when obtaining the data to be updated from the server and sending the data to be updated to the DSP chip, the reliability and security of the online update of the DSP chip software are higher.

[0077] Embodiment 1

[0078] Please refer to Figure 1, is a connection diagram of a DSP chip software online update device in an embodiment, including a DSP chip 10, a DSP chip software online update device 20 and a cloud server 30. The DSP chip software online update device 20 includes a communication module 21, an update list acquisition module 22, a data acquisition module 23, a sending module 24, a receiving module 25 and a verification module 26. The communication module 21 is used to establish a communication connection with the DSP chip. The update list acquisition module 22 is used to obtain the chip information of the DSP chip 10 through the communication module 21, and is also used to obtain the update list and communication key of the DSP chip software corresponding to the chip information from a cloud server 30. The data acquisition module 23 is used to obtain the encrypted data to be updated from the server 30 according to the update list, and to verify the data to be updated sent by the server 30 according to the communication key during the acquisition process, and is also used to decrypt the encrypted data to be updated. The sending module 24 is used to send the decrypted data to be updated to the DSP chip 10. The receiving module 25 is used to receive the feedback verification data sent back by the DSP chip 10. The verification module 26 is used to verify the sent data to be updated according to the feedback verification data, and end the update when the verification is successful. The successful verification means that the data to be updated sent to the DSP chip 10 is the same as the data to be updated acquired by the DSP chip 10 .

[0079] Please refer to Figure 2 , is a flow chart of a method for online updating of DSP chip software in an embodiment, the method is used to update data of the DSP chip online, including:

[0080] Step 1: Establish a communication connection with the DSP chip.

[0081] The DSP chip software online update device includes an intelligent mobile terminal or a software update computer. In one embodiment, the intelligent mobile terminal includes a mobile phone, and the mobile phone runs an APP software for online updating of the DSP chip software. The intelligent mobile terminal establishes a communication connection with the DSP chip through a Bluetooth to RS-485 device, that is, the intelligent mobile terminal establishes a connection with the Bluetooth to RS-485 device through a Bluetooth signal, and the Bluetooth to RS-485 device establishes a communication connection with the DSP chip through an RS-485 interface. Or, the intelligent mobile terminal establishes a communication connection with the DSP chip through a USB to RS-485 device, that is, the intelligent mobile terminal establishes a connection with the USB to RS-485 device through an OTG interface, and the USB to RS-485 device establishes a communication connection with the DSP chip through an RS-485 interface. In one embodiment, the software update computer establishes a communication connection with the DSP chip through a Bluetooth to RS-485 device or a USB to RS-485 device.

[0082] Step 2: Get the chip information of the DSP chip.

[0083] After establishing a communication connection with the DSP chip, the chip information of the DSP chip is obtained. In one embodiment, the chip information of the DSP chip is directly preset. In one embodiment, the chip information of the DSP chip includes the interface information of the DSP chip hardware, the chip model information and the device information including the DSP chip.

[0084] Step 3: Get the update list and communication password.

[0085] Obtain an update list and a communication key of the DSP chip software corresponding to the chip information from a cloud server. In one embodiment, a communication connection is established with the cloud server via the TCP / IP protocol, and the server is logged in according to a preset ID information. In one embodiment, the ID information includes account and password information. Log in to the cloud server remotely according to the preset account and password, obtain the update list and communication key of the DSP chip software corresponding to the chip information under the ID information in the cloud server, or obtain the update list and communication key of the DSP chip software corresponding to the device information including the DSP chip. The communication key is used for mutual verification when the DSP chip software online update device and the cloud server perform data interaction.

[0086] Step 4: Get the data to be updated.

[0087] The encrypted data to be updated is obtained from the cloud server according to the update list, and the data to be updated sent by the cloud server is verified according to the communication key during the acquisition process. In one embodiment, the DSP chip software online update device downloads the data to be updated from the cloud server in sequence according to the update list of the DSP chip software. In one embodiment, during the process of the cloud server obtaining the encrypted data to be updated, the data to be updated sent by the cloud server is verified according to the communication key. In one embodiment, the verification process of the communication key includes:

[0088] Each update data sent by the cloud server contains the communication key;

[0089] After receiving the data to be updated, the DSP chip software online update device verifies the communication key in the data to be updated;

[0090] If the DSP chip software online update device verifies that the communication key is correct, it will feedback a successful reception message to the cloud server, and the successful reception message will contain the communication key;

[0091] After receiving the feedback success message, the cloud server verifies the communication key in the feedback success message;

[0092] If the cloud server verifies that the communication key is correct, it is confirmed that the data to be updated is successfully obtained, otherwise it is confirmed that the data to be updated fails to be obtained. When it is confirmed that the data to be updated fails to be obtained, the failed data to be updated is resent.

[0093] In one embodiment, if the number of times the cloud server fails to send the data to be updated at one time is greater than a preset value, for example, the number of failures is greater than 4 times, the DSP chip software online update device stops obtaining the data to be updated from the cloud server, and must re-establish a communication connection with the cloud server and re-login to the cloud server according to the preset ID information to re-obtain the data to be updated.

[0094] In one embodiment, the data to be updated includes a BootLoader file and a Hex file. The cloud server is used to store the encrypted Hex file, manage the login ID information, and bind the association between the ID information and the encrypted Hex file to control the type, quantity, and time of upgrade software available to users related to the ID information.

[0095] The data to be updated stored in the cloud server is uploaded by the upload workstation. The acquisition process includes:

[0096] The upload workstation used to upload the Hex file to the cloud server encrypts the original Hex file of the DSP chip compiled by the compiler through the Windows client software to generate an encrypted Hex file, and the upload workstation uploads it to the cloud server through the http protocol. Among them, encryption through the Windows client software includes:

[0097] The Windows client running on the uploading workstation rearranges the data of the loaded original Hex file, and encrypts the rearranged file using an asymmetric encryption method to generate an encrypted Hex file.

[0098] The cloud server manages Hex files by assigning different ID information to the cloud server through the web page when the uploading workstation uploads updated data, so that the cloud server can manage the Hex files and control permissions by managing the ID information.

[0099] Step 5: decrypt the acquired data to be updated.

[0100] The DSP chip software online updating device decrypts the encryption method of the data to be updated according to the uploading workstation to obtain the decrypted data to be updated.

[0101] Step 6: Send the data to be updated to the DSP chip.

[0102] Send the decrypted data to be updated to the DSP chip. In one embodiment, the data to be updated includes a BootLoader file and a Hex file, and sending the decrypted data to be updated to the DSP chip includes sending the BootLoader file and sending the Hex file.

[0103] Please refer to Figure 3 , is a flow chart of a method for sending a BootLoader file in an embodiment, the method for sending a BootLoader file includes:

[0104] Step 110, sending test data.

[0105] The DSP chip software online updating device first sends a preset test data to the DSP chip. In one embodiment, the sent test data is a character or a string.

[0106] Step 120: Receive the reply test data.

[0107] After receiving the preset test data, the DSP chip sends the received test data back. The DSP chip software online update device receives the test data sent back by the DSP chip and verifies the sent preset test data and the received preset data. If the sent preset test data is consistent with the received preset data, the verification is successful, otherwise the verification fails. In one embodiment, if the verification result of the test data fails three times in a row, the update is terminated.

[0108] Step 130: Send the BootLoader file to the DSP chip.

[0109] After the test data is verified successfully, the DSP chip software online update device starts sending the BootLoader file to the DSP chip.

[0110] Step 140, receiving the replied BootLoader file.

[0111] After receiving the BootLoader file, the DSP chip sends the obtained BootLoader file back to the DSP chip software online updating device, and the DSP chip software online updating device receives the BootLoader file sent back by the DSP chip.

[0112] Step 150, verify the BootLoader file.

[0113] The DSP chip software online update device verifies the BootLoader file sent to the DSP chip and the BootLoader file sent back by the received DSP chip. If the BootLoader file sent to the DSP chip is consistent with the BootLoader file sent back by the received DSP chip, the verification is successful, otherwise the verification fails.

[0114] The verification is successful, the BootLoader file transfer is completed, and the Hex file starts to be sent to the DSP chip.

[0115] In one embodiment, before starting to send the Hex file, the DSP chip software online update device sends different instructions to the DSP chip, and the DSP chip receives the corresponding instructions and performs corresponding operations. The different instructions include baud rate switching instructions, version number query instructions, data sending instructions, Flash erase instructions, chip unlocking instructions and upgrade completion instructions, so that the DSP chip starts to prepare to receive the Hex file.

[0116] Please refer to Figure 4 , is a flow chart of a method for sending a Hex file in an embodiment, the method for sending a Hex file includes:

[0117] Step 210: Import the BootLoader program.

[0118] The DSP chip software online updating device sends a BootLoader program importing instruction to the DSP chip, and the DSP chip imports the BootLoader program in response to the instruction.

[0119] Step 220, obtain the BootLoader version number.

[0120] The DSP chip obtains the BootLoader version number and sends it to the DSP chip software online update device.

[0121] Step 230, read and send the random number.

[0122] The DSP chip software online update device and the DSP chip send random numbers to each other to test that data transmission is normal.

[0123] Step 240, sending the version number, unlocking key and erasing Flash;

[0124] The DSP chip software online updating device sends the DSP chip software version number to the DSP chip;

[0125] The DSP chip software online update device sends a data transmission unlocking key to the DSP chip, including:

[0126] The DSP chip software online updating device divides the Hex file into at least one data group according to the data sequence, and each data group includes at least two data segments arranged according to the data sequence of the data group.

[0127] The DSP chip erases the Flash.

[0128] The DSP chip software online updating device sends a first transmission encryption mode to the DSP chip, and receives a second transmission encryption mode fed back by the DSP chip.

[0129] Step 250, sending and displaying progress group by group in a preset order.

[0130] The DSP chip software online update device sends the data groups to the DSP chip in the order of the data in the Hex file, so as to send all the Hex files to the DSP chip. During the sending process, the BootLoader program displays the sending progress.

[0131] Please refer to Figure 5 , is a flow chart of a process of sending each data group in an embodiment, and the process of sending each data group includes:

[0132] Step 251, sending the data group according to the first transmission encryption method.

[0133] The data group to be sent is sent to the DSP chip according to the first transmission encryption method. In one embodiment, the data group to be sent is sent to the DSP chip according to the first transmission encryption method, including:

[0134] The data segments of the data group to be sent are rearranged according to the first arrangement order.

[0135] The data group of data segments rearranged in the first arrangement order is sent to the DSP chip.

[0136] Step 252, receiving the data group returned by the second encryption method. In one embodiment, receiving the data group sent back by the DSP chip by the second transmission encryption method includes:

[0137] The DSP chip restores the arrangement order of the data segments of the received data group according to the first arrangement order, and rearranges the arrangement order of the data segments of the data group according to the second arrangement order.

[0138] The data group with the data segments rearranged in the second arrangement order is sent back to the DSP chip software online updating device.

[0139] Step 253, verify the sent and received data groups.

[0140] Verify the sent data group and the data group obtained by the DSP chip, including:

[0141] The data group sent back by the DSP chip is received and the arrangement order of the data segments of the data group is restored according to the second arrangement order.

[0142] A data group to be sent is checked against a data group that restores the order of the data segments.

[0143] Step 254: Verification is successful, and the next group is sent.

[0144] Verify that the data group to be sent is consistent with the data group in the order of the restored data segment, and send the next data group to the DSP chip in the order of sending. If the verification fails, resend the data group to the DSP chip.

[0145] In one embodiment, when the sending process of the data group to be sent currently takes more than a preset time, it is resent.

[0146] In one embodiment, the updating is terminated when the number of retransmissions of the data group currently to be sent is greater than a preset value.

[0147] In one embodiment, the update is terminated when the number of verification failures of the data group to be sent is greater than a preset value. In one embodiment, the update is terminated when the number of verification failures of the data group sent to the DSP chip and the data group sent back by the DSP chip is greater than a preset value. That is, when sending a Hex file to the DSP chip, the update is terminated when the total number of verification failures of the data group is greater than a preset value.

[0148] Step 260, complete sending.

[0149] Each data of the Hex file is sent to the DSP chip, and all are verified successfully, and the sending is completed.

[0150] Step 270, exit the BootLoader program.

[0151] The DSP chip exits the BootLoader program.

[0152] Step 280, completing the updating of the Hex file.

[0153] Step 7: Verify the sent data to be updated.

[0154] Receive feedback verification data sent back by the DSP chip, verify the sent data to be updated according to the feedback verification data, and end the update if the verification is successful. Wherein, the verification is successful when the data to be updated sent to the DSP chip is the same as the data to be updated acquired by the DSP chip. In one embodiment, receive feedback verification data sent back by the DSP chip, and verify the sent data to be updated according to the feedback verification data, including:

[0155] The DSP chip performs CRC check algorithm calculation on the received data to be updated, and sends back the CRC check algorithm calculation result.

[0156] Perform CRC check algorithm calculation on the sent data to be updated, and check the obtained CRC check algorithm result with the CRC check algorithm calculation result sent back by the DSP chip.

[0157] When the obtained CRC check algorithm result is consistent with the CRC check algorithm calculation result sent back by the DSP chip, the check is successful, otherwise the check fails.

[0158] In one embodiment, receiving feedback verification data sent back by the DSP chip, and verifying the sent data to be updated according to the feedback verification data, includes:

[0159] The DSP chip performs sum-check algorithm calculation on the received data to be updated, and sends back the sum-check algorithm calculation result.

[0160] Perform a sum check algorithm calculation on the sent data to be updated, and verify the obtained sum check algorithm calculation result with the sum check algorithm calculation result sent back by the DSP chip.

[0161] When the obtained sum check algorithm calculation result is consistent with the sum check algorithm calculation result sent back by the DSP chip, the verification is successful, otherwise the verification fails.

[0162] In one embodiment, when the sent data to be updated is verified successfully, the DSP chip software is updated and the update is displayed successfully. When the sent data to be updated is verified unsuccessfully, the DSP chip software is updated and the update is displayed unsuccessfully.

[0163] In one embodiment of the present application, in order to realize the fast and convenient upgrade of DSP chip programs, overcome the limitations of space and time, and facilitate the unified management and distribution of upgraded software, a DSP chip program remote update method and system are proposed. The system can manage multiple versions of software online, and at the same time, asymmetric encryption is performed on the software uploaded to the server to improve the security of software storage. During the software transmission process, the system designs a set of transmission encryption methods for the serial communication process to encrypt the transmission process, enhance the data security and accuracy during the transmission process, and add CRC check and sum check methods to improve the integrity of data transmission.

[0164] In an embodiment of the present application, a DSP chip software online update method is disclosed, which is used to perform online data update on the DSP chip. First, a communication connection is established with the DSP chip and the chip information of the DSP chip is obtained. Then, an update list and a communication key of the DSP chip software corresponding to the chip information are obtained from a cloud server, so as to obtain the encrypted data to be updated from the server according to the update list, and verify the data to be updated sent by the server through the communication key. Then, the encrypted data to be updated is decrypted and sent to the DSP chip, and the feedback verification data sent back by the DSP chip is received. The sent data to be updated is verified to be the same as the data to be updated obtained by the DSP chip according to the feedback verification data, and the update is terminated when the verification is successful. Since verification and encryption are performed when obtaining the data to be updated from the server and sending the data to be updated to the DSP chip, the reliability and security of the online update of the DSP chip software are higher.

[0165] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.

[0166] The above specific examples are used to illustrate the present invention, which are only used to help understand the present invention and are not used to limit the present invention. For those skilled in the art to which the present invention belongs, some simple deductions, modifications or substitutions can be made according to the idea of ​​the present invention.

Claims

1. A DSP chip software online update method, characterized in that: include: Establish communication connection with DSP chip; Obtain chip information of the DSP chip; Obtaining an update list and a communication key of the DSP chip software corresponding to the chip information from a cloud server; Obtaining the encrypted data to be updated from the server according to the update list, and verifying the data to be updated sent by the server according to the communication key during the acquisition process; decrypting the encrypted data to be updated; Sending the decrypted data to be updated to the DSP chip; receiving feedback verification data sent back by the DSP chip, and verifying the sent data to be updated according to the feedback verification data; The update is completed after successful verification; the successful verification means that the data to be updated sent to the DSP chip is the same as the data to be updated obtained by the DSP chip.

2. The method according to claim 1, wherein The data to be updated includes a BootLoader file and a Hex file; The step of sending the decrypted data to be updated to the DSP chip includes: Sending the BootLoader file to the DSP chip; Receive the BootLoader file sent back by the DSP chip; Verify the BootLoader file sent to the DSP chip and the BootLoader file received back by the DSP chip; If the verification is successful, the Hex file is sent to the DSP chip.

3. The method according to claim 2, wherein The sending of the Hex file to the DSP chip includes: Divide the Hex file into at least one data group according to the data sequence; each data group includes at least two data segments arranged in the data sequence of the data group; Sending a first transmission encryption method to the DSP chip, and receiving a second transmission encryption method fed back by the DSP chip; Sending the data groups to the DSP chip in sequence according to the data sequence of the Hex files, so as to send all the Hex files to the DSP chip; The process of sending each data group includes: Sending the data group to be sent to the DSP chip in the first transmission encryption mode; receiving the data group sent back by the DSP chip in the second transmission encryption mode; Verifying the data group sent to the DSP chip and the data group sent back by the DSP chip; If the verification is successful, the next data group is sent.

4. The method according to claim 3, wherein The process of sending each of the data groups further includes: The data group transmission process exceeds a preset time and is then retransmitted; When the number of resending times is greater than a preset value, the updating is terminated.

5. The method according to claim 3, wherein Also includes: When the number of times that the verification of the data group sent to the DSP chip and the data group sent back by the DSP chip fails is greater than a preset value, the updating is terminated.

6. The method according to claim 3, wherein The step of sending the data group to be sent to the DSP chip in the first transmission encryption mode includes: Rearranging the data segments of the data group to be sent according to a first arrangement order; sending the data group in which the data segments are rearranged according to the first arrangement order to the DSP chip; The receiving the data group sent back by the DSP chip according to the second transmission encryption method includes: The DSP chip restores the arrangement order of the data segments of the received data group according to the first arrangement order, and rearranges the arrangement order of the data segments of the data group according to the second arrangement order; sending back the data group in which the data segments are rearranged according to the second arrangement sequence; The checking of the data group sent and the data group acquired by the DSP chip includes: Restoring the arrangement order of the data segments of the data group received from the DSP chip according to the second arrangement order; Verify the data group to be sent and the data group of the arrangement order of the restored data segments.

7. The method according to claim 1, wherein The step of obtaining an update list and a communication key of the DSP chip software corresponding to the chip information from a cloud server includes: Log into the server using a preset ID information; the ID information includes account and password information; Obtain an update list and a communication key of the DSP chip software corresponding to the chip information under the ID information in the server.

8. The method according to claim 1, wherein The receiving feedback verification data sent back by the DSP chip and verifying the sent data to be updated according to the feedback verification data includes: The DSP chip performs a CRC check algorithm calculation on the received data to be updated, and sends back the CRC check algorithm calculation result; performs a CRC check algorithm calculation on the sent data to be updated, and verifies the obtained CRC check algorithm result with the CRC check algorithm calculation result sent back by the DSP chip; Alternatively, the DSP chip performs a sum check algorithm calculation on the received data to be updated, and sends back the sum check algorithm calculation result; performs a sum check algorithm calculation on the sent data to be updated, and verifies the obtained sum check algorithm calculation result with the sum check algorithm calculation result sent back by the DSP chip.

9. A computer-readable storage medium, characterized in that The method comprises a program which can be executed by a processor to implement the method according to any one of claims 1 to 8.

10. A DSP chip software online update device, characterized in that: include: Communication module, used to establish communication connection with DSP chip; An update list acquisition module, configured to acquire chip information of the DSP chip through the communication module, and further configured to acquire an update list and a communication key of the DSP chip software corresponding to the chip information from a cloud server; a data acquisition module, configured to acquire the encrypted data to be updated from the server according to the update list, and to verify the data to be updated sent by the server according to the communication key during the acquisition process; the data acquisition module is further configured to decrypt the encrypted data to be updated; A sending module, configured to send the decrypted data to be updated to the DSP chip; A receiving module, configured to receive feedback verification data sent back by the DSP chip; The verification module is used to verify the data to be updated that has been sent based on the feedback verification data, and end the update when the verification is successful; the successful verification means that the data to be updated sent to the DSP chip is the same as the data to be updated obtained by the DSP chip.