Method for updating DSP2812 based on serial port

The method of updating DSP2812 through the serial port solves the problem of complex and high cost in traditional update methods, realizes a simplified loading process and efficient update operations, and reduces maintenance costs.

CN120104155APending Publication Date: 2025-06-06EAST CHINA INST OF COMPUTING TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510098364.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

The program update operation of DSP2812 is complex and costly, and the traditional emulator update method is complex, the operation is cumbersome and costly.

Method used

The serial port-based update method is adopted, and the serial port communication between the upper computer and the DSP2812 is configured, the serial port parameters are initialized, and the application is written for data transmission and verification, so as to realize the program writing and updating.

Benefits of technology

It simplifies the operation process of program updates, reduces equipment costs, improves update efficiency and reliability, and is suitable for rapid on-site updates and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104155A_ABST
    Figure CN120104155A_ABST
Patent Text Reader

Abstract

The invention relates to a method for updating a DSP2812 (Digital Signal Processor 2812) based on a serial port, which comprises the following steps of: 1, configuring an upper computer and the DSP2812, and initializing the serial port; 2, an application program specially used for sending program data to the DSP2812 is written at the upper computer end; 3, the upper computer sends the converted program data to a DSP2812 frame by frame according to a preset protocol format; 4, after receiving the complete and correct program data, the DSP2812 stores the complete and correct program data in a pre-specified internal storage space, and program updating operation is completed step by step according to a program programming standard of the DSP2812; 5, updating is completed, the DSP2812 automatically restarts and operates a new program, and the upper computer conducts verification; according to the method, the problems that the operation of updating and upgrading the internal program of the DSP2812 is complex and the cost is relatively high are solved, a simplified loading process is realized, the efficiency and reliability of system updating are improved, and the updating and maintenance cost is reduced at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a digital signal processing technology, and in particular to an updating and using method of a DSP2812. Background Art

[0002] DSP2812 is a digital signal processor widely used in industrial control, power electronics and other fields. In practical applications, it is often necessary to update and upgrade its internal program. Traditional program update methods have many inconveniences, such as the need for a special programmer, complex operation and high cost. At the same time, the connection requirements for the equipment are relatively strict, which is not conducive to rapid on-site updates and maintenance.

[0003] Current technologies all use simulator updates, which have relatively complicated wiring and require the removal of boards for some simulator interfaces, making the operation complex and costly. Summary of the invention

[0004] Aiming at the problem that the operation of updating and upgrading the internal program of DSP2812 is complicated and costly, a method of updating DSP2812 based on serial port is proposed. The purpose of the present invention is to provide a method and device for updating DSP2812 through serial port, so as to realize a simplified loading process, improve the efficiency and reliability of system update, and reduce the update and maintenance cost.

[0005] The technical solution of the present invention is:

[0006] A method for updating DSP2812 based on a serial port comprises the following steps:

[0007] Step 1: Configure the host computer and DSP2812, and initialize the serial port; set the baud rate, data bit, stop bit and check bit parameters of the serial communication to ensure the normal establishment of serial communication between the host computer and DSP2812;

[0008] Step 2: Prepare and connect the host computer program; write an application program on the host computer to send program data to DSP2812. The program can read the program file to be updated and convert it into a format suitable for serial port transmission; connect the host computer to the DSP2812 board through a serial port line to ensure a stable and reliable connection;

[0009] Step 3: Data transmission and verification; the host computer sends the converted program data frame by frame to DSP2812 according to the predetermined protocol format; after sending each frame of data, wait for the confirmation information returned by DSP2812; after receiving the data frame, DSP2812 first performs data integrity verification; if the verification passes, a confirmation signal is sent to the host computer, indicating that the data is received correctly; if the verification fails, an error signal is sent, and the host computer resends the frame of data after receiving the error signal;

[0010] Step 4: Program burning and updating; after receiving the complete and correct program data, DSP2812 stores it in the pre-specified internal storage space, and gradually completes the program update operation according to the program burning specification of DSP2812; during the burning process, DSP2812 monitors the burning status in real time and feeds back the status information to the host computer, which displays the burning progress and results so that the operator can understand the update status in time;

[0011] Step 5: Update completion and verification; when the program update is completed, DSP2812 automatically restarts and runs the new program; the host computer can verify whether the new DSP2812 program runs normally by sending specific test instructions or data; if the verification passes, it indicates that the DSP2812 update process based on the serial port is successfully completed; if the verification fails, further troubleshoot the problem according to the error prompt information and re-update the operation.

[0012] Furthermore, step 1 specifically includes the following steps:

[0013] Step 1.1: Initialize the data bit, stop bit, parity bit, and baud rate information of the serial port of DSP2812. This information will be printed through the serial port after power-on initialization is completed;

[0014] Step 1.2: Initialize the data bit, stop bit, parity bit, and baud rate information of the host computer's serial port.

[0015] Furthermore, step 2 specifically includes the following steps:

[0016] Step 2.1: Connect the serial port of the host computer to the serial port of DSP2812;

[0017] Step 2.2: Open the host computer software first, then power on and start DSP2812, and ensure that the initialization information sent by DSP2812 can be received on the host computer software interface.

[0018] Furthermore, step 3 specifically includes the following steps:

[0019] Step 3.1: Send a command to start transmission to DSP2812 through the host computer interface, and wait for the response information returned by DSP2812;

[0020] Step 3.2: After receiving the response information from DSP2812, the host computer starts to send data information to DSP2812;

[0021] Step 3.3: After the host computer completes sending the data information, DSP2812 performs data verification on the received data information, and sends confirmation information to the host computer after the verification is completed.

[0022] Furthermore, step 4 specifically includes the following steps:

[0023] Step 4.1: DSP2812 stores the received correct information in RAM first, and waits for the host computer to send the burning command;

[0024] Step 4.2: After receiving the burning command from the host computer, DSP2812 starts to update the data stored in RAM to FLASH, and sends update progress information to the host computer during the updating process.

[0025] Furthermore, step 5 specifically includes the following steps:

[0026] Step 5.1: After the DSP2812 is updated, the host computer sends a verification command to the DSP2812;

[0027] Step 5.2: After receiving the verification command, DSP2812 reads the data from FLASH, compares it with the data stored in RAM and returns the verification result.

[0028] Furthermore, in step 1.2, the host computer software can configure the data bits, stop bits, parity bits, and baud rate information.

[0029] The beneficial effects of the present invention are:

[0030] 1. Easy operation: No complicated programmer equipment is required. Program update can be completed by connecting the host computer and DSP2812 through the serial port, which reduces the requirements for the professional skills of the operator.

[0031] 2. Low cost: Compared with the traditional dedicated programmer update method, using the serial port for updating greatly reduces the equipment cost, which is especially suitable for large-scale production or on-site maintenance scenarios.

[0032] 3. High flexibility: The host computer program and serial port communication protocol can be easily modified according to actual needs to adapt to different application requirements and program update requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A serial port update flow chart of the method for updating DSP2812 based on the serial port of the present invention;

[0034] Figure 2 This is a diagram showing the serial port initialization information of DSP2812 according to an embodiment of the present invention;

[0035] Figure 3 This is a diagram showing the file transfer process of an embodiment of the present invention;

[0036] Figure 4 This is a diagram showing file update and verification according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0038] This method comprises the following steps:

[0039] Step 1: Configure the host computer and DSP2812, and initialize the serial port. Set the baud rate, data bit, stop bit, check bit and other parameters of the serial communication to ensure the normal establishment of the serial communication between the host computer and DSP2812.

[0040] Wherein, step 1 specifically includes the following steps:

[0041] Step 1.1: Initialize the data bit, stop bit, parity bit, baud rate and other information of the serial port of DSP2812. This information will be printed through the serial port after power-on initialization is completed;

[0042] Step 1.2: Initialize the data bit, stop bit, parity bit, baud rate and other information of the host computer's serial port. In order to improve the versatility of the system, the host computer software can configure this information;

[0043] Step 2: Prepare and connect the host computer program. Write an application program on the host computer specifically for sending program data to DSP2812. The program can read the program file to be updated and convert it into a format suitable for serial port transmission. The host computer is connected to the DSP2812 board via a serial port line to ensure a stable and reliable connection.

[0044] Step 2 specifically includes the following steps:

[0045] Step 2.1: Connect the serial port of the host computer to the serial port of DSP2812;

[0046] Step 2.2: Open the host computer software first, then power on and start DSP2812, and ensure that the initialization information sent by DSP2812 can be received on the host computer software interface.

[0047] Step 3: Data transmission and verification. The host computer sends the converted program data to DSP2812 frame by frame according to the predetermined protocol format. After sending each frame of data, wait for the confirmation information returned by DSP2812. After receiving the data frame, DSP2812 first performs data integrity verification, such as checksum calculation. If the verification passes, a confirmation signal is sent to the host computer, indicating that the data is received correctly; if the verification fails, an error signal is sent, and the host computer resends the frame of data after receiving the error signal.

[0048] Step 3 specifically includes the following steps:

[0049] Step 3.1: Send a command to start transmission to DSP2812 through the host computer interface, and wait for the response information returned by DSP2812.

[0050] Step 3.2: After receiving the response information from DSP2812, the host computer starts to send data information to DSP2812.

[0051] Step 3.3: After the host computer completes sending the data information, DSP2812 performs data verification on the received data information, and sends confirmation information to the host computer after the verification is completed.

[0052] Step 4: Program burning and updating. After receiving the complete and correct program data, DSP2812 stores it in the pre-specified internal storage space and gradually completes the program update operation according to the program burning specification of DSP2812. During the burning process, DSP2812 monitors the burning status in real time and feeds back the status information to the host computer, which displays the burning progress and results so that the operator can understand the update status in time.

[0053] Step 4 specifically includes the following steps:

[0054] Step 4.1: DSP2812 stores the received correct information in RAM first, and waits for the host computer to send the burning command;

[0055] Step 4.2: After receiving the burning command from the host computer, DSP2812 starts to update the data stored in RAM to FLASH, and sends update progress information to the host computer during the updating process.

[0056] Step 5: Update completion and verification. When the program update is completed, DSP2812 automatically restarts and runs the new program. The host computer can verify whether the new DSP2812 program runs normally by sending specific test instructions or data, such as checking whether the output results of key functional modules meet expectations. If the verification is successful, it means that the DSP2812 update process based on the serial port is successfully completed; if the verification fails, further troubleshoot the problem according to the error prompt information and re-update the operation.

[0057] Step 5 specifically includes the following steps:

[0058] Step 5.1: After the DSP2812 is updated, the host computer sends a verification command to the DSP2812;

[0059] Step 5.2: After receiving the verification command, DSP2812 reads the data from FLASH, compares it with the data stored in RAM and returns the verification result.

[0060] The above-mentioned embodiment only expresses one implementation mode of the present invention, and its description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

Claims

1. A method for updating DSP2812 based on a serial port, characterized in that: The steps include: Step 1: Configure the host computer and DSP2812, and initialize the serial port; set the baud rate, data bit, stop bit and check bit parameters of the serial communication to ensure the normal establishment of serial communication between the host computer and DSP2812; Step 2: Prepare and connect the host computer program; write an application program on the host computer to send program data to DSP2812. The program can read the program file to be updated and convert it into a format suitable for serial port transmission; connect the host computer to the DSP2812 board through a serial port line to ensure a stable and reliable connection; Step 3: Data transmission and verification; the host computer sends the converted program data to DSP2812 frame by frame according to the predetermined protocol format; after sending each frame of data, wait for the confirmation information returned by DSP2812; after receiving the data frame, DSP2812 first performs data integrity verification; If the verification is passed, a confirmation signal is sent to the host computer, indicating that the data is received correctly; if the verification fails, an error signal is sent, and the host computer resends the frame data after receiving the error signal; Step 4: Program burning and updating; after receiving the complete and correct program data, DSP2812 stores it in the pre-specified internal storage space, and gradually completes the program update operation according to the program burning specification of DSP2812; during the burning process, DSP2812 monitors the burning status in real time and feeds back the status information to the host computer, which displays the burning progress and results so that the operator can understand the update status in time; Step 5: Update completion and verification; when the program update is completed, DSP2812 automatically restarts and runs the new program; the host computer can verify whether the new DSP2812 program runs normally by sending specific test instructions or data; if the verification passes, it indicates that the DSP2812 update process based on the serial port is successfully completed; if the verification fails, further troubleshoot the problem according to the error prompt information and re-update the operation.

2. The method for updating DSP2812 based on a serial port according to claim 1, characterized in that: Step 1 specifically includes the following steps: Step 1.1: Initialize the data bit, stop bit, parity bit, and baud rate information of the serial port of DSP2812. This information will be printed through the serial port after power-on initialization is completed; Step 1.2: Initialize the data bit, stop bit, parity bit, and baud rate information of the host computer's serial port.

3. The method for updating DSP2812 based on a serial port according to claim 1, characterized in that: Step 2 specifically includes the following steps: Step 2.1: Connect the serial port of the host computer to the serial port of DSP2812; Step 2.2: Open the host computer software first, then power on and start DSP2812, and ensure that the initialization information sent by DSP2812 can be received on the host computer software interface.

4. The method for updating DSP2812 based on a serial port according to claim 1, characterized in that: Step 3 specifically includes the following steps: Step 3.1: Send a command to start transmission to DSP2812 through the host computer interface, and wait for the response information returned by DSP2812; Step 3.2: After receiving the response information from DSP2812, the host computer starts to send data information to DSP2812; Step 3.3: After the host computer completes sending the data information, DSP2812 performs data verification on the received data information, and sends confirmation information to the host computer after the verification is completed.

5. The method for updating DSP2812 based on a serial port according to claim 1, characterized in that: Step 4 specifically includes the following steps: Step 4.1: DSP2812 stores the received correct information in RAM first, and waits for the host computer to send the burning command; Step 4.2: After receiving the burning command from the host computer, DSP2812 starts to update the data stored in RAM to FLASH, and sends update progress information to the host computer during the updating process.

6. The method for updating DSP2812 based on a serial port according to claim 1, characterized in that: Step 5 specifically includes the following steps: Step 5.1: After the DSP2812 is updated, the host computer sends a verification command to the DSP2812; Step 5.2: After receiving the verification command, DSP2812 reads the data from FLASH, compares it with the data stored in RAM and returns the verification result.

7. The method for updating DSP2812 based on a serial port according to claim 2, characterized in that: In step 1.2, the host computer software can configure the data bits, stop bits, parity bits, and baud rate information.