Just as an aside to this; I did this and it worked (for the java comm)but then all of a sudden the driver crashed on the third or fourth access of the port. TOSComm seems to work fairly well if you can get it installed.
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:tinyos-help- > [EMAIL PROTECTED] On Behalf Of Justin Dugger > Sent: Thursday, June 29, 2006 16:31 > To: Ming > Cc: tinyos-help@Millennium.Berkeley.EDU > Subject: Re: [Tinyos-help] Problem to run SerialForwarder on telos > > This is a one of those fantastic "features" of using Java for hardware > access. Java has no idea what ports qualify as serial ports, and > rather than let you specify at the command line a particular file, it > will error out if it doesn't match it's own list of such things. > > If you're using sun's java, what you need to modify is the > javax.comm.properties file. This is in <javadir>/jre/lib/ext/ . > You'll notice at the end it looks exactly like the error you're > getting. Just add /dev/ttyUSB0 to the list, assuming there is such a > device. It won't hurt to add ttyUSB1 etc as well, in case you wind up > having more than one plugged in at a time. > > Justin Dugger > > On 6/29/06, Ming <[EMAIL PROTECTED]> wrote: > > > > Hi all > > > > I am try to run the SerialForwarder for telos by > > "java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyUSB0:telos" > > However the follow error is displayed. > > Listening to serial@/dev/ttyUSB0:telosb > > Platform telos > > Listening for client connections on port 9001 > > serial@/dev/ttyUSB0:57600 died - restarting (java.io.IOException: > Invalid > > port. Known serial ports: > > - /dev/ttyS0 > > - /dev/ttyS1 > > ) > > > > Anyone have any idea on that? Thank you. > > > > CMing > > > > _______________________________________________ > > Tinyos-help mailing list > > Tinyos-help@Millennium.Berkeley.EDU > > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos- > help > > > > > > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@Millennium.Berkeley.EDU > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help