NeatoControl - program for diagnostic neato robots

News and information about the Neato XV-11 Robotic Vacuum. All discussion and troubleshooting questions go here.

NeatoControl - program for diagnostic neato robots

Postby heX » December 1st, 2014, 10:43 am

NeatoControl - control of the robot

(Google Translate!)

Program management and diagnostic robot Neato XV-21 and other models.

Features are quite simple: to see the state of the sensors to change the schedule, set the time to get the image from the scanner.
(The program's interface leaves much to be desired - but there is room for improvement)

ImageImage
ImageImage

Use
Place the driver - by downloading the firmware update program (Neato Updater Tool) to Off.Site (http://www.neatorobotics.com/support/so ... /step-one/).
Connect the robot to a computer, and then click Connect.
Do not forget to push "disconnect" button the software before you disconnect the USB cord from the unit.

Download
[Download NeatoControl]

Known problems and their solutions
If you are connected to the robot program, and then pulled out the USB cable is not clicking Disconnect.
The robot will not respond to any buttons - as is in the diagnosis of sensors and buttons (the so-called "TestMode"). Do not worry, this is normal.

Simply stop the program, connect the USB cable again, including the program, click Connect, and then Disconnect.


Denial of responsibility
The program is provided "as is". The developer is not responsible for the use of the program (or not use).


Management
Note: Be prepared to catch the robot! Before starting, make sure that the robot will not break anything and do not break the cord, do not pull off a laptop from the table, and so. In general promise to be careful (and as usual the responsibility lies with you).

If the USB cable from the connector will take off in the drive, the robot will execute the last command. For example will continue to go forward (destroying everything in its path :) ). Just catch it and pick up in the air in seconds 5-10 team completed and it will stop.
Tab "Scanner" put a check "Manage".

Once press the button forward - robot went ahead. It will go forward until you press ago.
Pressing forward - increase speed.
Left right - turns.
Back - back.

(The management interface will be updated...)


Changes
2.2
Add page "Motors"
Add page "Log"

2.1
Add save same options
Add language manual change
Add German translate (NeatoControl.de.po)
Add online collective translate: https://poeditor.com/join/project/EdLcbGzBsR

2.0
Migrate to Lazarus!
"Sensors" tab - gray color for inactive sensor.
add new localization system.

1.10
bug fix

1.9
correct charge monitoring.
change TestMode logic - now enable only then need.
add TCP connect - experimental! (not test)

1.8
add "Commands" tab.

1.7
add "Scan Line"
add translation French and German (Thank glnc222)
add WinXP theme support
fix some bugs

1.6
BotVac support.
Auto detect language.

1.5
Improve translate. Thanx Yuval Kohavi.

1.4
The buildup of the battery.
In the telemetry readings added battery.
Displays percentage of battery and internal time.
You can copy to the clipboard sensor readings.

1.3
Now you can really control the robot!

1.2
Added localization mechanism through files.
Russian version of the interface.
Improved user interface.

1.1
Auto detect ports and more detailed error output connection
Print version when connected
Partially redesigned interface

1.0
first release
Last edited by heX on August 14th, 2015, 9:32 am, edited 7 times in total.
heX
 
Posts: 22
Joined: November 28th, 2014, 5:35 am

Re: NeatoControl - program for diagnostic neato robots

Postby shirgal » December 3rd, 2014, 12:53 pm

hex thank you for the update :thanks: ,
as well for appreciation on english translation :cheers: ,
Yuval k.
User avatar
shirgal
Robot Addict
 
Posts: 155
Joined: July 8th, 2013, 10:54 am

Re: NeatoControl - program for diagnostic neato robots

Postby glnc222 » December 5th, 2014, 6:22 pm

Dynamic sensor readings
Note the program continuously polls sensors for the display so that changes, like pressing bumpers or moving a hand towards and away from wall and cliff sensors, is instantly shown.

Linux version coming soon 2016.

TCP/IP in newer Beta version later post
http://www.robotreviews.com/chat/viewtopic.php?p=129835#p129835
For sending Neato commands out through the PC's networking to a remote receiver USB host connected to the robot, instead the robot directly connected to the PC by USB. (A number of experiments have been made with WiFi connections to the Neato; see the Mods & Repairs list top of main forum page.)

USB Drivers
Because there are no updates to the firmware for Botvac Neato Robotics website page for the USB driver may not be accessible via the menus of the website. If this occurrs use direct links to the Windows installation files:
Windows 64-bit:
http://www.neatoroboticsupdates.com/NeatoInstaller/NeatoUpdaterToolInstaller_x64.exe

32-bit:
http://www.neatoroboticsupdates.com/NeatoInstaller/NeatoUpdaterToolInstaller_x86.exe
--tested March 14, 2015.

64-bit Windows prevents the installation of unsigned drivers, for protection against non-certified faulty drivers. Even if a prompt appears over-ride the not do. A global option must be set in the menus of the deep system to disable the protection. Most instructions are posted on the Web. See for one
http://www.robotreviews.com/chat/viewtopic.php?p=125431#p125431


There are drivers Apple Mac but I do not know the links page. NeatoControl is currently for Windows. Terminal emulators, Telnet client can be used on MAC (RealTerm, TeraTerm? Open source Source-Forge.net) -- am not familiar with MAC facilities; I think there is one included in it.

Apple Macbook Usage with Wine
http://www.robotreviews.com/chat/viewtopic.php?p=137788#p137788

Video on Sensor Display Use
http://www.fayloobmennik.net/4919437 295mb
alternate https://nekaka.com/d/5I3mw6NUES

Sensor Display and Test mode
Lewiy http://www.robotreviews.com/chat/viewtopic.php?f=20&t=18596#p131179
Without TestMode 'GetAnalogSensors ' gets static sensors values, the dimension of which is unknown (as Brett shows). In TestMode the same command gets the sensors values in the proper dimension (e.g. for WallSensor -- mm) and with proper reaction to obstacle. Finally, 'GetAnalogSensors raw' in TestMode gets the sensors values in mV.


Lidar Scan Example
Image


adding language files to Neato Control
[edit] See next post, online collective translate: https://poeditor.com/join/project/EdLcbGzBsR
Languages included in the release have expanded over time, far beyond the original Russian/English.

Older versions:
The Russian.lng does not translate in Google. However, the French.lng contributed at kelrobot.fr translates in Google (two versions posted, https://mon-partage.fr/f/Fr1yGiWo/, and older https://mon-partage.fr/f/2IfLdoTu/. I posted a German translation to Roboter-Forum. The top line LANGID=xxxx uses codes from Microsoft locale id (LCID) at http://support.microsoft.com/kb/221435.
The name of the language in the drop down list is from this code. All .lng files in the program directory are collected by the program to make the menu list for languages.
Additional files can be constructed using Google translator. Google translations are not always good; native speakers can edit as needed.

If the top line is not changed, the screen titles still show per the file text. Only the lanugage name in the drop-down list is affected by the ID number.
Last edited by glnc222 on June 6th, 2017, 8:32 pm, edited 9 times in total.
glnc222
Robot Master
 
Posts: 4418
Joined: January 23rd, 2012, 9:19 pm
Location: North Carolina, U.S.

Postby heX » December 7th, 2014, 9:06 pm

Release version 1.7
Changes:
add "Scan Line" - top line for diagnostic scanner work.
add translation French and German (Thank glnc222).
add WinXP theme support.
fix some bugs.

You can help translate program to other languages here: https://poeditor.com/join/project/EdLcbGzBsR
Last edited by heX on May 27th, 2016, 5:01 am, edited 3 times in total.
heX
 
Posts: 22
Joined: November 28th, 2014, 5:35 am

Version 1.8

Postby heX » January 27th, 2015, 5:03 pm

Version 1.8

Changes:
add "Commands" tab.

Commands tab:
There are 6 command that can be called. Use "Run" button or simply press Enter while in the desired line, or by pressing the function key.
You can also turn on the timer to command causes periodic.
The bottom displays the result of the team.
If you check "Save ..." the results of the command are stored in the file.
Instructions of use: enter the necessary commands to assign a retry time, start recording. And after a couple of hours you will receive a data file that can be viewed carefully.

P.S. sorry for google translate.
heX
 
Posts: 22
Joined: November 28th, 2014, 5:35 am

Re: NeatoControl - program for diagnostic neato robots

Postby glnc222 » January 30th, 2015, 11:42 pm

So this adds a data logging ability replacing the scripting and repeat functions in terminal programs like RealTerm etc. at SourceForge.net. The Pivot Table or "Pilot Data" as once called, in spreadsheets like Excel or free LIbreOffice can organize the Neato output into separate columns of data and titles for graphing. Many tutorials on these features are on the web and YouTube. There are various options in these programs for parsing input data.

Obtaining lidar scan data while cleaning might interfere with the cleaning operation if it is heavily engaged in scanning for that purpose.

Note the English.lng file is just a duplicate of the Russian.lng file, to be replaced with translations wanted, and the language id number in the top line adjusted from the Microsoft website. The number in the file, not the file name, creates the title in the drop down menu. One could just as well translate any of the language files. English is built into the facility used by default. Some alphabets seem to require Unicode instead of Ansi encoding when saved in Windows Notepad; the program does not appear to process such encoding and skips those files. More research needed there.

[edit] I hear there is a difference between v1.7 and v1.8 in handling text display positioning from .lng files, some fine detail in the Microsoft facility or something. A nuisance for programmers. Not worth time.
glnc222
Robot Master
 
Posts: 4418
Joined: January 23rd, 2012, 9:19 pm
Location: North Carolina, U.S.

Re: NeatoControl - program for diagnostic neato robots

Postby Darkhand » March 22nd, 2015, 2:18 pm

Thanks for your hard work, this is fantastic!

Would it be possible to add brush, sidebrush, and vacuum on/off buttons, perhaps in the remote control tab? I just diagnosed a side brush issue and still had to use text commands to turn it on and off in testing. This would be the ultimate control program if we can perform all the commands in a GUI without having to touch a terminal emulator. :)
Darkhand
 
Posts: 1
Joined: March 22nd, 2015, 2:15 pm

Re: NeatoControl - program for diagnostic neato robots

Postby glnc222 » March 22nd, 2015, 3:57 pm

Incidentally the source code for the program is included in the package, but is in a fairly old Borland development system Delphi. Not worth buying just for this if not already equipped.
Something might be done with the program using keyboard macro utilities, such as the buttons requested.
Those utilities set up strings sent through the keyboard by assigned single key presses.
glnc222
Robot Master
 
Posts: 4418
Joined: January 23rd, 2012, 9:19 pm
Location: North Carolina, U.S.

Re: NeatoControl - program for diagnostic neato robots

Postby lurch » March 22nd, 2015, 4:06 pm

This program is awsome!

I use it connecting to a Botvac 85 which I recently added with a small arm linux board (Arietta G25) so I can now connect to the bot through wifi.
Unfortunately NeatoControl does not offer a network connection like telnet, only through local COM ports. I installed ser2net on the linux board so I can telnet to it and use the terminal as if it was a local terminal connection.
I tried using several virtual COM port redirectors on the windows computer that runs NeatoControl that would create a virtual COM port and rediret it through telnet to the real device. If I select this virtual com port in NeatoControl, sometimes it works for a couple of seconds but then stops with an error "Empty read". I presume this is some sort of a timing issue.
Any ideas on this or do you plan to add support for network connection to the Neato?

Thank you for your hard work,
Martin
lurch
 
Posts: 10
Joined: March 22nd, 2015, 4:43 am

Re: NeatoControl - program for diagnostic neato robots

Postby vic7767 » March 22nd, 2015, 4:27 pm

I've already run into that same error using a setup similar to yours. I emailed heX and sent the same error info to him. I asked if he could add a TCP/IP connection. So far there seems to be a protocol issue between UART serial and the NeatoControl program.
Roomba and Neato Mods, come visit: http://www.vic7767.com/

http://www.Robot-Doc.com/
User avatar
vic7767
Robot Master
 
Posts: 14303
Joined: January 14th, 2006, 8:31 pm
Location: Haughton Louisiana - USA

Re: NeatoControl - program for diagnostic neato robots

Postby glnc222 » March 22nd, 2015, 5:50 pm

Not a Windows I/O expert but in case of use:
When Neato USB is connected to a PC instead of an extra WiFi interface in the Neato, the Neato Robotics driver creates a virtual com port to use the USB. What that consists of can be seen in an alternative driver once posted at RandomWorkshop and removed but saved here under Roomba http://www.robotreviews.com/chat/viewtopic.php?f=4&t=17580
Some other USB driver must operate inside the WiFi device.

Since the Neato is echoing every character in terminal emulators it appears unusual single character USB packets are used, tacked onto an old serial port system in the Neato -- older system boards had a serial header on the board which could be used, removed in later boards. Older AMD/Nvidia PC's, compared to Intel based, had some defect in the chip set drivers which would not work with the Neato driver, compared to Intel, never fixed because no other devices affected, presumably because they used more standard USB protocols, packets. Bottom line is that the USB interface in the WiFi host mounted in the Neato must support the USB interface the same way as a PC. So needs specialists in that equipment.

[edit] Using WiFi there are issues in the WiFi driver as well as in the USB driver inside the Neato.

When the alternative Randomworkshop driver is installed in a PC, the Neato Robotics firmware update web site cannot see the Neato, presumably because it looks for the specific driver from Neato instead of merely the USB device ID. Perhaps this is why it was removed from the web. USB commands, however, work. The company driver works the same anyway.

As the firmware updating website now works with registered serial numbers to select the proper version, and there is no update for Botvac, to obtain the PC driver it might be necessary to use a direct link to the driver page:
64-bit: http://www.neatoroboticsupdates.com/NeatoInstaller/NeatoUpdaterToolInstaller_x64.exe
32-bit http://www.neatoroboticsupdates.com/NeatoInstaller/NeatoUpdaterToolInstaller_x86.exe

(In Window 64 bit, a global Windows setting must be made in the system troubleshooting menu to allow installation of unsigned drivers on a PC; instructions on the web)
glnc222
Robot Master
 
Posts: 4418
Joined: January 23rd, 2012, 9:19 pm
Location: North Carolina, U.S.

Re: NeatoControl - program for diagnostic neato robots

Postby lurch » March 23rd, 2015, 8:16 am

I see your point that the original Neato driver behaves differently from that fiddly interface I created by connecting a Linux usb host to the Botvac and then relay it through wifi.
However, as far as I understood, all the NeatoControl software has to do is to send and receive ascii characters through the interface and this actually works quite well, just the timing is different (time needed for a charachter to be received by the other side).
While I am not aware of how this great software was implemented, I presume it just takes the timing behaviour of the original drivers for granted. So I was thinking if it could be changed i.e. by using buffers to allow for transmission delays that will occur if you send them through a tcp connection over wifi where some packets / characters will havo to be sent several times until they are acknowledged.
lurch
 
Posts: 10
Joined: March 22nd, 2015, 4:43 am

Re: NeatoControl - program for diagnostic neato robots

Postby glnc222 » March 23rd, 2015, 1:31 pm

I may misunderstand but you seem to imply the Neato Control Program communicates in some stand alone manner with the USB instead of in the normal way as part of a Windows operating system. Applications in windows communicate through drivers and I/O layers built into the OS. (There is quite a fancy manipulation of this for real time apps like games and music synthesis, where the multi-tasking system is modified to reduce latency, bypassing various buffering and what not, using special drivers and OS features). The Neato Control Program calls upon drivers the same way as other apps in Windows and operates same as a terminal emulator, just generating and parsing all the text msgs. The comm is all done by the specific Neato driver, which in turn relies upon the system chip set drivers for lowest level details; some big I/O IC supports the USB interface, listed as USB controllers in Device Manager. At some point protocols built into dedicated IC's for USB interfaces or equivelents in microcontroller firmware govern the bit level aspects of USB packet protocols. They negotiate bit rates with each other etc., determine revision levels etc., acknowledgements, handshaking etc.

I seem to recall here a number of successful interfaces of microcontrollers to the Neato USB (threads listed in the mods list index post main page).

What is involved when Neato Control goes through a WiFi interface on the PC is not clear, as this is a different system than the USB drivers? Lot of mapping going on in the OS here.

I would think at least testing can be done of the microcontroller separate from the WiFi, through some other port on the controller hardware, to isolate WiFi effects.
glnc222
Robot Master
 
Posts: 4418
Joined: January 23rd, 2012, 9:19 pm
Location: North Carolina, U.S.

Re: NeatoControl - program for diagnostic neato robots

Postby lurch » March 23rd, 2015, 1:46 pm

Nevermind, I will write my own code to solve the problem.
lurch
 
Posts: 10
Joined: March 22nd, 2015, 4:43 am

Re: NeatoControl - program for diagnostic neato robots

Postby glnc222 » March 23rd, 2015, 2:07 pm

[edit] missed your never mind... but for those interested.

There would seem to be two different methods for a program designed for a COMM port in Windows to use USB.
More advanced programs using USB would not use a COMM port at all, but compile with the libraries for the USB drivers. A program for old serial RS232 asynchronous character-by-character transmissions feeds to a virtual comm port which translates the characters into USB packets same as a proper advanced program would do. One method might be to accumulate a line of text as a single packet, another making entire packets out of single characters.
Neato's internal firmware appears to do the same thing, having an old serial style level at one point, with a USB driver added later, using single character packets. If I understand this correctly, prefixes and suffixes are added to the single character sent and all sorts of exchanges go back and forth just for this one character, since the whole thing is designed to support disk drive interfaces and such with large block packets with verification and retry built in.

The point is that the lowest level is getting individual packets through, and a second level is extracting the single characters for a program assuming a simple serial interface.

additional comment below http://www.robotreviews.com/chat/viewtopic.php?p=129868#p129868
Last edited by glnc222 on March 25th, 2015, 3:54 pm, edited 1 time in total.
glnc222
Robot Master
 
Posts: 4418
Joined: January 23rd, 2012, 9:19 pm
Location: North Carolina, U.S.

NeatoControl v 1.9 (BETA)

Postby heX » March 24th, 2015, 2:34 am

Version 1.9

ImageImage

Changes:
correct charge monitoring.
change TestMode logic - now enable only then need.
add TCP connect - experimental! (not test)
new bugs.
disable translations (it's temporary).

download:
https://bitbucket.org/heXor/neatocontro ... .9_beta.7z
heX
 
Posts: 22
Joined: November 28th, 2014, 5:35 am

Re: NeatoControl - program for diagnostic neato robots

Postby vic7767 » March 24th, 2015, 10:16 am

heX, thanks for the addition of the TCP/IP selection, I do believe that in order to test this new feature will require adding a port number to the IP address. ex; 192.168.10.1:3696

Here is a screen print of the TCP/IP + port number error
Attachments
aNC.jpg
Roomba and Neato Mods, come visit: http://www.vic7767.com/

http://www.Robot-Doc.com/
User avatar
vic7767
Robot Master
 
Posts: 14303
Joined: January 14th, 2006, 8:31 pm
Location: Haughton Louisiana - USA

Re: NeatoControl - program for diagnostic neato robots

Postby heX » March 25th, 2015, 1:34 am

vic7767 wrote:thanks for the addition of the TCP/IP selection...

Try port 2167 - its raw telnet port. (http://www.get-console.com/faq/?secid=12)

Also enter this commands in system command line:
ping 192.168.10.1 (just for test)
telnet 192.168.10.1 2167 (if telnet connected successfully then try send command "help".)
heX
 
Posts: 22
Joined: November 28th, 2014, 5:35 am

Re: NeatoControl - program for diagnostic neato robots

Postby glnc222 » March 25th, 2015, 2:25 am

What is the application of this feature? Sharing the PC connection to the robot on USB over a network? Or connecting to a remote USB host in the Neato with WiFi to the PC? Or something else?
glnc222
Robot Master
 
Posts: 4418
Joined: January 23rd, 2012, 9:19 pm
Location: North Carolina, U.S.

Re: NeatoControl - program for diagnostic neato robots

Postby glnc222 » March 25th, 2015, 2:42 am

Returning to USB timing problems:
as I understood, all the NeatoControl software has to do is to send and receive ascii characters through the interface and this actually works quite well, just the timing is different (time needed for a charachter to be received by the other side).

by lurch http://www.robotreviews.com/chat/viewtopic.php?p=129825#p129825

Since Neato is echoing every character back, and performing back-space editing of text, perhaps an application should wait for the echo before sending any additional characters. Depends on how text is buffered in the Neato. Duplex serial or what? Some famous buffering method errors created security gaps in Windows at one time -- buffer over-run attack writing into code memory. tsk tsk.

I suggest further discussion of the USB interface protocols continue in a separate thread as more general than the Neato Control Program features, with a link back to start http://www.robotreviews.com/chat/viewtopic.php?p=129818#p129818 -- different software layers, more than one app...
Last edited by glnc222 on March 25th, 2015, 4:05 pm, edited 3 times in total.
glnc222
Robot Master
 
Posts: 4418
Joined: January 23rd, 2012, 9:19 pm
Location: North Carolina, U.S.

Next

Return to Neato Robotics

Who is online

Users browsing this forum: G-Man71, TechGuy, vic7767 and 354 guests