Skip to main content
jreis.1
Associate II
October 24, 2022
Question

Sending TXT files through uart

  • October 24, 2022
  • 2 replies
  • 2486 views

Hi,

I'm trying to know how can I send a txt file through UART protocol to a Bluetooth module so I can transfer data wirelessly to a pc.

I could read line by line sending it continuously, but I wanted to know if I could send it as a file that I could then transfer or at least send all the file text as one.

Thanks in advance.

This topic has been closed for replies.

2 replies

Robert Sexton
Associate II
October 24, 2022

There are many ways to do this. It would be helpful to know the basics of your system design.

jreis.1
jreis.1Author
Associate II
October 24, 2022

So my system has the objective to collect data from diverse sensors by UART, SPI and ADC's. Then we store all the data in a txt file we save on an sd card module we have on the PCB. However, we wanted to make the process of transferring data to the pc more efficient by making it wirelessly.

Tesla DeLorean
Guru
October 24, 2022

You can send the data in chunks in a near continuous fashion from end to end

As to protocols, perhaps look at X,Y and Z-Modem

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
jreis.1
jreis.1Author
Associate II
October 24, 2022

I'll have a look at it!