Unable to connect to Firmata

If you need technical help with anything you've bought from Dawn Robotics, please post here.

Re: Unable to connect to Firmata

Postby Maximus789 » Mon Jan 26, 2015 10:11 pm

Evening Alan,

Did you get a chance to look at it?

Max
Maximus789
 
Posts: 7
Joined: Thu Dec 11, 2014 10:22 am

Re: Unable to connect to Firmata

Postby Alan » Tue Jan 27, 2015 11:35 am

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
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am

Re: Unable to connect to Firmata

Postby Alan » Wed Jan 28, 2015 12:15 am

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
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am

Previous

Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest