Send commands to USB serial interface from NodeMCU/ESP8266

Hi all,

I recently bought a Neato XV-21/25 robotvacuum, it works great but I want to connect it to my home automation system via WiFi. I thought maybe it would work with a NodeMCU V3 (ESP8266), but I have a few questions.

Is the NodeMCU (or Arduino in general) able to act as an USB host to send commands to the Neato via USB? On Windows, the Neato is just a COM port, with "echo COMMAND > COM5" I can send commands to the Neato and it responds to the commands. I want to to exactly this but on an NodeMCU or any other WiFi enabled microcontroller.

So would this be possible with the NodeMCU or any other device? Thanks in advance!

Juraj:
GitHub - gdsports/esp8266-usb-host-demos: ESP8266 USB host demos

I've seen a couple of USB host shields, but none of them seem to support USB serial connection. At least it's not stated anywhere, or I didn't look good enough.

looks like I am better in googling than you :slight_smile:

Juraj:
looks like I am better in googling than you :slight_smile:
GitHub - felis/USB_Host_Shield_2.0: Revision 2.0 of USB Host Library for Arduino.

I've looked at that one, but that library is made for the USB Host Shield 2.0 which is pretty big and won't really fit well inside the Neato, there's only limited space. Is there a smaller version of the USB Host working with this library?

Otherwise I think I'll just buy a bit more expensive Raspberry Pi Zero W to do the job and create something myself. But I would love to use neatoscheduler.com which is made for ESP8266 (for botvacs, with a serial connection instead of USB).

wouldn't the library work with any MAX3421E based breakout board?

this is the origin of the shield and the library. they have a Mini version

Juraj:
wouldn't the library work with any MAX3421E based breakout board?

this is the origin of the shield and the library. they have a Mini version
https://www.circuitsathome.com/arduino_usb_host_shield_projects/

I thought the Mini didn't support SPP, but if it uses the same chip it will probably just work fine. Guess I'll just buy one and test is out. It's not that expensive anyway.

Juraj:
wouldn't the library work with any MAX3421E based breakout board?

this is the origin of the shield and the library. they have a Mini version
https://www.circuitsathome.com/arduino_usb_host_shield_projects/

So I bought the USB Host Shield, but what now... I need the Arduino to send a serial command via the USB Host Shield to the usb to serial converter inside the robot vacuum. But how can I send it to the USB Host shield and with what class of the USB Host Shield library?

I'm having trouble when sending a serial command to the USB Host shield and with what class of the USB Host Shield library.
192.168.0.1

sampratt:
I'm having trouble when sending a serial command to the USB Host shield and with what class of the USB Host Shield library.
router login ip

Thank you.