Hi, everybody!
I use the z-stack on CC2530 chip.
The end-device transmits data to the coordinator in the same network. I want to get the srcAddr.addr.extAddr of afIncomingMSGPacket_t type from the incomming data,
but the extAddr don't match with the Primary IEEE address that i see at the SmartRF Flash Programmer.
I understand Z-stack to get the IEEE address mechanism from Z-Stack User's Guide - CC2530DB, then modify the zmain_ext_addr function in the AF.c.
static void zmain_ext_addr(void)
{
//directly read Primary IEEE address
osal_memcpy(aExtendedAddress, (uint8 *)(P_INFOPAGE+HAL_INFOP_IEEE_OSET), Z_EXTADDR_LEN);
(void)ZMacSetReq(MAC_EXTENDED_ADDRESS, aExtendedAddress);
}
So, i want to ask why the extAddr in incoming packet don't match with the Primary IEEE address.