Give an adress mc13213

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Give an adress mc13213

1,122 Views
Nicolas_martel
Contributor I
Hello,
I try to communicate between 1 ncb(coordinator) and 1 srb(router). I want to use direct adress (16bits) for that.
 
I define that in beekit :
#define for property: mDefaultNwkShortAddress_c  => 0x1111 for the ncb.
and that
#define for property: mDefaultNwkShortAddress_c  =>0x2222 for the srb.
 
I write that in codewarrior (ncb):
adress[0] = 0x22;
adress[1] = 0x22;
 /* set up address information */
 addrInfo.dstAddrMode = gZbAddrMode16Bit_c;
  Copy2Bytes(addrInfo.dstAddr.aNwkAddr, adress);
  addrInfo.dstEndPoint = 0x02;
  addrInfo.srcEndPoint = 0x02;
  addrInfo.txOptions = gApsTxOptionNone_c;
  addrInfo.radiusCounter = afDefaultRadius_c;
  /* set up cluster */
  Copy2Bytes(addrInfo.aClusterId, appDataCluster);
 
Why It don't work, I don't receive data in the srb.
Do you help me please?
 
Nicolas
Labels (1)
0 Kudos
2 Replies

300 Views
Nicolas_martel
Contributor I
Is it possible to send direct data from a coordinator to a router (coordinator --> router) with short adressing mode?
If yes, how do I configure the end-device?
0 Kudos

300 Views
Mads
Contributor V
Hi _Nicolas,
 
There is not really something called a router in 802.15.4. there is coordinators(Full function devices) and end devices(Reduced function devices) So a router is a Coordinator :smileyhappy:
 
So in order to setup two FFD devices you just need to do what the coordinator application examples does, setup the destination address and make sure the Indirect option is not set:
 
      mpPacket->msgData.dataReq.txOptions = gTxOptsAck_c | gTxOptsIndirect_c;
 
(remove the gTxOptsIndirect_c)
 
BR,
Mads
 
 
 
0 Kudos