There is a native (JNI) interface that your need to install
in order for Java to talk to the serial ports. I believe
it is part of the whole TOS install now (it used to be javax.comm
but has been superceeded). Try searching the install docs or google
for TOSComm or TOSCommJNI.

MS

[EMAIL PROTECTED] wrote:
Hi,

I was trying to execute the Oscilloscope program to acquire data from the Tmote 
Sky sensors. I install the Oscilloscope program on one node and TOSBase on 
another (which is connected to the PC). I dont get any error messages or 
warnings at this step. Then when I start Serial Forwarder I get the following 
messages:

[EMAIL PROTECTED]:/opt/moteiv/$ java net.tinyos.sf.SerialForwarder -comm 
serial@/dev/ttyUSB0:tmote
Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: NativeSerial_read
        at net.tinyos.comm.TOSCommJNI
.NativeSerial_read (Native Method)
        at net.tinyos.comm.NativeSerial.read(NativeSerial.java:65)
        at net.tinyos.comm.TOSSerial$ReadThread.flush(TOSSerial.java:59)
        at net.tinyos.comm.TOSSerial.<init>(TOSSerial.java :177)
        at 
net.tinyos.packet.SerialByteSource.openStreams(SerialByteSource.java:58)
        at net.tinyos.packet.StreamByteSource.open(StreamByteSource.java:51)
        at net.tinyos.packet.Packetizer.openSource (Packetizer.java:119)
        at net.tinyos.packet.AbstractSource.open(AbstractSource.java:77)
        at net.tinyos.packet.Packetizer.open(Packetizer.java:114)
        at net.tinyos.packet.PhoenixSource.run(PhoenixSource.java :167)
Java TOSSerial finalize


When I try to run "java com.moteiv.oscope.oscilloscope" after that from the Oscilloscope 
directory I dont see any output on the Oscilloscope screen (even after checking the scrolling and 
zoom out Y axis) . I realize the "java.lang.UnsatisfiedLinkError:" has something to do 
with missing libraries or dependencies, but I am unable to make any progress.

Could you please help me with this?

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

Reply via email to