No subject
Wed Dec 10 10:11:30 PST 2008
clients 1, read 0, wrote 0
But there is no incoming data for the java application. I have double
checked this application with a actual serial port (on a dock station for
the same laptop), it worked fine for both java-based or C-based SF.
Thanks,
Jason
On Sun, Jan 4, 2009 at 11:52 AM, Philip Levis <pal at cs.stanford.edu> wrote:
>
> On Jan 4, 2009, at 9:38 AM, Yu (Jason) Gu wrote:
>
> Hi,
>>
>> I'm using tinyos 2.1.0 on Ubuntu Hardy, micaz and mib510. I can burn the
>> image to the mote with my usb-to-serial cable without any problem. However
>> when I tried to connect to the serial port with SerialForwarder or other
>> java applications, I got following error message:
>>
>> serial@/dev/ttyUSB0:57600 died - exiting (java.io.IOException: Could not
>> open /dev/ttyUSB0: TOSComm JNI library runtime error: get_modem_status:
>> Invalid argument
>>
>> I have checked and made sure the port /dev/ttyUSB0 is world writable.
>>
>> Any potential solutions to solve this problem?
>>
>
> A simple workaround is to use the C-based serial forwarder.
>
> Phil
>
------=_Part_200606_2044980.1231097393111
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi Phil,<br><br>For the C-based SF, I started it with:<br> <br> ./sf 9002 /dev/ttyUSB0 57600<br><br>For the java application, I have:<br><br> -comm sf at localhost:9002<br><br>From SF side, I can see the java application connects to the SF and displays:<br>
<br> clients 1, read 0, wrote 0<br><br>But there is no incoming data for the java application. I have double checked this application with a actual serial port (on a dock station for the same laptop), it worked fine for both java-based or C-based SF.<br>
<br>Thanks,<br><br>Jason<br> <br><br><div class="gmail_quote">On Sun, Jan 4, 2009 at 11:52 AM, Philip Levis <span dir="ltr"><<a href="mailto:pal at cs.stanford.edu">pal at cs.stanford.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br>
On Jan 4, 2009, at 9:38 AM, Yu (Jason) Gu wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I'm using tinyos 2.1.0 on Ubuntu Hardy, micaz and mib510. I can burn the image to the mote with my usb-to-serial cable without any problem. However when I tried to connect to the serial port with SerialForwarder or other java applications, I got following error message:<br>
<br>
serial@/dev/ttyUSB0:57600 died - exiting (java.io.IOException: Could not open /dev/ttyUSB0: TOSComm JNI library runtime error: get_modem_status: Invalid argument<br>
<br>
I have checked and made sure the port /dev/ttyUSB0 is world writable.<br>
<br>
Any potential solutions to solve this problem?<br>
</blockquote>
<br></div></div>
A simple workaround is to use the C-based serial forwarder.<br>
<br>
Phil<br>
</blockquote></div><br>
------=_Part_200606_2044980.1231097393111--
More information about the Tinyos-help
mailing list