I have made pretty good progress in the TMCC-2 command syntax. It is substantially different from TMCC1.?
The throttle needs the ability to select the appropriate setOpCode in order to set the first byte. This first byte lets
the base station know which command format is being used. TMCC-1 or TMCC-2.
As you switch between TMCC-1 to TMCC-2 the command set changes drastically. TMCC-2 has a 2 9 bit command bit syntax and 1 3 word command format. Because of this the JMRI throttle needs to allow the user to formulate the command via key strokes.
TMCC-1 and TMCC-2 need to have their own class and 3 system connections
3 System connections because Lionel has 3 base stations. TMCC, Cab1L and CAB2L.
TMCC only TMCC-1
Cab1L TMCC-1 and Limited TMCC-2
Cab2L TMCC-1 All TMCC-2
I'm trying to figure out the best way to organize the command list to roll into XML. From there is the GUI and then parsing itself. Hopefully I can get it to the point where the experts can evaluate what I have, fix my errors and make it an acceptable module.?
?
Inobu