Hi,

I have developed an application for T2 along with simple Java tools that output formatted message contents. For the single-hop case (just broadcasting messages), the Java tools work fine - they identify that messages are of my defined type (called RadioMsg, in this case) and the messageReceived function is called.

When I switched to the multihop case (using Collection, included with beta 2), I modified BaseStation to be a root of the Collection tree. I expected to have to modify the Java tools (as was the case with MintRoute/MultiHopLQI in tinyos-1.x) to remove the routing protocol headers from the received packets. However, looking at the Java tools for Oscilloscope and MultihopOscilloscope, they are identical - no change is made from the single hop to multihop case. When I run the Java tools for my application with multihop, the messageReceived function is no longer running, meaning that messageListener doesn't recognize the AM type of incoming messages. I can tell the BaseStation node is receiving the messages, though, as Listen registers the correct amount of packets and the packet structure looks the same (save for what is presumably the Collection header within the packet). Here are sample packet traces:

Single hop case
00 FF FF FF FF 12 00 4C C0 00 00 01 00 1E 33 30 3A 20 66 3D 30 2C 62 3D 39 00

Multihop case
00 FF FE FE FF 19 00 14 00 00 01 1E 4C 00 00 C0 00 00 01 00 1E 33 30 3A 20 66 3D 30 2C 62 3D 39 00

I am using AM type 4C (76 decimal). The payload for my application starts at "33" and is identical in these two packets. I had initially used the wrong interface commands to place the payload (wasn't using the Collection send, but rather the single hop send), but I have fixed that and the payload appears to be placed correctly in the multihop packets.

Anyone know what may be wrong here? I mirrored the MultihopOscilloscope Java app in creating my own, but still was not successful - I even just changed the names of the classes used in the Oscilloscope Java app, but the MessageListener simply isn't registering that packets of that type are being received.

Thanks.

-jay
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to