Hi all,
Thanks for the reply, I really appreciate it.
Just to clarify a few things:
1) The little black switch is off.
2) I programmed it currently with Surge, so that I can test serialForwarder. (I
had programmed it with my stuff earlier).
3) I also tried on mica2 platform, same problem but a little different.
First, I tried the command
java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyS0:mica2
or java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyS0:57600
Both case serialForwarder did not report "write failed" as that in micaz case,
nothing was read from the motes and the topology info does not show up in the
java surge view either.
Next, I used the following command to specify the baudrate to 19200,
java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyS0:19200
It will report "write failed", so this at least verified that serialForwarder
will respond to wrong baudrate setting, now it seems the reading part is a
problem. Any suggestions?
Thanks many!
-Ping
-----Original Message-----
From: Harri Siirtola [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 21, 2005 8:57 AM
To: Tran Trong Tri; Liu, Ping (Research)
Cc: Cory Sharp; [email protected]
Subject: Re: [Tinyos-help] What could be the reason for "write failed"
in serialForwarder
If it wasn't OFF, he wouldn't have been able to program the mote in the
first place... However, if he's testing his motes out-of-the-box (they're
shipped with Surge installed) this could be the case.
Regards,
Harri
At 09:33 PM 12/21/2005 +0800, Tran Trong Tri wrote:
>Hi,
>This may sound stupid to you but check if the little black switch on the
>programmer board(along the side) is set to OFF...If it's not OFF, the
>"write failed" error occurs...So just turn it OFF...
>Hope it helps
>
>
>On 12/16/05, Liu, Ping (Research)
><<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote:
>Cory,
>
>Thanks for the reply.
>
>I am using xbow micaz motes on linux. Isn't the baudrate automatically
>set to be 57600? Or I need to set it specifically again.
>
>java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyS0:micaz
>
>Thanks again.
>T.
>
>-----Original Message-----
>From: <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
>[mailto:<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] Behalf Of
>Cory Sharp
>Sent: Thursday, December 15, 2005 2:57 PM
>To: Liu, Ping (Research)
>Cc:
><mailto:[email protected]>[email protected]
>
>
>Subject: Re: [Tinyos-help] What could be the reason for "write failed"
>in serialForwarder
>
>
>
>That's usually a mismatched baud rate -- the serial forwarder is
>configured for a different baud rate than what the mote is using.
>This page, while not exactly appropriate for your problem, will give
>you some idea about where you can look:
>
><http://www.moteiv.com/community/Change_the_default_UART_baud_rate>http://www.moteiv.com/community/Change_the_default_UART_baud_rate
>
>
>
>Cory
>
>On 12/15/05, Liu, Ping (Research)
><<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > What could be the reason for "write failed" while trying the
> serialForwarder?
> >
> > I am on 1.1.14. and serialForwarder was working fine for me earlier on
> 1.1.7.
> >
> > Thanks many!
> > -T.
> >
> > _______________________________________________
> > Tinyos-help mailing list
> >
> <mailto:[email protected]>[email protected]
>
>
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>_______________________________________________
>Tinyos-help mailing list
><mailto:[email protected]>[email protected]
>
>
>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>_______________________________________________
>Tinyos-help mailing list
>[email protected]
>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help