Changes for page LSS Communication Protocol
Last modified by Eric Nantel on 2024/11/21 09:43
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -42,6 +42,10 @@ 42 42 Action modifiers can only be used with certain commands. 43 43 ))) 44 44 45 +((( 46 + 47 +))) 48 + 45 45 == Configuration Commands == 46 46 47 47 Configuration commands affect the servo's current session* but unlike action commands, configuration commands are written to EEPROM and are retained even if the servo loses power (therefore NOT session specific). Not all action commands have a corresponding configuration and vice versa. Certain configurations are retained for when the servo is used in RC model. More information can be found on the [[LSS - RC PWM page>>doc:LSS - Overview (DEV).LSS - RC PWM.WebHome]]. ... ... @@ -101,30 +101,6 @@ 101 101 #5QSR<cr> would return *5QSR4<cr> which represents the value for that session. 102 102 103 103 #5QSR1<cr> would return *5QSR20<cr> which represents the value in EEPROM 104 - 105 -=== Virtual Angular Position === 106 - 107 -{In progress} 108 - 109 -A "virtual position" is one which allows for multiple rotations of the output horn, moving the center position and more. The "absolute position" would be the angle of the output shaft with respect to 360.0 degrees. 110 - 111 -[[image:LSS-servo-positions.jpg]] 112 - 113 -Example: Gyre direction / rotation is positive (clockwise), and origin offset has not been modified. Each square represents 30 degrees. 114 - 115 -#1D-300<cr> The servo is sent a command to move to -30.0 degrees (green arrow) 116 - 117 -#1D2100<cr> This second position command is sent to the servo, which moves it to 210.0 degrees (orange arrow) 118 - 119 -#1D-4200<cr> This next command rotates the servo counterclockwise to a position of -420 degrees (red arrow), which means one full rotation of 360 degrees, stopping at an absolute position of 60.0 degrees (420.0-360.0), with a virtual position of -420.0 degrees. 120 - 121 -Although the final physical position would be the same as if the servo were commanded to move to -60.0 degrees, the servo is in fact at -420.0 degrees. 122 - 123 -#1D4800<cr> This new command is sent which would then cause the servo to rotate from -420.0 degrees to 480.0 degrees (blue arrow), which would be a total of 900 degrees of clockwise rotation, or 2.5 complete rotations. 124 - 125 -#1D3300<cr> would cause the servo to rotate from 480.0 degrees to 330.0 degrees (yellow arrow). 126 - 127 -If / once the servo loses power or is power cycled, it also loses the virtual position associated with that session. For example, if the virtual position was 480.0 degrees before power is cycled, upon power up the servo's position will be read as +120.0 degrees from zero (assuming center position has not been modified). 128 128 ))) 129 129 130 130 = Command List = ... ... @@ -146,10 +146,7 @@ 146 146 | 12|Max **S**peed in **D**egrees| SD| QSD| CSD| ✓| ✓| tenths of degrees per second (ex 248 = 24.8 degrees per second)|QSD: Add modifier "2" for instantaneous speed 147 147 | 13|Max **S**peed in **R**PM| SR| QSR| CSR| ✓| ✓| rpm|QSR: Add modifier "2" for instantaneous speed 148 148 | 14|**A**ngular **S**tiffness| AS| QAS| CAS| ✓| ✓|none|-4 to +4, but suggested values are between 0 to +4 149 -| 15|**A**ngular **H**olding Stiffness|AH|QAH|CAH| | ✓|none|-10 to +10, with default as 0. 150 -|15b|**A**ngular **A**cceleration|AA|QAA|CAA| | ✓|degrees per second squared|Increments of 10 degrees per second squared 151 -|15c|**A**ngular **D**eceleration|AD|QAD|CAD| | ✓|degrees per second squared|Increments of 10 degrees per second squared 152 -|15d|**M**otion **C**ontrol|MC|QMC| | | ✓|none|MC0 to disable motion control, MC1 to enable. Session specific 129 +| 15|//N/A (removed)//| | | | | | | 153 153 | 16|**LED** Color| LED| QLED| CLED| ✓| ✓| none (integer from 1 to 8)|0=OFF 1=RED 2=GREEN 3= BLUE 4=YELLOW 5=CYAN 6=MAGENTA, 7=WHITE 154 154 | 17|**ID** #| | QID| CID| | ✓| none (integer from 0 to 250)|Note: ID 254 is a "broadcast" which all servos respond to 155 155 | 18|**B**aud rate| B| QB| CB| | ✓| none (integer)| ... ... @@ -157,23 +157,20 @@ 157 157 | 20|**F**irst Position (**P**ulse)| | QFP|CFP | ✓| ✓| none | 158 158 | 21|**F**irst Position (**D**egrees)| | QFD|CFD| ✓| ✓| none | 159 159 | 22|**T**arget (**D**egree) **P**osition| | QDT| | | ✓| tenths of degrees (ex 325 = 32.5 degrees; 91 = 9.1 degrees)| 160 -| 23|**M**odel **String**| | QMS| | | | none (string)| Recommended to determine the model| 161 -| 23b|**M**odel| | QM| | | | none (integer)| Returns a raw value representing the three model inputs (36 bit)| 137 +| 23|**M**odel| | QM| | | | none (integer)| 162 162 | 24|Serial **N**umber| | QN| | | | none (integer)| 163 163 | 25|**F**irmware version| | QF| | | | none (integer)| 164 164 | 26|**Q**uery (general status)| | Q| | | ✓| none (integer from 1 to 8)| See command description for details 165 -| 27|**V**oltage| | QV| | | ✓| millivolts(ex5936=5936mV =5.936V)|166 -| 28|**T**emperature| | QT| | | ✓| tenths ofdegrees Celsius|Max temp before error: 85°C (servo goes limp)167 -| 29|**C**urrent| | QC| | | ✓| m illiamps (ex 200= 0.2A)|168 -| 30|**RC** Mode| | |CRC| |✓| none|(((141 +| 27|**V**oltage| | QV| | | ✓| tenths of volt (ex 113 = 11.3V; 92 = 9.2V)| 142 +| 28|**T**emperature| | QT| | | ✓| degrees Celsius|Max temp before error: 85°C (servo goes limp) 143 +| 29|**C**urrent| | QC| | | ✓| tenths of Amps (ex 2 = 0.2A)| 144 +| 30|**RC** Mode| | |CRC| |✓| |((( 169 169 CRC: Add modifier "1" for RC-position mode. 170 170 CRC: Add modifier "2" for RC-wheel mode. 171 171 Any other value for the modifier results in staying in smart mode. 172 172 Puts the servo into RC mode. To revert to smart mode, use the button menu. 173 173 ))) 174 -|31|**RESET**| | | | | ✓|none|Soft reset. See command for details. 175 -|32|**DEFAULT**| | | | |✓|none|Revert to firmware default values. See command for details 176 -|33|**UPDATE**| | | | |✓|none|Update firmware. See command for details. 150 +| | | | | | | | | 177 177 178 178 = Details = 179 179 ... ... @@ -356,7 +356,7 @@ 356 356 357 357 Using the CSR command sets the servo's maximum speed which is saved in EEPROM. In the example above, the servo's maximum speed will be set to 45rpm. When the servo is powered on (or after a reset), the CSR value is used. Note that CSD and CSR are effectively the same, but allow the user to specify the speed in either unit. The last command (either CSR or CSD) is what the servo uses for that session. 358 358 359 -__14. Angular Stiffness ( **AS**)__333 +__14. Angular Stiffness (AS)__ 360 360 361 361 The servo's rigidity / angular stiffness can be thought of as (though not identical to) a damped spring in which the value affects the stiffness and embodies how much, and how quickly the servo tried keep the requested position against changes. 362 362 ... ... @@ -384,38 +384,10 @@ 384 384 385 385 Writes the desired angular stiffness value to memory. 386 386 387 -__15. A ngularHold Stiffness (**AH**)__361 +__15. N/A (removed)__ 388 388 389 -Th e angular holdingstiffnessdeterminestheservo'sability to hold a desired positionunderload. Values can be from-10 to10, with the default being 0. Note that negativevalues mean the final position can be easilydeflected.363 +This command has been removed. 390 390 391 -Ex: #5AH3<cr> 392 - 393 -This sets the holding stiffness for servo #5 to 3 for that session. 394 - 395 -Query Angular Hold Stiffness (**QAH**) 396 - 397 -Ex: #5QAH<cr> might return *5QAH3<cr> 398 - 399 -This returns the servo's angular holding stiffness value. 400 - 401 -Configure Angular Hold Stiffness (**CAH**) 402 - 403 -Ex: #5CAH2<cr> 404 - 405 -This writes the angular holding stiffness of servo #5 to 2 to EEPROM 406 - 407 -__15b: Angular Acceleration (**AA**)__ 408 - 409 -{More details to come} 410 - 411 -__15c: Angular Deceleration (**AD**)__ 412 - 413 -{More details to come} 414 - 415 -__15d: Motion Control (**MC**)__ 416 - 417 -{More details to come} 418 - 419 419 __16. RGB LED (**LED**)__ 420 420 421 421 Ex: #5LED3<cr> ... ... @@ -523,18 +523,12 @@ 523 523 524 524 The query target position command returns the target angle during and after an action which results in a rotation of the servo horn. In the example above, the servo is rotating to a virtual position of 678.3 degrees. Should the servo not have a target position or be in wheel mode, it will respond without a number (Ex: *5QDT<cr>). 525 525 526 -__23. Query Model String(**QMS**)__472 +__23. Query Model (**QM**)__ 527 527 528 -Ex: #5QM S<cr> might return *5QMSLSS-HS1cr>474 +Ex: #5QM<cr> might return *5QM11<cr> 529 529 530 -This reply means the servo model LSS-HS1, meaningahigh speed servo, first revision.476 +This reply means the servo model is 1.1, meaning high speed servo, first revision. 1=HS (high speed) 2=ST (standard) 3=HT (high torque) 531 531 532 -__23b. Query Model (**QM**)__ 533 - 534 -Ex: #5QM<cr> might return *5QM68702699520cr> 535 - 536 -This reply means the servo model is 0xFFF000000 or 100, meaning a high speed servo, first revision. 537 - 538 538 __24. Query Serial Number (**QN**)__ 539 539 540 540 Ex: #5QN<cr> might return *5QN~_~_<cr> ... ... @@ -566,7 +566,7 @@ 566 566 567 567 __27. Query Voltage (**QV**)__ 568 568 569 -Ex: #5QV<cr> might return *5QV112 00<cr>509 +Ex: #5QV<cr> might return *5QV112<cr> 570 570 571 571 The number returned has one decimal, so in the case above, servo with ID 5 has an input voltage of 11.2V (perhaps a three cell LiPo battery). 572 572 ... ... @@ -594,13 +594,13 @@ 594 594 595 595 EX: #5CRC<cr> 596 596 597 -__ 31.RESET__537 +__**RESET**__ 598 598 599 599 Ex: #5RESET<cr> or #5RS<cr> 600 600 601 601 This command does a "soft reset" (no power cycle required) and reverts all commands to those stored in EEPROM (i.e. configuration commands). 602 602 603 -__ 32.DEFAULT543 +**__DEFAULT __**__& **CONFIRM**__ 604 604 605 605 Ex: #5DEFAULT<cr> 606 606 ... ... @@ -612,7 +612,7 @@ 612 612 613 613 Note that after the CONFIRM command is sent, the servo will automatically perform a RESET. 614 614 615 -__ 33.UPDATE555 +**__UPDATE __**__& **CONFIRM**__ 616 616 617 617 Ex: #5UPDATE<cr> 618 618 ... ... @@ -624,4 +624,27 @@ 624 624 625 625 Note that after the CONFIRM command is sent, the servo will automatically perform a RESET. 626 626 627 -=== === 567 +=== Virtual Angular Position === 568 + 569 +{In progress} 570 + 571 +A "virtual position" is one which allows for multiple rotations of the output horn, moving the center position and more. The "absolute position" would be the angle of the output shaft with respect to 360.0 degrees. 572 + 573 +[[image:LSS-servo-positions.jpg]] 574 + 575 +Example: Gyre direction / rotation is positive (clockwise), and origin offset has not been modified. Each square represents 30 degrees. 576 + 577 +#1D-300<cr> The servo is sent a command to move to -30.0 degrees (green arrow) 578 + 579 +#1D2100<cr> This second position command is sent to the servo, which moves it to 210.0 degrees (orange arrow) 580 + 581 +#1D-4200<cr> This next command rotates the servo counterclockwise to a position of -420 degrees (red arrow), which means one full rotation of 360 degrees, stopping at an absolute position of 60.0 degrees (420.0-360.0), with a virtual position of -420.0 degrees. 582 + 583 +Although the final physical position would be the same as if the servo were commanded to move to -60.0 degrees, the servo is in fact at -420.0 degrees. 584 + 585 +#1D4800<cr> This new command is sent which would then cause the servo to rotate from -420.0 degrees to 480.0 degrees (blue arrow), which would be a total of 900 degrees of clockwise rotation, or 2.5 complete rotations. 586 + 587 +#1D3300<cr> would cause the servo to rotate from 480.0 degrees to 330.0 degrees (yellow arrow). 588 + 589 + 590 +If / once the servo loses power or is power cycled, it also loses the virtual position associated with that session. For example, if the virtual position was 480.0 degrees before power is cycled, upon power up the servo's position will be read as +120.0 degrees from zero (assuming center position has not been modified).