Hi,

I'm not familiar with this problem. The error message might mean that 
the serial port is already in use. Is there anything already accessing 
the serial port? Maybe you have another program trying to communicate 
with the same mote at the same time?

You could try to see whether the serial port was opened by another 
program with the command:

sudo lsof | grep "/dev/ttyUSB0"

Cheers,
Urs

On 12/30/10 9:53 AM, [email protected] wrote:
> Hi!
>
> I'm a master student. I'm developing a sniffer application of 6LowPAN
> packets. To do so, I use blip implementation. I installed blip on two
> motes: a router and a host. But when I capture packets using "java
> net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:telosb", I get a problem.
> I get this exception:
>
> Exception in thread "Thread-0" java.lang.Exception: TOSComm JNI library
> runtime error: read: Resource temporarily unavailable
>       at net.tinyos.comm.TOSCommJNI.NativeSerial_read__SWIG_1(Native Method)
>       at net.tinyos.comm.NativeSerial.read(NativeSerial.java:195)
>       at 
> net.tinyos.comm.TOSSerial$SerialInputStream.gather(TOSSerial.java:163)
>       at
> net.tinyos.comm.TOSSerial$SerialInputStream.available(TOSSerial.java:183)
>       at 
> net.tinyos.packet.SerialByteSource.readByte(SerialByteSource.java:111)
>       at net.tinyos.packet.Packetizer.readFramedPacket(Packetizer.java:271)
>       at net.tinyos.packet.Packetizer.run(Packetizer.java:227)
>       at java.lang.Thread.run(Thread.java:636)
>
> Please help!
> Great thanks!
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to