Yes, the comments are to explain what i changed.
bitrate to 1200 and Fdev(Frequency Deviation) to 2000
regarding RxBw (Recieving Bandwith):
I have basically no idea what those numbers stand for or what they do I just tried some combinations until it worked.
regarding RegLna(no idea what that stands for):
I have some small antennas with 50 ohm impedance so i changed LnaZin to 50 ohm (default is 200 ohm) i still haven't noticed any difference but i guess it should be better in theory.
if someone wants to tweak these numbers what they need is the rfm69 datasheet and the rfm69 Registers
I am using the node and gateway example sketches. Because the bitrate has slowed down the actual transmitting is taking longer and therefore ACK_TIME must be increased as well as TRANSMITTPERIOD. I can't however see how ACK_TIME is passed down to the library because it is never used, only defined...
I used:
if (radio.sendWithRetry(GATEWAYID, payload, sendSize,2,200))
The "2" is the number of retries and "200" is how long the node should wait for an ack before trying again.
My range doubled from the default 55.5 kbps
I am still using some cheap and small antennas but still getting 300m with node inside a concrete building and cars in the way, testing was also done in a sort of industrial environment which could affect the results. My goal is 600 meters line of sight and I'm hoping I can test that out today
It would be really cool if the library would have a function:
void setBitrate(bitrate)
if (bitrate==1200)
{
writeReg(0x??,0x??);
....
}
else if(bitrate==19200)
and so on... It would not have to be all bitrates available, I think 19.2, 1.2, 55.5 kbps and one faster would be more than enough.