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.

Manual ACK CC254x and CC2500

Other Parts Discussed in Thread: CC2500, CC2543

Hi,

I'm trying to implement a ACK routine in my CC2543 -> CC2500 system where the CC2543 is sending a package and then expects an ACK from the CC2500. If the CC2543 doesn't receive, it will resend the package 10 times or until it finaly gets the ACK. The package is 7 byte long and the ACK could be the same package sent back or a shorter package of only 2 bytes for instance.

Is there any example code on how to do this with any of the devices or could I get some help to figure out the best way to do it?

BR

  • Grusmacka,

    I think before you get to this step, have you confirmed that the two devices are in fact talking to each other over the air. The CC2543 only has a limited set of data rates that will work.

    Then I would recommend going thru some of our example code to find code snips of stuff that will help you down the right path.

    Here is some example code for the CC2543, that shows quick TX and RX turn around.

    www.ti.com/.../litabsmultiplefilelist.tsp

    Regards,
    Thomas
  • Hi Thomas,

    I have a working communication between the two devices using:

    2.44GHz
    MSK 250Kb data rate
    One channel used

    I have tried to find what you refere to in your link, which I guess it's the "swrc257.zip". In that there is almost nothing related to RF, only about all the peripherals such as ADC, UART, timers etc.

    Could you please point out a bit more in detail where you mean I can find the example?

    BR

  • Hi Thomas or anyone else,

    That's funny.. Now the link links to Another Place with an example program showing what I understand you where expecting it to do. That's a big step!

    I still don't get it to work properly but anyway I manage to send something back from the receiver side which I also manage to see using the SmartRF studio. What is sent back is not what I expect it to be, that is the problem for the moment.

    CC2543 sends a 7 byte data package where the 6 MSB contains the device ID of the CC2543 and the last byte contains a command.

    CC2500 receives a package and if it has the correct device ID, it sends back the same package. And for debug purpose after receiving a package it sends back that package in a endless loop, resending that package with 240ms delay.

    The attached printscreen shows the result from SmartRF studio 7 where I use a CC2543 as a packet sniffer (with the same radio settings as the CC2543 transmitter), a CC2543 as a transmitter and a CC2500 as receiver.

    First I only had the transmitter powered to show what was sent from it separetely. Then I powered up the CC2500 which after receiving a package starts to send mumbo jumbo data as it seems to me. What was expected was to see the same yellow marked data even in the "ACK cc2500" packages.

    ADDRESS - 1d 0b 59 5d 51 0a

    CMD - 01, 02, 03, 04 (one of them)

    Why are we seeing that data marked with an "?" ?

    BR, Jonas