Author Topic: USB stick wait time?  (Read 3152 times)

SAE

  • Member
  • ***
  • Posts: 2
USB stick wait time?
« on: June 30, 2021, 05:19:48 am »
Hello all
I have developed a data logging unit to save data on a USB pen drive. I store data on binary type files with fixed length of several Mb. SW for FAT32 is working quite well. Only issue is that my drive stops recording for up to a few seconds now & then. Can be recording continuously at 25-50Kb/second for many hours without problems but at random times it stops recording for times from a few hundred milliseconds up to several seconds. I have implemented a ring buffer for incoming data that can store up to 30 Kb before it need to access the drive. If drive stops longer than the buffer can hold data there will be a buffer overrun error and current file will be closed and a new one will open and continue the process. I have tested several different drives and it seems problem exists among all of them. Any suggestions would be welcome.
Brgds
SAE