User Tools

Site Tools


arduino:wio-rascii-en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arduino:wio-rascii-en [2021/01/27 10:33] – [Commands] rjversluisarduino:wio-rascii-en [2023/04/18 15:26] (current) – [16bit NID] rjversluis
Line 9: Line 9:
  \\  \\
 =====Overview===== =====Overview=====
 +
 ====Frame==== ====Frame====
 |< >| |< >|
Line 151: Line 152:
 ====Events==== ====Events====
 ^ Prefix ^ Length ^ Code ^ Data ^ Example ^ Description ^ ^ Prefix ^ Length ^ Code ^ Data ^ Example ^ Description ^
-| PREFIX_EVT | 6 | EVT_STATE | D0: 1=on 0=off | "$060Cnn01" | Global track power state event |+| PREFIX_EVT | 6...22 | EVT_STATE | D0=state flags (0x01=globalpower), D1+D2=boosterID, D3+D4=current, D5+D6=volt, D7+D8=temp | "$060Cnn01" | Global track power state event |
  
  \\  \\
Line 161: Line 162:
 | PREFIX_CMD | 22 | CMD_MOBILE_FUN | D0=bus, D1=addrH, D2=addrL, D3=Fchanged, D4=on/off, D5=lights, D6...D9=fx, D10=throttleID | | One changed function and state of all 32. | | PREFIX_CMD | 22 | CMD_MOBILE_FUN | D0=bus, D1=addrH, D2=addrL, D3=Fchanged, D4=on/off, D5=lights, D6...D9=fx, D10=throttleID | | One changed function and state of all 32. |
 | PREFIX_CMD | 14 | CMD_BINSTATE | D0=bus, D1=addrH, D2=addrL, D3=binH, D4=binL, D5=state | | Change binary state for one port. | | PREFIX_CMD | 14 | CMD_BINSTATE | D0=bus, D1=addrH, D2=addrL, D3=binH, D4=binL, D5=state | | Change binary state for one port. |
 +| PREFIX_CMD | 16 | CMD_MOBILE_DISPATCH | D0=bus, D1=addrH, D2=addrL, D3=V, D4=Lights, D5=fxH, D6=fxL | | Dispatch loco for throttle. |
 +| PREFIX_CMD | 8 | CMD_MOBILE_RELEASE | D0=bus, D1=addrH, D2=addrL | | Release loco from throttle. |
  
  \\  \\
 +
 +
 =====Signal===== =====Signal=====
 ====Commands==== ====Commands====
Line 173: Line 178:
 ====Commands==== ====Commands====
 ^ Prefix ^ Length ^ Code ^ Data ^ Example ^ Description ^ ^ Prefix ^ Length ^ Code ^ Data ^ Example ^ Description ^
-| PREFIX_CMD | 12 | CMD_SERVO | D0=bus, D1=addr, D2=paramon/off, D3=delay, D4=on/off |  | Type: Servo + Single gate |+| PREFIX_CMD | 12 | CMD_SERVO | D0=bus, D1=addr, D2=paramon/off, D3=delay, D4=on/off |  | Type: Servo \\ Parameter range: 0...180° |
 | PREFIX_CMD | 16 | CMD_SWITCH | D0=bus, D1=addrH, D2=addrL, D3=port, D4=gate, D5=value, D6=delay |  | Type: Accessory + DCC | | PREFIX_CMD | 16 | CMD_SWITCH | D0=bus, D1=addrH, D2=addrL, D3=port, D4=gate, D5=value, D6=delay |  | Type: Accessory + DCC |
 | PREFIX_CMD | 8 | CMD_ACCESSORY | D0=bus, D1=addr, D2=on/off |  | Type: None Servo + Single gate | | PREFIX_CMD | 8 | CMD_ACCESSORY | D0=bus, D1=addr, D2=on/off |  | Type: None Servo + Single gate |
Line 187: Line 192:
 | PREFIX_CMD | 6 + soundfile*2 | CMD_SOUND_PLAY | D0=bus, D1=paramon/off, D2...Dn=Soundfilename |  | Type: Sound | | PREFIX_CMD | 6 + soundfile*2 | CMD_SOUND_PLAY | D0=bus, D1=paramon/off, D2...Dn=Soundfilename |  | Type: Sound |
 | PREFIX_CMD | 18 | CMD_AOUT | D0=bus, D1=addr, D2=valueon, D3=red, D4=green, D5=blue, D6=blink+delay, D7=paramon |  | Type: LED + Color | | PREFIX_CMD | 18 | CMD_AOUT | D0=bus, D1=addr, D2=valueon, D3=red, D4=green, D5=blue, D6=blink+delay, D7=paramon |  | Type: LED + Color |
-| PREFIX_CMD | 22 | CMD_MOTOR | D0=bus, D1=addr, D2=dirT, D3=delay, D4=stepsH, D5=stepsM, D6=stepsL, D7=reportH, D8=reportM, D9=reportL |  | Type: Motor |+| PREFIX_CMD | 22 | CMD_MOTOR | D0=bus, D1=addr, D2=dirT, D3=delay, D4=stepsH, D5=stepsM, D6=stepsL, D7=reportH, D8=reportM, D9=reportL |  | Type: Motor \\ dirT&0x80=direction, dirT&0x40=calibrate, dirT&0x3F=cancel |
  
  \\  \\
Line 458: Line 463:
  
 </code> </code>
 +
 +
 +
 + \\
 +=====16bit NID=====
 +Proposal for 16bit NID:\\
 +If the first character of the NID is a ''~'' (Tilde) the following 4 characters will present the 16bit NID.\\
 +
 +
 +
  
arduino/wio-rascii-en.1611740008.txt.gz · Last modified: 2021/01/27 10:33 by rjversluis