hi,
is there any method to deploy multihop network using 5 iris motes without
using multihoposcilloscope and testnetwork application? e.g i have 5 iris
motes with nodeid 1, 2, 3, 4 and 0.
now i want to send data from node 4 to node 0, i have written like this:
// to setup two layers
event void Boot.booted() {
        local.nodeid = TOS_NODE_ID;
        if (local.nodeid >= 1 || local.nodeid < 3)
                local.layer = 1;
        if (local.nodeid >= 3 || local.nodeid < 5)
                local.layer = 2;
         call SerialControl.start();
}


if ((local.layer == 2) && (local.nodeid >= 3 || local.nodeid < 5))
        {
                if (call RadioSend.send(1, &packet, sizeof(New_Msg_t)) != 
SUCCESS) 
                {
                        if (call RadioSend.send(2, &packet, sizeof(New_Msg_t)) 
!= SUCCESS)
                        {
                         call Leds.led0On();
                        }
                }
 else {
      sendBusy = TRUE;
          seqno++; 
          if (seqno == 51){
          call Timer0.stop();
          }
          }
        }
        
 if ((local.layer == 1) && (local.nodeid >= 1 || local.nodeid < 3))
        {
        if (call RadioSend.send(0, &packet, sizeof(New_Msg_t)) != SUCCESS)
                call Leds.led0On();
        else {
      sendBusy = TRUE;
          seqno++; 
          if (seqno == 51){
          call Timer0.stop();
          }
          }

i don't know what is going wrong.. there is no error while make iris But
even using base station application at the mote connected to PC, using
Listen command i don't get any messages. please someone correct me.
-- 
View this message in context: 
http://old.nabble.com/is-there-any-other-way-to-perform-multihopping-without-using-multihoposcilloscope-and-testnetwork-application-tp34138825p34138825.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

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

Reply via email to