[chirp_devel] Read/Write SD-card?
Declan Rieb
Mon Jun 19 14:51:55 PDT 2023
What’s the best way to convince a driver to read and write from an SD card, while not breaking the existing read/write to .img and radio-specific files?
The SD card has a file (BACKUP.dat) that is essentially a binary image of the radio’s memory. It looks to me as if CHIRP can read and write such a file (e.g., FileBackedRadio() is not quite defined, and load_mmap() and save_mmap() look to do the right thing as long as the file enclitic is not .img)
The driver already has one call to directory.register_format to introduce its radio-specific files. And the save dialog allows me to choose CHIRP .img or radio-specific formats. I’d like to add read/write from the raw memory image.
What magic is needed to get CHIRP and wxui to handle my radio’s second method of data transfer, via SD card??
[There is a probable workaround: modify a copy of the SD card file: prepend the “correct” eight characters to the memory-image file, and ensure that there’s no MAGIC or glob at the end, and it should read as if it were a .img, no?]
Thanks.
______
Declan Rieb WD5EQY
wd5eqy at arrl.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20230619/29a1d961/attachment-0001.html
More information about the chirp_devel
mailing list