Hi,

I am using MDA320 sensor board and MICA2 motes with XMDA320M.nc code. How can I 
stop the code from sampling  some ports?
For instance If I dont want values from all digital ports and the battery value.
I actually tried this. I commented the function call : as shown below.(this is 
a typical function call in the code)

record[18] = call Sample.getSample(1,DIGITAL,DIGITAL_SAMPLING_TIME,DIG_LOGIC | 
EVENT);

And as the IF condition I used the following:

if (msg_status == 0x0f ) {
                 msg_status = 0;
                 post send_radio_msg();
                }
which previously was

if (msg_status == pkt_full) {
         msg_status = 0;
         post send_radio_msg();
        } 

where pkt_full =0x1ff which corresponds to all the ports


But for some reason no message is received.

thanks,
HR

       
---------------------------------
 Now you can chat without downloading messenger. Click here to know how.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to