iRoomba iRobot Plugin

Posted on
Fri Aug 16, 2019 8:01 pm
GlennNZ offline
Posts: 621
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

Ok

Can post a test version changing the SSL settings (seems that this version of iRoomba doesn't like TLSv1)

0.44 There Now. (will probably break other iRoombas - interestingly doesn't seem to affect my connection.)

Glenn

Posted on
Fri Aug 16, 2019 8:17 pm
vtmikel offline
Posts: 427
Joined: Aug 31, 2012
Location: Boston, MA

Re: iRoomba iRobot Plugin

Pretty amazing. All appears to be working now. I started, stopped, and docked the S9+ on your latest build. Thanks again!

Posted on
Fri Aug 16, 2019 8:19 pm
GlennNZ offline
Posts: 621
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

That is pretty amazing - as was a good guess only that was TLS issue.

Great to hear.

Will finalise a few bits and pieces and hopefully deal with both software versions without breaking anything!

Glenn

Posted on
Sat Aug 17, 2019 5:10 am
GlennNZ offline
Posts: 621
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

Okay, think have it sorted.

Have posted version 0.5.0 at github and plugin store
Recognises S9/S9+ iRoomba and uses correct TLS
Few debug logging changes (reduces verbosity )
Adds setting to ForceSSL for each iRoomba device

Give it a try.

Thanks

Glenn


Sent from my iPad using Tapatalk

Posted on
Sat Aug 17, 2019 6:01 am
vtmikel offline
Posts: 427
Joined: Aug 31, 2012
Location: Boston, MA

Re: iRoomba iRobot Plugin

Sorry to report .5 broke my connection. Log had numerous timeout attempts. I reverted to the last version from last night and it worked again. Will post my log from the .5 upgrade shortly.

Posted on
Sat Aug 17, 2019 6:05 am
GlennNZ offline
Posts: 621
Joined: Dec 07, 2014
Location: Central Coast, Australia

iRoomba iRobot Plugin

vtmikel wrote:
Sorry to report .5 broke my connection. Log had numerous timeout attempts. I reverted to the last version from last night and it worked again. Will post my log from the .5 upgrade shortly.


Ok

You might be special case!

Need to re-generate password or at least try to get software version to make decisions. (couldn’t see another way around this - and your version will be ‘unknown’ as haven’t generated password). Thought better default to the non-s9 setting which is probably why had troubles

Basically - do the get password bit,
Press the button - even if don’t press the iroomba button - shouldn’t matter.

Just try, probably save and/or then restart plugin

Think will fix

(Obviously others will have to generate password to get any further and shouldn’t see this issue)

If wrong please let me know and certainly meanwhile the new device force SSL TLS setting within each iRoomba device should overcome if still issues/if automatic not working

Glenn

Should say good luck with S9 - looks very good - tempted to buy it if was available here!


Sent from my iPhone using Tapatalk

Posted on
Sat Aug 17, 2019 7:17 am
vtmikel offline
Posts: 427
Joined: Aug 31, 2012
Location: Boston, MA

Re: iRoomba iRobot Plugin

Logic makes sense. I reinstalled .5 and edited the device. After a restart that fixed it.

Thanks again.

I dont have a comparison point to models previous to the s9, but it certainly seems like a great unit. With integration with Indigo I can enable a simple workflow - start and stop cleaning based on whether or not we are home. I think my daughter is going to get a kick out of seeing it run back to it's base when we come into the house.

Posted on
Mon Oct 07, 2019 3:42 pm
Betacruxis offline
Posts: 32
Joined: Apr 03, 2010

Re: iRoomba iRobot Plugin

Hello,
I just updated the 0.5 version and I see the I'm having a communication error.
Seems to be the error 54.
I am running this plugin over Indigo v7.4.0, over macOS v10.14.6.
The plugin tries to restart every 2 minutes, having the same results over and over.
I even tried to downgrade to v0.4, but I have the same results.
To say the truth, I have no idea what I am reading on the log...
Here it is the log:

Code: Select all
07 Oct 2019, 18:18:57
   Enabling plugin "iRobot-Roomba 0.5.0"
   Starting plugin "iRobot-Roomba 0.5.0" (pid 23341)
   iRobot-Roomba                   
   iRobot-Roomba                   ================================================ Initializing New Plugin Session =================================================
   iRobot-Roomba                   Plugin name:                   iRobot-Roomba
   iRobot-Roomba                   Plugin version:                0.5.0
   iRobot-Roomba                   Plugin ID:                     com.GlennNZ.indigoplugin.irobot
   iRobot-Roomba                   Indigo version:                7.4.0
   iRobot-Roomba                   Python version:                2.7.10 (default, Feb 22 2019, 21:55:15) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)]
   iRobot-Roomba                   Python Directory:              /System/Library/Frameworks/Python.framework/Versions/2.7
   iRobot-Roomba                   ==================================================================================================================================
   iRobot-Roomba Debug             logLevel = 10
   Started plugin "iRobot-Roomba 0.5.0"
   iRobot-Roomba                   Starting Roomba
   iRobot-Roomba Debug             updateFrequency = 86400.0
   iRobot-Roomba Debug             statusFrequency = 600.0
   iRobot-Roomba Debug             deviceStartComm called for Vicky
   iRobot-Roomba Debug             checkALlRoombas called.
   iRobot-Roomba Debug             self.connected equals:False& self.continuous equals:True
   iRobot-Roomba Debug             Continuous ON and not connected..
   iRobot-Roomba Debug             getRoombaInfo for Vicky
   iRobot-Roomba Debug             connecting Roomba Device: Vicky
   iRobot-Roomba Debug             Using config file: /Users/Mac/Documents/Indigo-iRobotRoomba/10.0.1.15-config.ini
   iRobot-Roomba Debug             CONTINUOUS connection
   iRobot-Roomba Debug             Reading Config File: 10.0.1.15-config.ini
   iRobot-Roomba Debug             Reading config file... /Users/Mac/Documents/Indigo-iRobotRoomba/10.0.1.15-config.ini
   iRobot-Roomba Debug             reading info from config file /Users/Mac/Documents/Indigo-iRobotRoomba/10.0.1.15-config.ini
   iRobot-Roomba Debug             Sections ['10.0.1.15']
   iRobot-Roomba Debug             Posting DECODED data
   iRobot-Roomba Debug             Connecting: Vicky  :  10.0.1.15  :  :1:1544120307:JaPiyglxlQJ6x9zo
   iRobot-Roomba Debug             Connecting Vicky
   iRobot-Roomba Debug             Selecting the best SSL TLS Settings
   iRobot-Roomba Debug             Standard iRoomba VERSION:  Using Protocol TLSv1
   iRobot-Roomba Debug             MQTT Client Succesfully setup
   iRobot-Roomba Debug             Client Connect Running now Vicky
   iRobot-Roomba Debug             Connection Roomba Error: 54
   iRobot-Roomba Debug             Attempting new Connection# 1
   iRobot-Roomba Debug             Connecting: Vicky  :  10.0.1.15  :  :1:1544120307:JaPiyglxlQJ6x9zo
   iRobot-Roomba Debug             Connecting Vicky
   iRobot-Roomba Debug             Client Connect Running now Vicky
   iRobot-Roomba Debug             Connection Roomba Error: 54
   iRobot-Roomba Debug             Attempting new Connection# 2
   iRobot-Roomba Debug             Connecting: Vicky  :  10.0.1.15  :  :1:1544120307:JaPiyglxlQJ6x9zo
   iRobot-Roomba Debug             Connecting Vicky
   iRobot-Roomba Debug             Client Connect Running now Vicky
   iRobot-Roomba Debug             Connection Roomba Error: 54
   iRobot-Roomba Debug             Attempting new Connection# 3
   iRobot-Roomba Debug             Connecting: Vicky  :  10.0.1.15  :  :1:1544120307:JaPiyglxlQJ6x9zo
   iRobot-Roomba Debug             Connecting Vicky
   iRobot-Roomba Debug             Client Connect Running now Vicky
   iRobot-Roomba Debug             Connection Roomba Error: 54
   iRobot-Roomba                   Unable to connect to Vicky
   iRobot-Roomba                   This may because your Roomba has lost charge and network connection.
   iRobot-Roomba                   Restarting Plugin in effort to resolve...
   iRobot-Roomba Debug             Setting restart switch....

07 Oct 2019, 18:19:39
   iRobot-Roomba Debug             getRoombaPassword called: 1920566782
   iRobot-Roomba                   File should equal:/Users/Mac/Documents/Indigo-iRobotRoomba/10.0.1.15-config.ini
   iRobot-Roomba Debug             waiting on port: 5678 for data
   iRobot-Roomba Debug             Looking for Roomba with IP Address:10.0.1.15
   iRobot-Roomba                   found 1 Roombas
   iRobot-Roomba                   Make sure your robot (Vicky) at IP 10.0.1.15 is on the Home Base and powered on (green lights on). Then press and hold the HOME button on your robot until it plays a series of tones (about 2 seconds). Release the button and your robot will flash WIFI light.
   iRobot-Roomba                   Received: {
  "robotname": "Vicky",
  "sku": "i755020",
  "nc": 0,
  "ver": "3",
  "proto": "mqtt",
  "ip": "10.0.1.15",
  "hostname": "iRobot-76714F419E7548198550B4B03494EADC",
  "sw": "lewis+3.0.11+lewis-release-rt319+14",
  "robotid": "76714F419E7548198550B4B03494EADC",
  "mac": "50:14:79:0F:69:AF",
  "cap": {
    "pmaps": 1,
    "pp": 0,
    "pose": 1,
    "prov": 3,
    "log": 2,
    "ota": 2,
    "maps": 3,
    "binFullDetect": 1,
    "wDevLoc": 2,
    "area": 1,
    "eco": 1,
    "svcConf": 1,
    "dockComm": 1,
    "edge": 0,
    "team": 1,
    "sched": 1,
    "multiPass": 2,
    "5ghz": 1
  }
}
   iRobot-Roomba                   

Roomba (Vicky) IP address is: 10.0.1.15
   iRobot-Roomba Debug             Standard SSL using TLSv1
   iRobot-Roomba Debug             Connection Error [Errno 54] Connection reset by peer
   iRobot-Roomba                   Error getting password.  Follow the instructions and try again.
   iRobot-Roomba Debug             Software Version of Roomba Found:lewis+3.0.11+lewis-release-rt319+14

07 Oct 2019, 18:20:28
   iRobot-Roomba Debug             Self.Kill is true,  restarting plugin
   iRobot-Roomba                   restart Plugin Called.
   Reloading plugin "iRobot-Roomba 0.5.0"
   Stopping plugin "iRobot-Roomba 0.5.0" (pid 23341)


Posted on
Mon Oct 07, 2019 4:01 pm
GlennNZ offline
Posts: 621
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

Thanks for the logs, very helpful.

Can I ask what model iRoomba?

Posted on
Mon Oct 07, 2019 4:03 pm
Betacruxis offline
Posts: 32
Joined: Apr 03, 2010

Re: iRoomba iRobot Plugin

Sorry, missed that.
Roomba i7+.

Posted on
Mon Oct 07, 2019 4:08 pm
GlennNZ offline
Posts: 621
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

Ok
Seems a bit strange timing wise - particularly if going back version wise didn't help.

Within the device options of the iRoomba in indigo there is a new setting - forceSSL or similar.
Enable this (or disable if accidently on) and try to get password again.

Essentially the new change for i9 was a change to SSL settings, i9 use new SSLv23, everything else use old.

This switch forces new/old SSL regardless of model - and it is possible something has changed firmware wise to need this for you.

Please report back:

Checked the library and they are also reporting a i7+ connection issue since firmware 3.11 (3 days ago)
I would presume you iRoomba has just updated which is why seeing this now.
Good news - there is a fix - and the current SSLv23/i9 switch above 'may' work .
The fix they use is specific for Python3 - so can't be used here - need to be more specific as to protocol needed.

Hopefully above works....

Glenn

Posted on
Tue Oct 08, 2019 7:25 am
Betacruxis offline
Posts: 32
Joined: Apr 03, 2010

Re: iRoomba iRobot Plugin

I have turned on the option to force SSL23 and it seems to work perfectly.
I am attaching the log entries for you to see (hiding the password).
Thanks again!
Let me know if you need to check anything else.

Here the log:
Code: Select all
08 Oct 2019, 10:14:25
   Enabling plugin "iRobot-Roomba 0.5.0"
   Starting plugin "iRobot-Roomba 0.5.0" (pid 9670)
   iRobot-Roomba                   
   iRobot-Roomba                   ================================================ Initializing New Plugin Session =================================================
   iRobot-Roomba                   Plugin name:                   iRobot-Roomba
   iRobot-Roomba                   Plugin version:                0.5.0
   iRobot-Roomba                   Plugin ID:                     com.GlennNZ.indigoplugin.irobot
   iRobot-Roomba                   Indigo version:                7.4.0
   iRobot-Roomba                   Python version:                2.7.10 (default, Feb 22 2019, 21:55:15) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)]
   iRobot-Roomba                   Python Directory:              /System/Library/Frameworks/Python.framework/Versions/2.7
   iRobot-Roomba                   ==================================================================================================================================
   iRobot-Roomba Debug             logLevel = 10
   Started plugin "iRobot-Roomba 0.5.0"
   iRobot-Roomba                   Starting Roomba
   iRobot-Roomba Debug             updateFrequency = 86400.0
   iRobot-Roomba Debug             statusFrequency = 600.0
   iRobot-Roomba Debug             deviceStartComm called for Vicky
   iRobot-Roomba Debug             checkALlRoombas called.
   iRobot-Roomba Debug             self.connected equals:False& self.continuous equals:True
   iRobot-Roomba Debug             Continuous ON and not connected..
   iRobot-Roomba Debug             getRoombaInfo for Vicky
   iRobot-Roomba Debug             connecting Roomba Device: Vicky
   iRobot-Roomba Debug             Using config file: /Users/Mac/Documents/Indigo-iRobotRoomba/10.0.1.15-config.ini
   iRobot-Roomba Debug             CONTINUOUS connection
   iRobot-Roomba Debug             Reading Config File: 10.0.1.15-config.ini
   iRobot-Roomba Debug             Reading config file... /Users/Mac/Documents/Indigo-iRobotRoomba/10.0.1.15-config.ini
   iRobot-Roomba Debug             reading info from config file /Users/Mac/Documents/Indigo-iRobotRoomba/10.0.1.15-config.ini
   iRobot-Roomba Debug             Sections ['10.0.1.15']
   iRobot-Roomba Debug             Posting DECODED data
   iRobot-Roomba Debug             Connecting: Vicky  :  10.0.1.15  :  :1:xxxxxxxxxxxxxx
   iRobot-Roomba Debug             Connecting Vicky
   iRobot-Roomba Debug             Selecting the best SSL TLS Settings
   iRobot-Roomba Debug             Standard iRoomba VERSION:  Using Protocol TLSv1
   iRobot-Roomba Debug             MQTT Client Succesfully setup
   iRobot-Roomba Debug             Client Connect Running now Vicky
   iRobot-Roomba Debug             Connection Roomba Error: 54
   iRobot-Roomba Debug             Attempting new Connection# 1
   iRobot-Roomba Debug             Connecting: Vicky  :  10.0.1.15  :  :1:xxxxxxxxxxxxxx
   iRobot-Roomba Debug             Connecting Vicky
   iRobot-Roomba Debug             Client Connect Running now Vicky
   iRobot-Roomba Debug             Connection Roomba Error: 54
   iRobot-Roomba Debug             Attempting new Connection# 2
   iRobot-Roomba Debug             Connecting: Vicky  :  10.0.1.15  :  :1:xxxxxxxxxxxxxx
   iRobot-Roomba Debug             Connecting Vicky
   iRobot-Roomba Debug             Client Connect Running now Vicky
   iRobot-Roomba Debug             Connection Roomba Error: 54
   iRobot-Roomba Debug             Attempting new Connection# 3
   iRobot-Roomba Debug             Connecting: Vicky  :  10.0.1.15  :  :1:xxxxxxxxxxxxxx
   iRobot-Roomba Debug             Connecting Vicky
   iRobot-Roomba Debug             Client Connect Running now Vicky
   iRobot-Roomba Debug             Connection Roomba Error: 54
   iRobot-Roomba                   Unable to connect to Vicky
   iRobot-Roomba                   This may because your Roomba has lost charge and network connection.
   iRobot-Roomba                   Restarting Plugin in effort to resolve...
   iRobot-Roomba Debug             Setting restart switch....

08 Oct 2019, 10:15:00
   Schedule                        Amplificador - Actualizar
   iRobot-Roomba Debug             validateDeviceConfigUi called
   iRobot-Roomba Debug             file should equal:/Users/Mac/Documents/Indigo-iRobotRoomba/10.0.1.15-config.ini
   iRobot-Roomba Debug             Config File Exists - using it
   iRobot-Roomba Debug             deviceStopComm called for Vicky
   iRobot-Roomba Debug             deviceStartComm called for Vicky

08 Oct 2019, 10:15:33
   iRobot-Roomba Debug             getRoombaPassword called: 1920566782
   iRobot-Roomba                   File should equal:/Users/Mac/Documents/Indigo-iRobotRoomba/10.0.1.15-config.ini
   iRobot-Roomba Debug             waiting on port: 5678 for data
   iRobot-Roomba Debug             Looking for Roomba with IP Address:10.0.1.15
   iRobot-Roomba                   found 1 Roombas
   iRobot-Roomba                   Make sure your robot (Vicky) at IP 10.0.1.15 is on the Home Base and powered on (green lights on). Then press and hold the HOME button on your robot until it plays a series of tones (about 2 seconds). Release the button and your robot will flash WIFI light.
   iRobot-Roomba                   Received: {
  "robotname": "Vicky",
  "sku": "i755020",
  "nc": 0,
  "ver": "3",
  "proto": "mqtt",
  "ip": "10.0.1.15",
  "hostname": "iRobot-76714F419E7548198550B4B03494EADC",
  "sw": "lewis+3.0.11+lewis-release-rt319+14",
  "robotid": "76714F419E7548198550B4B03494EADC",
  "mac": "50:14:79:0F:69:AF",
  "cap": {
    "pmaps": 1,
    "pp": 0,
    "pose": 1,
    "prov": 3,
    "log": 2,
    "ota": 2,
    "maps": 3,
    "binFullDetect": 1,
    "wDevLoc": 2,
    "area": 1,
    "eco": 1,
    "svcConf": 1,
    "dockComm": 1,
    "edge": 0,
    "team": 1,
    "sched": 1,
    "multiPass": 2,
    "5ghz": 1
  }
}
   iRobot-Roomba                   

Roomba (Vicky) IP address is: 10.0.1.15
   iRobot-Roomba Debug             Using SSLv23 TLS settings given S9 iRoomba or Option selected
   iRobot-Roomba Debug             received data: hex: f024efcc3b29003a313a313534343132303330373a4a61506979676c786c514a3678397a6f00, length: 38
   iRobot-Roomba                   blid is: 76714F419E7548198550B4B03494EADC
   iRobot-Roomba                   Password=> :1:xxxxxxxxxxxxxx <= Yes, all this string.
   iRobot-Roomba Debug             Using cfgfile:/Users/Mac/Documents/Indigo-iRobotRoomba/10.0.1.15-config.ini
   iRobot-Roomba                   Saved Device Config File/Password. Click OK to continue.
   iRobot-Roomba Debug             Software Version of Roomba Found:lewis+3.0.11+lewis-release-rt319+14
   iRobot-Roomba Debug             validateDeviceConfigUi called
   iRobot-Roomba Debug             file should equal:/Users/Mac/Documents/Indigo-iRobotRoomba/10.0.1.15-config.ini
   iRobot-Roomba Debug             Config File Exists - using it

Posted on
Tue Oct 08, 2019 2:09 pm
GlennNZ offline
Posts: 621
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iRoomba iRobot Plugin

Thanks

Seems like SSLv23 now needed for i7 firmware 3.11 and above. Will add automatic check for this model in next release. Probably heading towards all models needing it I suspect, and will change wording in box

Glenn.



Sent from my iPad using Tapatalk

Who is online

Users browsing this forum: No registered users and 1 guest

cron