Hi!

On Sun, 4 Jan 2009, Yu (Jason) Gu wrote:

> Hi Phil,
>
> For the C-based  SF, I started it with:
>
>          ./sf 9002 /dev/ttyUSB0 57600
>
> For the java application, I have:
>
>         -comm s...@localhost:9002
>
>> From SF side, I can see the java application connects to the SF and
> displays:
>
>       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.
>

One thing that you could check is the firewall rules on the machine. It 
might be one that cuts the connection to localhost...

--
Razvan ME

> On Sun, Jan 4, 2009 at 11:52 AM, Philip Levis <[email protected]> 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
>>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to