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.

ez430-RF2480 Data Transfer Problem (Important)



Hi all..

We have that developement kit and we're working on our master thesis this term..
We tried to transfer data among our devices.. We can transfer data from router/end device to router/end device.. Also we can transfer our data to coordinator from our routers/end devices..
But when we try to transfer data from Coordinator device we have a problem which we could'nt find out what..

As we understand "zb_SendDataRequest" function sends data and "zb_RecieveDataIndication" gets it from other device.. But if device is coordinator "zb_SendDataRequest" function doesn't work..
We ask that if there is a mistake at the parameters or usage of "zb_SendDataRequest" function at Coordinator or is there any other way to send data from coordinator to another device?..

  • Hi Altan Somay,

    what demonstration kit are you using? ez430-RF2480?

    Do you use bining for data transfer? Or do the devices know each other's network-address? Or is it just a broadcast?

    Altan Somay said:

    As we understand "zb_SendDataRequest" function sends data and "zb_RecieveDataIndication" gets it from other device.. But if device is coordinator "zb_SendDataRequest" function doesn't work..
    We ask that if there is a mistake at the parameters or usage of "zb_SendDataRequest" function at Coordinator or is there any other way to send data from coordinator to another device?..

    Correct, there should be an RecieveDataIndication, in case that the coordinator is receiving something. As I mentioned before, you can still try a broadcast and see whats happening. The radius-value in SendDataRequest should be greater than the number of  "hops" the message has to take to arrive.

    Every time you fire up a SendDataRequest, you should receive an ZB_SEND_DATA_CONFIRM. It has a status value you should check.

    Best regards

    Jan

  • Hi Jan,

    Thank you so much for your answer..

    Actually we've fixed the problem just after asking that.. But i have to say, it wasn't an address problem.. We could get the data from router to coordinator, but couldn't send it back.. Not even with the short adresses..
    As i said now we've made it.. It's sending data just like a router now..

    Thanks for your kind care.. :)

    Best regards..

    Altan

  • Hi Altan

     

    I have the same problem as you had...i can send data from end device to coordinator but can´t send any data from coordinator to end device...

    I´m new to Zigbee and would appreciate if you could help me? thanks....

     

    Best regards..

    Z_A_S_H

  • Hi Altan,

    if you found a solution to your problem posted in the forum, it would always be nice to give the forum the asmwer too, so that others may also have the answer to their problem.

    Really appreciate your answer. THX

  • Hi there..

    Sorry i'm late for the reply..
    But it was sunday.. :))

    Actually it's not as difficult as it looks like.

    In the "sample_app.c" file find;

    else  // If attempting to join as an FFD/Router fails, start a new network as a Coordinator.
      {
        val = ZG_DEVICETYPE_COORDINATOR;   
        zb_WriteConfiguration(ZCD_NV_LOGICAL_TYPE, 1, &val);   
        appFlags |= appSinkingF;    
      }

    "appFlags" word here is your only enemy while sending data from Coordinator to rest..

    We've disabled that row and Coordinator started to work..

    I hope it works for you too..

    Good luck..

    Altan..

  • Sorry Altan

    is it neceaary to register another commandID? Output for coordinator and input for EndDevice?

    How did u send data? By using direct or broadcast addressing? Or binding? In this last case, is it necessary that coordinator asks binding to end-device?

    thanks a lot in advance

    PC

  • Please send me the eZ430-RFZACC06 Demo Kit , my email: feelthesunshine18@yahoo.com

     

    Thank you very much!

     

    Have a nice day!