dsair_wifi_specification
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
dsair_wifi_specification [2019/06/09 09:04] – [関数一覧] yaasan | dsair_wifi_specification [2019/06/09 09:10] – [アドレスの考え方] yaasan | ||
---|---|---|---|
行 25: | 行 25: | ||
^Function ^Command ^Example ^Notes ^ | ^Function ^Command ^Example ^Notes ^ | ||
- | |線路電源|PW(PowerFlag) | PW(1)|PW(0)で線路電源OFF、PW(1)でONです。| | + | |線路電源,Power|PW(PowerFlag) | PW(1)|PW(0)で線路電源OFF、PW(1)でONです。| |
- | |進行方向|DI(LocoAddr, | + | |進行方向,Direction|DI(LocoAddr, |
- | |ファンクション|FN(LocoAddr, | + | |ファンクション,Function|FN(LocoAddr, |
- | |車両速度|SP(LocoAddr, | + | |車両速度,LocSpeed|SP(LocoAddr, |
- | |ポイント|TO(AccAddr, | + | |ポイント,Turnout|TO(AccAddr, |
- | |アナログ|DC(AnalogSpeed, | + | |アナログ,AnalogPWM|DC(AnalogSpeed, |
- | ^引数 | + | ^Parameters |
|PowerFlag|OFF=0, | |PowerFlag|OFF=0, | ||
|Direction|FWD=1, | |Direction|FWD=1, | ||
行 44: | 行 44: | ||
|AnalogDirection| 0 or 1:FWD, 2: | |AnalogDirection| 0 or 1:FWD, 2: | ||
+ | Example of speed command is the follwoing.\\ | ||
DSairにコマンドを送る例としては、以下のようになります。 | DSairにコマンドを送る例としては、以下のようになります。 | ||
行 50: | 行 51: | ||
</ | </ | ||
+ | You can only send as HTTP GET command.\\ | ||
HTTP GETコマンドを送るだけです。 | HTTP GETコマンドを送るだけです。 | ||
行 57: | 行 59: | ||
0.5秒(500ms)間隔程度で、コマンドを送信してください。 | 0.5秒(500ms)間隔程度で、コマンドを送信してください。 | ||
他のWi-Fiデバイスからコマンドを同時に打ち込んだ場合、後着優先となります。 | 他のWi-Fiデバイスからコマンドを同時に打ち込んだ場合、後着優先となります。 | ||
- | ==== アドレスの考え方 ==== | + | ==== Address meanings / アドレスの考え方 ==== |
+ | LocAddr and AccAddr define 16bit address space including DCC and Marklin Motorola2. This means you can control locootives and turnouts as 16bit address.\\ | ||
LocoAddr, AccAddrのアドレスには、DCCとメルクリンの二つのプロトコルを包含し、さらに車両とアクセサリもカバーした16bitのアドレス空間が定義されています。 | LocoAddr, AccAddrのアドレスには、DCCとメルクリンの二つのプロトコルを包含し、さらに車両とアクセサリもカバーした16bitのアドレス空間が定義されています。 | ||
- | ^アドレスの種類 | + | ^Address type ^range ^Meaning |
- | |Marklin Motorola 2 車両| 0x0000-0x07FF | 0(0x0000) - 255(0x00FF) | | | + | |Marklin Motorola 2 Locomotives| 0x0000-0x07FF | 0(0x0000) - 255(0x00FF) | | |
- | |DCC 車両| 0xC000-0x1FFF | 0(0xC000) - 9999(0xE70F) | | | + | |DCC Locomtoives| 0xC000-0x1FFF | 0(0xC000) - 9999(0xE70F) | | |
- | |Marklin Motorola 2 アクセサリ| 0x3000-0x37FF | 1(0x3000) - 320(0x3140) | | | + | |Marklin Motorola 2 accessory| 0x3000-0x37FF | 1(0x3000) - 320(0x3140) | | |
- | |DCC アクセサリ| 0x3800-0x3FFF | 1(0x3800) - 2044(0x3FFC) | | | + | |DCC accessory| 0x3800-0x3FFF | 1(0x3800) - 2044(0x3FFC) | | |
実際にコマンドに使用する場合には、10進数に直して使用してください。たとえば0xC000-> | 実際にコマンドに使用する場合には、10進数に直して使用してください。たとえば0xC000-> |
dsair_wifi_specification.txt · 最終更新: 2024/01/05 08:43 by yaasan