DAMN TRF-2.4G

Hi! I hope ANYBODY can help me!! :cry:

I’ve problems sending (or maybe receiing) with the TRF-2.4G module. But I think the problem is in the Tx module.

I’m using this module with a Motorola HCS08. I communicate with it via SPI (wich was tested and works fine ). This is what I do:

First, I config the Rx. CS HIGH, CE LOW and I input the config word via SPI. When I say config word I mean:

15 bytes (0-14) for config word

  • 12 bytes for DATA

  • 3 bytes for ADDRESS

  • 1 CHANNEL (channel #1)

  • CRC ENABLE, CRC 16 bits

  • CHANNEL #2 DISABLE

  • ShockBurst

  • 250 Kbps

  • Xtal frequency 20MHz

  • RF POWER 0db

  • RF CHANNEL 2464 MHz

  • RXEN as Rx

Then, CS LOW, CE LOW. And after that I leave it to receive with CE HIGH and CS LOW. That’s what I do with the Rx Module.

Now we move to the Transmitter. I send the exactly same config word (except for RXEN as Tx), with CS HIGH and CE LOW. Then back to CE and CS LOW… And when I want to send a package CE HIGH, CS LOW and then I send what I want to send (ADDRESS[3bytes]+DATA[12 bytes]), MSB first and after sending that to te Tx Module, CS and CE high… And then, NOTHING… I always expect the Rx to indicate that it receive it but it wouldn’t. :oops:

I connect a LED to the DR1 pin in the Rx module so it turns on when something is receive. And It won’t turn off until I remove the receive data from the module (which I don’t).

Some curious things:

  • If the ADDRESS set to the Rx is less than 2 bytes, I receive trash. I mean, the LED turns on every time!. I thing that could be noise… but I don’t really trust my instincts because it has 16 bits CRC!!!.. Then, if I set 3 bytes ADDRESS or Higher, the LED does not turn off because of noise and neither because of I what I send.

  • Another thing I think the next is not a big deal but… The 2 modules are very close (2 feet). I’m wondering if that is troubling the Tx and Rx.

  • I’ve just read thatt this modules anre not prepare or don’t work fine with single data package to be send. But sadly that’s what I’m doing. I send a sinlge package every (lets say) 10 sec.

  • AND THE LAST THING: PLEASE HELP!!! EVERY WHERE I READ THEY SAY THEY ACHIVE WHAT I’M LOOKING FOR… IF IT’S SO SIMPLE WHY I CAN’T DO IT RIGHT!!! I’M SURE I’M MISSING SOMETHING HERE. :shock:

WELL THX EVERYBODY :wink: … ANY HELP IS HEAVENLY APPRECIATED

SebaS

I don’t think that you want bot CS and CE high at the same time.

George

MSB first and after sending that to te Tx Module, CS and CE high… And then, NOTHING…

Yes you’re rigth I don’t want that. Sorry I mistyped. What I meant was: CS and CE LOW. OOOPS :roll:

Yersterday I try something wich brought crazy results. I set both Rx and Tx with CRC enabled and 1 byte for Rx Address; and the LED connected to DR1 turns on, when I’m done configuring the Rx module (that’s surely because of noise).But at least it means that the config works!! 8)

But the unnusual is that then I do the same but with no CRC (I mean CRC Disable) and the LED did not turn on. :shock:

I expected that is was more probably that the LED turns on without CRC… But wow!! Electronics really surprise you!!! :o

You can compare your code with mine in the AVR code forum, the thread is called “RF24G with SPI”.

Are you sure you have a 20MHz crystal? My module has a 16MHz.

/Lars