Hi, I have done the same experiment, and did not run into your problem.
My TinyOS version is 2.x, which was updated from CVS last week. I do not modify the BlinkToRadio code, then use Listen tools to verify the result. Maybe you should update your BlinkToRadio, not modify the source code and run net.tinyos.tools.Listen to see the result. Wish you good luck! Regards, Lizhao 2009/5/10 Miguel Torres <[email protected]> > Hi, > > I'm trying to use in the same network iris and telosb nodes but have > some problems with the structure of messages between the different > nodes. > The tinyos version is 2.x from cvs 05/06/2009 . > > I have in one side the BlinkToRadio app and in the other side the > BaseStation app. > In both Makefiles I add > PFLAGS+=-DRF230_DEF_CHANNEL=26 > PFLAGS+=-DCC2420_DEF_CHANNEL=26 > In the BlinkToRadio App add the procedures to mig generate the java > information about the message (BlinkToRadioMsg.java) > > I try to make some experiences and here are the results. > > 1.BlinkToRadio Telosb and BaseStation Telosb > > net.tinyos.tools.Listen > java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:telosb > 00 FF FF 00 01 04 00 06 00 01 00 01 > 00 FF FF 00 01 04 00 06 00 01 00 02 > 00 FF FF 00 01 04 00 06 00 01 00 03 > 00 FF FF 00 01 04 00 06 00 01 00 04 > 00 FF FF 00 01 04 00 06 00 01 00 05 > > net.tinyos.tools.MsgReader > java net.tinyos.tools.MsgReader BlinkToRadioMsg -comm serial@ > /dev/ttyUSB0:telosb > 1241884167654: Message <BlinkToRadioMsg> > [nodeid=0x1] > [counter=0x1] > > 1241884167889: Message <BlinkToRadioMsg> > [nodeid=0x1] > [counter=0x2] > > 1241884168129: Message <BlinkToRadioMsg> > [nodeid=0x1] > [counter=0x3] > > 1241884168384: Message <BlinkToRadioMsg> > [nodeid=0x1] > [counter=0x4] > > 1241884168624: Message <BlinkToRadioMsg> > [nodeid=0x1] > [counter=0x5] > > 1.BlinkToRadio Iris and BaseStation Iris > The idnode is 1 and not 100 as the Listen and MsgReader read the packets. > The id appears to be switched to the higher part of the 2 bytes. > > net.tinyos.tools.Listen > java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB1:iris > 00 FF FF 00 01 04 00 06 01 00 01 90 > 00 FF FF 00 01 04 00 06 01 00 02 00 > 00 FF FF 00 01 04 00 06 01 00 03 00 > 00 FF FF 00 01 04 00 06 01 00 04 00 > 00 FF FF 00 01 04 00 06 01 00 05 00 > > net.tinyos.tools.MsgReader > java net.tinyos.tools.MsgReader BlinkToRadioMsg -comm serial@ > /dev/ttyUSB1:iris > 1241884304571: Message <BlinkToRadioMsg> > [nodeid=0x100] > [counter=0x151] > > 1241884305063: Message <BlinkToRadioMsg> > [nodeid=0x100] > [counter=0x395] > > 1241884305303: Message <BlinkToRadioMsg> > [nodeid=0x100] > [counter=0x400] > > 1241884305543: Message <BlinkToRadioMsg> > [nodeid=0x100] > [counter=0x500] > > 1241884305799: Message <BlinkToRadioMsg> > [nodeid=0x100] > [counter=0x66d] > > > 3.BlinkToRadio Iris and BaseStation Telosb > In this case, telosb appears to get less information because the > packet have length > > net.tinyos.tools.Listen > java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:telosb > 00 FF FF 00 01 03 00 06 01 00 01 > 00 FF FF 00 01 03 00 06 01 00 02 > 00 FF FF 00 01 03 00 06 01 00 03 > 00 FF FF 00 01 03 00 06 01 00 04 > 00 FF FF 00 01 03 00 06 01 00 05 > 00 FF FF 00 01 03 00 06 01 00 06 > 00 FF FF 00 01 03 00 06 01 00 07 > 00 FF FF 00 01 03 00 06 01 00 08 > 00 FF FF 00 01 03 00 06 01 00 09 > > net.tinyos.tools.MsgReader > java net.tinyos.tools.MsgReader BlinkToRadioMsg -comm serial@ > /dev/ttyUSB0:telosb > receive error for BlinkToRadioMsg (AM type 6): invalid length message > received (too short) > receive error for BlinkToRadioMsg (AM type 6): invalid length message > received (too short) > receive error for BlinkToRadioMsg (AM type 6): invalid length message > received (too short) > receive error for BlinkToRadioMsg (AM type 6): invalid length message > received (too short) > > > 3.BlinkToRadio Telsob and BaseStation Iris > Here the length information is marked as 5. > > net.tinyos.tools.Listen > java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB1:iris > 00 FF FF 00 01 05 00 06 00 01 00 02 96 > 00 FF FF 00 01 05 00 06 00 01 00 03 00 > 00 FF FF 00 01 05 00 06 00 01 00 04 00 > 00 FF FF 00 01 05 00 06 00 01 00 05 DE > 00 FF FF 00 01 05 00 06 00 01 00 07 00 > 00 FF FF 00 01 05 00 06 00 01 00 08 00 > > net.tinyos.tools.MsgReader > java net.tinyos.tools.MsgReader BlinkToRadioMsg -comm serial@ > /dev/ttyUSB1:iris > 1241884674634: Message <BlinkToRadioMsg> > [nodeid=0x1] > [counter=0x2] > > 1241884674870: Message <BlinkToRadioMsg> > [nodeid=0x1] > [counter=0x3] > > 1241884675111: Message <BlinkToRadioMsg> > [nodeid=0x1] > [counter=0x4] > > 1241884675366: Message <BlinkToRadioMsg> > [nodeid=0x1] > [counter=0x5] > > 1241884675607: Message <BlinkToRadioMsg> > [nodeid=0x1] > [counter=0x6] > > I hope this info is useful for somebody to help me with this. > > Best regards, > Miguel Silva > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Lizhao You Undergraduate Student of GPS Group Department of Computer Science and Technology, Nanjing University Nanjing, Jiangsu, 210093 China PR.
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
