Hi Urs,

Thanks for the suggestions.

The last thing I did was to unplug and replug my USB cable from one port to
another port. So this changed the /dev/ttyUSB1 to /dev/ttyUSB3 on my
machine. Magically all worked after this change.

David


On Wed, May 20, 2009 at 12:06 AM, Urs Hunkeler <[email protected]> wrote:

> Hi David,
>
> First, let me say that I have never encountered this problem and that I am
> only suggesting approaches to figure out the problem. These ideas might not
> be helpful at all.
>
> You could try to open the device with another program just to make sure
> that the device can really be opened by the user (e.g. "dd if=/dev/ttyUSB1
> of=/dev/null bs=1 count=1", this should read one byte from the serial port).
>
> The device might be accessed by some other application (I think the braille
> device drivers were causing problems at some point in the past). You should
> be able to see what opens which file with the lsof command (list open files,
> you might have to install it first).
>
> The source code of the toscomm library is in
> $TOSROOT/tools/tinyos/java/serial. I'm not sure what the dependencies of the
> Makefiles are, but you could try compiling directly from this directory. If
> it doesn't work, you can recompile all tools (from $TOSROOT/tools).
>
> If all else fails, you could use the C version of the serial forwarder.
>
> Cheers,
> Urs
>
>
>
> David Li wrote:
>
>> I have just tried to use USB0 and it didn't crash but didn't receive
>> anything either:
>>
>> java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:iris
>>
>> This has raised more questions:
>> I am supposed to use USB1 to communicate with the base station as higher
>> numbered port is for communication and lower numbered port USB0 is for
>> programming. What went wrong?
>>
>> David
>>
>>
>> On Tue, May 19, 2009 at 11:31 AM, David Li <[email protected]> wrote:
>>
>>  Hi,
>>>
>>> I am running Tinyos 2.1 on Ubuntu 9.10 and Sun Java SDK 1.5.  Before this
>>> the SerialForwarder was ok and I had just ran "update-java-alternatives"
>>> to
>>> switch from GIJ Java to Sun Java 1.5.  Now I am having problems the
>>> SerialForwarder GUI keeps showing the following:
>>>
>>> Could not open /dev/ttyUSB1: TOSComm JNI library runtime error: open:
>>> Input/output error
>>>
>>> serial@/dev/ttyUSB1:57600 died - restarting
>>>
>>> Same thing happend when I ran "java net.tinyos.tools.Listen".
>>>
>>>
>>> Does anyone know if this requires me to recompile SerialForwarder? And
>>> how
>>> do I do that?
>>>
>>> Thanks.
>>>
>>> David
>>>
>>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to