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.

CC2530 Start Commissioning status Not Network

Other Parts Discussed in Thread: Z-STACK, CC2530, CC2592, CC2590, CC2591

Hello!

I tried to setup a zigbee network many times with 1 ZC and 1 Zouter, as instructed by Mr Yikai Chen. But go to add a router to the coordinator's network with the command APP_CNF_BDB_START_COMMISSIONING (0x2F05)
    CommissioningMode: (0x02) Network Steering (0x2)
although I have the chanel set of Coordinator and the router is the same. but I still get back the response from RX
<RX> 12: 04: 20.2 COM17 APP_CNF_BDB_START_COMMISSIONING_SRSP (0x6F05)
    Status: SUCCESS (0x0)

<RX> 12: 04: 20.2 COM17 ZDO_STATE_CHANGE_IND (0x45C0)
    State: INVALID_PARAMETER (0x2)

<RX> 12: 04: 20.2 COM17 APP_CNF_BDB_COMMISSIONING_NOTIFICATION (0x4F80)
    Status: 1 (0x1)
    Commissioning Mode: 0x01 (Network Steering) (0x1)
    Commissioning Mode: 0x02 (Network Steering) (0x2)

<RX> 12: 04: 20.49 COM17 ZDO_STATE_CHANGE_IND (0x45C0)
    State: SUCCESS (0x0)

<RX> 12:04: 20.49 COM17 APP_CNF_BDB_COMMISSIONING_NOTIFICATION (0x4F80)
    Status: 0x02 (No Network) (0x2)
    Commissioning Mode: 0x01 (Network Steering) (0x1)
    Commissioning Mode: 0 (0x0)

What do I have to do to fix the error.? 

Thanks you!

  • Try to erase your chip and download ZNP to test from scratch again. Make sure you follow every step exactly.
  • thank you, Yikai Chen

    I noticed a problem in f8wConfig.cfg
    about Default_ChaneList I noticed that the 13th channel is disabled, do I have to fix it?

  • You don’t need to change this in ZNP source code. You should assign primary channel from ZTool.
  • I erase mychip and download ZNP. But No netWork problem is still not resolved. when GET_ULTIL_DEIVCE_INFO of Router
    <RX> 04: 18: 21.84 COM18 UTIL_GET_DEVICE_INFO_RESPONSE (0x6700)
         Status: SUCCESS (0x0)
         IEEEAddr: 0x00124B0015AB36B6
         ShortAddress: 0xFFFE
         DeviceType: COORDINATOR, ROUTER, END_DEVICE (0x7)
         DeviceState: DEV_HOLD (0x0)
         NumAssocDevices: 0x00
         AssocDevicesList

    DeviceType is DEV_HOLD (0x0). I don't think the problem is here
    and UTIL_GET_NV_INFO -> scanchannels of coordinator and router are NONE (0x0)
    <TX> 04: 22: 51.66 COM18 UTIL_GET_NV_INFO (0x2701)

    <RX> 04: 22: 51.74 COM18 UTIL_GET_NV_INFO_RESPONSE (0x6701)
         Status: 8 (0x8)
         IEEEAddress: 0x00124B0015AB36B6
         ScanChannels: NONE (0x0)
         PanID: 0x0000
         SecurityLevel: 0x20
  • I read some articles on the forum. Is there any problem with NV_RESTORE and NV_INIT lead to DeviceState is DEV_HOLD
  • DEV_HOLD means you don’t start BDB commission successfully.
  • so the sequence process with this router is correct or wrong Mr.YiKai Chen please check it for me, Thanks you, Yikai Chen!

    First I reset for ZNP

    <RX>04:07:53.71 COM18 SYS_RESET_RESPONSE (0x4180)
    Reason: 0x02
    TransportRev: 0x02
    Product: 0x00
    MajorRel: 0x02
    MinorRel: 0x07
    HwRev: 0x02

    Then, I Clear NV_START_UP

    <TX>04:11:00.48 COM18 SYS_OSAL_NV_WRITE (0x2109)

    Id: 0x0003
    Offset: 0x00
    Len: 0x01
    Value: . (0x01)

    Then, I WRITE_LOGICAL_TYPE

    <TX>04:15:51.9 COM18 SYS_OSAL_NV_WRITE (0x2109)
    Id: 0x0087
    Offset: 0x00
    Len: 0x01
    Value: . (0x01)

    Then, Set chanel 13 cho Router

    After, Start_bdb_commissioning 

    <TX>04:17:04.78 COM18 APP_CNF_BDB_START_COMMISSIONING (0x2F05)
    CommissioningMode: (0x02) Network Steering (0x2)

     

  • I don’t see you use APP_CNF_BDB_SET_CHANNEL to set primary channel for your router.
  • I have set the chanel for both the secondary chanel and the primary chanel as tutorial of you, but the problem is not resolved. Can you give me some guidance on this error? How can I determine the error.
    Thanks you, Yikai Chen
  • I don’t see the same issue as I test the same steps. I suggest you to use sniffer to check what happens over the air.
  • Hi,

    Please provide Z-Tool logs for both ZC and ZR of the steps you take from the beginning.

    Also, please specify which Z-Stack you are using.



    Regards,
    Toby
  • Thanks you for reply!

    I try to setup a zigbee network and this is my log from the z-tool

    <TX>04:01:02.71 COM17 SYS_OSAL_NV_WRITE (0x2109)
        Id: 0x0003
        Offset: 0x00
        Len: 0x01
        Value: . (0x03)
    
    <RX>04:01:02.72 COM17 SYS_OSAL_NV_WRITE_SRSP (0x6109)
        Status: SUCCESS (0x0)
    
    <TX>04:01:09.74 COM17 SYS_RESET (0x4100)
        Type: 0x00 (HARD RESET) (0x0)
    
    <RX>04:01:12.23 COM17 SYS_RESET_RESPONSE (0x4180)
        Reason: 0x02
        TransportRev: 0x02
        Product: 0x00
        MajorRel: 0x02
        MinorRel: 0x07
        HwRev: 0x02
    
    <TX>04:01:43.26 COM17 SYS_OSAL_NV_WRITE (0x2109)
        Id: 0x0087
        Offset: 0x00
        Len: 0x01
        Value: . (0x01)
    
    <RX>04:01:43.3 COM17 SYS_OSAL_NV_WRITE_SRSP (0x6109)
        Status: SUCCESS (0x0)
    
    <TX>04:01:59.63 COM17 APP_CNF_BDB_SET_CHANNEL (0x2F08)
        isPrimary: TRUE (0x1)
        Channel: CHNL_0x00002000 (0x2000)
    
    <RX>04:01:59.65 COM17 APP_CNF_BDB_SET_CHANNEL_SRSP (0x6F08)
        Status: SUCCESS (0x0)
    
    <TX>04:02:05.33 COM17 APP_CNF_BDB_SET_CHANNEL (0x2F08)
        isPrimary: FALSE (0x0)
        Channel: NONE (0x0)
    
    <RX>04:02:05.35 COM17 APP_CNF_BDB_SET_CHANNEL_SRSP (0x6F08)
        Status: SUCCESS (0x0)
    
    <TX>04:03:41.98 COM17 APP_CNF_BDB_START_COMMISSIONING (0x2F05)
        CommissioningMode: (0x02) Network Steering (0x2)
    
    <RX>04:03:43.6 COM17 APP_CNF_BDB_START_COMMISSIONING_SRSP (0x6F05)
        Status: SUCCESS (0x0)
    
    <RX>04:03:43.6 COM17 ZDO_STATE_CHANGE_IND (0x45C0)
        State: INVALID_PARAMETER (0x2)
    
    <RX>04:03:43.62 COM17 APP_CNF_BDB_COMMISSIONING_NOTIFICATION (0x4F80)
        Status: 1 (0x1)
        Commissioning Mode: 0x01 (Network Steering) (0x1)
        Commissioning Mode: 0x02 (Network Steering) (0x2)
    
    <RX>04:03:43.92 COM17 ZDO_STATE_CHANGE_IND (0x45C0)
        State: SUCCESS (0x0)
    
    <RX>04:03:43.93 COM17 APP_CNF_BDB_COMMISSIONING_NOTIFICATION (0x4F80)
        Status: 0x02 (No Network) (0x2)
        Commissioning Mode: 0x01 (Network Steering) (0x1)
        Commissioning Mode: 0 (0x0)
    

  • This is coordinator log

    <TX>03:58:56.23 COM23 SYS_OSAL_NV_WRITE (0x2109)
        Id: 0x0003
        Offset: 0x00
        Len: 0x01
        Value: . (0x03)
    
    <RX>03:58:56.26 COM23 SYS_OSAL_NV_WRITE_SRSP (0x6109)
        Status: SUCCESS (0x0)
    
    <TX>03:59:08.54 COM23 SYS_RESET (0x4100)
        Type: 0x00 (HARD RESET) (0x0)
    
    <RX>03:59:11.14 COM23 SYS_RESET_RESPONSE (0x4180)
        Reason: 0x02
        TransportRev: 0x02
        Product: 0x00
        MajorRel: 0x02
        MinorRel: 0x07
        HwRev: 0x02
    
    <TX>03:59:19.91 COM23 SYS_OSAL_NV_WRITE (0x2109)
        Id: 0x0087
        Offset: 0x00
        Len: 0x01
        Value: . (0x00)
    
    <RX>03:59:19.94 COM23 SYS_OSAL_NV_WRITE_SRSP (0x6109)
        Status: SUCCESS (0x0)
    
    <TX>03:59:34.35 COM23 APP_CNF_BDB_SET_CHANNEL (0x2F08)
        isPrimary: TRUE (0x1)
        Channel: CHNL_0x00002000 (0x2000)
    
    <RX>03:59:34.35 COM23 APP_CNF_BDB_SET_CHANNEL_SRSP (0x6F08)
        Status: SUCCESS (0x0)
    
    <TX>03:59:41.3 COM23 APP_CNF_BDB_SET_CHANNEL (0x2F08)
        isPrimary: FALSE (0x0)
        Channel: NONE (0x0)
    
    <RX>03:59:41.3 COM23 APP_CNF_BDB_SET_CHANNEL_SRSP (0x6F08)
        Status: SUCCESS (0x0)
    
    <TX>03:59:49.25 COM23 APP_CNF_BDB_START_COMMISSIONING (0x2F05)
        CommissioningMode: (0x04) Network Formation (0x4)
    
    <RX>03:59:50.91 COM23 APP_CNF_BDB_START_COMMISSIONING_SRSP (0x6F05)
        Status: SUCCESS (0x0)
    
    <RX>03:59:50.92 COM23 ZDO_STATE_CHANGE_IND (0x45C0)
        State: 8 (0x8)
    
    <RX>03:59:50.93 COM23 APP_CNF_BDB_COMMISSIONING_NOTIFICATION (0x4F80)
        Status: 1 (0x1)
        Commissioning Mode: 0x02 (Formation) (0x2)
        Commissioning Mode: 0x04 (Network Formation) (0x4)
    
    <RX>03:59:51.18 COM23 ZDO_STATE_CHANGE_IND (0x45C0)
        State: 8 (0x8)
    
    <RX>03:59:51.45 COM23 ZDO_STATE_CHANGE_IND (0x45C0)
        State: 8 (0x8)
    
    <RX>03:59:51.73 COM23 ZDO_STATE_CHANGE_IND (0x45C0)
        State: 8 (0x8)
    
    <RX>03:59:51.98 COM23 ZDO_STATE_CHANGE_IND (0x45C0)
        State: 8 (0x8)
    
    <RX>03:59:52.24 COM23 ZDO_STATE_CHANGE_IND (0x45C0)
        State: 8 (0x8)
    
    <RX>04:00:14.05 COM23 ZDO_STATE_CHANGE_IND (0x45C0)
        State: 9 (0x9)
    
    <RX>04:00:14.05 COM23 APP_CNF_BDB_COMMISSIONING_NOTIFICATION (0x4F80)
        Status: 0x00 (Success) (0x0)
        Commissioning Mode: 0x02 (Formation) (0x2)
        Commissioning Mode: 0 (0x0)
    
    <TX>04:02:43.87 COM23 SYS_OSAL_NV_WRITE (0x2109)
        Id: 0x008F
        Offset: 0x00
        Len: 0x01
        Value: . (0x01)
    
    <RX>04:02:43.88 COM23 SYS_OSAL_NV_WRITE_SRSP (0x6109)
        Status: SUCCESS (0x0)
    
    <TX>04:02:55.91 COM23 APP_CNF_BDB_START_COMMISSIONING (0x2F05)
        CommissioningMode: (0x02) Network Steering (0x2)
    
    <RX>04:02:55.92 COM23 APP_CNF_BDB_START_COMMISSIONING_SRSP (0x6F05)
        Status: SUCCESS (0x0)
    
    <RX>04:02:55.93 COM23 ZDO_MGMT_PERMIT_JOIN_RSP (0x45B6)
        SrcAddr: 0x0000
        Status: ZDP_SUCCESS (0x0)
    
    <RX>04:02:55.93 COM23 APP_CNF_BDB_COMMISSIONING_NOTIFICATION (0x4F80)
        Status: 0x00 (Success) (0x0)
        Commissioning Mode: 0x01 (Network Steering) (0x1)
        Commissioning Mode: 0 (0x0)
    

  • snipffer on air check of me

    Can you see if my network is having problems? Thanks you, Yikai Chen

    zigbeesetup.rar

  • Can you use UTIL_GET_DEVICE_INFO to get your coordinator status?
  • <TX>04:42:34.33 COM23 UTIL_GET_DEVICE_INFO (0x2700)

    <RX>04:42:34.34 COM23 UTIL_GET_DEVICE_INFO_RESPONSE (0x6700)
    Status: SUCCESS (0x0)
    IEEEAddr: 0x00124B0015AB36B6
    ShortAddress: 0x0000
    DeviceType: COORDINATOR, ROUTER, END_DEVICE (0x7)
    DeviceState: DEV_ZB_COORD (0x9)
    NumAssocDevices: 0x00
    AssocDevicesList

    ==> STATUS OF COORDINATOR
  • I think the main cause of the problem is here
    I cannot START_COMMISSIONING on router.Device state always DEV_HOLD

    <TX> 04: 45: 11.25 COM17 UTIL_GET_DEVICE_INFO (0x2700)

    <RX> 04: 45: 11.27 COM17 UTIL_GET_DEVICE_INFO_RESPONSE (0x6700)
         Status: SUCCESS (0x0)
         IEEEAddr: 0x00124B0015AB4466
         ShortAddress: 0xFFFE
         DeviceType: COORDINATOR, ROUTER, END_DEVICE (0x7)
         DeviceState: DEV_HOLD (0x0) ================> DEV_HOLD STATE
         NumAssocDevices: 0x00
         AssocDevicesList
  • I think so. You can try to do the following steps on router to clear NV and setup router to test again.

    10:36:58.53 COM1 SYS_OSAL_NV_WRITE (0x2109) --> Write startup option to clear NV when reset
    Id: 0x0003
    Offset: 0x00
    Len: 0x01
    Value: . (0x03)

    10:36:58.55 COM1 SYS_OSAL_NV_WRITE_SRSP (0x6109)
    Status: SUCCESS (0x0)

    10:37:06.11 COM1 SYS_RESET (0x4100) --> Do reset to clear NV
    Type: 0x00 (HARD RESET) (0x0)

    10:37:08.18 COM1 SYS_RESET_RESPONSE (0x4180)
    Reason: 0x02
    TransportRev: 0x02
    Product: 0x00
    MajorRel: 0x02
    MinorRel: 0x07
    HwRev: 0x00
  • router.txt clearly shows that the router is not detecting any Zigbee networks in its scan:

    <RX>04:03:43.93 COM17 APP_CNF_BDB_COMMISSIONING_NOTIFICATION (0x4F80)
        Status: 0x02 (No Network) (0x2)
        Commissioning Mode: 0x01 (Network Steering) (0x1)
        Commissioning Mode: 0 (0x0)

    You'll need to investigate why that is the case.

    Are you using a CC2530 EVM or a custom board? If using a custom board, can you try on an EVM?
    Are you using a CC2592? If yes, you will need to add HAL_PA_LNA_CC2592 to the predefined symbols.

  • yes, i use cc2530 not from TI, it is custom board from China. Because in my country, I can only easily get these boards.
    so how to fix this?
    thanks you, Toby Pan!
  • Is there a range extender (for example CC2592) that is on the custom board?

    Have you used SmartRF Studio to send/receive packets between the boards?
  • I bought it from here
    but i don't have extension module cc2592
    www.ebay.com/.../192143024535
  • This module should use PA since it can output 20dbm in TX. Try to add HAL_PA_LNA_CC2592 in your CC2530 ZNP project to build ZNP FW for this module by yourself and test again.
  • yes Yikai Chen,

    I've just read a manual from ebyte, I'll have to edit these 2 lines
    #define xHAL_PA_LNA
    #define xHAL_PA_LNA_CC2592
    is that true?

  • Can you give t define symbols to your processor?
    thanks you!
  • BDB_FINDING_BINDING_CAPABILITY_ENABLED=0
    HAL_UART_DMA_RX_MAX=128
    MAXMEMHEAP=2765
    HAL_PA_LNA_CC2592
    TC_LINKKEY_JOIN
    NWK_MAX_DEVICE_LIST=10
    ZDSECMGR_TC_DEVICE_MAX=30
    DISABLE_GREENPOWER_BASIC_PROXY
    POWER_SAVING
    FEATURE_SYSTEM_STATS
    MT_GP_CB_FUNC
  • why when i use HAL_PA_LNA_CC2592 compile and IAR error
    I added xHAL_PA_LNA_CC2592, it did not report an error.
    Is there any difference between the 2 symbols here?
    thanks you, Yikai Chen
  • xHAL_PA_LNA_CC2592 means disable CC2592 when HAL_PA_LNA_CC2592 means enable CC2592. What error do you see?
  • I have an error during the debug process

  • And do I have to fix anything on two lines?
    #define xHAL_PA_LNA
    #define xHAL_PA_LNA_CC2590
    in hal_board_cfg.h
  • It seems you run out of XDATA. Try to revise ZDSECMGR_TC_DEVICE_MAX=30 to ZDSECMGR_TC_DEVICE_MAX=20 to build again.
  • And do I have to fix anything on two lines in hal_board_cfg.h ?
    #define xHAL_PA_LNA
    #define xHAL_PA_LNA_CC2590
    thanks you very much, Yikai Chen
  • No need to change anything in in hal_board_cfg.h
  • after define i get that my cc2530 cannot open the UART port, when connect with Z-tools "no device found"
    I have not tried with 1 cc2530 not edit define symbol, it still runs UART normally
  • Do you have schematic of your CC2530 module?
  • i just have the schematic coming from ebyte manufacturer

    e18-ms1pa1-ipx.rar

  • The schematic looks OK. Try to replace the following two lines in InitBoard()
    znpCfg1 = P2_0;
    znpCfg0 = P1_2;
    with
    znpCfg1 = ZNP_CFG1_UART;
    znpCfg0 = ZNP_CFG0_32K_OSC;
  • I modified according to you but z-tool "not device found"

    this is 2 define in my onBoard

    void InitBoard( uint8 level )
    {
      if ( level == OB_COLD )
      {
        // IAR does not zero-out this byte below the XSTACK.
        *(uint8 *)0x0 = 0;
        // Interrupts off
        osal_int_disable( INTS_ALL );
        // Check for Brown-Out reset
        ChkReset();
    
    #if defined CC2531ZNP
        znpCfg1 = ZNP_CFG1_UART;
    #elif defined CC2530_MK
        znpCfg1 = ZNP_CFG1_SPI;
        znpCfg0 = ZNP_CFG0_32K_OSC;
    #else
        znpCfg1 = ZNP_CFG1_UART;
        znpCfg0 = ZNP_CFG0_32K_OSC;
        //znpCfg1 = P2_0;
        //znpCfg0 = P1_2;
        // Tri-state the 2 CFG inputs after being read (see hal_board_cfg_xxx.h for CFG0.)
        P1INP |= BV(2);
        P2INP |= BV(0);
    #endif
      }
      else  // !OB_COLD
      {
        /* Initialize Key stuff */
        HalKeyConfig(HAL_KEY_INTERRUPT_DISABLE, OnBoard_KeyCallback);
      }
    }
    

    and on file OnBoard.h

    /* Serial Port Definitions */
    #if defined (ZAPP_P1)
      #define ZAPP_PORT HAL_UART_PORT_0
    #elif defined (ZAPP_P2)
      #define ZAPP_PORT HAL_UART_PORT_1
    #else
      #undef ZAPP_PORT
    #endif
    #if defined (ZTOOL_P1)
      #define ZTOOL_PORT HAL_UART_PORT_0
    #elif defined (ZTOOL_P2)
      #define ZTOOL_PORT HAL_UART_PORT_1
    #else
      #undef ZTOOL_PORT
    #endif
    
    
    #define MT_UART_TX_BUFF_MAX  254
    #define MT_UART_RX_BUFF_MAX  254
    #define MT_UART_THRESHOLD   (MT_UART_RX_BUFF_MAX / 2)
    #define MT_UART_IDLE_TIMEOUT 2
    
    #if !defined HAL_UART_PORT
    #define HAL_UART_PORT              0
    #endif
    // SOC defines the ideal sizes in the individual _hal_uart_dma/isr.c modules.
    #define HAL_UART_FLOW_THRESHOLD    0
    #define HAL_UART_RX_BUF_SIZE       0
    #define HAL_UART_TX_BUF_SIZE       0
    #define HAL_UART_IDLE_TIMEOUT      0
    
    // Restart system from absolute beginning
    // Disables interrupts, forces WatchDog reset

  • Set a breakpoint in MT_UartInit and check if it hits first.
  • I test this with HAL_PA_LNA_CC2592 enable on my CC2530DK and it works without problem. Do you connect RTS/CTS in UART?
  • thanks you, Yikai CHen
    My uart was resolved by turning off #define HAL_UART_PORT 0 in onBoard
    I have reinstalled ziggbee after having #define HAL_PA_LNA_CC2592
    when i APP_CNF_BDB_START_COMMISSIONING (0x2F05)
    CommissioningMode: (0x04) Network Formation (0x4)
    I received a response:
    APP_CNF_BDB_COMMISSIONING_NOTIFICATION (0x4F80)
         Status: (0x08) => 0x08 BDB_COMMISSIONING_FORMATION_FAILURE
         Commissioning Mode: 0x02 (Formation) (0x2)
         Commissioning Mode: 0x00
    My bdb_commissioning failed
  • Is this partial log from setting coordinator? If so, can you attach complete log?
  • I am having problems with z-tools so I use stm32 microcontroller to send commands to cc2530. Follow up on ubiqua after downloading and debugging for the router to receive becon requests. So my process was successful?

  • It seems your router sends beacon requests now so you can setup coordinator to enable permit join for router to join.
  • After I setup the process of zigbee, the ubiqua screen shows up on Nwk Comand how to make a permit for jouter joining

    Thanks you very much, Yikai Chen

  • You should follow the steps in my blog.
  • You used z-tools, I used smt32 to send a zigbee setup command. I send the command to cc2530 to setup the coordinator, then I send the command to the router and scan to the network. Such steps are correct?
    If I use stm32 to send commands, are the steps correct on your blog?
  • The steps are the same even you use STM32 as host.
  • HELLO, Yikai Chen

    Although I did not edit my FW, I am currently making a mistake when making it.

    Can you give me your settings in C / C ++ Complier and Linker of IAR?

    Thanks you, Yikai Chen