desktop_station_s_serial_communication_specification
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
desktop_station_s_serial_communication_specification [2016/10/01 06:38] – [Parameter meaning] yaasan | desktop_station_s_serial_communication_specification [2017/02/05 13:48] – [Command list] yaasan | ||
---|---|---|---|
行 25: | 行 25: | ||
^Commands ^ Parameters ^ examples ^ | ^Commands ^ Parameters ^ examples ^ | ||
+ | |setPing| none | setPing()\n| | ||
|setPower| Power on/off | setPower(1)\n| | |setPower| Power on/off | setPower(1)\n| | ||
|setLocoSpeed| Locomotive address, Speed, (Speed Step)| setLocoSpeed(5, | |setLocoSpeed| Locomotive address, Speed, (Speed Step)| setLocoSpeed(5, | ||
行 68: | 行 69: | ||
|302 receive timeout | Command is not received fully in the enough time. | | |302 receive timeout | Command is not received fully in the enough time. | | ||
|303 Unknown error | Unknown issue happens. | | |303 Unknown error | Unknown issue happens. | | ||
+ | |||
+ | ===== Communication procedure ===== | ||
+ | |||
+ | - Initialization of serial port. | ||
+ | - Set baudrate 115200bps and FIFO configuration(if needed). | ||
+ | - Open serial port | ||
+ | - Reset serial port(Use DTR). | ||
+ | - Wait for receiving a message "100 Ready" | ||
+ | - After received "100 ready", | ||
行 73: | 行 83: | ||
< | < | ||
- | [RECV]200 Ok | + | [RECV]100 Ready |
[SEND] setPing() | [SEND] setPing() | ||
[RECV]200 Ok | [RECV]200 Ok |
desktop_station_s_serial_communication_specification.txt · 最終更新: 2023/12/26 21:00 by yaasan