Skip to content

15. Serial API

sm6yvr edited this page Aug 6, 2017 · 19 revisions

Description

To control, get status and update settings of the mower it is possible to use a Serial API. You can send a text string on the serial consol. A response message are sent back on the serial consol.

Syntax

The command are defined as followed. A command starts with a semicolon, the number of the command, a colon and eache args separeted with a colon. The string ends with carriage return.

Example ;:arg1:arg2:argN\r

API Commands

  1. GetState - 10
  2. SetState - 11
  3. GetSetUpDebug - 100
  4. SetSetUpDebug - 101
  5. GetBattery - 102
  6. SetBattery - 103
  7. GetSensor - 104
  8. SetMotorOn - 105
  9. SetMotorOff - 106
  10. GetWheelMotor - 107
  11. GetCutterStatus - 108

GetState - 10

Some introduction text, formatted in heading 2 style

SetState - 11

GetSetUpDebug - 100

SetSetUpDebug - 101

SetBattery 103

Change the current state of the mower.

Format: 103:BatteryType:Min:Max:GoHomeLevel

Battery type

Value Description
0 Mowing
1 LAUNCHING
2 CHARGING
3 TESTING

Min: The voltage of the battery when it's empty. Use a value with four digits like 1030 for 10,3v

Max: The voltage of the battery when it's full. Use a value with four digits like 1224 for 12,24v

GoHomeLevel: The voltage level when the mover should go home.

Response

OK/NOK