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.

Can't connect an Xbee ZB Coordinator to a TI CC2530 End Point

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

We are having problems getting a TI End Point (TI CC2530EM running Z-stack v2.5, ZNP app) to join the network started by an Xbee (Xbee ZB) coordinator.  Using a TI ZigBee sniffer (SmartRF Sniffer), we can see messages from both nodes (see below), but the two nodes don’t seem to ‘see’ each other.  They are both using the ZigBee Pro stack.  We also have a TI demo board (RF05/CC2530EM) running a demo program as a coordinator and an Xbee (Xbee ZB) End Point.  Here is a summary of what we’ve found:

 Xbee Coordinator  <--> TI End Point                       Result: Do not connect.

Xbee Coordinator <--> Xbee End Point                 Result: Connect

TI Coordinator <--> TI End Point                               Result: Connect

TI Coordinator <--> Xbee End Point                        Result: Connect

We’ve taken traces of each scenario and from looking at them, it appears that the TI End Point is wanting to see something from the Xbee Coordinator that it is not seeing.  I can post the traces if that would be helpful.

  • Have you first searched the forum and read up on all of the XBee threads? It seems that several other users are successfully interacting with XBee coordinators:

    http://e2e.ti.com/support/low_power_rf/f/158/t/17420.aspx

    http://e2e.ti.com/support/low_power_rf/f/158/t/127525.aspx

     

  • Yes, please post the traces. I'm running a mix of Z-Stack and XBee (Series 2 running ZigBee firmware).  Currently a TI/Z-Stack coordinator with a mix of XBee and TI/Z-Stack end-devices and routers. I have to say that it is an uneasy co-existence. It mostly works, but there are issues which I'm still trying to chase.  

    Right now I've got an interesting problem which sounds similar(ish) to yours: a XBee end device will not associate with a XBee router (!). Packet traces seem to indicate that something is going wrong late in the association process (I suspect related to the transfer of encryption keys). 

    In your case you say the TI End Device won't connect to the XBee co-ordinator. Are there other routers on the network?

  • Hi Daniel Kageff, Could you connect the Xbee Coordinator with the TI End Point ? I want to do the same. The RX led of the Xbee Coordinator programmer (Xbee Explorer) turn on and off every time the xbee gets some info from the TI end device (CC2530) but the xbee doesn't shows anything on the X-CTU terminal. Can you help me?

  • Hi emma,

    Check if you enable SECURITY and TC_LINKKEY_JOIN on your CC2530.

  • Hello,Yikai

    Now I am doing a project that connect TI cc2530 coordinator to Xbee Enddevice, I am trying to use the samples from TI z-stack 2.51, with the Xbee(ZB) XB24 running at Zigbee Router AT, Firmware virson is 22A7, I configure it with channel enabled and Zigbee Stack Profile 2, Burdrate 115200, but I can't receive any packets from Packet Sniffer....

    Any help would be great appreciatively!
  • Do you have any coordinator in your test?
  • Coordinator is the TI's cc2530, Build with samples from zstack 2.51.a----samples/GenericApp/CC2530DB
  • GenericApp is not based on HA profile and the Zigbee security settings might be different with XBEE firmware. I would suggest you using Z-Stack Home 1.2.2 SampleLight as coordinator to test again.
  • Hello,Yikai Chen

    I have been successfully build connection between my cc2530 and Xbee24_ZB +waspmote, the configuration for my XB24 is Zigbee Router API.Firmware version is 23A7, I just change some default values such as ZS--2(ZIgbee pro), JV--Enabled, I write some strings to my CC2530 Coordinator and from the Packet Sniffer I can see Association successful and those strings have been received to my CC2530 from that Xbee Router....

    Now I am gonna to send the message I have been received to serial port which I can check it from PC.
    The related code as follows:

    This is the Init part of my serial port:
    GenericApp_TaskID = task_id;
    GenericApp_NwkState = DEV_INIT;
    GenericApp_TransID = 0;

    halUARTCfg_t uartConfig;//
    uartConfig.configured =TRUE;//
    uartConfig.baudRate =HAL_UART_BR_115200;//
    uartConfig.flowControl =FALSE; //

    HalUARTOpen(0,&uartConfig);// open the serial port

    This is the message received part and I am gonna to send it to serial port


    static void GenericApp_MessageMSGCB( afIncomingMSGPacket_t *pkt )
    {
    switch ( pkt->clusterId )
    {
    case GENERICAPP_CLUSTERID:
    // "the" message
    HalUARTWrite(0, pkt->cmd.Data, pkt->cmd.DataLength); //
    HalUARTWrite(0, "\n", 1); //

    break;
    }
    }


    But finally I can't see anything in the serial monitor....Any suggestions? Dose it because the message sent from my Enddevice which is Xbee need to be defined with its length and content? But I have no ideal what exactly the message sent from Xbee looks like( frame start delimiter, frame ID, things like that)....forgive my bad English....

    Any help would be greatly appreciate!
  • You have to make sure your UART message is sent first. When you write something to Xbee module to send, do you see anything on sniffer?

  • Hi,

    I am not quite understand what you said, Can you please explain a little bit?

    My Xbee is an enddevice which attached to the waspmote. Waspmote is a kind of sensor board which can provide data through serial port to Xbee....

    Now one thing I want to ensure is the data transfer wirelessly from the xbee to my CC2530 can then be transferred to my PC through serial port....The code below is how the data being received and then transfer to my PC's serial port...I guess the reason why my PC can't get the data is because something wrong of the code....so can you please have a look of this and see where I go wrong?


    static void GenericApp_MessageMSGCB( afIncomingMSGPacket_t *pkt )
    {
    switch ( pkt->clusterId )
    {
    case GENERICAPP_CLUSTERID:
    // "the" message
    HalUARTWrite(0, pkt->cmd.Data, pkt->cmd.DataLength); //
    HalUARTWrite(0, "\n", 1); //

    break;
    }
    }

    Thanks in advance!
  • First, you still need to use sniffer to make sure the message is sent from XBee to CC2530. At the same time, you can set a breakpoint inside GenericApp_MessageMSGCB and see if it is hit when you confirm message it sent from XBee to CC2530.
  • HI,Yikai

    I got one question which based on the circuit design part for CC2530, when choosing the 2nH inductor of the antenna part, does the Rated current and Self Resonant Frequency really matters?

    I am gonna to use 0805 size inductor as soldering the 0402 size component is too difficult for me...

    Any suggestions?

    Thanks in advance and best regards.

    John

  • Sorry, I am not an expert on antenna part so I cannot help you on this topic.