RPi Crashes After WebIOPi Error
Posted: Thu Nov 12, 2015 5:32 pm
Hi;
I have an RPi Model B running WebIOPi to remote control a robot using a WiFi adaptor. The Pi is connected to an Arduino Nano via i2c, the Nano is used to drive the motors via an L298N H Bridge.
Every so often the controls become un-responsive and it appears the Pi has crashed? When this happens I cannot CTRL C out of the Python Program running in Terminal via SSH and I cannot log in via SSH using another terminal window. The video stream from the mounted Web Cam also freezes. The video stream is produced by MPEG-Streamer which is called from a script within the WebIOPi Python program.
Here is the output when it crashes:
Googling the error: IOError: [Errno 5] Input/output error brings up a suggestion that the error may be caused by read and write problems between the Nano and the RPi being too fast?
I have an RPi Model B running WebIOPi to remote control a robot using a WiFi adaptor. The Pi is connected to an Arduino Nano via i2c, the Nano is used to drive the motors via an L298N H Bridge.
Every so often the controls become un-responsive and it appears the Pi has crashed? When this happens I cannot CTRL C out of the Python Program running in Terminal via SSH and I cannot log in via SSH using another terminal window. The video stream from the mounted Web Cam also freezes. The video stream is produced by MPEG-Streamer which is called from a script within the WebIOPi Python program.
Here is the output when it crashes:
Code: Select all
Exception happened during processing of request from ('192.168.1.68', 55607)
Traceback (most recent call last):
File "/usr/lib/python3.2/socketserver.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.2/socketserver.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.2/socketserver.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.2/socketserver.py", line 648, in __init__
self.handle()
File "/usr/lib/python3.2/http/server.py", line 396, in handle
self.handle_one_request()
File "/usr/lib/python3.2/http/server.py", line 384, in handle_one_request
method()
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 270, in do_POST
self.processRequest()
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 264, in processRequest
raise e
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 244, in processRequest
result = self.server.handler.do_POST(relativePath, self.rfile.read(length), compact)
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/rest.py", line 203, in do_POST
result = macro()
File "Hammerstein_2.0.py", line 39, in stop
writeNumber(number)
File "Hammerstein_2.0.py", line 28, in writeNumber
bus.write_byte(address, value)
IOError: [Errno 5] Input/output error
----------------------------------------
----------------------------------------
Exception happened during processing of request from ('192.168.1.68', 55608)
Traceback (most recent call last):
File "/usr/lib/python3.2/socketserver.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.2/socketserver.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.2/socketserver.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.2/socketserver.py", line 648, in __init__
self.handle()
File "/usr/lib/python3.2/http/server.py", line 396, in handle
self.handle_one_request()
File "/usr/lib/python3.2/http/server.py", line 384, in handle_one_request
method()
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 270, in do_POST
self.processRequest()
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 264, in processRequest
raise e
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 244, in processRequest
result = self.server.handler.do_POST(relativePath, self.rfile.read(length), compact)
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/rest.py", line 203, in do_POST
result = macro()
File "Hammerstein_2.0.py", line 51, in left
writeNumber(number)
File "Hammerstein_2.0.py", line 28, in writeNumber
bus.write_byte(address, value)
IOError: [Errno 5] Input/output error
----------------------------------------
----------------------------------------
Exception happened during processing of request from ('192.168.1.68', 55611)
Traceback (most recent call last):
File "/usr/lib/python3.2/socketserver.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.2/socketserver.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.2/socketserver.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.2/socketserver.py", line 648, in __init__
self.handle()
File "/usr/lib/python3.2/http/server.py", line 396, in handle
self.handle_one_request()
File "/usr/lib/python3.2/http/server.py", line 384, in handle_one_request
method()
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 270, in do_POST
self.processRequest()
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 264, in processRequest
raise e
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 244, in processRequest
result = self.server.handler.do_POST(relativePath, self.rfile.read(length), compact)
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/rest.py", line 203, in do_POST
result = macro()
File "Hammerstein_2.0.py", line 39, in stop
writeNumber(number)
File "Hammerstein_2.0.py", line 28, in writeNumber
bus.write_byte(address, value)
IOError: [Errno 5] Input/output error
----------------------------------------
----------------------------------------
Exception happened during processing of request from ('192.168.1.68', 55630)
Traceback (most recent call last):
File "/usr/lib/python3.2/socketserver.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.2/socketserver.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.2/socketserver.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.2/socketserver.py", line 648, in __init__
self.handle()
File "/usr/lib/python3.2/http/server.py", line 396, in handle
self.handle_one_request()
File "/usr/lib/python3.2/http/server.py", line 384, in handle_one_request
method()
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 270, in do_POST
self.processRequest()
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 264, in processRequest
raise e
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/http.py", line 244, in processRequest
result = self.server.handler.do_POST(relativePath, self.rfile.read(length), compact)
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/protocols/rest.py", line 203, in do_POST
result = macro()
File "Hammerstein_2.0.py", line 39, in stop
writeNumber(number)
File "Hammerstein_2.0.py", line 28, in writeNumber
bus.write_byte(address, value)
IOError: [Errno 5] Input/output error
----------------------------------------Googling the error: IOError: [Errno 5] Input/output error brings up a suggestion that the error may be caused by read and write problems between the Nano and the RPi being too fast?