Re: [Tinyos-help] need your help

2009-03-08 Thread Urs Hunkeler
Hi Mohamed, Please send your questions to the mailing list so that others can profit, too. Also I think you should read the tutorials, as many of your questions are answered there. 1. If you turn the radio off with SplitControl, then the mote will not receive anything. The idea of my suggestio

Re: [Tinyos-help] low level compilation questions

2009-03-08 Thread Urs Hunkeler
Hi Bai, NesC simply compiles the code into C code. After you compile your application, you can have a look at it in the subdirectory build//app.c (eg. build/telosb/app.c). Most likely it doesn't optimize anything. The actual optimization for the binary code would then be done by the platform's

Re: [Tinyos-help] passing array in command

2009-03-08 Thread BAI LI
HI, Sorry i misunderstood it. It worked now. Thanks for your help. Regards, Bai On Mon, Mar 9, 2009 at 12:28 PM, BAI LI wrote: > Hi, > > Yes, I know. > > But in the command defination, I put uint8_t message_array[4], not uint8_t > *message_array as the passing parameter. therefore I am suppose

[Tinyos-help] low level compilation questions

2009-03-08 Thread BAI LI
Hi, I am just wondering how NesC compiler optimizes the computation for a*a and a % n. Could you point out some references I can have a look at please? Thanks in advance. Regards, Bai ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu http

Re: [Tinyos-help] imote2 on Mac

2009-03-08 Thread Thiago Teixeira
You need to cross-compile GCC and friends, like this: http://www.eecs.harvard.edu/~konrad/projects/imote2Camera/IMote2-Installation-Instructions.html Then don't forget to save the binaries, so you don't have to re-compile everything for every new machine you use. - Thiago Mohammad Sajjad Hossai

Re: [Tinyos-help] passing array in command

2009-03-08 Thread BAI LI
Hi, Yes, I know. But in the command defination, I put uint8_t message_array[4], not uint8_t *message_array as the passing parameter. therefore I am supposed to call the command with the same type of parameter, but if i use x[4], it pops up that warning. if I only use x, there is no warning. What

Re: [Tinyos-help] passing array in command

2009-03-08 Thread Allan McInnes
The argument declaration ..., uint8_t message_array[4], ... is equivalent to ..., uint8_t* message_array, ... So comments that Roy and I previously made still apply. You can get more info from the C FAQ: http://c-faq.com/aryptr/aryptrparam.html Cheers, Allan On 9/03/2009, at 2

Re: [Tinyos-help] passing array in command

2009-03-08 Thread BAI LI
Hi, sorry I was trying to make the code easy understanding. The code is like the following. I am trying to manipulating some hash code. I didn't use the point structure for array x[]; sha1.h file= typedef struct SHA1Context { uint32_t Message_Digest[5]; /* Message Digest (outp

Re: [Tinyos-help] passing array in command

2009-03-08 Thread Roy Shea
Howdy, > uint8_t array[4]={0x11,0x22,0x33,0x44}; > ... > call abc(x[4]); > > I got the warning: > > warning: passing argument 2 of `abc' makes pointer from integer without a cast Not sure why it is referring to argument 2. Was the above warning produced by the sample code you posted? The code y

Re: [Tinyos-help] passing array in command

2009-03-08 Thread Allan McInnes
Without seeing the function declarations you're using, it's hard to be certain what the problem is. That said, here's my guess as to what's going on. If your command 'abc' is declared as something like command uint8_t abc(uint8_t* array) and you declare an array uint8_t x[4] =

[Tinyos-help] passing array in command

2009-03-08 Thread BAI LI
Hi, I know it may sound like a very simple problem but I am totally confused. I have an array here: uint8_t array[4]={0x11,0x22,0x33,0x44}; when I pass this array in the command I called. I got some warning. I can't understand it. call abc(x[4]); I got the warning: warning: passing argument

Re: [Tinyos-help] Creating a jar file for a java TinyOS application

2009-03-08 Thread Michael Schippling
I don't know from linux, but in the good old unix days you had to make sure you were running in real RAW mode such that the driver didn't try to help by mapping some characters to others. MS Rodrigo Souza Granja wrote: > Thanks for the answer, it worked fine. :) > > I got another problem: i'm ru

Re: [Tinyos-help] Creating a jar file for a java TinyOS application

2009-03-08 Thread Rodrigo Souza Granja
Thanks for the answer, it worked fine. :) I got another problem: i'm running my jar file in a linux machine and i got a lot of bad packets in almost all packets that come from the UART, but have no problems with the packets that go from uart to the mote. And in windows i got no problems at all. I

Re: [Tinyos-help] IRIS 2.4GHz default MAC in TinyOS 2.1

2009-03-08 Thread Miklos Maroti
Hi Joao, On Sun, Mar 8, 2009 at 4:22 PM, João Paulo Amaro da Costa Luz Carneiro wrote: > Hi, > > Can someone tell me what is the IRIS 2.4GHz default MAC protocol in > TinyOS 2.1? > B-MAC or some combination of protocols? It is B-MAC and tries to be completely compatible with the cc2420 timings.

[Tinyos-help] IRIS 2.4GHz default MAC in TinyOS 2.1

2009-03-08 Thread João Paulo Amaro da Costa Luz Carneiro
Hi, Can someone tell me what is the IRIS 2.4GHz default MAC protocol in TinyOS 2.1? B-MAC or some combination of protocols? Thanks and regards, Joao ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/c

Re: [Tinyos-help] usb communication stack

2009-03-08 Thread Urs Hunkeler
Hi Alfred, What kind of motes do you have? The TelosB type of motes have internally a USB<->Serial converter and can be addressed as any other serial device (if the right drivers are installed). The tutorial might give more details: http://docs.tinyos.net/index.php/Mote-PC_serial_communication_a

[Tinyos-help] usb communication stack

2009-03-08 Thread Alfred NOBEL
Hi all! how could I have mote to pc data exchange with an usb interface? Thanks -- Best regards, Alfred.Nooobel ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help