The javax.comm libraries don't seem to understand the USB serial ports.
The way to do this is to symlink /dev/ttyUSB0 to /dev/ttyS4 (for
example, you can replace "4" with any other number):

        ln -sf /dev/ttyUSB0 /dev/ttyS4

Now the Java tools will think your USB-serial cable is COM5 (because
/dev/ttyS0 is COM1, /dev/ttyS1 is COM2, etc.) So you can use
        [EMAIL PROTECTED]

Matt

On Thu, 2004-07-08 at 12:38, Anthony Presley wrote:
> Richard,
> 
> We're not using a USB -> serial converter for the MIB510, but others on
> the mailing list seem to have success.
> 
> I would recommend this:
> 
> http://www.tinyos.net/faq.html#SEC-61
> 
> Seems that the key is:
> 
> -dserial=/dev/ttyUSB0
> 
> Hope that helps.
> 
> --Anthony
> 
> On Thu, 2004-07-08 at 10:32, Richard Stock wrote:
> > Hi all,
> > I'm trying to run the hardware_check tool but I'm not
> > sure what I should set my MOTECOM value to. 
> > I'm interfacing with a MIB510 via a linux laptop which
> > is serial port less). I'm using a usb to serial cable
> > which I know works because I can program the mica2 no
> > problem via /dev/ttyUSB0.
> > 
> > Anyway I can around this problem?
> > BTW sw2 is switched is set to off
> > Here's the output I get.
> > 
> > [EMAIL PROTECTED]:~/Dev/TinyOS/tinyos-1.x/apps/MicaHWVerify>
> > MOTECOM=serial@/dev/ttyUSB0:57600 java hardware_check
> > 
> > Hardware check started
> > serial@/dev/ttyUSB0:57600 died - exiting
> > (java.io.IOException: Invalid port. Known serial
> > ports:
> > - COM1
> > - COM2
> > - COM3
> > - COM4
> > - COM5
> > - COM6
> > - COM7
> > - COM8
> > - COM9
> > - COM10
> > - COM11
> > - COM12
> > - COM13
> > - COM14
> > - COM15
> > - COM16
> > - COM17
> > - COM18
> > - COM19
> > - COM20
> > - COM21
> > - COM22
> > - COM23
> > - COM24
> > - COM25
> > )
> > 
> > 
> > Many thanks
> > Richard 
> > 
> > 
> > 
> > 
> > 
> >     
> >     
> >             
> > ___________________________________________________________ALL-NEW Yahoo! 
> > Messenger - sooooo many all-new ways to express yourself 
> > http://uk.messenger.yahoo.com
> > _______________________________________________
> > Tinyos-help mailing list
> > [EMAIL PROTECTED]
> > http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
> _______________________________________________
> Tinyos-users mailing list
> [EMAIL PROTECTED]
> http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to