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.

Zigbee module with support of Different OS's like Contiki,Linux,Zephyr and RIOT

Other Parts Discussed in Thread: CC2650MODA, CC2650, Z-STACK, CC2630, CC2530, CC2538, CC2531

I am searching ZIGBEE module which has support of different OS's like Contiki,Linux,Zephyr and RIOT for iotivity frame work. please suggest any Zigbee module with above specs.

  • I suggest you to use CC2650MODA.
  • Hi YK Chen,

    Can u please tell me, from above mention OS's which OS supports this CC2650MODA Module?

  • Basically, CC2650 can run Zigbee, Contiki, and RIOT.
  • It means, i can use CC2650 module in Contiki and RIOT OS's for Zigbee application.
    Right?
  • I see no problem on this. One thing you have to know is that all the examples running on Contiki, RIOT, and Zigbee stack are based on CC2650 7x7 chip but CC2650MODA is 5x5 chip. You have to revise board files of those examples to make it work.
  • Hi YK Chen,

    Thanks for ur reply.

    I want to implement Z-Stack in Contiki OS, for that i have downloaded Z-stack and Zigbee 3.0 SDK from TI, so now how to move forward, do u have any documents or blocks related to the same,if yes please provide me.

    Hope u will give some idea...!!!!!!

    Thanks & Regards,

    Akshay YAdawar

  • Z-Stack is totally different to Contiki OS. What do you mean to implement Z-Stack in Contiki OS?
  • Hi YK Chen,

    Thanks for your quick reply.

    I am looking forward to implement Zig-bee stack on a controller which supports IOTIVITY constrained frame work. As CC2630 ,CC2650 andCC2538 has support for contiki, This contiki in turn supports IOTIVITY frame work.

    So know my question is as contiki is a light weight OS how to embed Z Stack into contiki's net module if we can do so. Other wise, is there any alternative to build a Zigbee node which supports IOTIVITY ? Here i use IOTIVITY for interoperability among different types of nodes.


    Akshay.Y.
  • IOTIVITY for interoperability among different types of nodes? Can you elaborate what do you mean different type of nodes? Do you mean different nodes run different protocol such as Zigbee, Contiki 6LOWPAN, ...?
  • sorry for the last mail,

     I have one doubt every time ur mentioning zigbee in OS list......

    Actually i want a zigbee module with zigbee stack and my requirement is to run the stack in my PC using any one OS(Contiki,Linux,Zephyr and RIOT).

    For that the zigbee module should support any one OS than only i can use and  zigbee is in application level.

    akshay

  • I don't understand your question well. Can you elaborate?
  • Hi,

    * I want one zigbee module with zigbee stack.
    * That zigbee stack should work on OS(linux or Contiki or RIOT or Zephyr).
    * I Want to build zigbee stack directly in OS NOT with IDE.
    * My Application is simple, want to handle end device by using zigbee protocol,but that stack should be build-ed with any operating system.

    I think u got my point.!!!


    akshay
  • I have replied that Z-Stack cannot run on other OS. The alternative is to use ZAP-ZNP architecture. Using CC2530 as example, you can run ZNP on CC2530 and have another MCU run other OS to act as ZAP to control ZNP. You can refer to processors.wiki.ti.com/.../CC2530ZDK-ZNP-MINI for ZAP-ZNP architecture.
  • But in CC2538 datasheet, they mention,

    Full Software Support for Contiki/6LoWPAN,
    Smart Grid, Lighting, and ZigBee Home
    Automation With Sample Applications and
    Reference Designs Available


    *What is meaning of this above sentence??
    *contiki??

    please explain me i am little bit confused.
  • what i thought is,
    CC2538 has a support of Contiki....
    is it correct?or Wrong?
  • It means that you can run any one of Contiki/6LoWPAN, Smart Grid, Lighting, and ZigBee Home Automation on CC2538.
  • thankyou,

    CC2538 Powerful Wireless Micro controller System-On-Chip for 2.4-GHz IEEE 802.15.4, 6LoWPAN, and ZigBee Applications. , it means this micro controller can use for both 6LoWPAN, and ZigBee Applications.

    They are providing support only for contiki/6lowpan, OR
    For contiki/zigbee ????

    I want to use contiki/zigbee is it possible ?
  • Contiki and Zigbee are two different SW stack. You can either run Contiki or Zigbee on CC2538 but not both concurrently on it.

  • Hello YK,
    Contiki is constrained Operating system and Zigbee stack is related to zigbee module (like SDK) both are totally different things.

    In Contiki OS, want to use zigbee module.
  • I still don't understand what you mean want to use Zigbee module in Contiki OS.
  • Hi YK Chen,
    I need some info about TI zigbee modules..
    1. Can i build TI Zigbee stack in LINUX System?
    2. The drivers of Stack will support Linux OS?
    3. And at the end node i need some GPIO's for my application, suggest any zigbee which has GPIO's?

    please reply me.
  • 1. No
    2. What driver do you mean?
    3. All Zigbee SOC provided by TI have GPIO.
  • As mention in below link regarding TI zigbee stack:

    sunmaysky.blogspot.in/.../build-ti-z-stack-linux-home-gateway.html
    e2e.ti.com/.../362710
    e2e.ti.com/.../347669

    it means we can build Z-Stack Linux gateway in Linux system.(ubuntu).
  • This is the application part and it's built in Linux. For Z-Stack examples, you can only use IAR on Windows system to build them.
  • So to flash the Z stack firmware in to Ti soc we should use IAR on windows system and
    For the soc to interact with linux machine we build application following link.
    sunmaysky.blogspot.in/.../build-ti-z-stack-linux-home-gateway.html

    Is this what you mean to say?
  • Yes, that is what I mean.
  • Thank you YK Chen...
  • Hi YK Chen,

    Now I am trying to Build TI Z-Stack Linux Home Gateway  for x64 Linux(64-bit ubuntu).

    Can u please tell me the procedure for building the stack,

    I am following this link:   sunmaysky.blogspot.in/.../build-ti-z-stack-linux-home-gateway.html 

    Getting some issues in above link can u please share steps or any other link...

    Akshay Yadawar

  • Z-Stack Linux GW source code is for 32 bit system and you cannot build it on Ubuntu 16.04 64 bit.
  • There is any way to build on 64-bit Ubuntu, if YES please suggest.
    Any script ??

    please suggest...

    akshay yadawar
  • No. As I know, TI doesn't provide such solution.
  • ***So it means will not work for 64-bit ubuntu???

    but normally 32-bit application will work on 64-bit machine, so i used some tool to support 32-bit apps into 64-bit machine.

    than i am trying to build Z-Stack_Linux_Gateway-1.0.1-src in Ubuntu PC and following g the steps as given in this link: sunmaysky.blogspot.in/.../build-ti-z-stack-linux-home-gateway.html

    with that i am getting below problems:

    ***As u suggest point no. 3. Revise the build script package_builder_bbb (in red) under “your Linux Home folder\Z-Stack_Linux_Gateway-1.0.1-src\Source\scripts\”

    I think it is problem with build script:

    ***How i can revise build script???

    ***when i run sudo ./build_all this command i am geeting below errors, please help me:

    ./build_all: 1: ./build_all: pushd: not found
    ./build_all: 3: ./build_all: popd: not found
    ./package_builder_bbb: 1: ./package_builder_bbb: svnversion: not found
    SVN Version =
    ./package_builder_bbb: 34: ./package_builder_bbb: pushd: not found
    ./package_builder_bbb: 36: ./package_builder_bbb: popd: not found

    Main project\'s base directory: GATEWAY=/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source (leave blank to use the detault)
    NPI Project's base directory NPI_SOURCE=/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/
    Protobuf library directory: PROTOLIB=/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/protobuf-c-arm/lib
    Protobuf include directory: PROTOINC=/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source
    Project output subdirectory: PKGS_OUTPUT_DIR=/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/out (leave blank to use the detault)

    ./package_builder_bbb: 85: [: BEAGLEBONE_BLACK: unexpected operator
    ./package_builder_bbb: 89: [: BEAGLEBONE_BLACK: unexpected operator
    --- BEAGLEBONE_BLACK
    ERROR: Target platform not set correctly. Please set TARGET_PLATFORM to either BEAGLEBONE_BLACK or x86
  • pushd/popd needs to run in bash shell. You can run "sudo dpkg-reconfigure dash" and set dash to "No".
  • tq for ur reply.

    so now i am getting below error, need to install tool chain:


    ./package_builder_bbb: line 24: svnversion: command not found
    SVN Version =

    Main project\'s base directory: GATEWAY=/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source (leave blank to use the detault)
    NPI Project's base directory NPI_SOURCE=/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/
    Protobuf library directory: PROTOLIB=/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/protobuf-c-arm/lib
    Protobuf include directory: PROTOINC=/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source
    Project output subdirectory: PKGS_OUTPUT_DIR=/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/out (leave blank to use the detault)

    Building RUNTIME package for BEAGLEBONE_BLACK platform

    ********************************************************
    Cleaning all
    if test -d out; then rm -rf out; fi
    rm -f project_file_list.txt
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING SERVER FOR ARM BEAGLE BONE
    make[1]: Entering directory '/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/tools/LinuxHost'
    Compiling ipclib/server/npi_lnx_ipc.c ...
    make[1]: arm-linux-gnueabihf-gcc: Command not found
    makefile:145: recipe for target 'out/npi_lnx_ipc.o' failed
    make[1]: *** [out/npi_lnx_ipc.o] Error 127
    make[1]: Leaving directory '/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/tools/LinuxHost'
    makefile:84: recipe for target 'arch-all-armBeagleBone' failed
    make: *** [arch-all-armBeagleBone] Error 2
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Need to export the TCLIB variable with the path to the ti-sdk toolchain lib directory
    Makefile:20: *** Stopping. Stop.
    Cleaning up main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o ./out/*
    /bin/rm -f main.bin main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o ./out/*
    rm -f project_file_list.txt
    VPATH is .:./../framework:./../engines:./../../nwkmgr:./../../hagateway:./../../otaserver
    ********************************************************
    Check existance of output folder
    if test ! -d ./out; then mkdir ./out; fi
    Compiling main.c into main.o
    arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver main.c -o main.o
    make: arm-linux-gnueabihf-gcc: Command not found
    makefile:43: recipe for target 'main.o' failed
    make: *** [main.o] Error 127
    rm -rf *.o sbl_tool.bin
    arm-linux-gnueabihf-gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
    /bin/sh: arm-linux-gnueabihf-gcc: command not found
    Makefile:24: recipe for target 'main.o' failed
    make: *** [main.o] Error 127
    rm -rf *.o gw_soc_fw_version_query.bin
    arm-linux-gnueabihf-gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
    /bin/sh: arm-linux-gnueabihf-gcc: command not found
    Makefile:24: recipe for target 'main.o' failed
    make: *** [main.o] Error 127
    Cleaning up ../source/bbb_usbreset.o ./out/*
    /bin/rm -f bbb_usbreset.bin ../source/bbb_usbreset.o ./out/*
    VPATH is .
    ********************************************************
    Check existance of output folder
    if test ! -d ./out; then mkdir ./out; fi
    Compiling ../source/bbb_usbreset.c into ../source/bbb_usbreset.o
    arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. ../source/bbb_usbreset.c -o ../source/bbb_usbreset.o
    make: arm-linux-gnueabihf-gcc: Command not found
    makefile:40: recipe for target '../source/bbb_usbreset.o' failed
    make: *** [../source/bbb_usbreset.o] Error 127
    cp: cannot stat '/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source//Projects/tools/LinuxHost/out/NPI_lnx_armBeagleBone_server': No such file or directory
    cp: cannot stat '/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/zstackserverznp/out/ZLSZNP_arm': No such file or directory
    cp: cannot stat '/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/nwkmgr/out/NWKMGR_SRVR_arm': No such file or directory
    cp: cannot stat '/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/hagateway/out/GATEWAY_SRVR_arm': No such file or directory
    cp: cannot stat '/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/otaserver/out/OTA_SRVR_arm': No such file or directory
    cp: cannot stat '/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/demo/project/main.bin': No such file or directory
    cp: cannot stat '/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/sbl_tool/project/sbl_tool.bin': No such file or directory
    cp: cannot stat '/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/version_query_minitool/project/gw_soc_fw_version_query.bin': No such file or directory
    cp: cannot stat '/home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/bbb_usbreset/project/bbb_usbreset.bin': No such file or directory
    BUILDING zigbeeHAgw script================================================

    Package verification results:
    ERROR: 6 error(s) occured during make
    diff /home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/out/content.txt /home/smartron/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/scripts/package_builder_expected_content_RUNTIME_arm.txt
    4a5
    > ./Precompiled_arm/app/main.bin
    14a16
    > ./Precompiled_arm/servers/GATEWAY_SRVR_arm
    15a18,20
    > ./Precompiled_arm/servers/NPI_lnx_arm_server
    > ./Precompiled_arm/servers/NWKMGR_SRVR_arm
    > ./Precompiled_arm/servers/OTA_SRVR_arm
    19a25
    > ./Precompiled_arm/servers/ZLSZNP_arm
    20a27,29
    > ./Precompiled_arm/tools/bbb_usbreset.bin
    > ./Precompiled_arm/tools/gw_soc_fw_version_query.bin
    > ./Precompiled_arm/tools/sbl_tool.bin
    ERROR: Content verification failed

    ERROR: RUNTIME package for arm creation failed. See details above. Output folder/tar name prefixed with "ERROR_."


    I need tool chain: arm-linux-gnueabihf-gcc
    so how can i get that tool chain?
    can u please provide me link :

    akshay
  • Are you trying to build Linux GW for beaglebone or x86?
  • Trying to build on Ubuntu x86..
  • But your build script is for beaglebone.
  • sorry.....
    Actually i am trying to build on Ubuntu 64-bit.

    but i am following below link for building the stack for Ubuntu 64-bit machine:
    sunmaysky.blogspot.in/.../build-ti-z-stack-linux-home-gateway.html

    in this link they mention "Build TI Z-Stack Linux Home Gateway reference design for x86 Linux" so it means we can build for Ubuntu also?
  • I have told you Z-Stack Linux GW reference design cannot be built for Ubuntu 64-bit machine:
  • Hi,

    Z-STACK-HOME (Zigbee Home Automation Solution)  and Z-STACK-3.0.0  both stacks are different ???

    1. As you told Z-STACK-3.0.0 will not work on ubuntu 32-bit machine,

    2. Z-STACK-HOME which has support of LINUX platform?    If YES, on which ubuntu machine it will work 64-bit OR 32-bit?

    3. Z-STACK-HOME has latest version of zigbee 3.0 and HA profile ?

    please reply me..

    aksahy

     

  • Z-Stack 3.0 is the latest Z-Stack release which implements Zigbee 3.0 spec. Z-Stack Home implemented Zigbee HA profile only. Examples in both Z-Stack 3.0 and Z-Stack Home can only be built on Windows system with IAR workbench.
  • please don't mind.

    My requirement is, Zigbee stack Which works on ubuntu 64-bit.

    please help me>>...!!!!!

    akshay
  • You can run Ubuntu as ZAP and CC2650 as ZNP to make it.
  • There is any way to build Z-Stack 3.0 on ubuntu -64bit OS?
    HOW?
  • I have told you TI doesn't provide support for this configuration.
  • Hie YK Chen,

    1. Is there any zigbee module without controller, i need only radio module which supports TI  Z-stack 3.0  and Z-Stack Linux gateway. 

    2. Want to build a Z-stack in Host machine and through any serial interface, i will connect zigbee radio module for sending the data on-air. 

    akshay

  • For know, Z-Stack 3.0 can only run on CC2530, CC2531, and CC2538. All of those CC253x have MCU embedded on it.
  • As you told:   Ubuntu as ZAP and CC2650 as ZNP to make it.

    How can i make Ubuntu as ZAP and CC2650 as ZNP ???

    please elaborate the procedure..

    Which stack i need to use  please share any link>...

    akshay