Author Topic: Data Rate settings calculator  (Read 592 times)

shailesh

  • Newbie
  • *
  • Posts: 9
Data Rate settings calculator
« on: November 08, 2017, 04:41:02 AM »
Hello,

I have worked with another brand of RF modules that were supported by a tool which would automatically calculate the register settings for a given data rate. I am using standard settings for 38400 kbps and now need to up the rate to maybe around 250kbps. Does anyone know of any tool or utility for the RFM69 or better still, can anyone provide a working set of register settings for the data rate? I am using the RFM69CW.

Many thanks in advance.

Shailesh

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6403
  • Country: us
    • LowPowerLab
Re: Data Rate settings calculator
« Reply #1 on: November 08, 2017, 08:36:03 AM »
This has worked for me:

Code: [Select]
#ifdef BR_300KBPS
  // set baud rate to 300kbps (equals 0x006B, DS table 9)
  radio.writeReg(0x03,0x00);  //set regBitrateMsb
  radio.writeReg(0x04,0x6B);  //set regBitrateLsb
  radio.writeReg(0x19,0x40); //set RxBW to 500kHz
  radio.writeReg(0x1A,0x80); //set RxBWAfc to 500kHz
  // Set FDEV to 300khz, implies Fdev=0x1333
  radio.writeReg(0x05,0x13);  //write MSB of Fdev
  radio.writeReg(0x06,0x33);  //write LSB of Fdev
  radio.writeReg(0x29,255);  //write LSB of Fdev
#endif

shailesh

  • Newbie
  • *
  • Posts: 9
Re: Data Rate settings calculator
« Reply #2 on: November 09, 2017, 12:44:32 PM »
Thanks Felix,

would it be an idea to have a set of register settings for different data rates somewhere on the forum for people who might need to use different data rates?

Just a suggestion.

Regards,
Shailesh

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6403
  • Country: us
    • LowPowerLab
Re: Data Rate settings calculator
« Reply #3 on: November 09, 2017, 02:08:10 PM »
Various sets of settings have been shared in various threads already but yes it would make sense to have it all more localized in 1 place/thread, if someone wants to share they are welcome to do so.
Please consider giving feedback on whatever settings you use or if you find something that works better in certain scenarios.
Thanks