Hi Guys,
I cheated and used node.js with a module called node-serial. I discovered that you need to disconnect the serial port from the console before you can use it (edits to /etc/inittab and /boot/cmdline.txt). I imagine you'd need to do this in a python environment too. minicom was very useful for prodding the serial device to make sure it was working before I pointed my program at it.
Regards, Paul
At 06:38 PM 7/4/2013, Omer Kilic wrote:
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
oshug mailing list oshug@oshug.org http://oshug.org/cgi-bin/mailman/listinfo/oshug
Paul Tanner - Virtual Technologies - http://www.virtual-techno.com Tel: +44 1494 581979 Mob: +44 7973 223239 mailto:paul@virtual-techno.com