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.

Maximum number of devices can be added in a network?

Guru 14820 points
Other Parts Discussed in Thread: CC2531, CC2530, Z-STACK, CC2531EMK

Hello,

I am using cc2531 znp dongle as coordinator,and cc2530 as router.

here is the original code of znp which  I am using.

I want to know that , how many no. of  router /end devices  can be added in to the network.

Regards

DC

 

  • The number of max associated device is defined by NWK_MAX_DEVICES in nwk_globals.h and default value is 20. If you want to change it, you can add ENABLE_MT_SYS_RESET_SHUTDOWN to compile options of ZNP CC2531-ProdHex project to rebuild it.
  • I have defined NWK_MAX_DEVICES = 50 and rebuild the cc2531 znp code .
    But the problem is that zigbee server is not starting.

    you can see below ,what happens when i start zigbee server-
    ----------------------------------------------------------------------------------------------------------------------------------
    [2016-08-10 14:57.22] ~
    [Dhanraj.DC] ➤ ssh root@192.168.7.2
    Debian GNU/Linux 7

    BeagleBoard.org BeagleBone Debian Image 2014-05-14

    Support/FAQ: elinux.org/Beagleboard:BeagleBoneBlack_Debian
    Last login: Thu May 15 02:19:20 2014 from 192.168.7.1
    root@beaglebone:~# cd /home/debian/Desktop/Z-Stack_Linux_Gateway-1.0.1/Precompiled_arm/servers/
    root@beaglebone:/home/debian/Desktop/Z-Stack_Linux_Gateway-1.0.1/Precompiled_arm/servers# ./zigbeeHAgw bbb
    running zigbeegw.scr on an ARM
    resetting beaglebone black
    sleeping 6 seconds after reset... Using serial port: /dev/ttyACM0
    /dev/ttyACM0: No such file or directory
    /dev/ttyACM0 open failed
    /dev/ttyACM0: No such file or directory
    /dev/ttyACM0 open failed
    done
    stty: /dev/ttyACM0: No such file or directory
    stty: /dev/ttyACM0: No such file or directory
    Starting the ZigBee gateway subsystem
    deviceKey = 0 (0 )
    devPath = '/dev/ttyACM0'
    logPath = './NpiLnxLog.txt'
    ... freeing memory (ret 0)
    Port: 2533
    Following IP addresses are available:

    IPv4: interface: lo IP Address 127.0.0.1
    IPv4: interface: usb0 IP Address 192.168.7.2
    IPv6: interface: lo IP Address ::1
    IPv6: interface: usb0 IP Address fe80::1867:71ff:feb2:107d
    The socket will listen on the following IP addresses:

    IPv4: 0.0.0.0
    IPv6: ::
    0.0.0.0 means it will listen to all available IP address

    waiting for first connection on #3...
    NPI started (pid 1224) at Thu May 15 02:22:00 UTC 2014
    Connected to #5.(127.0.0.1 / ::78f8:88be:c0f8:88be)
    ZLSZNP started (pid 1230) at Thu May 15 02:22:04 UTC 2014
    [NWK_MGR/MAIN] : there are 2 args
    [NWK_MGR/MAIN] : argv[0] = ./NWKMGR_SRVR_arm
    [NWK_MGR/MAIN] : argv[1] = 127.0.0.1:2536
    [NWK_MGR/MAIN] : ************************************************
    [NWK_MGR/MAIN] : * Network Manager Server v1.0.1 *
    [NWK_MGR/MAIN] : * The following are the avaible key commands: *
    [NWK_MGR/MAIN] : * Exit Program. - q *
    [NWK_MGR/MAIN] : ************************************************

    NETWORK MANAGER started (pid 1237) at Thu May 15 02:22:05 UTC 2014
    [GATEWAY/MAIN] :
    [GATEWAY/MAIN] : ************************************************
    [GATEWAY/MAIN] : * Gateway Server v1.0.1 *
    [GATEWAY/MAIN] : * The following are the avaible key commands: *
    [GATEWAY/MAIN] : * Exit Program. - q *
    [GATEWAY/MAIN] : ************************************************

    GATEWAY SERVER started (pid 1243) at Thu May 15 02:22:07 UTC 2014
    [OTASRVR/MAIN] :
    [OTASRVR/MAIN] : ************************************************
    [OTASRVR/MAIN] : * OTA Upgrade Server 1.0.1 *
    [OTASRVR/MAIN] : * The following are the avaible key commands: *
    [OTASRVR/MAIN] : * Exit Program. - q *
    [OTASRVR/MAIN] : ************************************************

    [NWK_MGR/MAIN] ERROR: Endpoint Registration Failed
    [NWK_MGR/MAIN] ERROR: Registering ZDO Callbacks Failed
    [NWK_MGR/MAIN] ERROR: Reading Local Network Information Failed
    [NWK_MGR/MAIN] : Initialization failed. Quitting now. mhoyt

    OTA SERVER started (pid 1251) at Thu May 15 02:22:09 UTC 2014
    [OTASRVR/MAIN] :
    Error - Could not register OTA endpoint with zstackserver.Exiting...

    starting tracker with our pid ./zigbeeHAgw and pid list 1224 1230 1243 1251
    ===================================================
    NETWORK MANAGER exited with code 255 at Thu May 15 02:22:09 UTC 2014
    ./zigbeeHAgw: line 482: 1264 Killed ./track_servers $$ "$pids"
    OTA_SRVR_arm: no process found
    unexpected exit code (255) from netmgr!
    resetting beaglebone black
    sleeping 6 seconds after reset... ^Ccaught SIGTERM, killing all the servers and cleaning up
    terminating zigbeeHAGW (pid 1162)
    Killed
    root@beaglebone:/home/debian/Desktop/Z-Stack_Linux_Gateway-1.0.1/Precompiled_arm/servers# ^C
    ------------------------------------------------------------------------------------------------------------------------------------------------------
  • 1. Do you enable ENABLE_MT_SYS_RESET_SHUTDOWN in your compile option.
    2. When you plug CC2531EMK to bbb and do "ls /dev", do you see ttyACM0?
  • 1) YES  I enable ENABLE_MT_SYS_RESET_SHUTDOWN in compile option.

    2)I don't see ttyACM0.please find below snapshot.

    Regards

    DC

  • Which project do you use to build ZNP for CC2531 dongle?
  • cc2531 prod hex.

    you can see blow snapshot.

    Regards

    DC

  • If you plug CC2531 dongle to your desktop, do you see virtual com port emulated?
  • no, it shows USB device not recognised!!
  • also yellow led on cc2531 dongle doesn't glow.
  • I suggest you to do debug.
  • i have rebuilt znp using DEBUG ,its working .

    IS there any functional difference among DEBUG,prod-test,prod-SBL,prod-hex??

    Regards
    DC
  • To know the differences between those four configurations, you can refer to Z-Stack User's Guide - CC2530 ZNP at e2e.ti.com/.../0184.Z_2D00_Stack-User_2700_s-Guide-for-CC2530-ZigBee_2D00_PRO-Network-Processor-_2D00_-Sample-Applications.pdf
  • I have modified the znp firmware and now m able to add more then 20 devices in the network but linux gateway terminal application only displays 20 devices, after 20 devices if new device is added in the network on terminal application displays the error-"ERROR DEVICE LIST FULL" .
    how to increase this limit on linux gateway side??

    Regards
    DC
  • I don't remember there is setting for this but you can debug Linux GW to know where it sends this "ERROR DEVICE LIST FULL" and fix it.
  • I find there is a parameter MAX_SUPPORT_ENDPOINT=20 in config.ini which might constrain device numbers. You can try to increase and restart GW to test it.