Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Serial Communications under GNU/Linux
stevil
Newbie
Posts: 2
Permalink
Post Serial Communications under GNU/Linux
on: December 9, 2012, 23:28
Quote

Hi all,

First off, just want to say what a great project this is. Really enjoying trying out the different settings and seeing how my pictures turn out.

Just thought I'd mention a tip for those of you trying this under GNU/linux.
It turns out the the processing serial libraries expect serial devices with certain names. If your arduino shows up as /dev/ttyACM0, the polargraph processing application may not see it. All you need is a symlink to get it to show up.

sudo ln -s /dev/ttyACM0 /dev/ttyS32

Given that the device can sometimes disconnect and reconnect with a different name, you might want the following too:

sudo ln -s /dev/ttyACM1 /dev/ttyS33

It's a bit hacky, but it's quick and works for me.

Thanks,

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Serial Communications under GNU/Linux
on: December 13, 2012, 21:08
Quote

Good tip Stevil, thanks. I haven't tried the controller under linux, only windows and mac, so that's good to know. It is an issue that all processing apps have on linux then?

cheers!
sn

stevil
Newbie
Posts: 2
Permalink
Post Re: Serial Communications under GNU/Linux
on: December 16, 2012, 00:17
Quote

Hi Sandy,

I'm guessing it's the same on all linux apps.
I think the RXTX library doesn't look for serial devices with the ttyACM prefix.
RXTXCommDriver.java
hints that it just checks for:
ttyS
ttySA
ttyUSB
I only skimmed the code though.

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.039 seconds.