This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2538: PANID and extendedPANID manipulation

Part Number: CC2538

I found that I comment out the ZMacGetReq( ZMacExtAddr, zgExtendedPANID ) in zgInit( void ) and then try to assign my own EPID in zgExtendedPANID, but it does not work. The beacon still shows the EPID as the MAC address. I just assigned the zgExtendedPANID as below,

  //ZMacGetReq( ZMacExtAddr, zgExtendedPANID );
  zgExtendedPANID[0]=0x5B;
  zgExtendedPANID[1]=0x2C;
  zgExtendedPANID[2]=0x2C;
  zgExtendedPANID[3]=0xFA;
  zgExtendedPANID[4]=0x57;
  zgExtendedPANID[5]=0x75;
  zgExtendedPANID[6]=0x5D;
  zgExtendedPANID[7]=0x12;

Is there something wrong with my code?

Best Regards

  Xian Wang