arduino:wio-rascii-en
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
arduino:wio-rascii-en [2021/01/27 10:33] – [Commands] rjversluis | arduino: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 | " | + | | PREFIX_EVT | 6...22 | EVT_STATE | D0=state flags (0x01=globalpower), |
\\ | \\ | ||
Line 161: | Line 162: | ||
| PREFIX_CMD | 22 | CMD_MOBILE_FUN | D0=bus, D1=addrH, D2=addrL, D3=Fchanged, | | PREFIX_CMD | 22 | CMD_MOBILE_FUN | D0=bus, D1=addrH, D2=addrL, D3=Fchanged, | ||
| 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/ | + | | PREFIX_CMD | 12 | CMD_SERVO | D0=bus, D1=addr, D2=paramon/ |
| 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/ | | PREFIX_CMD | 6 + soundfile*2 | CMD_SOUND_PLAY | D0=bus, D1=paramon/ | ||
| PREFIX_CMD | 18 | CMD_AOUT | D0=bus, D1=addr, D2=valueon, D3=red, D4=green, D5=blue, D6=blink+delay, | | PREFIX_CMD | 18 | CMD_AOUT | D0=bus, D1=addr, D2=valueon, D3=red, D4=green, D5=blue, D6=blink+delay, | ||
- | | 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& |
\\ | \\ | ||
Line 458: | Line 463: | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | \\ | ||
+ | =====16bit NID===== | ||
+ | Proposal for 16bit NID:\\ | ||
+ | If the first character of the NID is a '' | ||
+ | |||
+ | |||
+ | |||
arduino/wio-rascii-en.1611740008.txt.gz · Last modified: 2021/01/27 10:33 by rjversluis