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.

ZNP getting started

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

Hello all.

I've just begun to work with Z-stack (its ZNP implementation). It would be great if somebody could clarify some questions:

1. There are several projects within ZNP workspace such as TestHex, ProdHex etc. What is the difference between them?

2. What is the goal of postprocessing defined in the project?

3. How can I set  device's configuration - Coordinator, for example? Is it performed at the precompiling stage or later?

4. My board uses CC2591. How can I configure ZNP for working with it? Should I set "#define HAL_PA_LNA" in hal_board_cfg.h? Besides this I'd like to understand how  to choose the level of transmit power and HGM/LGM mode of CC2591?

Regards,

Ilya

  • TestHex is a good project to use. To enable CC2591 support you will need to enable the preprocessor flag HAL_PA_LNA as you stated. This flag should be enabled in the project options of your TestHex project.

    LPRF Rocks the World

  • Hello LPRF Rocks the World.

    Thanks a lot for your response.

    I'd like to address you one more question. It follows from ZNP specification that using ZB_SEND_DATA_REQUEST (4.3.9.2) one can send up to 99 bytes of data. On the same time, ZB_RECEIVE_DATA_INDICATION (4.3.11.2) allows to get max 84 data bytes. Could you give more details here?

     

    Regards,

    Ilya

  • Has the P1.3 bug been fixed so that the ZNP with HAL_PA_LNA or HAL_PA_LNA_CC2590 will output the correct PA/LNA control signals? On the 2.4.0 build I had to manually change the pin assignment.

     

    --Derek

  • Hi all,

    hope this information may be useful for someone -  I've studied the behaviour of ZNP and have found some results:

    1. To work with CC2591 the directive "#define HAL_PA_LNA" in hal_board_cfg.h should be set

    2. By the default CC2591 is controlled via P1.1 (PAEN) , P1.4 (EN) and P0.7 (HGM) of CC2530. It is possible to reassign PAEN and EN within Port1.

    3. As a receiver, CC2591operates in HGM mode.

    4. As a transmitter, CC2591 uses default PIB attribute that is set to 19 dBm. It is possible to rework the code to operate at 21 dBm. Besides, it is possible to change (in normal operation mode) the output power via external command. 

  • Hello All,

     

    I have one confusion in mind

    What is difference between "#define HAL_PA_LNA" and "#define xHAL_PA_LNA". Are both same?

  • No, only HAL_PA_LNA is valid. Often when developing we'll disable different #defines by placing an 'x' in front of them. So, if "xHAL_PA_LNA" is defined then the PA/LNA will NOT be supported. You have to remove the 'x'.