====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
specifications:protocol [2016/04/21 19:41] 127.0.0.1 external edit |
specifications:protocol [2021/04/01 13:51] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| < | < | ||
| Protocol | Protocol | ||
| - | ======== | + | =============================================================================== |
| ## Basic Specification | ## Basic Specification | ||
| Line 11: | Line 11: | ||
| No differences the command line made of upper case or lower case. | No differences the command line made of upper case or lower case. | ||
| + | Required baud-rate is **2, | ||
| Line 16: | Line 17: | ||
| ### $AN (Apply Native Value) | ### $AN (Apply Native Value) | ||
| - | |Args | + | |Args |
| - | |: | + | |: |
| - | |DEVICE_ID|Set a device id. |0 |23 |0 padding,hex,2byte| | + | |DEVICE_ID|Set a device id. |0 |23 |0 padding,hex,2 bytes| |
| - | |VALUE | + | |VALUE |
| *example*: | *example*: | ||
| Line 30: | Line 31: | ||
| ### $AD (Apply Diff Value) | ### $AD (Apply Diff Value) | ||
| - | |Args | + | |Args |
| - | |: | + | |: |
| - | |DEVICE_ID|Set a device id. |0 |23 |0 padding,hex,2byte| | + | |DEVICE_ID|Set a device id. |0 |23 |0 padding,hex,2 bytes| |
| - | |VALUE | + | |VALUE |
| *example*: | *example*: | ||
| Line 47: | Line 48: | ||
| You could also use " | You could also use " | ||
| - | |Args|Roles | + | |Args|Roles |
| - | |: | + | |: |
| - | |SLOT|Set to read slot.|0 | + | |SLOT|Set to read slot.|0 |
| *example*: | *example*: | ||
| - | If you want to play slot **4**, send command below. | + | If you want to play slot **4**, send command below. |
| ``` | ``` | ||
| Line 83: | Line 84: | ||
| ### #PU (Push a Function) | ### #PU (Push a Function) | ||
| - | |Args |Roles | + | |Args |Roles |
| - | |: | + | |: |
| - | |SLOT |Set to read slot. |0 |89 |0 padding,hex,2byte| | + | |SLOT |Set to read slot. |0 |89 |0 padding,hex,2 bytes| |
| - | |LOOP_COUNT|Set number of play.|0 | + | |LOOP_COUNT|Set number of play.|0 |
| *example*: | *example*: | ||
| Line 115: | Line 116: | ||
| ## Group of Setter Command | ## Group of Setter Command | ||
| - | ### >IN (Install | + | ### >MH (Set a Motion |
| - | **Attention!** | + | |Args |Roles |
| - | This is **deprecated**. Obsolescent at firmware version | + | |: |
| - | Please using **>MH** and **>MF** that are described | + | |SLOT |Set to write slot. |0 |89 |0 padding,hex,2 bytes | |
| + | |NAME |Set a motion name. |--- |--- |White space padding,20 bytes| | ||
| + | |USE_LOOP | ||
| + | |LOOP_BEGIN | ||
| + | |LOOP_END | ||
| + | |LOOP_COUNT | ||
| + | |USE_JUMP | ||
| + | |JUMP_SLOT | ||
| + | |USE_EXTRA | ||
| + | |FRAME_LENGTH|Set a frame length. | ||
| - | |Args |Roles | + | *example*: |
| - | |: | + | Please get more details at "> |
| - | |SLOT |Set to write slot. | + | |
| - | |NAME |Set a motion name. | + | |
| - | |FUNC |Set a function. (*1) | + | |
| - | |ARG0 |Set a function' | + | |
| - | |ARG1 |Set a function' | + | |
| - | |FRAME_LENGTH | + | |
| - | |TRANSITION_TIME_MS|Set a transition time (msec).|32 | + | |
| - | |VALUE[DEVICE_ID] | + | |
| - | **(*1) Type of function and role of args are described below.** | + | ### > |
| - | |" | + | |Args |
| - | |: | + | |:-----------------|: |
| - | |0 |--- | + | |SLOT |Set to write slot. |
| - | |1 | + | |FRAME_ID |
| - | |2 | + | |TRANSITION_TIME_MS|Set a transition time (msec).|32 |
| + | |VALUE[DEVICE_ID] | ||
| - | **(*2) Sum of devices is 24 and all are servo motor.** | + | **(*1) Sum of devices is 24 and the all are servo motors in current implementation.** |
| - | *example*: | + | *example* |
| - | Let install a motion below. | + | Introduce how to install a motion below. |
| |Args |Values| | |Args |Values| | ||
| Line 149: | Line 152: | ||
| |SLOT |0 | | |SLOT |0 | | ||
| |NAME |Test | | |NAME |Test | | ||
| - | |FUNC | + | |USE_LOOP |
| - | |ARG0 | + | |LOOP_BEGIN |
| - | |ARG1 | + | |LOOP_END |
| + | |LOOP_COUNT | ||
| + | |USE_JUMP | ||
| + | |JUMP_SLOT | ||
| + | |USE_EXTRA | ||
| |FRAME_LENGTH | |FRAME_LENGTH | ||
| + | |||
| + | |Args |Values| | ||
| + | |: | ||
| |TRANSITION_TIME_MS|100 | |TRANSITION_TIME_MS|100 | ||
| - | |OUTPUT[EVEN] | + | |VALUE[EVEN] |
| - | |OUTPUT[ODD] | + | |VALUE[ODD] |-1 | |
| - | Please send command below. (There are no CR, LF, or CRLF actually.) | + | Please send command below. (Do not need to insert |
| ``` | ``` | ||
| - | >in | + | >MH00 |
| - | 00Test | + | Test |
| + | 1 | ||
| + | 00 | ||
| + | 01 | ||
| + | 03 | ||
| + | 1 | ||
| + | 32 | ||
| + | 0 | ||
| + | 02 | ||
| + | |||
| + | >MF | ||
| + | 00 | ||
| + | 00 | ||
| 0064 | 0064 | ||
| 0000ffff0000ffff0000ffff0000ffff | 0000ffff0000ffff0000ffff0000ffff | ||
| 0000ffff0000ffff0000ffff0000ffff | 0000ffff0000ffff0000ffff0000ffff | ||
| 0000ffff0000ffff0000ffff0000ffff | 0000ffff0000ffff0000ffff0000ffff | ||
| + | |||
| + | >MF | ||
| + | 00 | ||
| + | 01 | ||
| 0064 | 0064 | ||
| 0000ffff0000ffff0000ffff0000ffff | 0000ffff0000ffff0000ffff0000ffff | ||
| Line 172: | Line 198: | ||
| ``` | ``` | ||
| - | ### >MH (Set a Motion Header) | + | If you are interested deeply, please see also |
| - | + | [the implementation on the Control Server](https://github.com/ | |
| - | |Args |Roles | + | |
| - | |:-----------|: | + | |
| - | |SLOT |Set to write slot. | + | |
| - | |NAME |Set a motion name. |--- |--- |white space padding,20byte| | + | |
| - | |FUNC |Set a function. (*1) | + | |
| - | |ARG0 |Set a function' | + | |
| - | |ARG1 |Set a function' | + | |
| - | |FRAME_LENGTH|Set a frame length | + | |
| - | + | ||
| - | Please get more detail at "> | + | |
| - | + | ||
| - | ### >MF (Set a Motion Frame) | + | |
| - | + | ||
| - | |Args |Roles | + | |
| - | |: | + | |
| - | |SLOT |Set to write slot. | + | |
| - | |FRAME_ID | + | |
| - | |TRANSITION_TIME_MS|Set a transition time (msec).|32 | + | |
| - | |VALUE[DEVICE_ID] | + | |
| - | + | ||
| - | Please get more detail at "> | + | |
| ### >JS (Reset the Joint Settings) | ### >JS (Reset the Joint Settings) | ||
| Line 207: | Line 212: | ||
| ### >HO (Set a Home Value) | ### >HO (Set a Home Value) | ||
| - | |Args | + | |Args |
| - | |: | + | |: |
| - | |DEVICE_ID|Set a device id. |0 |23 |0 padding,hex,2byte| | + | |DEVICE_ID|Set a device id. |0 |23 |0 padding,hex,2 bytes| |
| - | |VALUE | + | |VALUE |
| *example*: | *example*: | ||
| Line 221: | Line 226: | ||
| ### >MA (Set a Max Value) | ### >MA (Set a Max Value) | ||
| - | |Args | + | |Args |
| - | |: | + | |: |
| - | |DEVICE_ID|Set a device id. | + | |DEVICE_ID|Set a device id. |
| - | |VALUE | + | |VALUE |
| *example*: | *example*: | ||
| Line 235: | Line 240: | ||
| ### >MI (Set a Min Value) | ### >MI (Set a Min Value) | ||
| - | |Args | + | |Args |
| - | |: | + | |: |
| - | |DEVICE_ID|Set a device id. | + | |DEVICE_ID|Set a device id. |
| - | |VALUE | + | |VALUE |
| *example*: | *example*: | ||
| Line 261: | Line 266: | ||
| ``` | ``` | ||
| [ | [ | ||
| - | { | + | |
| - | " | + | " |
| - | " | + | |
| - | " | + | " |
| - | }, | + | " |
| - | ... | + | }, |
| + | ... | ||
| ] | ] | ||
| ``` | ``` | ||
| Line 272: | Line 278: | ||
| ### <MO (Dump a Motion) | ### <MO (Dump a Motion) | ||
| - | |Args|Roles | + | |Args|Roles |
| - | |: | + | |: |
| - | |SLOT|Set to read slot.|0 | + | |SLOT|Set to read slot.|0 |
| *example*: | *example*: | ||
| Line 299: | Line 305: | ||
| ``` | ``` | ||
| { | { | ||
| - | " | + | |
| - | " | + | " |
| - | " | + | " |
| } | } | ||
| ``` | ``` | ||
| </ | </ | ||