[Tinyos-help] tinyos.jar to .NET?

Javier Barbarán barbaran at lcc.uma.es
Thu Mar 5 03:40:56 PST 2009


Hi all,

I'm developing a sample application for sensors in .NET instead of Java, 
and I don't want to be faced with low level communications with serial 
ports, for this reason I would like to have a .NET version (or wrapper) 
of the tinyos.jar library that offers primitives that makes the 
programmer's life easy. Actually, using IKVM (that is free) I could 
generate a .dll from tinyos.jar and the .NET application that uses 
compiles fine and even run, but when I try to create a moteIF, the 
sample application finishes suddlenly without errors, but it should 
continue executing.

Here is the code I'm using:

            String source = "serial at com4:micaz";

            PhoenixSource phoenix;
            try
            {
                if (source == null)
                {
                    phoenix = 
BuildSource.makePhoenix(PrintStreamMessenger.err);
                }
                else
                {                   
                    phoenix = BuildSource.makePhoenix(source, 
PrintStreamMessenger. at out);
                }

                m_moteIF = new MoteIF(phoenix);
            }
            catch (Exception ex)
            {
                System.Console.Out.Write(ex.Message);
            }

In the m_moteIF = new MoteIF(phoenix) instruction is where the 
application exists... like it would execute a System.exit or somthing 
like that... but I have also tried the Java equivalent application, and 
it gets connected without any problem.

Does anyone had experience with this stuff??

Thank you very much in advance.

BR

Javier Barbarán
University of Málaga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090305/a07f51c1/attachment.htm 


More information about the Tinyos-help mailing list