I need some help from one of you Arduino gurus.
I want to talk to the Arduino serial interface from a Fedora Linux system. I know how to do the Arduino side, using Serial.available, Serial.read, Serial.write etc.
My problem is how to talk from the Linux end. All the examples I see are Windows based and use Thierry Schneider's Serial C++ Library for Win32. What do I use as the Linux equivalent?
It's not as simple as just writing the the Linux device (in this case /dev/bus/usb/004/081). I suspect I need something rather cleverer, but I don't know what it is.
Any help much appreciated. I'm trying to help a youngster set up an Arduino based face tracker, driven by OpenCV face detection on the Linux box.
Thanks,
Jeremy
Hi Jeremy,
On 4 July 2013 18:17, Jeremy Bennett jeremy.bennett@embecosm.com wrote:
I need some help from one of you Arduino gurus.
I want to talk to the Arduino serial interface from a Fedora Linux system. I know how to do the Arduino side, using Serial.available, Serial.read, Serial.write etc.
My problem is how to talk from the Linux end. All the examples I see are Windows based and use Thierry Schneider's Serial C++ Library for Win32. What do I use as the Linux equivalent?
It's not as simple as just writing the the Linux device (in this case /dev/bus/usb/004/081). I suspect I need something rather cleverer, but I don't know what it is.
Any help much appreciated. I'm trying to help a youngster set up an Arduino based face tracker, driven by OpenCV face detection on the Linux box.
At a Howduino workshop here in Hebden Bridge one young participant had an LED matrix hooked up to an Arduino, being controlled by Conway's Game of Life running on an attached PC. IIRC she used Python on the latter.
Best,
Andrew
Hi Jeremy,
This is a good starting point: http://playground.arduino.cc/interfacing/python
pySerial documetation available here: http://pyserial.sourceforge.net/
HTH, Omer.
On 4 July 2013 18:17, Jeremy Bennett jeremy.bennett@embecosm.com wrote:
I need some help from one of you Arduino gurus.
I want to talk to the Arduino serial interface from a Fedora Linux system. I know how to do the Arduino side, using Serial.available, Serial.read, Serial.write etc.
My problem is how to talk from the Linux end. All the examples I see are Windows based and use Thierry Schneider's Serial C++ Library for Win32. What do I use as the Linux equivalent?
It's not as simple as just writing the the Linux device (in this case /dev/bus/usb/004/081). I suspect I need something rather cleverer, but I don't know what it is.
Any help much appreciated. I'm trying to help a youngster set up an Arduino based face tracker, driven by OpenCV face detection on the Linux box.
Thanks,
Jeremy
-- Tel: +44 (1590) 610184 Cell: +44 (7970) 676050 SkypeID: jeremybennett Twitter: @jeremypbennett Email: jeremy.bennett@embecosm.com Web: www.embecosm.com
oshug mailing list oshug@oshug.org http://oshug.org/cgi-bin/mailman/listinfo/oshug