Sun's JavaComm library always identifies ports by their "Windows names",
i.e. COMn. To work out which COMn corresponds to which tty, look in <JDK
dir>/jre/lib/javax.comm.properties. In there, it says which ports are serial
ones, probably /dev/ttyS and /dev/ttyUSB. If both are listed, it'll be hard
to figure out which is which, so it's probably easiest to comment out the
/dev/ttyS line. Then ttyUSB0 will be the first port found, i.e. COM1. Then,
just connect using

 

[EMAIL PROTECTED]:mica2

 

Hope this helps,

Michiel

 

SOWNet logo_KL 

 

Michiel Konstapel

Software Engineer

 

T: +31 (0)15 26 00 44 6

F: +31 (0)15 26 00 40 5

W:  <http://www.sownet.nl> www.sownet.nl

 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Prashanth
Shenoy
Sent: zondag 9 december 2007 5:19
To: [email protected]
Subject: [Tinyos-help] COM error when running Listen application from tinyos
tuto on Xubuntu

 


I have a problem... when i run the Listen application. I have set 
 
MOTECOM=serial@/dev/ttyUSB0:mica2
 
(the port i have used /dev/ttyUSB0 is correct as I use the same to install
the program onto the mote. )
 
java net.tinyos.tools.Listen 
 
Error on serial@/dev/ttyUSB0:57600: java.io.IOException: Invalid port. Known
serial ports:

<snip>

<<image001.jpg>>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to