This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do reserve the received packets, and write them on a file (like, txt) in the flash, then how to extract the file from the flash onto my computer?

Hi There,

I try to send some packets from a file between two devices. Now, I want to confirm and analyse whether I receive the total packets correctly or not.  Two points:

1. Write the packet on a file in the flash.

2. How do export the file on my laptop. then I can analyse.

Regards,

Gaosheng Liu

Parents
  • Adding a file system is not trivial.

    Have you considered using checksum instead to verify data?

    Alternatively write the data to an array in RAM or Flash, and then dump the data to the UART port after reception. If you are using a terminal window (e.g. tera term), then you can simply output the data to UART, and on the PC use the terminal window to view or store the UART data to a log file on a PC.

    Kenneth

  • Thank you! I think the checksum is a good idea!

    Regards,

    Gaosheng Liu

Reply Children
No Data
Related