hi...
we are developing our own code based on ZASA application, our code works well but we don't figure out how to configure a coordinator device using only SAPI, reading and following the source code w conclude:
1- configure hardware interface (ours works O.K.)
2- send poll command (after reset, cc2480 answers: 0x06-0x41-0x80-0x01- etc... wich is a SYS_RESET_IND, )
3- if a SYS_RESET_IND command received, init profile registration, then ZCD_STARTOPT_CLEAR_CONFIG write comand register ZCD_NV_STARTUP_OPTION
4- again CC2480 sends a SYS_RESET_IND and then again profile registration, now program ZACCEL_NV_PANID in ZCD_NV_STARTUP_OPTION, and ZACCEL_NV_CHANLIST in ZCD_NV_STARTUP_OPTION
5- send a ZB_START_REQUEST command to start stack: by the way... data sheet says this command is 0x00-0x26-0x00, but ZASA use
uint8 val = (ZCD_STARTOPT_RESTORE_STATE | ZCD_STARTOPT_AUTO_START);
zb_WriteConfiguration(ZCD_NV_STARTUP_OPTION, 1, &val);
zb_SystemReset();
6- ZB_START_CONFIRM will be isued by CC2480 when stack is running (we receive confrmation ok)
in this stage, if we start other module and configure it as router ( button once), it sometimes starts as router, but not always...
iare these steps right? or we are doing something or all wrong?
where we could find specific information about coordinator configuration?
we are using the demokit CC2480 and our own firmware based on ZASA...
thx in advance...