desktop_station_s_serial_communication_specification
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| desktop_station_s_serial_communication_specification [2016/04/30 07:22] – [Parameter meaning] yaasan | desktop_station_s_serial_communication_specification [2025/08/15 07:39] (現在) – [How to use this topic] yaasan | ||
|---|---|---|---|
| 行 3: | 行 3: | ||
| ===== How to use this topic ===== | ===== How to use this topic ===== | ||
| - | This topic describes in Desktop Station' | + | このページでは、Windows上で動作するDesktop Station Softwareと、DSmainシリーズ, |
| - | + | ||
| - | このページでは、Windows上で動作するDesktop Station Softwareと、DSmainR5や、DCC/ | + | |
| ===== How to communicate ===== | ===== How to communicate ===== | ||
| 行 22: | 行 20: | ||
| コマンドの構造は、「コマンド名(引数1, | コマンドの構造は、「コマンド名(引数1, | ||
| + | |||
| + | コマンドを送る場合、200 Okの応答からウェイトを最低100ms以上置いてください。内部で処理を行ってDCCパルス生成器を確実に動作させるために必要です。 | ||
| ===== Command list ===== | ===== Command list ===== | ||
| ^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, | ||
| 行 32: | 行 33: | ||
| |getS88| S88 decoder count | getS88(2)\n | | |getS88| S88 decoder count | getS88(2)\n | | ||
| |setLocoConfig| CV Address, CV No, CV Value | setLocoConfig(49152, | |setLocoConfig| CV Address, CV No, CV Value | setLocoConfig(49152, | ||
| + | |getLocoConfig| CV Address, CV No | getLocoConfig(49152, | ||
| ===== Parameter meaning ===== | ===== Parameter meaning ===== | ||
| 行 47: | 行 49: | ||
| |S88 decoder count | 0-32 | Set connected S88 decoder count.| | |S88 decoder count | 0-32 | Set connected S88 decoder count.| | ||
| |CV Address| 0 or 49152 | Set 0 (MM2, under developing) or 49152 (DCC).| | |CV Address| 0 or 49152 | Set 0 (MM2, under developing) or 49152 (DCC).| | ||
| - | |CV No | 0-255 | Locomotive' | + | |CV No | 0-1023| Locomotive' |
| |CV Value | 0-255 | Locomotive' | |CV Value | 0-255 | Locomotive' | ||
| + | 以下のテーブルは、ロコとポイントのアドレス(1-65535)の意味をあらわしてます。\\ | ||
| The following table describes Locomotive' | The following table describes Locomotive' | ||
| 行 67: | 行 70: | ||
| |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. | | ||
| + | |@PWR, | ||
| + | |@DIR, | ||
| + | |@FNC, | ||
| + | |@ACC, | ||
| + | |@SPD, | ||
| + | |||
| + | ===== 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", | ||
| + | - Firstly you need to send " | ||
| + | - The output of track is available. Send commands which you want. | ||
| ===== Example of communication log ===== | ===== Example of communication log ===== | ||
| + | |||
| + | 以下は、通信ログの例です。setPing()を投げて生存確認をしてから、setPower(1)で線路電源のON、そのあとはコマンドを打てばその通りにDCC信号が出力されます。 | ||
| < | < | ||
| - | [RECV]200 Ok | + | [RECV]100 Ready |
| [SEND] setPing() | [SEND] setPing() | ||
| [RECV]200 Ok | [RECV]200 Ok | ||
| 行 108: | 行 129: | ||
| [RECV]200 Ok | [RECV]200 Ok | ||
| </ | </ | ||
| + | |||
| + | ===== 外部操作の注意点 ===== | ||
| + | |||
| + | * 本体でDCC電源のON/ | ||
| + | * 本仕様書は随時更新されます。また、予告なしに仕様が変更される場合があります。 | ||
| + | * 本仕様書に記載の事項で、自動運転装置をビジネス・業務としてインテグレーションすることは自由ですが、当社は一切の動作保証、環境に起因するサポートをいたしません。ビジネス・業務用途での個別サポートを要求される場合には、サポート契約を申し込みください。サポート契約外のサポートについては一切お断りいたします。 | ||
| + | |||
| + | |||
| + | |||
| + | |||
desktop_station_s_serial_communication_specification.1461968530.txt.gz · 最終更新: 2016/04/30 07:22 by yaasan