Hi! I hope ANYBODY can help me!!
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 … ANY HELP IS HEAVENLY APPRECIATED
SebaS