CN115291921A - Remote data updating method and system based on serial port communication - Google Patents

Remote data updating method and system based on serial port communication Download PDF

Info

Publication number
CN115291921A
CN115291921A CN202211013896.8A CN202211013896A CN115291921A CN 115291921 A CN115291921 A CN 115291921A CN 202211013896 A CN202211013896 A CN 202211013896A CN 115291921 A CN115291921 A CN 115291921A
Authority
CN
China
Prior art keywords
data
serial port
dsp
fpga
count value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211013896.8A
Other languages
Chinese (zh)
Inventor
黄国松
苏柳
莫兰俊
刘熙文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Huayu Electric Instrument Group Co Ltd
Original Assignee
Chongqing Huayu Electric Instrument Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Huayu Electric Instrument Group Co Ltd filed Critical Chongqing Huayu Electric Instrument Group Co Ltd
Priority to CN202211013896.8A priority Critical patent/CN115291921A/en
Publication of CN115291921A publication Critical patent/CN115291921A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a remote data updating method and a system based on serial communication, wherein the method comprises the following steps: s1, establishing communication connection between an upper computer and a serial port transceiver; s2, format conversion is carried out on data needing to be transmitted through a serial port downloading tool, and the total frame number M is calculated; s3, sending the total frame number M to a DSP, sending a feedback count value to a serial port downloading tool by the DSP, sending frame data to the FPGA according to the feedback count value, reading and checking the frame data through the DSP, writing the frame data into an external SDRAM, copying the frame data into an external FLASH after all the frame data are written into the external SDRAM, and resetting the DSP through the FPGA; and S4, reading the data stored in the external FLASH by the DSP. The invention solves the problems that when a simulator is adopted to download the program and update data, the whole inertial navigation system needs to be disassembled, the program downloading steps are more, the operation is complicated, and the software updating requirement can be quickly responded in a field test.

Description

Remote data updating method and system based on serial port communication
Technical Field
The invention relates to the technical field of communication, in particular to a remote data updating method and system based on serial port communication.
Background
The inertial navigation system often needs to modify and update algorithm software in the navigation computer according to the situation in the test. Usually, the emulator is used to download the program, which has the disadvantage that the whole inertial navigation system needs to be disassembled, the emulator is connected to the JTAG interface of the navigation computer, especially the domestic DSP, and the downloading procedure has many steps, complicated operation and easy operation error. The downloading mode based on the simulator is not suitable for being used in field tests (for example, the inertial navigation system is installed on an environmental test testing device), and the software updating and the demand responding cannot be carried out quickly.
Disclosure of Invention
Aiming at the defects of the prior art, the technical problems to be solved by the invention are as follows: how to provide a remote data updating method and system based on serial port communication, and solve the problems that the operation of program downloading by the existing simulator is complicated, and how to quickly respond to the software updating requirement in a field test.
In order to solve the technical problems, the invention adopts the following technical scheme:
a remote data updating method based on serial port communication comprises the following steps:
s1, an upper computer is in communication connection with a serial port transceiver through a USB-to-serial port box;
s2, format conversion is carried out on data needing to be transmitted through a serial port downloading tool, and the total frame number M is calculated;
s3, sending the total frame number M to a DSP, sending a feedback count value to a serial port downloading tool by the DSP, sending frame data to the FPGA by the serial port downloading tool according to the feedback count value, writing the frame data into an external SDRAM after the frame data are read and verified by the DSP, copying the frame data into an external FLASH after the data are all written into the external SDRAM, and resetting the DSP by the FPGA;
and S4, the DSP reads the data stored in the external FLASH to realize remote data updating.
Further, in step S2, the total frame number M is calculated as:
M=floor(N/K)
in the formula, N is the total byte number; k is the number of bytes of a single frame.
Further, in step S3, sending the total frame number M to the DSP specifically includes:
and sending the total frame number M to the DSP to inform the DSP of the frame number of data to be transmitted at this time, switching the working mode of the debugging serial port into a program downloading mode by the DSP, and changing the output information from a normal data format into a feedback count value to inform the serial port downloading tool of the received frame number.
Further, DSP sends the feedback count value to serial ports download tool, and serial ports download tool sends the frame data to FPGA according to the feedback count value and reads the check-up through DSP and write in outside SDRAM after passing, copies again to outside FLASH after waiting that data all write in outside SDRAM to reset DSP through FPGA and reset, the utensil is shut down and is included:
storing the received frame data in an RAM inside the FPGA, and writing the frame data into an external SDRAM after the frame data is read and verified by the DSP;
adding 1 to the feedback count value and judging whether the feedback count value is greater than or equal to the total frame number M, if so, copying data in the external SDRAM to an external FLASH for storage, writing a downloading completion mark into the FPGA, and resetting the DSP by the FPGA; otherwise, adding 1 to the feedback count value and sending the feedback count value to the serial port downloading tool so as to trigger the serial port downloading tool to send the next frame data.
Further, in step S4, the DSP reads the data stored in the external FLASH, which specifically includes:
and the DSP reads the data stored in the external FLASH again through a bootstrap loading mode, and after the normal work, the DSP switches the working mode of the debugging serial port from the program downloading mode to the normal mode.
The invention also provides a remote data updating system based on serial port communication, which comprises an upper computer and a navigation main board, wherein a serial port transceiver, an FPGA, a DSP, an SDRAM and a FLASH are integrated on the navigation main board, and the upper computer is in communication connection with the serial port transceiver through a USB-to-serial port box and is used for transmitting data;
a serial port downloading tool is installed on the upper computer and used for carrying out format conversion on data to be transmitted, calculating the total frame number M, receiving a feedback count value and sending the data to a serial port transceiver;
the serial port transceiver is used for receiving the data sent by the serial port downloading tool and forwarding the data to the FPGA;
the FPGA is used for storing data sent by the serial port transceiver, performing data interaction with the DSP and resetting the DSP;
the DSP is used for switching the working mode of the debugging serial port into a program downloading mode according to the total frame number M and sending a feedback count value to a serial port downloading tool;
the data stored in the FPGA is read and written into the SDRAM after passing the verification, and the data is copied into the external FLASH for storage after being completely written into the external SDRAM;
and re-reading the data stored in the external FLASH through a bootstrap loading mode, and switching the working mode of the debugging serial port to a normal mode.
And further, the serial port transceiver is in communication connection with the FPGA through a TTL bus.
Furthermore, a digital isolator is arranged on the TTL bus and used for carrying out signal isolation on transmission data so as to improve the anti-interference performance.
Furthermore, the DSP is in communication connection with the FPGA, the SDRAM or the FLASH through an EMIF bus respectively.
Compared with the prior art, the invention has the beneficial effects that:
1. the method comprises the steps that a serial port transceiver is used as a communication channel, a serial port downloading tool is installed on an upper computer, format conversion is carried out on data needing to be transmitted through operation of the serial port downloading tool, the total frame number M is calculated, the working mode of a debugging serial port is switched to a program downloading mode after the total frame number M is sent to a DSP, a feedback count value is sent to the serial port downloading tool to trigger the serial port downloading tool to send next frame data, the frame data are sent to an FPGA and written into an external SDRAM after the frame data are read and verified through the DSP; and copying the data into an external FLASH after the data are completely written into the external SDRAM, resetting the DSP through the FPGA, and re-reading the data stored in the external FLASH by the reset DSP through a bootstrap loading mode so as to update the data of the inertial navigation system remotely. When carrying out data update to inertial navigation system like this, only need operate serial ports download instrument on the host computer can easy operation, convenient to quick response software update demand in the field test, when having avoided adopting the simulator to carry out procedure download update data, need take apart whole inertial navigation system, it downloads the procedure step more, complex operation, and easy operation mistake's problem.
2. And triggering the serial port downloading tool to send next frame data after each received data is verified to be qualified, and simultaneously writing each frame of received data into the external SDRAM in time until the serial port downloading tool finishes all data transmission so as to ensure the accuracy of data transmission and prevent the data transmission from being abnormal.
3. The situation that the software is updated by the dismounting device under the condition of complex environment is avoided; the operation is simple, the speed is high, and mistakes are not easy to make.
Drawings
For purposes of promoting a better understanding of the objects, aspects and advantages of the invention, reference will now be made in detail to the present invention as illustrated in the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a serial port communication-based remote data update system according to the present invention;
FIG. 2 is a flow chart of a remote data updating method based on serial port communication according to the present invention;
FIG. 3 is a flow chart of the FPGA transmitting data according to the present invention;
FIG. 4 is a flow chart of the DSP reading and writing data in the present invention;
fig. 5 is a schematic diagram of an interface of a serial download tool according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, the present embodiment provides a remote data updating system based on serial port communication, which includes an upper computer and a navigation motherboard installed on an inertial navigation system, and the navigation motherboard is integrated with a serial port transceiver, an FPGA (Field-programmable gate array, FPGA for short), a DSP (digital signal Processing, DSP for short), an SDRAM (synchronous dynamic random access Memory, SDRAM for short), and a FLASH.
A serial port downloading tool is installed on the upper computer and used for carrying out format conversion on data needing to be transmitted and calculating the total frame number M = floor (N/K), wherein N is the total byte number; k is the number of bytes of a single frame; receiving a feedback count value and sending data to a serial port transceiver;
the serial port transceiver is used for receiving data sent by the serial port downloading tool and forwarding the data to the FPGA, and the serial port transceiver supports an RS422 communication mode;
the FPGA is used for storing data sent by the serial port transceiver, performing data interaction with the DSP and resetting the DSP;
the DSP is used for switching the working mode of the debugging serial port into a program downloading mode according to the total frame number M and sending a feedback count value to the serial port downloading tool;
the data stored in the FPGA is read and written into the SDRAM after passing the verification, and the data is copied into the external FLASH for storage after being completely written into the external SDRAM;
and reading the data stored in the external FLASH again through a bootstrap loading mode, and switching the working mode of the debugging serial port to a normal mode.
The method comprises the steps that a serial port transceiver is used as a communication channel, a serial port downloading tool is installed on an upper computer, format conversion is carried out on data needing to be transmitted through operation of the serial port downloading tool, a total frame number M is calculated, the total frame number M is sent to a DSP, a working mode of debugging a serial port is switched to a program downloading mode, a feedback count value is sent to the serial port downloading tool to trigger the serial port downloading tool to send next frame data, the frame data are sent to an FPGA, read and checked through the DSP and then written into an external SDRAM; and copying the data into an external FLASH after the data are completely written into the external SDRAM, resetting the DSP through the FPGA, and re-reading the data stored in the external FLASH by the reset DSP through a bootstrap loading mode so as to update the data of the inertial navigation system remotely. When carrying out data updating to inertial navigation system like this, only need operate serial ports downloading tool on the host computer can easy operation, convenient to quick response software update demand in field test, when having avoided adopting the simulator to carry out the procedure download update data, need take apart whole inertial navigation system, its download procedure step is more, complex operation, and easy operation mistake's problem.
In specific implementation, the serial port transceiver is in communication connection with the FPGA through a TTL bus, and a digital isolator is arranged on the TTL bus and used for carrying out signal isolation on transmission data so as to improve anti-interference performance.
When the method is implemented specifically, the DSP is in communication connection with the RAM, SDRAM or FLASH inside the FPGA through an EMIF bus respectively.
The invention also provides a remote data updating method based on serial port communication, which comprises the following steps:
s1, an upper computer is in communication connection with a serial port transceiver through a USB-to-serial port box;
s2, format conversion is carried out on data needing to be transmitted through a serial port downloading tool, the data are converted into an HEX format through ASCII codes, and the total frame number M is calculated;
s3, sending the total frame number M to a DSP, sending a feedback count value to a serial port downloading tool by the DSP, sending frame data to the FPGA by the serial port downloading tool according to the feedback count value, writing the frame data into an external SDRAM after the frame data are read and verified by the DSP, copying the frame data into an external FLASH after the data are all written into the external SDRAM, and resetting the DSP by the FPGA;
and S4, reading the data stored in the external FLASH by the DSP to realize remote data updating.
The invention uses a serial port transceiver as a communication channel, a serial port downloading tool is installed on an upper computer, format conversion is carried out on data needing to be transmitted by operating the serial port downloading tool, a total frame number M is calculated, the total frame number M is sent to a DSP, then the data is sent to an FPGA frame by frame, and the data is read and checked by the DSP and then written into an external SDRAM; and copying the data into an external FLASH after the data is completely written into the external SDRAM, resetting the DSP through the FPGA, and re-reading the data stored in the external FLASH by the reset DSP through a bootstrap loading mode so as to update the data of the inertial navigation system in a remote way. When carrying out data update to inertial navigation system like this, only need operate serial ports download instrument on the host computer can easy operation, convenient to quick response software update demand in the field test, when having avoided adopting the simulator to carry out procedure download update data, need take apart whole inertial navigation system, it downloads the procedure step more, complex operation, and easy operation mistake's problem.
In step S2, the total frame number M is calculated as:
M=floor(N/K)
in the formula, N is the total byte number; k is the number of bytes of a single frame.
In step S3, the method specifically includes sending the total frame number M to the DSP:
and sending the total frame number M to the DSP to inform the DSP of the frame number required to be transmitted at this time, switching the working mode of the debugging serial port into a program downloading mode by the DSP, and changing the output information from a normal data format into a feedback count value to inform the serial port downloading tool of the received frame number.
The DSP is mainly used for reading and writing the RAM inside the FPGA, the external SDRAM and the external FLASH through the EMIF bus and feeding back data to the serial port downloading tool according to a convention protocol.
During specific implementation, DSP sends the feedback count value to serial ports download tool, and serial ports download tool sends the frame data to FPGA according to the feedback count value and reads the check-up through DSP and write in outside SDRAM after passing through, copies again to outside FLASH after waiting that data all write in outside SDRAM to reset DSP through FPGA, the utensil includes:
storing the received frame data in an RAM inside the FPGA, and writing the frame data into an external SDRAM after reading and checking through the DSP;
adding 1 to the feedback count value and judging whether the feedback count value is greater than or equal to the total frame number M, if so, copying data in the external SDRAM into an external FLASH, writing a downloading completion mark into the FPGA, and resetting the DSP by the FPGA; otherwise, adding 1 to the feedback count value and sending the feedback count value to the serial port downloading tool so as to trigger the serial port downloading tool to send the next frame data.
The FPGA plays roles of data conversion, DSP resetting and the like in the whole process, serial communication is kept between the FPGA and the serial downloading tool, EMIF communication is kept between the FPGA and the DSP through an internal RAM of the FPGA, the whole data transmission process is a transparent transmission mode, related protocol requirements are agreed by the serial downloading tool and the DSP, and the DSP is reset after data updating is finished.
Therefore, through the feedback form, after the data is verified to be qualified every time, the serial port downloading tool is triggered to send the next frame of data, and meanwhile, each frame of received data is written into the external SDRAM in time until the serial port downloading tool finishes transmitting all the data, so that the data transmission accuracy is ensured, and the data transmission is prevented from being abnormal; the data are completely written into the external SDRAM and then copied into the external FLASH, so that the problem that the inertial navigation system cannot work normally after power failure or data erasure is avoided.
In step S4, the DSP reads the data stored in the external FLASH, which specifically includes:
and the DSP reads the data stored in the external FLASH again through the bootstrap loading mode, and after the normal work, the DSP switches the debugging serial port working mode from the program downloading mode to the normal mode so as to ensure that the inertial navigation system sends the data normally.
Referring to fig. 2 to 5, the working flow of the present invention is as follows:
after the upper computer establishes communication connection with the serial port transceiver through the USB-to-serial port box, opening a serial port downloading tool on the upper computer to enter a serial port downloading tool interface (as shown in FIG. 5), and selecting a data file to be updated on the interface to perform operations such as reading, starting downloading and the like, wherein the data file format is a dat format; before downloading is not started, the serial port downloading tool can receive normal communication data, the working state is displayed to be normal working, and the indicating lamp is green. When a data file needing to be updated is selected and then a button of a reading program is clicked, the data file needing to be transmitted is firstly converted into an HEX format (namely hexadecimal format) from ASCII, the total number of bytes N and the total number of frames M are calculated, and when the length of single-frame data is K bytes, M = floor (N/K) or M = floor (N/K) +1 is obtained.
After a download start button is clicked, the serial port downloading tool on the upper computer sends data to the serial port transceiver frame by frame through the USB-to-serial port box, the data are forwarded to the FPGA for storage through the serial port transceiver, the data are stored in the external SDRAM after being read and verified by the DSP, after all the data are written into the external SDRAM, the data stored in the external SDRAM are copied to the external FLASH by the DSP for storage, a download completion mark is sent to the FPGA, the DSP is reset through the FPGA, the data in the external FLASH are reloaded by the reset DSP in a bootstrap loading mode, after normal work, the data sent by the debugging serial port to the outside are changed into a normal mode, a working state column of the serial port downloading tool is displayed to be in normal work, and an indicator lamp is green, so that remote data updating is realized.
Referring to fig. 2, fig. 3 and fig. 4, specifically, when data is sent to the serial port transceiver frame by frame, the first frame data is the total frame number M, and the content of the frame data includes a frame header, the total frame number M and a check, so as to tell the DSP of the inertial navigation system how many frames the data amount needs to be transmitted at this time, and at the same time, the DSP switches the working mode of debugging the serial port to the program downloading mode, and the output information is changed from the normal data format to the feedback count value, so that after the DSP writes one frame data into the SDRAM, the feedback count value is sent to the serial port downloading tool to tell the serial port downloading tool how many frame data have been received at present. The subsequent frame data content includes frame header, program content and check.
When the FPGA serial port receives second frame data sent by the serial port downloading tool, the data is written into an internal RAM (address 1) of the FPGA, the DSP reads out the data (address 1) in the internal RAM of the FPGA and then writes the data into an external SDRAM after checking judgment, a feedback count value in the DSP is added with 1 and judges whether the number of the total frames is more than or equal to M, if the number of the total frames is less than M, the updated feedback count value added with 1 is written into the internal RAM (address 2) of the FPGA, the data read out from the RAM (address 2) of the FPGA is sent to the serial port downloading tool through the serial port transceiver so as to trigger the serial port downloading tool to send the next frame data, and the data is sent frame by frame in a circulating manner.
If the feedback count value is more than or equal to the total frame number M, the DSP copies the data in the external SDRAM into an external FLASH memory, a downloading completion mark is written into the FPGA (address 3), the FPGA reads out the data in the RAM (address 3), namely the downloading completion mark, then the DSP is reset, the reset DSP reloads the data in the external FLASH through a bootstrap loading mode, after normal work, the DSP switches the debugging serial port work mode from a program downloading mode to a normal mode, the work state of the serial port downloading tool is displayed to be normal work, and an indicator light is green, so that remote data updating is realized.
Therefore, through the feedback form, after the data is verified to be qualified every time, the serial port downloading tool is triggered to send the next frame of data, and meanwhile, each frame of received data is written into the external SDRAM in time until the serial port downloading tool finishes transmitting all the data, so that the data transmission accuracy is ensured, and the data transmission is prevented from being abnormal; the data are completely written into the external SDRAM and then copied into the external FLASH, so that the problem that the inertial navigation system cannot work normally after power failure or data erasure is avoided.
The invention uses a serial port transceiver as a communication channel, a serial port downloading tool is installed on an upper computer, format conversion is carried out on data needing to be transmitted by operating the serial port downloading tool, a total frame number M is calculated, the total frame number M is sent to a DSP, then the data is sent to an FPGA frame by frame, and the data is read and checked by the DSP and then written into an external SDRAM; and copying the data into an external FLASH after the data is completely written into the external SDRAM, resetting the DSP through the FPGA, and re-reading the data stored in the external FLASH by the reset DSP through a bootstrap loading mode so as to update the data of the inertial navigation system in a remote way. When carrying out data updating to inertial navigation system like this, only need operate serial ports downloading tool on the host computer can easy operation, convenient to quick response software update demand in field test, when having avoided adopting the simulator to carry out the procedure download update data, need take apart whole inertial navigation system, its download procedure step is more, complex operation, and easy operation mistake's problem.
Finally, it is noted that the above embodiments are merely intended to illustrate the technical solution of the present invention and not to limit the same, and although the present invention has been described with reference to preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein. All obvious changes which are introduced by the technical solution of the invention are still within the protective scope of the invention.

Claims (9)

1. A remote data updating method based on serial port communication is characterized by comprising the following steps:
s1, an upper computer is in communication connection with a serial port transceiver through a USB-to-serial port box;
s2, format conversion is carried out on data needing to be transmitted through a serial port downloading tool, and the total frame number M is calculated;
s3, sending the total frame number M to a DSP, sending a feedback count value to a serial port downloading tool by the DSP, sending frame data to the FPGA by the serial port downloading tool according to the feedback count value, writing the frame data into an external SDRAM after the frame data are read and verified by the DSP, copying the data into an external FLASH after the data are all written into the external SDRAM, and resetting the DSP by the FPGA;
and S4, the DSP reads the data stored in the external FLASH to realize remote data updating.
2. The serial port communication-based remote data updating method according to claim 1, wherein in step S2, the total frame number M is calculated as:
M=floor(N/K)
in the formula, N is the total byte number; k is the number of bytes of a single frame.
3. The serial communication-based remote data updating method according to claim 1, wherein in step S3, the sending of the total frame number M to the DSP specifically comprises:
and sending the total frame number M to the DSP to inform the DSP of the frame number of data to be transmitted at this time, switching the working mode of the debugging serial port into a program downloading mode by the DSP, and changing the output information from a normal data format into a feedback count value to inform the serial port downloading tool of the received frame number.
4. The method of claim 3, wherein the DSP sends a feedback count value to the serial download tool, the serial download tool sends frame data to the FPGA according to the feedback count value and writes the frame data into the external SDRAM after the frame data passes the DSP reading and checking, the frame data is copied into the external FLASH after being completely written into the external SDRAM, and the DSP is reset by the FPGA, and the method comprises the following steps:
storing the received frame data in an RAM inside the FPGA, and writing the frame data into an external SDRAM after the frame data is read and verified by the DSP;
adding 1 to the feedback count value and judging whether the feedback count value is greater than or equal to the total frame number M, if so, copying data in the external SDRAM to an external FLASH for storage, writing a downloading completion mark into the FPGA, and resetting the DSP by the FPGA; otherwise, adding 1 to the feedback count value and sending the feedback count value to the serial port downloading tool so as to trigger the serial port downloading tool to send the next frame data.
5. The method according to claim 1, wherein in step S4, the DSP reads the data stored in the external FLASH, and specifically includes:
and the DSP reads the data stored in the external FLASH again through a bootstrap loading mode, and after the normal work, the DSP switches the working mode of the debugging serial port from the program downloading mode to the normal mode.
6. A remote data updating system based on serial port communication is characterized by comprising an upper computer and a navigation main board, wherein a serial port transceiver, an FPGA, a DSP, an SDRAM and a FLASH are integrated on the navigation main board, and the upper computer is in communication connection with the serial port transceiver through a USB-to-serial port box and is used for transmitting data;
a serial port downloading tool is installed on the upper computer and used for carrying out format conversion on data to be transmitted, calculating the total frame number M, receiving a feedback count value and sending the data to a serial port transceiver;
the serial port transceiver is used for receiving the data sent by the serial port downloading tool and forwarding the data to the FPGA;
the FPGA is used for storing data sent by the serial port transceiver, performing data interaction with the DSP and resetting the DSP;
the DSP is used for switching the working mode of the debugging serial port into a program downloading mode according to the total frame number M and sending a feedback count value to the serial port downloading tool;
the data stored in the FPGA is read and written into the SDRAM after passing the verification, and the data is copied into the external FLASH for storage after being completely written into the external SDRAM;
and reading the data stored in the external FLASH again through a bootstrap loading mode, and switching the working mode of the debugging serial port to a normal mode.
7. The serial-port-communication-based remote data updating system as claimed in claim 6, wherein the serial-port transceiver is in communication connection with the FPGA through a TTL bus.
8. The remote data update system based on serial port communication as claimed in claim 7, wherein a digital isolator is disposed on the TTL bus for signal isolation of the transmitted data to improve interference immunity.
9. The remote data updating system based on serial port communication of claim 6, wherein the DSP is in communication connection with the FPGA, the SDRAM or the FLASH through an EMIF bus respectively.
CN202211013896.8A 2022-08-23 2022-08-23 Remote data updating method and system based on serial port communication Pending CN115291921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211013896.8A CN115291921A (en) 2022-08-23 2022-08-23 Remote data updating method and system based on serial port communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211013896.8A CN115291921A (en) 2022-08-23 2022-08-23 Remote data updating method and system based on serial port communication

Publications (1)

Publication Number Publication Date
CN115291921A true CN115291921A (en) 2022-11-04

Family

ID=83831404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211013896.8A Pending CN115291921A (en) 2022-08-23 2022-08-23 Remote data updating method and system based on serial port communication

Country Status (1)

Country Link
CN (1) CN115291921A (en)

Similar Documents

Publication Publication Date Title
CN100565472C (en) A kind of adjustment method that is applicable to multiprocessor karyonide system chip
US7810004B2 (en) Integrated circuit having a subordinate test interface
JPH04302335A (en) Analyzing system for built-in type computer system
US11074157B2 (en) Splicing screen debugging method, splicing screen and splicing wall
CN116382991A (en) Storage device testing method and device, computer device and storage medium
CN110569162B (en) Automatic testing method and device for FPGA in communication field
CN113595817A (en) LIN communication fault injection method, system and storage medium
CN115291921A (en) Remote data updating method and system based on serial port communication
US20030159102A1 (en) Method for testing a universal serial bus host controller
CN104678292A (en) Test method and device for CPLD (Complex Programmable Logic Device)
CN111506333B (en) double-DSP program online upgrading method and system
CN107729033A (en) Realize embedded system, programmable device and the method for online programming
JP4630514B2 (en) Method and apparatus for operating an external memory with memory built-in self test
CN113960991A (en) Vehicle fault diagnosis system, method and device, system-on-chip and vehicle
CN113609052A (en) Chip simulation system based on FPGA and microprocessor and implementation method
CN113010361A (en) MIO function rapid verification method of fully programmable SOC chip
CN113034873A (en) Sensor communication method, device and system
US20060117235A1 (en) System and method for conducting BIST operations
EP2747347A1 (en) Radio frequency communication simulation
US20220050139A1 (en) System, apparatus and method for communicating debug messages on a sideband of a serial link according to a debug type messaging protocol
JP4957188B2 (en) CPU bus access auxiliary circuit
CN109542698A (en) A kind of Virtual prototype error-detecting method based on mutation testing
CN117724920B (en) Test method and device of embedded equipment, upper computer and medium
CN116820867B (en) Chip debugging method and device and chip
CN112558979B (en) Method for realizing data interaction between different layers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination