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.

problems with sampleapp and smartrf05 board, router does not join coordinator

Other Parts Discussed in Thread: Z-STACK, CC2530EM, CC2590, CC2530-CC2591EM-RD, CC2530

Hello,

I have been struggling with this for a few days, and went through all posts in the forum, but could not resolve my issue:

I am having problem with the sampleapp in ZStack-CC2530-2.5.1a

I followed the instructions in Z-Stack User's Guide - CC2530DB.pdf

-I can build and compile the project in IAR

-I can program the boards (I have two boards), I use a jumper for coordinator at pins 9-11

-When I turn the coordinator on, first LED1 (green) flashes and LED3 (yellow) stays on, then LED1 turns off, and LED3 is still on, and I can see "ZigBee Coord Network ID: XXXX" on the LCD, but then after a few seconds, LED3 turns off  (unlike what the document says) but the LCD still shows the "ZigBee Coord..." Message.

-I turn the router on, first LED1 with flash and LED3 stays on, then LED3 turns off and LED1 keeps flashing. On the LCD, I can see the MAC address of the boards "IEEE: XXXXXXXXXXXXXXXXXX", but LED1 never stops flashing, and Coordinator does not react and all LEDs are off on Coordinator. The boards are on the same desk right beside each other.

-I have also attached packet sniffer's output, which shows some packets but the node never join the network.

I appreciate any help

4370.sampleapp.psd

Sina

  • Don't you have to press the toggle switch up (i.e. Key1) to make the router begin the network join procedure?

  • I think SW1 (key up) works after the network is formed:

    From: Z-Stack User's Guide - CC2530DB.pdf

    Once the network has been formed, the SampleApp will provide a very simple demonstration of ZigBee wireless communication. The sample application performs the following functions:
    - When button SW1 is pressed, broadcast of a message to devices subscribed to Group 1

    I also tried that to double check, and nothing happened.

  • What is the h/w you are using and where/how did you get it? The SampleApp just works out of the box. Also, there is no need to jumper anything for ZC - what are you jumpering?

     

  • The boards are SmartRF05, Rev 1.8.1, we purchased them Arrow.

    The jumper setting is mentioned in this document:   Z-Stack User's Guide - CC2530DB.pdf 

    Please look at section 6.2, where it says:

    After each of the CC2530EM boards has been programmed with the “Demo” configuration of the Z-Stack SampleApp, one of the boards needs to be designated as a ZigBee Coordinator. This is done by placing a jumper across pins on the P18 jumper block. On Rev 1.3 boards, the jumper connects pins 7-9 (below, left). On Rev 1.7-or-later boards, the jumper connects pins 9-11 (below, right). Make sure that only one of the SmartRF05EB boards has a jumper on P18.

  • Cool - I had never worked with this sample app and the jumpering and all, but it just worked after I read and did what you show above.

    So, something basic is missing on your boards - how about the EM selection dip switch?

  • EM is at SOC/TRX, I even switched them to MSP, and no difference...if you look at the packet sniffer file I attached, the RSSI values seem very low, is that normal?

  • I don't see an RSSI, but I do see a LQI of zero, so I would guess that you have not correctly connected the ANT omni antennae to the SMA connectors on the CC2530EM boards.

     

  • The antennas should be ok, since the PER test works good  for a far distance,

    How did you see a LQI of zero? the LQI values I see are around 110 for router and 34 for coordinator

  • Ok, I found the problem, I am putting it here in case anyone else gets stocks in the first step of using the board!

    when you download and open the project SampleApp, find this file:

    C:\Texas Instruments\ZStack-CC2530-2.5.1a\Components\hal\target\CC2530EB\hal_board_cfg.h

    find this line:

    #define xHAL_PA_LNA
    #define xHAL_PA_LNA_CC2590

    and remove the x from the beginning of one of the defines (based on the evaluation board you use), in my case I changed the first line to

    #define HAL_PA_LNA

    and now everything is working fine!

  • Above I asked you what H/W you are using and you specifically replied CC2530EM. If you would have correctly stated that you are using the CC2530-CC2591EM-RD, we might have found the problem a lot faster.

     

  • Yes! I appreciate your help Harry, your comment about antennas helped me to trace back and find the solution...

    My reply to the H/W type was SmartRF05, Rev 1.8.1.

    CC2530EM is what I copied from "Z-Stack User's Guide - CC2530DB.pdf", and I guessed any CC2530 evaluation module is coming with some sort of PA, however none of the PAs are enabled in hal_board_cfg.h . It would help newbies like me if the document mentions that.

    Anyways, this was a very good startup training for me,

    Cheers,

    Sina