jeroenterheerdt / neato-serial

Python serial interface for Neato robot vacuum cleaners. Testing on XV Signature Pro, should work on others.
45 stars 11 forks source link

Serial connection is extremely slow #7

Open MarcDuQuesne opened 3 years ago

MarcDuQuesne commented 3 years ago

Hi,

Since my neato recently started acting up, I decided to play around with it and stumbled across your repository. thanks for your work!

From what I see right now, with my current configuration sending commands in real time from a raspberry pi is just not possible - it takes something in the order of 2 s to issue any command. Now, communication via the serial port is slow, but.. this slow? I don't get it. This is the part of the code where you configure the serial device:

            self.ser = serial.Serial(self.device, 115200,
                                     serial.EIGHTBITS, serial.PARITY_NONE,
                                     serial.STOPBITS_ONE,
                                     timeout)

how did you come up with that baudrate/bytesize? Do you know of any way to make it faster (10x would start to be ok)? greetings from the NL!

jeroenterheerdt commented 3 years ago

Hi Marc, I don't think you can make it faster. The baudrate is fixed, as well as the bytesize. I think originally got this from https://github.com/jeroenterheerdt/neato-serial/blob/master/XV-ProgrammersManual-3_1.pdf.