Hello Folks,

I am using ubuntu 8.10 operating system and connecting TelosB mote
through /dev/ttyUSB0 port. I just want to follow the tinyos tutorial
"Mote-PC serial communication and SerialForwarder". I can follow the
instruction and finish the first three experiments, which are "Packet
sources and TestSerial", "BaseStation and net.tinyos.tools.Listen" and
"MIG: generating packet objects" successfully.

BUT when I came to the "SerialForwarder and other packet sources".
Here are several steps I did:
1. Install BaseStation on the telosb mote which is plugged into the serial port
2. Run a SerialForwarder by execute command "java
net.tinyos.sf.SerialForwarder" or "java net.tinyos.sf.SerialForwarder
-comm serial@/dev/ttyUSB0:115200". Either one of these command does
not work, and return the same error message.

The error message is:

l...@llu-laptop:/opt/tinyos-2.1.0/support/sdk/java$ java
net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyUSB0:115200

Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x8d21c7c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0x8d21c891]
#2 /usr/lib/libX11.so.6(_XReply+0x254) [0x8d261494]
#3 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/xawt/libmawt.so
[0x8d359dce]
#4 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/xawt/libmawt.so
[0x8d343d77]
#5 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/xawt/libmawt.so
[0x8d343ef3]
#6 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26)
[0x8d344136]
#7 [0xb1483008]
#8 [0xb147cb6b]
#9 [0xb147cb6b]
#10 [0xb147a236]
#11 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/server/libjvm.so
[0xb770aeec]
#12 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/server/libjvm.so
[0xb78daae8]
#13 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/server/libjvm.so
[0xb770ad1f]
#14 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/server/libjvm.so(JVM_DoPrivileged+0x32d)
[0xb776882d]
#15 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
[0xb741930d]
#16 [0xb1482898]
#17 [0xb147ca94]
#18 [0xb147a236]
#19 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/server/libjvm.so
[0xb770aeec]
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x8d21c7c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0x8d21c96e]
#2 /usr/lib/libX11.so.6 [0x8d260619]
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0x8d256666]
#4 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/xawt/libmawt.so
[0x8d3430b9]
#5 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/xawt/libmawt.so
[0x8d343303]
#6 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/xawt/libmawt.so
[0x8d343fa1]
#7 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26)
[0x8d344136]
#8 [0xb1483008]
#9 [0xb147cb6b]
#10 [0xb147cb6b]
#11 [0xb147a236]
#12 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/server/libjvm.so
[0xb770aeec]
#13 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/server/libjvm.so
[0xb78daae8]
#14 /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/server/libjvm.so
[0xb770ad1f]
#15 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/server/libjvm.so(JVM_DoPrivileged+0x32d)
[0xb776882d]
#16 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
[0xb741930d]
#17 [0xb1482898]
#18 [0xb147ca94]
#19 [0xb147a236]

I have tried to locate this error by changing some codes in
/opt/tinyos-2.1.0/support/sdk/java/net/tinyos/sf/SFWindow.java. It
seems to me that this error was caused by executing the constructor of
class SFWindow, public SFWindow(SerialForwarder SF). And the only
function call in that method is private void jbInit(). So maybe
something happened when invoke this function.

So, right now I can not get the popped up windows as the tutorial
described. Any ideas? Any help would be highly appreciated.

Thanks,

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

Reply via email to