kaosat-dev/Doboz-web

Serial Error on startup

Closed this issue · 2 comments

Hi,

On startup I seem to be getting some serial errors, and when I access the app through the browser there seems to be no communication with the printer (which would make sense if there is a serial problem).

The terminal session is:

garyhodgson@ubuntu:~/Doboz$ bin/dobozweb 
2011-05-03 18:38:31,385 - dobozweb.core.HardwareNode - CRITICAL - Reprap Node Init Done
2011-05-03 18:38:31,386 - dobozweb.core.HardwareNode - CRITICAL - Starting Reprap Node
2011-05-03 18:38:31,393 - dobozweb.core.connectors.Serial - CRITICAL - cricital error while (re-)starting serial connection local variable 's' referenced before assignment
Bottle server starting up (using WSGIRefServer())...
Listening on http://192.168.2.112:8000/
Use Ctrl-C to quit.

2011-05-03 18:38:36,402 - dobozweb.core.connectors.Serial - CRITICAL - cricital error while (re-)starting serial connection local variable 's' referenced before assignment
2011-05-03 18:38:46,406 - dobozweb.core.connectors.Serial - CRITICAL - cricital error while (re-)starting serial connection local variable 's' referenced before assignment
2011-05-03 18:39:01,414 - dobozweb.core.connectors.Serial - CRITICAL - cricital error while (re-)starting serial connection local variable 's' referenced before assignment
2011-05-03 18:39:21,435 - dobozweb.core.connectors.Serial - CRITICAL - cricital error while (re-)starting serial connection local variable 's' referenced before assignment
2011-05-03 18:39:46,440 - dobozweb.core.connectors.Serial - CRITICAL - Serial shutting down

and this is running on Ubuntu 11.04 with RAMPS interface to a Mendel printer, if that helps any. I installed pySerial and pyParsing.

Let me know if there is any more info I can give to help out.
Cheers,
Gary

I realised this morning that the problem could lie in the Baud Rate. My firmware (Tonokip) is set to 57600, but I see that the serial port in run.py is set to 19200. I'll test changing this tonight.

Hello Gary !
Thanks for the feedback.
You are completely right, the problem most likely came from the serial speed.
Please check out the latest version i just pushed to github, besides a few crucial bugfixes, you can now set the serial speed and the driver (teacup, fived) directly in the config.cfg file. (from the littly i know about Tonokip, the current setting of the teacup driver might work ).