Hi Urs and all,

And thank you very much for your help. I've never used this kind of 
application, but I searched on the Internet and I found straceNT for 
windows, and I have used it in order to check where could be the 
problem, but without help cause the information that provides is not useful.

I have no other ideas for the momment, but I just think that it could be 
really nice to open the possibility on developing easily applications 
for sensor networks using .NET, but just using a .NET version of the 
tinyos.jar.

If anyone of you knows anything related to, or could give any clue.. 
please tell me, Thank you very much again, and thanks Urs, Ill continue 
searching other debug application as you suggested me.

Regards.

Urs Hunkeler escribió:
> Hi Javier,
>
> I have no experience with .NET, but I wouldn't be surprised if IKVM 
> has a problem with the Java native library used by TinyOS. As Java 
> does not natively have an interface for accessing the serial port, 
> this functionality is implemented in TinyOS in native code (written in 
> C and loaded at run-time as a shared library). It is possible that 
> IKVM has problems loading this library.
>
> Do you have a tool like strace to debug system calls?
>
> Cheers,
> Urs
>
> Javier Barbarán wrote:
>>
>> 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
>
> __________ NOD32 3906 (20090303) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>

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

Reply via email to