Not asking for a feature add on my end - just happy it works. My use case is one-way transfers of configs from PC to IOS device. I think I've already exceeded what you're likely to support even if you made "comment" items persistent.
I've now got around 100 channels defined and it's working great. To give you some idea of the extent of my "comment abuse" here are some examples. I started with simple single comment inside a CAN PID definition like this:
{
"pid": 256,
"comment": "SPEED 25 - CANDIDATE - RAW UNFILTERED HIGH-HZ (KPH) / CAN 0x100 B32 L16",
"equation": "bitsToUintLe(raw,32,16)*0.01",
"obdHeader": 0,
"channelId": 26214404,
"deviceType": 12
},
But today when I turned to OBD it got tougher because I needed multiple comment lines due to how you group arbitrary numbers of PIDs inside the Slow and Fast containers. So if you went for persistence you'd need to preserve more than one comment field, and in the intended order. Like this.
"selectedChannels": [
{
"comment": "OBD FAST CHANNELS",
"deviceType": 5,
"comment": "MAP - 10027 ($0B)",
"comment": "TIMING ADVANCE - 10028 ($0E)",
"comment": "SHORT/LONG TERM FUEL TRIM B1+B2 - 10033 TO 10036 ($06 - $09)",
"comment": "FUEL RAIL PRESSURE (DIESEL) - 10054",
"comment": "COMMANDED AFE LAMBDA - 10074 ($44)",
"comment": "ETHANOL FUEL CONTENT - 10077 ($52)",
"comment": "CUSTOM - O2 SENSOR 1 B1, O2 SENSOR 1 B2",
"comment": "CUSTOM - VGT CONTROL",
"channelIds": [
10027,
10028,
10033,
10034,
10035,
10036,
10054,
10074,
10077,
41948041,
1058650,
2107226
],
"priority": 2
},
I built this trial and error in realtime, and realize its probably possible to just group all these sequential comments in a single blob. Haven't gotten that far. In addition, I've taken to creating 1, 2, or even 3 line pure comment "headers" above related sections of signals. Like this:
{
"comment": "OBD READ DATA BY IDENTIFIER (RDIB) CUSTOM OBD CHANNEL DEFINITIONS"
},
And like this:
{
"comment": "TEAM PLUS TIRE TEMP & PRESSURE PIDS",
"comment": "ON SECONDARY PRIVATE CAN BUS"
},
I don't see any way you could realistically be expected to process and persist such things, esp in intended location.
That's the other thing...my master file is first level sorted by signal category, then second level sorted by ascending PID inside each category. I note that when I export configs from my phone the order is not always consistent. It seems far too much to ask to have you start managing your internal config format for a small number of us DIYers. I just am grateful for the json file.