My questions were prompted by a desire to have my driver support multiple file formats. (Clearly, the CHIRP format works, and the Yaesu Adds FT-1D format works. I’d like to add the Yaesu SD-card format to be able to read the memory image that the radio can read/write already.) Presently, I’m trying by simply adding an entry to FORMATS:
FORMATS = [directory.register_format('FT1D ADMS-6', '*.ft1d'),
directory.register_format('FT1D SDcard', '*.sdc1’)]
And hoping that the new format (“.sdc1”) could be recognized. But when I request to open such a file, it always receives
ERROR: <function ChirpMain.open_file at 0x10cf2c540>: Unknown file format
With no indication of exactly where or what I’ve done to the CHIRP. There’s nothing in stdout but that! I had thought that log messages had been swallowed somehow. I was wrong: apparently there are none.
So, what IS the “correct” way to register a second file format? Since the SD-card image is simply the radio memory (without the CHIRP prefix,) it’d seem to be a snap to fake or ignore the prefix and put the memories into the correct locations in CHIRP.