Hi,

Thanks for all the help.
I found the reason for the first problem:
That libLinuxSerialParallel.so was not found even when it was
present............
Apparently it was NOT compiled for the armeb platform NSLU-Linux was
using. Hence it was not picked up even when it was present.

I somewhat fixed the problem by using switching to sablevm for nslu-linux.
Muzammil

On Tue, Mar 11, 2008 at 1:06 PM, Michael Schippling <[EMAIL PROTECTED]> wrote:
> I'm not familiar with RXTXcomm, but perhaps it's native lib is not
>  compiled correctly for your platform. I've only used the Sun javax.comm
>  but I did find some portions of TOScomm in the tinyos T2 CVS tree.
>  Maybe you can us that.
>
>
>
>  MS
>
>  Muzammil Hussain wrote:
>  > Hi,
>  > Thanks for the reply.
>  > I want to get this working in Java because I was it interface the
>  > tmote with another device,a roomba, communicating with which can be
>  > done using java libraries(roombacomm).
>  >
>  > The problem is that it is asking for libLinuxSerialParellel.so even
>  > when  that file is present in the /opt/lib/classpath directory.
>  > This is what that is puzzling me.
>  >
>  > I used the RXTXcomm version of javax.comm and recompiled the java
>  > tools ( actually it was SerialByteSouce.java in particular)
>  > But then running the code gives using jamvm gives me an segmentation
>  > fault (the dmesg shows some alignment trap)
>  >
>  > Muzammil
>  >
>  >
>  > On Mon, Mar 10, 2008 at 2:21 PM, Michael Schippling <[EMAIL PROTECTED]> 
> wrote:
>  >> The Java tools use two JNI libraries which are probably missing
>  >>  on your system. The getenv lib is in tools/java/jni, but you indicate
>  >>  that your system doesn't have environment variables so you need to
>  >>  stub that one out somehow. The other lib "LinuxSerialParallel" seems
>  >>  to be a gnuism for javax.comm or the newer TOScomm which provides
>  >>  a link between Java-who-only-knows-about-ether-networking and the
>  >>  real world of computers with various kinds of I/O ports. You could
>  >>  spend a few days trying to implement that, or follow the advice of
>  >>  the other poster and use the native C code instead...
>  >>
>  >>  MS
>  >>
>  >>
>  >>
>  >>  Muzammil Hussain wrote:
>  >>  > Hi,
>  >>  > I am trying to make the java tools of tinyos-1.x work on openslug 4.8
>  >>  > (nslu-linux) running on a NSLU.
>  >>  > More specifically the Listen and Send classes. I modified them so that
>  >>  > the can take an extra argument from command prompt like java
>  >>  > net.tinyos.tools.Listen serial@/dev/ttyS5:57600.
>  >>  > Instead of setting the MOTECOM environment variable since I was not
>  >>  > able to set the Env.getenv JNI stuff.
>  >>  >
>  >>  > I am using jamvm version 1.5 to run these. I compiled the java files
>  >>  > on my laptop which has tinyos setup with IBMJava 1.4.2
>  >>  > I copy the compiled files from the laptop to the NSLU2 and run them.
>  >>  >
>  >>  > I downloaded the javacomm library needed in BuildSource for setting up
>  >>  > the serial connection and set it up.
>  >>  >
>  >>  > However when I run
>  >>  > [EMAIL PROTECTED]:/opt/tinyos-1.x/tools/java$ java
>  >>  > net.tinyos.tools.Listen2 serial@/dev/ttyS5:57600
>  >>  > getenv JNI library not found. Env.getenv will not work
>  >>  > (please consult installation directions in
>  >>  > tinyos-1.x/tools/java/net/tinyos/util/Env.INSTALL)
>  >>  > Trying to connect '/dev/ttyS5'
>  >>  > Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError:
>  >>  > Native library `LinuxSerialParallel' not found (as file
>  >>  > `libLinuxSerialParallel.so') in gnu.classpath.boot.library.path and
>  >>  > java.library.path
>  >>  > java.lang.UnsatisfiedLinkError: isDevLink
>  >>  >    at com.sun.comm.Unix.isDevLink(Native Method)
>  >>  >    at com.sun.comm.PathBundle.add(PathBundle.java:108)
>  >>  >    at 
> com.sun.comm.PlatformPortBundle.<init>(PlatformPortBundle.java:44)
>  >>  >    at 
> javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
>  >>  >    at 
> net.tinyos.packet.SerialByteSource.openStreams(SerialByteSource.java:61)
>  >>  >    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.tools.Listen2.main(Listen2.java:54)
>  >>  >
>  >>  >
>  >>  >
>  >>  > However I can successfully (I believe so) run Listen or Send
>  >>  > (original) which read the MOTECOM variable and if it is unset, take
>  >>  > [EMAIL PROTECTED]:9001 as the defualt.
>  >>  > I believe it works, even though it tries to open the connection but
>  >>  > fails(because I am not running the sf at 9001).
>  >>  >
>  >>  > Can anyone throw some light on this ?
>  >>  >
>  >>  >
>  >>
>  >>  --
>  >>  Platform: WinXP/Cygwin
>  >>  TinyOS version: 1.x, Boomerang
>  >>  Programmer: MIB510
>  >>  Device(s): Mica2, MicaZ, Tmote
>  >>  Sensor board: homebrew
>  >>
>  >>
>  >
>  >
>  >
>
>  --
>  Platform: WinXP/Cygwin
>  TinyOS version: 1.x, Boomerang
>  Programmer: MIB510
>  Device(s): Mica2, MicaZ, Tmote
>  Sensor board: homebrew
>
>



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

Reply via email to