Perfect! Thank you very much!
There is a solution to the band change error. We can use the "alt_messages" field to specify what to do in the command fails. Below is an example from the IC-9700 file. When Set Frequency fails, the program will swap Main/Sub and then send Set Frequency again. The example also includes another trick: it sets Split Off after setting the frequency, since the radio sometimes auto-enables split on frequency change.
"write_rx_frequency": {
"messages": [
{
"comment": "select sub receiver",
"command": ["FE", "FE", "A2", "E0", "07", "D2", "01", "FD"],
"reply": ["FE", "FE", "E0", "A2", "FB", "FD"]
},
{
"command": ["FE", "FE", "A2", "E0", "05", null, null, null, null, null, "FD"],
"reply": ["FE", "FE", "E0", "A2", "FB", "FD"],
"command_param": {"format": "BCD_LE"}
},
{ "command": ["FE", "FE", "A2", "E0", "0f", "00", "FD"], "reply": [ "FE", "FE", "E0", "A2", "FB", "FD"], "comment": "split off" }
],
"alt_messages": [
{
"comment": "swap Main and Sub",
"command": ["FE", "FE", "A2", "E0", "07", "B0", "FD"],
"reply": ["FE", "FE", "E0", "A2", "FB", "FD"]
},
{
"comment": "select sub receiver",
"command": ["FE", "FE", "A2", "E0", "07", "D2", "01", "FD"],
"reply": ["FE", "FE", "E0", "A2", "FB", "FD"]
},
{
"command": ["FE", "FE", "A2", "E0", "05", null, null, null, null, null, "FD"],
"reply": ["FE", "FE", "E0", "A2", "FB", "FD"],
"command_param": {"format": "BCD_LE"}
},
{ "command": ["FE", "FE", "A2", "E0", "0f", "00", "FD"], "reply": [ "FE", "FE", "E0", "A2", "FB", "FD"], "comment": "split off" }
]
},