It's possible that you are trying to receive micaz formated TOS_Msgs rather than mica2/UART. Without mods TOSBase translates Z to 2 when passing messages through the serial line, Framer.nc is the culprit. See if anything makes sense when you use platform/micaz/AM.h instead of types/AM.h (the default version). I had trouble with this towards the end of last year so you may find more elucidation by searching back on the help list.
MS Edgardo Avilés López wrote:
Hi, I'm writting an applicacion to receive data from the motes and also to send a brodcast to them. I using micaz motes with the GenericCommPromiscuous and with MultiHopRouter. And also I have generated the java files with MIG. The first problem I had was that the data extracted of the packets beeing received by SerialForwarder was wrong. I look at the full hexadecimal print and I noticed about extra 7 bytes at the left of the payload (it seems to have data of the multihop because other motes than 0 put data in it), so I edited the mig generated java file to add a 7 bytes offset to the "offset_get" functions and it worked just fine. The problem that I have now, is on sending the broadcast. I'm using the original generated "command message" java file, but it seems to have the same problem on decoding the message (the broadcast gets received, I turn on a led on receiving). I put the UARTComm component to check an it understands the packets without problem (just on the mote 0). What I can do to success on broadcasting messages to the network? Perhaps a problem with MIG or SerialForwarder? Thanks in advance. Edgardo Avilés López _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
