ユーザ用ツール

サイト用ツール


desktop_station_s_serial_communication_specification

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
desktop_station_s_serial_communication_specification [2015/02/20 06:15] yaasandesktop_station_s_serial_communication_specification [2016/10/01 06:38] – [Parameter meaning] yaasan
行 4: 行 4:
  
 This topic describes in Desktop Station's serial communication specification. DSGatewayLib's example (e.g. DSgateway, DSmainRx) supports this specification to communicate with Desktop Station. This topic describes in Desktop Station's serial communication specification. DSGatewayLib's example (e.g. DSgateway, DSmainRx) supports this specification to communicate with Desktop Station.
 +
 +このページでは、Windows上で動作するDesktop Station Softwareと、DSmainR5や、DCC/MM2シールド装着済みArduinoUNOにDSGatewayを書き込んだものと、シリアル通信で指令を送る際のコマンド体系を解説しています。この解説を元に、WindowsやMacでオリジナルのソフトを作って、DSmainなどを自由に制御できます。
  
 ===== How to communicate ===== ===== How to communicate =====
  
-The following table describes serial communication configuration. +The following table describes serial communication configuration. \\  
 +シリアル通信設定は以下のとおりです。
  
 |Parity | None | | |Parity | None | |
行 18: 行 21:
 Desktop Station sends to Arduino with DSmain or DCC/MM2 shield  that the end of command text is as line feed code "\n (0x0A)". Desktop Station sends to Arduino with DSmain or DCC/MM2 shield  that the end of command text is as line feed code "\n (0x0A)".
  
 +コマンドの構造は、「コマンド名(引数1,引数2,・・・)\n」となっています。命令の最後はLF(改行コード)を必ず付けてください。大文字小文字を考慮します。
 ===== Command list ===== ===== Command list =====
  
行 28: 行 31:
 |setTurnout| Accessory address, Turnout Direction | setTurnout(5,1)\n | |setTurnout| Accessory address, Turnout Direction | setTurnout(5,1)\n |
 |getS88| S88 decoder count | getS88(2)\n | |getS88| S88 decoder count | getS88(2)\n |
-|setLocoConfig| dammy, CV No, CV Value | setLocoConfig(0,1,3)\n |+|setLocoConfig| CV Address, CV No, CV Value | setLocoConfig(49152,1,3)\n | 
 +|getLocoConfig| CV Address, CV No | getLocoConfig(49152,1)\n |
  
 ===== Parameter meaning ===== ===== Parameter meaning =====
行 41: 行 45:
 |Locomotive Direction | 1-2 | 1:FWD, 2:REV | |Locomotive Direction | 1-2 | 1:FWD, 2:REV |
 |Accessory address | 0-65535 | See the following address description.| |Accessory address | 0-65535 | See the following address description.|
-|Turnout Direction | 0-1 | 1:Straight, 0: diverging|+|Turnout/Signal Direction | 0-1 | 1:Straight(Green), 0: diverging(Red)|
 |S88 decoder count | 0-32 | Set connected S88 decoder count.| |S88 decoder count | 0-32 | Set connected S88 decoder count.|
-|dammy | 0 | Set 0.| +|CV Address| 0 or 49152 | Set 0 (MM2, under developing) or 49152 (DCC).| 
-|CV No | 0-255 | Locomotive's CV number |+|CV No | 0-1023| Locomotive's CV number |
 |CV Value | 0-255 | Locomotive's CV Value | |CV Value | 0-255 | Locomotive's CV Value |
  
desktop_station_s_serial_communication_specification.txt · 最終更新: 2023/12/26 21:00 by yaasan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki