Page 2 of 2

Re: Unable to connect to Firmata

PostPosted: Mon Jan 26, 2015 10:11 pm
by Maximus789
Evening Alan,

Did you get a chance to look at it?

Max

Re: Unable to connect to Firmata

PostPosted: Tue Jan 27, 2015 11:35 am
by Alan
Hi Max,

Sorry, very embarrased here, this completely slipped my mind. :oops:

I'll look at this today and give you an update this evening.

Regards

Alan

Re: Unable to connect to Firmata

PostPosted: Wed Jan 28, 2015 12:15 am
by Alan
Hi Max,

I can see that there's a potential bug in PyMata (the line that reads 'Error: Caught exception in command handler - pop from an empty deque') but I'm not going to have a chance to fix it until Friday.

In the meantime I think that you problem may be happening because the serial communication with the Pi Co-op is not being shutdown properly when your script ends (again, another possible bug in PyMata).

Could you please try running your script again, and then after it's finished could you please run

Code: Select all
lsof /dev/ttyS0


which should show you if any program is still using the GPIO serial port. You may need to run

Code: Select all
sudo apt-get install lsof


to install lsof if it isn't already there.

Regards

Alan