Jump to content

Roomba NS won't stay working


apostolakisl

Recommended Posts

I have had the node server for a while.  I have an I7 Roomba.  The thing won't stay connected.  After a restart of the NS or even a full reboot of Polisy, it connects and works.  A few hours later, it is done.  No connection.  It used to stay connected for a good long time, but even then I found a periodic restart was needed.  But now, it is ridiculous.  Anybody else having issues or successes here?

Link to comment
Share on other sites

14 hours ago, fahrer16 said:

Any logs or anything else to help diagnose the issue?

This is after rebooting polisy this morning.  Those errors messages just keep on rolling on and on.

2021-09-14 09:04:07,762 MainThread polyinterface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2021-09-14 09:04:11,985 MainThread polyinterface      INFO     polyinterface:init_interface: Received Config from STDIN.
2021-09-14 09:04:11,987 MainThread polyinterface      INFO     __init__:<module>: UDI Polyglot v2 Interface 2.1.0 Starting...
2021-09-14 09:04:12,098 MainThread py.warnings        WARNING  warnings:_showwarnmsg: /var/polyglot/.local/lib/python3.8/site-packages/roomba/roomba.py:32: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
2021-09-14 09:04:12,098 MainThread py.warnings        WARNING  warnings:_showwarnmsg: /var/polyglot/.local/lib/python3.8/site-packages/roomba/roomba.py:32: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
2021-09-14 09:04:12,210 MainThread polyinterface      DEBUG    polyinterface:write: CV or numpy module not found, falling back to PIL
2021-09-14 09:04:12,213 MainThread polyinterface      DEBUG    polyinterface:write: PIL module not found, maps are disabled
2021-09-14 09:04:12,288 MainThread py.warnings        WARNING  warnings:_showwarnmsg: ./roomba-poly.py:15: ResourceWarning: unclosed file <_io.TextIOWrapper name='server.json' mode='r' encoding='UTF-8'>
2021-09-14 09:04:12,288 MainThread py.warnings        WARNING  warnings:_showwarnmsg: ./roomba-poly.py:15: ResourceWarning: unclosed file <_io.TextIOWrapper name='server.json' mode='r' encoding='UTF-8'>
2021-09-14 09:04:12,309 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gws: {'default': {2: ('192.168.1.1', 'igb0')}, 2: [('192.168.1.1', 'igb0', True)]}
2021-09-14 09:04:12,310 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gw: default=('192.168.1.1', 'igb0')
2021-09-14 09:04:12,311 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: ifad: igb0=[{'addr': '192.168.1.178', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}]
2021-09-14 09:04:12,367 MainThread polyinterface      INFO     polyinterface:__init__: Connect: Network Interface: {'addr': '192.168.1.178', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}
2021-09-14 09:04:12,565 Interface  polyinterface      INFO     polyinterface:_startMqtt: Connecting to MQTT... localhost:1883
2021-09-14 09:04:12,772 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Connected with result code 0 (Success)
2021-09-14 09:04:12,774 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/ns/15 -  MID: 1 Result: 0
2021-09-14 09:04:12,775 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2021-09-14 09:04:12,776 MQTT       polyinterface      INFO     polyinterface:_connect: Sent Connected message to Polyglot
2021-09-14 09:04:12,784 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2021-09-14 09:04:12,792 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,)
2021-09-14 09:04:12,987 NodeServer polyinterface      INFO     roomba-poly:start: Starting Roomba Polyglot v2 NodeServer version 1.1.4
2021-09-14 09:04:12,990 NodeServer polyinterface      DEBUG    roomba-poly:discover: Beginning Discovery on Roomba Bridge
2021-09-14 09:04:12,991 NodeServer polyinterface      DEBUG    roomba-poly:discover: Connecting to Roomba
2021-09-14 09:04:13,024 NodeServer py.warnings        WARNING  warnings:_showwarnmsg: /var/polyglot/.local/lib/python3.8/site-packages/roomba/roomba.py:340: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
2021-09-14 09:04:13,024 NodeServer py.warnings        WARNING  warnings:_showwarnmsg: /var/polyglot/.local/lib/python3.8/site-packages/roomba/roomba.py:340: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
2021-09-14 09:04:13,026 NodeServer roomba.__main__    WARNING  roomba:setup_client: TLS Setting failed - trying 1.3 version
2021-09-14 09:04:14,199 NodeServer polyinterface      INFO     roomba-poly:discover: 1 Roomba's identified in configuration
2021-09-14 09:04:14,281 NodeServer polyinterface      DEBUG    roomba-poly:_startRoombaConnectionDelayTimer: Starting roomba connection delay timer for 5 seconds
2021-09-14 09:04:19,297 Thread-3   polyinterface      DEBUG    roomba-poly:_addRoombaNodesFromQueue: Attempting to add 1 roombas that have connected
2021-09-14 09:04:19,298 Thread-3   polyinterface      DEBUG    roomba-poly:_addRoombaNodesFromQueue: Processing Roomba (rme28fdc88b5) for addition
2021-09-14 09:04:19,299 Thread-3   polyinterface      DEBUG    roomba-poly:_addRoombaNodesFromQueue: Getting capabilities from Roomba
2021-09-14 09:04:19,299 Thread-3   polyinterface      DEBUG    roomba-poly:_addRoombaNodesFromQueue: Capabilities for Roomba: Position: True, CarpetBoost: False, BinFullDetection: False
2021-09-14 09:04:19,300 Thread-3   polyinterface      INFO     roomba-poly:_addRoombaNodesFromQueue: Adding Series 900 Roomba: Roomba (rme28fdc88b5)
2021-09-14 09:04:19,304 Thread-3   polyinterface      INFO     polyinterface:addNode: Adding node Roomba(rme28fdc88b5)
2021-09-14 09:05:34,939 MainThread polyinterface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2021-09-14 09:05:35,660 MainThread polyinterface      INFO     polyinterface:init_interface: Received Config from STDIN.
2021-09-14 09:05:35,662 MainThread polyinterface      INFO     __init__:<module>: UDI Polyglot v2 Interface 2.1.0 Starting...
2021-09-14 09:05:35,818 MainThread py.warnings        WARNING  warnings:_showwarnmsg: /var/polyglot/.local/lib/python3.8/site-packages/roomba/roomba.py:32: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
2021-09-14 09:05:35,818 MainThread py.warnings        WARNING  warnings:_showwarnmsg: /var/polyglot/.local/lib/python3.8/site-packages/roomba/roomba.py:32: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
2021-09-14 09:05:35,912 MainThread polyinterface      DEBUG    polyinterface:write: CV or numpy module not found, falling back to PIL
2021-09-14 09:05:35,915 MainThread polyinterface      DEBUG    polyinterface:write: PIL module not found, maps are disabled
2021-09-14 09:05:35,919 MainThread py.warnings        WARNING  warnings:_showwarnmsg: ./roomba-poly.py:15: ResourceWarning: unclosed file <_io.TextIOWrapper name='server.json' mode='r' encoding='UTF-8'>
2021-09-14 09:05:35,919 MainThread py.warnings        WARNING  warnings:_showwarnmsg: ./roomba-poly.py:15: ResourceWarning: unclosed file <_io.TextIOWrapper name='server.json' mode='r' encoding='UTF-8'>
2021-09-14 09:05:35,944 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gws: {'default': {2: ('192.168.1.1', 'igb0')}, 2: [('192.168.1.1', 'igb0', True)]}
2021-09-14 09:05:35,945 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: gw: default=('192.168.1.1', 'igb0')
2021-09-14 09:05:35,946 MainThread polyinterface      DEBUG    polyinterface:get_network_interface: ifad: igb0=[{'addr': '192.168.1.178', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}]
2021-09-14 09:05:35,947 MainThread polyinterface      INFO     polyinterface:__init__: Connect: Network Interface: {'addr': '192.168.1.178', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}
2021-09-14 09:05:35,967 Interface  polyinterface      INFO     polyinterface:_startMqtt: Connecting to MQTT... localhost:1883
2021-09-14 09:05:36,344 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Connected with result code 0 (Success)
2021-09-14 09:05:36,346 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/ns/15 -  MID: 1 Result: 0
2021-09-14 09:05:36,347 MQTT       polyinterface      INFO     polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2021-09-14 09:05:36,348 MQTT       polyinterface      INFO     polyinterface:_connect: Sent Connected message to Polyglot
2021-09-14 09:05:36,460 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2021-09-14 09:05:36,534 MQTT       polyinterface      INFO     polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,)
2021-09-14 09:05:37,359 NodeServer polyinterface      INFO     roomba-poly:start: Starting Roomba Polyglot v2 NodeServer version 1.1.4
2021-09-14 09:05:37,360 NodeServer polyinterface      DEBUG    roomba-poly:discover: Beginning Discovery on Roomba Bridge
2021-09-14 09:05:37,362 NodeServer polyinterface      DEBUG    roomba-poly:discover: Connecting to Roomba
2021-09-14 09:05:37,369 NodeServer py.warnings        WARNING  warnings:_showwarnmsg: /var/polyglot/.local/lib/python3.8/site-packages/roomba/roomba.py:340: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
2021-09-14 09:05:37,369 NodeServer py.warnings        WARNING  warnings:_showwarnmsg: /var/polyglot/.local/lib/python3.8/site-packages/roomba/roomba.py:340: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
2021-09-14 09:05:37,371 NodeServer roomba.__main__    WARNING  roomba:setup_client: TLS Setting failed - trying 1.3 version
2021-09-14 09:05:37,768 NodeServer polyinterface      INFO     roomba-poly:discover: 1 Roomba's identified in configuration
2021-09-14 09:05:37,771 NodeServer polyinterface      DEBUG    roomba-poly:_startRoombaConnectionDelayTimer: Starting roomba connection delay timer for 5 seconds
2021-09-14 09:05:42,777 Thread-3   polyinterface      DEBUG    roomba-poly:_addRoombaNodesFromQueue: Attempting to add 1 roombas that have connected
2021-09-14 09:05:42,779 Thread-3   polyinterface      DEBUG    roomba-poly:_addRoombaNodesFromQueue: Processing Roomba (rme28fdc88b5) for addition
2021-09-14 09:05:42,779 Thread-3   polyinterface      DEBUG    roomba-poly:_addRoombaNodesFromQueue: Getting capabilities from Roomba
2021-09-14 09:05:42,780 Thread-3   polyinterface      DEBUG    roomba-poly:_addRoombaNodesFromQueue: Capabilities for Roomba: Position: True, CarpetBoost: False, BinFullDetection: False
2021-09-14 09:05:42,781 Thread-3   polyinterface      INFO     roomba-poly:_addRoombaNodesFromQueue: Adding Series 900 Roomba: Roomba (rme28fdc88b5)
2021-09-14 09:05:42,784 Thread-3   polyinterface      INFO     polyinterface:addNode: Adding node Roomba(rme28fdc88b5)
2021-09-14 09:05:42,797 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV1: 1, uom: 25
2021-09-14 09:05:42,799 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ST: 0, uom: 78
2021-09-14 09:05:42,802 Controller polyinterface      INFO     roomba-poly:_updateBasicProperties: Roomba Connected: Roomba
2021-09-14 09:05:42,803 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - BATLVL: 100, uom: 51
2021-09-14 09:05:42,804 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV4: 82, uom: 51
2021-09-14 09:05:42,806 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV5: 629.0, uom: 20
2021-09-14 09:05:42,808 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV7: 0, uom: 2
2021-09-14 09:05:42,810 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating X Position on Roomba: 'pose'
2021-09-14 09:05:42,811 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Y Position on Roomba: 'pose'
2021-09-14 09:05:42,811 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Theta Position on Roomba: 'pose'
2021-09-14 09:05:44,051 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating X Position on Roomba: 'pose'
2021-09-14 09:05:44,051 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Y Position on Roomba: 'pose'
2021-09-14 09:05:44,052 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Theta Position on Roomba: 'pose'
2021-09-14 09:05:47,449 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating X Position on Roomba: 'pose'
2021-09-14 09:05:47,450 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Y Position on Roomba: 'pose'
2021-09-14 09:05:47,451 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Theta Position on Roomba: 'pose'
2021-09-14 09:05:52,301 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating X Position on Roomba: 'pose'
2021-09-14 09:05:52,302 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Y Position on Roomba: 'pose'
2021-09-14 09:05:52,303 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Theta Position on Roomba: 'pose'
2021-09-14 09:05:57,312 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating X Position on Roomba: 'pose'
2021-09-14 09:05:57,313 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Y Position on Roomba: 'pose'
2021-09-14 09:05:57,313 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Theta Position on Roomba: 'pose'
2021-09-14 09:06:02,693 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating X Position on Roomba: 'pose'
2021-09-14 09:06:02,694 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Y Position on Roomba: 'pose'
2021-09-14 09:06:02,695 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Theta Position on Roomba: 'pose'
2021-09-14 09:06:07,915 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating X Position on Roomba: 'pose'
2021-09-14 09:06:07,916 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Y Position on Roomba: 'pose'
2021-09-14 09:06:07,917 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Theta Position on Roomba: 'pose'
2021-09-14 09:06:13,010 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating X Position on Roomba: 'pose'
2021-09-14 09:06:13,011 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Y Position on Roomba: 'pose'
2021-09-14 09:06:13,012 Controller polyinterface      ERROR    roomba-poly:_update900SeriesProperties: Error updating Theta Position on Roomba: 'pose'

 

Link to comment
Share on other sites

It has frozen again.  3rd time today after being reset each time.  It might be coincidence, but it seems to always be "returning to charge" when it stops communicating.  It is currently "frozen" at the time of this screen shot.

image.thumb.png.1f6b942dc7e3fea09ea96256710d75b6.png

2021-09-14 17:24:22,597 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -478, uom: 56
2021-09-14 17:24:22,599 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: -131, uom: 14
2021-09-14 17:24:37,633 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV4: 100, uom: 51
2021-09-14 17:24:37,636 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV9: -71, uom: 56
2021-09-14 17:24:37,639 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -630, uom: 56
2021-09-14 17:24:37,642 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 157, uom: 14
2021-09-14 17:24:42,666 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV9: -194, uom: 56
2021-09-14 17:24:42,668 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -550, uom: 56
2021-09-14 17:24:42,671 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 133, uom: 14
2021-09-14 17:24:47,693 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV9: -212, uom: 56
2021-09-14 17:24:47,695 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -418, uom: 56
2021-09-14 17:24:47,699 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 83, uom: 14
2021-09-14 17:24:52,697 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV4: 82, uom: 51
2021-09-14 17:24:52,700 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV9: -180, uom: 56
2021-09-14 17:24:52,702 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -277, uom: 56
2021-09-14 17:24:52,704 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 59, uom: 14
2021-09-14 17:24:57,732 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV9: -104, uom: 56
2021-09-14 17:24:57,734 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -154, uom: 56
2021-09-14 17:24:57,738 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 43, uom: 14
2021-09-14 17:25:02,732 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV9: -3, uom: 56
2021-09-14 17:25:02,734 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -50, uom: 56
2021-09-14 17:25:02,737 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 79, uom: 14
2021-09-14 17:25:07,745 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -73, uom: 56
2021-09-14 17:25:07,747 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 92, uom: 14
2021-09-14 17:25:12,752 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV9: -22, uom: 56
2021-09-14 17:25:12,754 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -57, uom: 56
2021-09-14 17:25:12,757 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 161, uom: 14
2021-09-14 17:25:17,772 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV9: -39, uom: 56
2021-09-14 17:25:17,774 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -44, uom: 56
2021-09-14 17:25:17,777 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 94, uom: 14
2021-09-14 17:25:22,773 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV9: -31, uom: 56
2021-09-14 17:25:22,775 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -32, uom: 56
2021-09-14 17:25:22,778 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 47, uom: 14
2021-09-14 17:25:27,776 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV9: -13, uom: 56
2021-09-14 17:25:27,778 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: -15, uom: 56
2021-09-14 17:25:27,780 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 45, uom: 14
2021-09-14 17:25:32,705 Thread-2   polyinterface      ERROR    polyinterface:write: Exception in thread
2021-09-14 17:25:32,706 Thread-2   polyinterface      ERROR    polyinterface:write: Thread-2
2021-09-14 17:25:32,707 Thread-2   polyinterface      ERROR    polyinterface:write: :
2021-09-14 17:25:32,707 Thread-2   polyinterface      ERROR    polyinterface:write: Traceback (most recent call last):
2021-09-14 17:25:32,708 Thread-2   polyinterface      ERROR    polyinterface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2021-09-14 17:25:32,713 Thread-2   polyinterface      ERROR    polyinterface:write: self.run()
2021-09-14 17:25:32,713 Thread-2   polyinterface      ERROR    polyinterface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2021-09-14 17:25:32,717 Thread-2   polyinterface      ERROR    polyinterface:write: self._target(*self._args, **self._kwargs)
2021-09-14 17:25:32,717 Thread-2   polyinterface      ERROR    polyinterface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3452, in _thread_main
2021-09-14 17:25:32,730 Thread-2   polyinterface      ERROR    polyinterface:write: self.loop_forever(retry_first_connection=True)
2021-09-14 17:25:32,731 Thread-2   polyinterface      ERROR    polyinterface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1779, in loop_forever
2021-09-14 17:25:32,737 Thread-2   polyinterface      ERROR    polyinterface:write: rc = self.loop(timeout, max_packets)
2021-09-14 17:25:32,738 Thread-2   polyinterface      ERROR    polyinterface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1181, in loop
2021-09-14 17:25:32,743 Thread-2   polyinterface      ERROR    polyinterface:write: rc = self.loop_read(max_packets)
2021-09-14 17:25:32,743 Thread-2   polyinterface      ERROR    polyinterface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1572, in loop_read
2021-09-14 17:25:32,749 Thread-2   polyinterface      ERROR    polyinterface:write: rc = self._packet_read()
2021-09-14 17:25:32,750 Thread-2   polyinterface      ERROR    polyinterface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2310, in _packet_read
2021-09-14 17:25:32,757 Thread-2   polyinterface      ERROR    polyinterface:write: rc = self._packet_handle()
2021-09-14 17:25:32,758 Thread-2   polyinterface      ERROR    polyinterface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2936, in _packet_handle
2021-09-14 17:25:32,768 Thread-2   polyinterface      ERROR    polyinterface:write: return self._handle_publish()
2021-09-14 17:25:32,768 Thread-2   polyinterface      ERROR    polyinterface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3216, in _handle_publish
2021-09-14 17:25:32,779 Thread-2   polyinterface      ERROR    polyinterface:write: self._handle_on_message(message)
2021-09-14 17:25:32,782 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV9: 4, uom: 56
2021-09-14 17:25:32,782 Thread-2   polyinterface      ERROR    polyinterface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3444, in _handle_on_message
2021-09-14 17:25:32,785 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - GV10: 2, uom: 56
2021-09-14 17:25:32,787 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver rme28fdc88b5 - ROTATE: 47, uom: 14
2021-09-14 17:25:32,802 Thread-2   polyinterface      ERROR    polyinterface:write: self.on_message(self, self._userdata, message)
2021-09-14 17:25:32,804 Thread-2   polyinterface      ERROR    polyinterface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/roomba/roomba.py", line 459, in on_message
2021-09-14 17:25:32,807 Thread-2   polyinterface      ERROR    polyinterface:write: self.decode_topics(json_data)
2021-09-14 17:25:32,808 Thread-2   polyinterface      ERROR    polyinterface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/roomba/roomba.py", line 713, in decode_topics
2021-09-14 17:25:32,811 Thread-2   polyinterface      ERROR    polyinterface:write: self.update_state_machine()
2021-09-14 17:25:32,812 Thread-2   polyinterface      ERROR    polyinterface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/roomba/roomba.py", line 820, in update_state_machine
2021-09-14 17:25:32,816 Thread-2   polyinterface      ERROR    polyinterface:write: self.current_state = self.states[self.cleanMissionStatus_phase]
2021-09-14 17:25:32,817 Thread-2   polyinterface      ERROR    polyinterface:write: KeyError
2021-09-14 17:25:32,818 Thread-2   polyinterface      ERROR    polyinterface:write: :
2021-09-14 17:25:32,818 Thread-2   polyinterface      ERROR    polyinterface:write: 'evac'

 

Link to comment
Share on other sites

1 hour ago, fahrer16 said:

It looks like it's related to a feature on some of the fancier roombas that empty themselves.  It looks like the repo that reverse engineered the roomba protocol has a fix but there have been quite a few changes and I'll have to incorporate and test it out at some point to account for any necessary updates in the node server.

Awesome, thanks.  Perhaps that is why it seems to drop out when it is returning to base.

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

@apostolakisl, I just took a look at updating to use the newest version of the Roomba python library and there have been quite a few changes since the node server was written; threading was added, which adds a decent amount of complexity trying to use the library directly.  There'd be much more work required than I anticipated.

I don't actually use this node server myself anymore, so between work and life I'm not sure when or if I'll have time to invest into a rewrite.  If anyone is interested in taking over development, that might be the quickest path to this node server getting a refresh.

Link to comment
Share on other sites

3 hours ago, fahrer16 said:

I don't actually use this node server myself anymore, so between work and life I'm not sure when or if I'll have time to invest into a rewrite.  If anyone is interested in taking over development, that might be the quickest path to this node server getting a refresh.

@fahrer16I did a port of this node server to PG3 and can publish it to the PG3 store if you're ok with that.  I don't remember if I used an updated version of the library or not when I did this, it was a couple of months back.  But since I do have a Roomba, it seemed to work after the port.

Link to comment
Share on other sites

@bpwwer, sounds good, thanks!  The existing copy still works fine for my 980 and would work for similar or more basic models (as long as iRobot doesn't introduce a breaking change in their proprietary protocol) but it isn't updated to work reliably with the newer Roombas that have come out since.

The node server uses a library (https://github.com/NickWaterton/Roomba980-Python) that I forked a copy of a while back so that changes published to that repo wouldn't break the node server.  I tested the newest version of that library with the node server offline and the node server would need a decent re-work to be able to use the newer library.

Link to comment
Share on other sites

1 hour ago, fahrer16 said:

@bpwwer, sounds good, thanks!  The existing copy still works fine for my 980 and would work for similar or more basic models (as long as iRobot doesn't introduce a breaking change in their proprietary protocol) but it isn't updated to work reliably with the newer Roombas that have come out since.

The node server uses a library (https://github.com/NickWaterton/Roomba980-Python) that I forked a copy of a while back so that changes published to that repo wouldn't break the node server.  I tested the newest version of that library with the node server offline and the node server would need a decent re-work to be able to use the newer library.

I guess I didn't look into using a newer version of the library so it's till pointing at your forked copy.   For PG3, it probably makes sense to move to the latest version even if it is more work.  Oh well, what's one more task for the task list :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...