Hi, Those who are using Arduinos, Wiring and such interface could tell me if this little trick work for you too. This bash shell command on linux gives the material hardware port numbers that comport uses for USB serial communication in Pd.
i=0; for f in ls /dev/tty[US]*
; do echo $i $f; i=$(( $i + 1 )); done
On my Debian laptop, it gives this:
0 /dev/ttyS0 1 /dev/ttyS1 2 /dev/ttyS10 3 /dev/ttyS11 4 /dev/ttyS12 5 /dev/ttyS13 6 /dev/ttyS14 7 /dev/ttyS15 8 /dev/ttyS16 9 /dev/ttyS17 10 /dev/ttyS18 11 /dev/ttyS19 12 /dev/ttyS2 13 /dev/ttyS20 14 /dev/ttyS21 15 /dev/ttyS22 16 /dev/ttyS23 17 /dev/ttyS24 18 /dev/ttyS25 19 /dev/ttyS26 20 /dev/ttyS27 21 /dev/ttyS28 22 /dev/ttyS29 23 /dev/ttyS3 24 /dev/ttyS30 25 /dev/ttyS31 26 /dev/ttyS32 27 /dev/ttyS33 28 /dev/ttyS34 29 /dev/ttyS35 30 /dev/ttyS36 31 /dev/ttyS37 32 /dev/ttyS38 33 /dev/ttyS39 34 /dev/ttyS4 35 /dev/ttyS40 36 /dev/ttyS41 37 /dev/ttyS42 38 /dev/ttyS43 39 /dev/ttyS44 40 /dev/ttyS45 41 /dev/ttyS46 42 /dev/ttyS47 43 /dev/ttyS5 44 /dev/ttyS6 45 /dev/ttyS7 46 /dev/ttyS8 47 /dev/ttyS9 48 /dev/ttyUSB1
My Arduino is at port number 48. So, I just need to initialize comport like this:
[comport 48 9600]
And then the communication is possible. I wrote this note int the dataflow wiki : http://wiki.dataflow.ws/comport
So, I only want to know if this bash command work on your setup too.
Alexandre Quessy http://alexandre.quessy.net/