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 router acts like an end device

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

Compiled as a router device based on CC2530 (without CC2592) acts like an end device - joins the network and introduces itself as a router, but when another device is connected only to it, tries to send commands through it, the data isn't routed.

I was wondering if the config file is correct and where should I look for a possible solution.

f8wConfig.cfg:

-DZIGBEEPRO
-DSECURE=1
-DZG_SECURE_DYNAMIC=1
-DREFLECTOR
-DDEFAULT_CHANLIST=0x02000000  // 25 - 0x19
-DZDAPP_CONFIG_PAN_ID=0xFFFF
-DNWK_START_DELAY=100
-DEXTENDED_JOINING_RANDOM_MASK=0x007F
-DBEACON_REQUEST_DELAY=100
-DBEACON_REQ_DELAY_MASK=0x00FF
-DLINK_STATUS_JITTER_MASK=0x007F
-DROUTE_EXPIRY_TIME=30
-DAPSC_ACK_WAIT_DURATION_POLLED=3000
-DNWK_INDIRECT_MSG_TIMEOUT=7
-DMAX_RREQ_ENTRIES=8
-DAPSC_MAX_FRAME_RETRIES=3
-DNWK_MAX_DATA_RETRIES=2
-DMAX_POLL_FAILURE_RETRIES=2
-DMAX_BCAST=9
-DAPS_MAX_GROUPS=16
-DMAX_RTG_ENTRIES=40
-DNWK_MAX_BINDING_ENTRIES=4
-DMAX_BINDING_CLUSTER_IDS=4
-DDEFAULT_KEY="{0x01, 0x03, 0x05, 0x07, 0x09, 0x0B, 0x0D, 0x0F, 0x00, 0x02, 0x04, 0x06, 0x08, 0x0A, 0x0C, 0x0D}"
-DMAC_MAX_FRAME_SIZE=116
-DZDNWKMGR_MIN_TRANSMISSIONS=20
-DCONST="const __code"
-DGENERIC=__generic
-DRFD_RCVC_ALWAYS_ON=FALSE
-DPOLL_RATE=1000
-DQUEUED_POLL_RATE=100
-DRESPONSE_POLL_RATE=100
-DREJOIN_POLL_RATE=440
-DREJOIN_BACKOFF=900000
-DREJOIN_SCAN=900000

f8wRouter.cfg:

-DCPU32MHZ                         // CC2530s Run at 32MHz
-DROOT=__near_func                 // MAC/ZMAC code in NEAR
-DRTR_NWK 

Any hints are welcome.

  • I forgot to mention it is Z-Stack 3.0.2 and IAR 8051 - 10.40.1

    Sorry, I missed the following lines from f8wRouter.cfg when copying:

    -DMAC_CFG_APP_PENDING_QUEUE=TRUE
    -DMAC_CFG_TX_DATA_MAX=5
    -DMAC_CFG_TX_MAX=8
    -DMAC_CFG_RX_MAX=5

  • Hi Vihren,

    All of the configurations you have provided are as expected.  Does this device send data requests (i.e. polling) to the ZC/parent every second or does it broadcast a Link Status message every 15 seconds?  Can you provide a sniffer log which demonstrates packets not being routed correctly by this device?

    Regards,
    Ryan