Hi I'm Pablo Iturralde.
I'm working with tinyos 2 and windows XP, with tmote sky motes.

I have troubles with the serial AM packet  length. I define a 40 bytes long 
serial packet that I send trough a java interface. The problem is that in the 
mote when it received the packet, the length of the packet is 40 but the length 
of the received packet is 37 so doesn't match.
event message_t* Receive.receive(message_t* bufPtr,void* payload, uint8_t len)
 {
        //len = 37  &&  sizeof(bsg_config_msg_t) = 40
        if (len != sizeof(bsg_config_msg_t))
       {
           return bufPtr;
       }
       else{}
}

What is problem with the serial AM packet size ???
Thanks in advance
Pablo.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to