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 = "ser...@com4:micaz";

           PhoenixSource phoenix;
           try
           {
               if (source == null)
               {
phoenix = BuildSource.makePhoenix(PrintStreamMessenger.err);
               }
               else
{ phoenix = BuildSource.makePhoenix(source, printstreammesseng...@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
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to