¿ªÔÆÌåÓý

Re: SD Card problem


 

On Wed, Dec 27, 2023 at 06:57 AM, Prawlin wrote:

.... Whilst on this topic, I don¡¯t like constantly pulling micro SD cards. Is there a way to read out the card files via the USB C

The Ultra provides the following console commands for managing files on the SD card from a PC:

sd_delete? ? ??usage: sd_delete {filename}

sd_list? ? ??? ? ? ? usage: sd_list

sd_read? ? ??usage: sd_read {filename}

An example of using "sd_list" from a serial terminal on my computer (The number after the file names is the file size in bytes):

Sd_list

SA_000101_023819.bmp 307270

SA_230113_123131.csv 12079

WIFI.bnd 76

3-27-2023.cfg 2664

31MAR23_ANTENNA.csv 12079

01APR23_ANTENNA.csv 12087

TRACE1_LIMIT-LINES.bmp 307322

CISPR.bnd 106

4-30-2023.cfg 2672

5-11-23.cfg 2672

TEST.cfg 2672

?

5-11-2023.cfg 2672

Using the attached Python script for?the Ultra, provided by Erik as an elementary example class library, a plot can be transferred from the Ultra to a PC without removing the SD card. The following examples list all the bmp files on the Ultra SD card and save "1.bmp" to "C:\Temp" on my PC.? The script is a quick re-write of tinysa.py, and as such, is not well commented and does not provide error checking.? There are Python experts in the group who can probably answer any questions you might have about running the scripts.? Martin may have already added the SD management features to his GitHub utility application.?

[C:\tinySA4\Scripts]python tinysa4.py -l *.bmp

0.bmp 307322

1.bmp 307322

?

?

[C:\tinySA4\Scripts]python tinysa4.py -r 1.bmp C:\Temp\1.bmp

307322



Herb

Join [email protected] to automatically receive all group messages.