[Tinyos-help] destpan field in TOSMsg header

Bor-rong Chen brchen at eecs.harvard.edu
Tue Aug 8 12:17:20 PDT 2006


Hi

Has anyone seen destpan field in TOSMsg being something other than 65535 
(0xffff)?

 From packets logged from one of our application by a modified version 
of TOSBase, I'm seeing some packets with pMsg->destpan set to various 
values. Many of them have 255 (0xff00), others having rather random 
values such as 58082, 21967, 19936 ...

I'm running TinyOS 1.1.15 and this network has both MicaZ and TmoteSky 
motes.

As far as I can tell, pMsg->destpan is only set in 
tos/lib/CC2420Radio/CC2420RadioM.nc and is always set to TOS_BCAST_ADDR 
in Send.send():

      // destination PAN is broadcast
      pMsg->destpan = TOS_BCAST_ADDR;

Ideally this value should always be TOS_BCAST_ADDR (0xffff) but for some 
reason it is not the case when I try to diagnose our network with 
TOSBase. Has anyone seen this before? Any idea what is causing this?

-Bor-rong


More information about the Tinyos-help mailing list