[chirp_devel] Memory and RadioSettings

Patrick Strasser-Mikhail OE6PSE
Wed Jun 27 00:15:07 PDT 2018


Hello again!

Working on the Alinco DJ-500 (that runs some Anytone protocol), I came
across Memory and Memory.extra.

When I saw the nice RadioSettingValue classes I thought I missed
something in Memory. Memory.extra takes a RadioSettingsGroup with all
the nice checks and ranges etc. Still the base attributes of Memory are
plain types with some manual checking and mapping you have to do, with
_valid_map to check the values. Then when writing back your data from
Memory you have to do quite some error prone and mechanic wiring, that
seem refactorable to me.

settings.py is copyrighted 2012, quite some time after the 2008
chirp_common, so I guess this was a later effort to create some more
elaborate value handling. I have the impression that this did not make
it to the standard attributes of Memory, and that this would need very
careful work to not break old drivers.
I could also think of some ways to wire memory handling (in my case, no
experience with other radio types) by implementing mapping functions.

Any ideas or enlightenment from the regular contributors?

73 de Patrick OE6PSE
-- 
Engineers motto: cheap, good, fast - choose any two
Amateur Radio Operator / Ham / Funkamateur / QTH: JN77rb
http://oevsv.at/
One of the lucky 10.000: http://xkcd.com/1053
Use Mail Encryption Today! PGP Key ID: 0xDF8A127E5A120903
Patrick Strasser-Mikhail OE6PSE <oe6pse at oevsv dot at>



More information about the chirp_devel mailing list