Download Print this page
Neato Robotics XV Programmer's Manual
Hide thumbs Also See for XV:

Advertisement

Quick Links

Programmer's Manual
Communication with the robot through the USB port
The robot has a USB port next to the power jack at the rear of the robot. You will need a USB 5-pin mini
cable to connect to the robot. You will also need to install a device driver to talk with the robot. The best
way to install the device driver is to install it from the
Software Update
Page.
Communication to a robot through a terminal emulator
Commands can be sent to a real robot via a terminal emulator. The robot is running an API command
interpreter on the USB port. Connection to the robot is made through a USB cable. The driver converts the
USB port connection to a Com port connection. This allows you to use any terminal emulator program
(such as Hyperterm or TeraTerm) to communicate with the robot. Use the following procedure:
1. Turn on the robot and connect the USB 5 pin mini cable between your computer and your robot.
2. Bring up the Terminal Emulator program.
3. Find the COM port that the robot is connected to. This is usually the last one on the list. The
communication parameters (Baud, start/stop bits, parity, etc.) are unimportant. They apply only to a real
COM port.
4. Type GetVersion. If you are connected to the robot, then it will echo back each character that you type.
Hit the enter key. The robot will now process the command and supply a response.
5. Now type help to get a list of available commands.
Command Syntax
Commands are matched with a case insensitive method. Partial word match is supported. You only need to
type in enough letters of the command to make it unique. Commands have a flexible format. In the strictly
non-sequenced format, the syntax consists of only 3 elements:
Cmd – This is the command name.
Flag – Flags are always initialized to zero. Specifying a flag on the command line sets the flag to one.
ParamName ParamValue – The ParamName specifies what parameter the next argument (ParamValue) is.
Flags and Param(Name/Value) pairs can be specified on the command line in any order. All Flags and
ParamNames are matched with a case insensitve method. Partial word match is supported. You only need to
type in enough letters of the Flag or ParamName to make it unique. In a less verbose format, the user can
omit the ParamName from the Param(Name/Value) pairs. However, this format requires that all
ParamValues are specified in the correct sequence. This sequence is the sequence shown in the Usage
command. Unnamed ParamValues are assigned in sequence to the earliest ParamName in the sequence that
does not already have a value assigned.
Response Syntax
All responses will have a control-Z (^Z) at the end of the response string. Command responses are in the
form of CSV spread sheets. E.G. GetVersion returns:
Component,Major,Minor,Build
Product Model,XV-11,,
Serial Number,AAAnnnnnAA,0000000,D
Software,6,1,13328
LDS Software,V1.0.0,,
LDS Serial,XXX-YYY,,
MainBoard Vendor ID,1,,

Advertisement

loading

Summary of Contents for Neato Robotics XV

  • Page 1 Response Syntax All responses will have a control-Z (^Z) at the end of the response string. Command responses are in the form of CSV spread sheets. E.G. GetVersion returns: Component,Major,Minor,Build Product Model,XV-11,, Serial Number,AAAnnnnnAA,0000000,D Software,6,1,13328 LDS Software,V1.0.0,, LDS Serial,XXX-YYY,,...
  • Page 2 MainBoard Serial Number,99,, MainBoard Version,0,8, Chassis Version,-1,, UIPanel Version,-1,, The first line of text is the column labels. Each line afterwards is composed of a row label, a comma, and then data associated with that label. The order and number of the rows and columns is not gauranteed to stay the same from release to release.
  • Page 3 Table of Robot Application Commands Command Description Clean Starts a cleaning by simulating press of start button. Executes different test modes. Once set, press Start button to engage. (Test modes are mutually DiagTest exclusive.) GetAccel Get the Accelerometer readings. GetAnalogSensors Get the A2D readings for the analog sensors.
  • Page 4 Detailed Command Descriptions Command: Clean Description: Starts a cleaning by simulating press of start button. Usage: Clean [House] [Spot] [Stop] Options: Flag Description (Optional)   E quivalent   t o   p ressing   ‘ Start’   b utton   o nce.   Starts  ...
  • Page 5 Turns   o n   L DS   d uring   t est.   M ay   c onflict   w ith   m otor   c ommands   o f   t est   s o   LDSOn use   c arefully! Turns  ...
  • Page 6 BatteryTemp0InC,20 'GetAnalogSensors raw' produces: SensorName,SignalVoltageInmV WallSensorInMM,0 BatteryVoltageInmV,2574 LeftDropInMM,3296 RightDropInMM,3296 RightMagSensor,0 LeftMagSensor,0 XTemp0InC,1759 XTemp1InC,1759 VacuumCurrentInmA,322 ChargeVoltInmV,0 NotConnected1,0 BatteryTemp1InC,1759 NotConnected2,0 CurrentInmA,992 NotConnected3,0 BatteryTemp0InC,1759 'GetAnalogSensors stats' produces: SensorName,Mean,Max,Min,Cnt,Dev WallSensorInMM,0,0,0,50,0 BatteryVoltageInmV,2574,2574,2574,50,0 LeftDropInMM,3296,3296,3296,50,0 RightDropInMM,3296,3296,3296,50,0 RightMagSensor,0,0,0,50,0 LeftMagSensor,0,0,0,50,0 XTemp0InC,1759,1759,1759,50,0 XTemp1InC,1759,1759,1759,50,0 VacuumCurrentInmA,322,322,322,50,0 ChargeVoltInmV,0,0,0,50,0 NotConnected1,0,0,0,50,0 BatteryTemp1InC,1759,1759,1759,50,0 NotConnected2,0,0,0,50,0 CurrentInmA,992,992,992,50,0 NotConnected3,0,0,0,50,0 BatteryTemp0InC,1759,1759,1759,50,0  ...
  • Page 7 Command: GetDigitalSensors Description: Get the state of the digital sensors. Usage: GetDigitalSensors Options: None Return Format: Digital Sensor Name, Value SNSR_DC_JACK_CONNECT,0 SNSR_DUSTBIN_IS_IN,1 SNSR_LEFT_WHEEL_EXTENDED,0 SNSR_RIGHT_WHEEL_EXTENDED,0 LSIDEBIT,0 LFRONTBIT,0 RSIDEBIT,0 RFRONTBIT,0   Command: GetErr Description: Get Error Message. Usage: GetErr [Clear] Options: Flag Description Clear Dismiss  ...
  • Page 8 360 output lines of LDS Scan Angle, Distance code in MM, normalized spot intensity, and error code. Followed by 2 status variable pairs. Example: AngleInDegrees,DistInMM,Intensity,ErrorCodeHEX 0,221,1400,0 1,223,1396,0 2,228,1273,0 (. . .) 359,220,1421,0 ROTATION_SPEED (in Hz, Floating Point),5.00   Command: GetLifeStatLog Description: Get All Life Stat Logs.
  • Page 9 0,LS_ALERT_BUSY_CHARGING,3,74,154,0xe7,0x457b 0,LS_ALERT_RECOVERING_LOCATION,3,75,156,0xea,0x474c 0,LS_ALERT_CHARGING_POWER,3,76,158,0xed,0x4923 0,LS_ALERT_CHARGING_BASE,3,77,160,0xf0,0x4b00 0,LS_ALERT_CONNECT_CHRG_CABLE,3,78,162,0xf3,0x4ce3 0,LS_ERROR_DISCONNECT_CHRG_CABLE,3,79,164,0xf6,0x4ecc 0,LS_ERROR_DUST_BIN_EMPTIED,3,80,166,0xf9,0x50bb 0,LS_ERROR_DUST_BIN_MISSING,3,81,168,0xfc,0x52b0 0,LS_ERROR_DUST_BIN_FULL,3,82,170,0xff,0x54ab 0,LS_ERROR_UNABLE_TO_NAVIGATE,3,83,172,0x102,0x56ac 0,LS_ERROR_UNABLE_TO_RETURN_TO_BASE,3,84,174,0x105,0x58b3 0,LS_ERROR_BUMPER_STUCK,3,85,176,0x108,0x5ac0 0,LS_ERROR_PICKED_UP,3,86,178,0x10b,0x5cd3 0,LS_ERROR_RECONNECT_FAILED,3,87,180,0x10e,0x5eec 0,LS_WALL_MM,3,88,182,0x111,0x610b 0,LS_LDROP,3,89,184,0x114,0x6330 0,LS_RDROP,3,90,186,0x117,0x655b 0,LS_LSBUMP,3,91,188,0x11a,0x678c 0,LS_LFBUMP,3,92,190,0x11d,0x69c3 0,LS_RFBUMP,3,93,192,0x120,0x6c00 0,LS_RSBUMP,3,94,194,0x123,0x6e43 0,LS_LDS_Corruption,3,95,196,0x126,0x708c 0,LS_ERROR_DISCONNECT_USB_CABLE,3,96,198,0x129,0x72db   Command: GetMotors Description: Get the diagnostic data for the motors. Usage: GetMotors [Brush] [Vacuum] [LeftWheel] [RightWheel] [Laser] [Charger] Options: Flag Description...
  • Page 10 Day   o f   t he   w eek   t o   g et   s chedule   f or.   S un=0,Sat=6.   If   n ot   s pecified,   t hen   a ll   d ays   a re   g iven. Return Format: Schedule is Enabled Sun 00:00 - None - Mon 00:00 - None - Tue 00:00 R Wed 00:00 R Thu 00:00 R Fri 00:00 H Sat 00:00 H...
  • Page 11 00000000 0000 962d3a58   Command: Help Description: Without any argument, this prints a list of all possible cmds. With a command name, it prints the help for that particular command Usage: Help [Cmd <Cmd_value>] Options: Flag Description (Optional)   N ext   a rgument   i s   c ommand   t o   s how   h elp   f or.   If  ...
  • Page 12: Restore Defaults

    0 – Waking Up 1 – Starting Cleaning 2 – Cleaning Completed 3 – Attention Needed 4 – Backing up into base station 5 – Base Station Docking Completed 6 – Test Sound 1 7 – Test Sound 2 8 – Test Sound 3 9 –...
  • Page 13 WallMinimim   a nd   W allMax. Take   m aximum   d istance   w all   s ensor   r eadings.   M utually   e xclusive   o f   WallMaximum WallMinimim   a nd   W allMiddle. Return Format: Label,Value RDropCalA2DMin,-1 RDropCalA2DMid,-1 RDropCalA2DMax,-1 LDropCalA2DMin,-1 LDropCalA2DMid,-1 LDropCalA2DMax,-1 WallCalA2DMin,-1 WallCalA2DMid,-1...
  • Page 14 Flag Description Turns   L DS   r otation   o n.   M utually   e xclusive   w ith   O ff. Turns   L DS   r otation   o ff.   M utually   e xclusive   w ith   O n. Return Format: None  ...
  • Page 15 VacuumOn Vacuum   m otor   o n   ( Mutually   e xclusive   w ith   V acuumOff) VacuumOff Vacuum   m otor   o ff   ( Mutually   e xclusive   w ith   V acuumOn) VacuumSpeed Vacuum  ...
  • Page 16 Standby Start   s tandby   o peration.   ( mutually   e xclusive   o f   o ther   o ptions) Return Format: None   Command: SetTime Description: Sets the current day, hour, and minute for the scheduler clock. Usage: SetTime [Day <Day_value>] [Hour <Hour_value>] [Min <Min_value>] [Sec <Sec_value>] Options: Flag...
  • Page 17 code Upload   f ile   i s   t he   m ain   a pplication.   ( Mutually   e xclusive   w ith   s ound,   L DS) sound Upload   f ile   i s   a   s ound   m odule.   ( Mutually   e xclusive   w ith   c ode,   L DS) Upload  ...