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.

Using CC2530 with Beaglebone Black on UART Interface

Other Parts Discussed in Thread: CC2530, Z-STACK

Hi,

I already went through the below E2E Discussion to interface the CC2530 with Beaglebone Black:
e2e.ti.com/.../351110

But I was not able to conclude from it.

I am trying to interface CC2530 with Beaglebone Black.

I have downloaded the Z-Stack Home 1.2.2.42930 and it has the already pre-compiled binary CC2530ZNP-SB.hex in the ZNP Project.
I flashed it on the CC2530 Module.

I have interfaced this module to the BBB on USART4.

But I am not able to run the zigbeeHAgw script on the BBB.

I made below changes in the zigbeeHAgw:

1. ZBEE_RESET_GPIO_LINE=48
where I have interfaced the RESET signal of CC2530.

2. ZBEE_SERIAL_PORT=ttyO4
which is USART4 port of BBB.

3. Changed the below config in NPI_Gateway.cfg
devPath="/dev/ttyO4" ; UART

But still I am not able to run the zigbeeHAgw script.

Can you please suggest if I am missing anything else.

Thanks,
Sunny

  • Hi,

    I checked in my /dev that the ttyO4 node was not getting created.

    So I searched and referred to the below link:
    beaglebone.cameon.net/.../serial-ports-uart

    and added the below code in my uEnv.txt:

    optargs=quiet drm.debug=7 capemgr.enable_partno=BB-UART4

    After rebooting the BBB, I got the /dev/ttyO4 node.

    I have done changes in the zigbeeHAgw:

    ZBEE_RESET_GPIO_LINE=48 ----> P9_15 (GPIO_48) on Beaglebone header
    ZBEE_SERIAL_PORT=ttyO4

     

    Commented the below line in hw_reset_soc():

    ../tools/gw_soc_fw_version_query.bin /dev/ttyACM0

     

    Changes in the file are NPI_Gateway.cfg:

    devPath="/dev/ttyO4" ; UART

    But when I run the ./zigbeeHAgw script, I am getting the below error:

    [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

    Please suggest from where to start debugging.

    Thanks,
    Sunny

  • Hi,

    There was some problem with the pin connections between the BBB and CC2530.

    It is fixed now.

    Thanks,
    Sunny