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.

how to build communication between 2 cc2530bb

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

hi, my name is eddy... 

I am a newbie in this zigbee stuff and I just got task to make a communication between 2 CC2530BB board through a CC2530EB.

I tried to read the example but it just communication between a CC2530EB to CC2530BB or CC2530BB to CC2530BB.

thank you in advance.

 

Eddy.

  • Hi Eddy,

     

    By communication you mean a wireless (using radios on both Evaluation Modules),

    or a wired one (using UART or SPI master/slave)?

    Since you mentioned "ZigBee", my guess you are talking about connecting two BBs

    in a wireless way. In that case, you are probably trying to use TI's Z-Stack.

    That's brings me to my next question to you, what is the example you are talking about?

  • Hi Igor,

    Thanks for trying to answer my question.

    I want to make a wireless communication (using radios) from BB to Evaluation Modules and then from Evaluation Modules to the other BB. 

    and because I was told that its a simple way of communications, I don't need to use Z-stack.

    I try to run light switch before. 

    thank you,

     

    Best Regards,

     

    Eddy.

  • Hi Eddy,

     

    It will be much more helpful if you can point me to the example you'r trying to use.

    In that way I can help you with documentation and "steps to do" in order to make

    the communication thing work.

  • Hi Igor,

     

    I tried to run light switch srf05 from cc2530 sw_examples (inside swrc135b file)

    it shows how to control LED from BB board using EM board and vice versa. 

    what I want to make is the BB1 detecting signal from temperature sensor, and then send it to EM board. EM board will triggered the BB2 to turn LED on.

    it can be said that EM board will relayed the information from BB1 to BB2.

    this is the first step that I need to find out before making it more complex. 

    thank you for your help,

     

    Best Regards,

     

    Eddy

  • Hi,

     

    You got the examples and you've flushed two evaluation modules with "Light/Switch application".

    You also followed the instructions in "CC2530_Software_Examples.pdf" and it doesn't work?

     

    Or maybe you facing some difficulties to read a signal from temperature sensor (by the way

    what is exactly this temperature sensor)?

  • Hi igor,

     

    I have followed the instructions in the example.pdf and its work. 

    the problem is that I want to modify some part of it and make communication from

    BB1 -> EM -> BB2

    or

    BB2 -> EM -> BB1 

    I can turn on the LED in EM using BB1 if the temperature sensor send out some value.(I change the function of push button to be sensor for activating the LED)  

    but I don't know how to send that value (from the sensor that read by BB1) to BB2 using EM

  • Hi Eddy,

     

    Probably I'm missing something here, the "BB" are actually smartRF05BB

    (battery boards) with CC2530EM mounted on them?

    In this case the communication should be like that:

    BB1 -> EM1 --- OTA* ---> EM2 -> BB2. (am I right so far?)

    And as far as I know evaluation modules comes without LEDs (BBs are).

    And how exactly you want to get data from the temperature sensor?

  • Hi igor,

     

    My apologize if I wrote somethings wrong.

    It is true that BB are SmartRF05Battery Board, and it is also true about the communication.

    I mistook the Evaluation Board as EM.

    for the data I connect it directly from the output of sensor to one of ADC pin in BB.

    when I tried to check the result on Evaluation Board, its work.

    but now I am really confuse how to make BB1 -> EM1 --- OTA* ---> EM2 -> BB2 communication.

    really thank you for your help


    Best Regards,

     

    Eddy.

  • Hi Eddy,

     

    Well, now it is clear. :)

    As for the communication, lets assume that EM1 used as Switch and EM2 used as Light.

    In light_switch.c file find in appSwitch() function and replace  pTxData[0] = LIGHT_TOGGLE_CMD;

    line with this one pTxData[0] = (uint8)adcSampleSingle(YOUR_REFERENCE, ADC_7_BIT, YOUR_CHANNEL);

    Now, open two IAR IDEs, compile the project and download it for debugging into to both EMs.

    In IAR with EM2 (Light) set a breakpoint on halLedToggle(1); inside the appLight() function.

    start running both sides and press on joystick to send a message from Switch to the Light side.

    Once the Light side breaks on the breakpoint, add pRxData[0] to "watch" window and also pause

    the Switch side and add a pTxData[0] to "watch" window, then compare if these two values are

    the same.