Pages: [1]   Go Down
Author Topic: Other Serial Devices than ttyUSBx and ttySx  (Read 398 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I have a suggeston concerning the IDE and it's serial port management:

Right now the IDE detects traditional serial ports only (/dev/ttyUSB0 and /dev/ttyS0 for instance). It would be quiet usefull to programm arduinos with bluetooth serial devices (/dev/rfcomm0) or infrared or things like that natively.

That shouldn't be too much of an endeavour.

Didn't know how to post it on the playground...

Offline Offline
Full Member
Karma: 0
Posts: 246
Code Monkey
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Unfortunately, all we get is what the RXTX libs return when we ask for an enumeration of all the com ports. I haven't tried what we get with the more modern javax.comm libs instead of the used in Arduino.

It wouldn't be too hard to tweak the IDE so that you could enter your own port if you knew what it was. Of course, the same result can be had simply by setting the com port in the config that Arduino reads on startup.

That being said, what is returned on a particular system or platform is going to highly specific to that system or platform. For example, without the FTDI device attached to my Mac, all I see are the Bluetooth TTY devices:

clvrmnky@thor:~ $ java -cp .:/Users/clvrmnky/Developer/arduino-0015/Arduino\ \
  -Djava.library.path=/Users/clvrmnky/Developer/arduino-0015/Arduino\ \
Experimental:  JNI_OnLoad called.
Stable Library
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
Found comport: /dev/tty.Bluetooth-PDA-Sync
Found comport: /dev/cu.Bluetooth-PDA-Sync
Found comport: /dev/tty.Bluetooth-Modem
Found comport: /dev/cu.Bluetooth-Modem
clvrmnky@thor:~ $

I yield() for co-routines.

Pages: [1]   Go Up
Jump to: