Author Topic: Trouble with RFM96 sending packets?  (Read 914 times)

0 Members and 1 Guest are viewing this topic.

Offline BoscoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 275
Trouble with RFM96 sending packets?
« on: June 18, 2018, 08:40:44 pm »
Hi all,

I wonder if I can get some advice on this device?

I'm writing a driver to send packets on this radio. I have basically copied the register settings from the init and send functions from the Adafruit Arudino library.

https://github.com/adafruit/RadioHead/blob/master/RH_RF95.cpp

I get successful SPI comms with the radio, I can read and write registers, fine. The hardware is good, the schematic is right and working.

My problem is I can't send on the radio. To send you do the following:

- Put the radio into standby mode
- Fill the FIFO with the data to send.
- Set the length of the data.
- Put the radio into TX mode.
- Wait for interrupt for completion.

What I get:

- Put the radio into TX mode.
- Wait for interrupt for completion.
- The interrupt doesn't happen even if I wait for 10 minutes.
- Retry sending, on about the 5/6th time, I'll get the interrupt. The result is channel activity detected.
- I then never get another interrupt despite how long I wait or number of times I try sending a packet. I have to reset and reconfigure the radio before the above happens again.

With the current setup do I need to set more registers? Are there more than the two functions that I mention? Any advice for what might be happening?

Thanks
 

Offline BoscoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 275
Re: Trouble with RFM96 sending packets?
« Reply #1 on: June 25, 2018, 08:24:59 pm »
Does anyone have any ideas? Anything would really help! Thanks.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf