I am using a snap RF engine to control an HVAC system by sending it rpc commands wirelessly through SNAPconnect running on a laptop. I am using a SNAP Stick as the base station through which to send the commands. After running for a while, the control code crashes with the following stack trace:
Traceback (most recent call last):
File "./strawmanController.py", line 956, in <module>
sys.exit(main())
File "./strawmanController.py", line 953, in main
myFunctions.mainLoop()
File "./strawmanController.py", line 924, in mainLoop
self.updateOpLog()
File "./strawmanController.py", line 569, in updateOpLog
dampersClosed = getattr(self.thermostat, 'probe' + re.sub(r'\s','',room))()
File "/usr/local/smarthome/zoningController/snapThermostat.py", line 517, in probeKitchen
state = self.func_WaitOnEvent(TIMEOUT, 'probeKitchen')
File "/usr/local/smarthome/zoningController/snapThermostat.py", line 948, in func_WaitOnEvent
eventResp = self.server.waitOnEvent(ourAddr, False, None, None, timeout)
File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
return u.close()
File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 200: 'The underlying connection was closed'>
Disconnected from the SNAPconnect server
I haven't been able to figure out what is causing this or how I can fix the problem. Any help in rectifying this issue will be greatly appreciated. If you need anymore information from my end, please let me know. Thanks.
Traceback (most recent call last):
File "./strawmanController.py", line 956, in <module>
sys.exit(main())
File "./strawmanController.py", line 953, in main
myFunctions.mainLoop()
File "./strawmanController.py", line 924, in mainLoop
self.updateOpLog()
File "./strawmanController.py", line 569, in updateOpLog
dampersClosed = getattr(self.thermostat, 'probe' + re.sub(r'\s','',room))()
File "/usr/local/smarthome/zoningController/snapThermostat.py", line 517, in probeKitchen
state = self.func_WaitOnEvent(TIMEOUT, 'probeKitchen')
File "/usr/local/smarthome/zoningController/snapThermostat.py", line 948, in func_WaitOnEvent
eventResp = self.server.waitOnEvent(ourAddr, False, None, None, timeout)
File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
return u.close()
File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 200: 'The underlying connection was closed'>
Disconnected from the SNAPconnect server
I haven't been able to figure out what is causing this or how I can fix the problem. Any help in rectifying this issue will be greatly appreciated. If you need anymore information from my end, please let me know. Thanks.
Comment