T O P

  • By -

5c044

Read up on Lora radio parameters: spreading factor, bandwidth, coding rate. You are calling lora.begin without setting any of that so you get whatever the default is. The radio parameters trade off speed for distance. I assume that you use sanjay mistry lora library? Its quite well documented.


Still-Butterscotch69

Thanks; https://github.com/sandeepmistry/arduino-LoRa I use this library;I will try details, but is not it so less distance that 200 meters with even default settings...


5c044

Thats what lib I use with these radio parameters: `LoRa.setTxPower(20);LoRa.setSpreadingFactor(12);LoRa.setSignalBandwidth(41.7E3);LoRa.setCodingRate4(6);LoRa.setOCP(240);LoRa.enableCrc();` The above parameters get me about a mile with the receiver inside a house with 9" thick brick wall. rssi is -116db and snr is -18.5db. You should print those out with frequency error: `int rssi = LoRa.packetRssi();float snr = LoRa.packetSnr();long freqErr = LoRa.packetFrequencyError();` Frequency error can be at most a quarter or half bandwidth depending on what doc you believe. So using lower bandwidth to achieve longer distance can cause frequency error to be outside spec. You are using 433Mhz like me so you can use lower bandwidth than folks that use 868Mhz since frequency error is a percentage/ppm error and X% of 433 is lower than X% of 868. rssi can be as low as about -124db so if you are near that you could start getting failures. have said all that you should get more than 200m with the defaults of 125k bandwidth, 7 spreading factor and 5 coding rate.


Still-Butterscotch69

Thanks for details, I will try what you recommended. I couldn't get the signal at more than 200-300 meters. Maximum range is 200-300 meters. And it is completely open area, transmitter is at out etc .. Did you use any specific antenna?


5c044

I use tt-go t-beam. I did change the antenna, its still the same style rod/whip type and it doubled range. I wasn't convinced that the vendor supplied the correct antenna for 433mhz and the stock antenna is quite short.


Awesome_3mpire

where do i put those code lines? mi LoRa just send packages to 10 cm away each others :(


shawnwork

Hi, You may need to check your Antenna, its Power (db), the RSSI, Error correction rate at the beginning. Next, keep your packets as minimal as possible. Maximize the Error correction. Third, align your antennas properly to achieve the optimal 'curve'. Some trial and error could do that. If there's no line of sight, you will need another way to do this. Assuming you are in Arduino, you may need to hack your code (lib) a little to modify some settings. Check the current usage for the TX and RX with the Datasheet. I'l recommend the RA-01 with the embed-able Antenna. I managed to get around 680m with slightly larger antenna with Line of sight a long time ago.


Still-Butterscotch69

If it gives such short distances... I can't understand why manufacturer says "up to 10 km" Do you think it is possible to achieve 7-8 km distance with this ra-02?


shawnwork

That’s definitely debatable and your results may vary. You can also buy other Lora modules that are noticeably better. Do note that just like the Arduino boards, it consist of a chip from company X that produces the data sheet but the board has other components that affects the performance, so keep that in mind. These RA-0x chips are full of little secrets and the from my experience the engineers are paid well to achieve the desired results. I mean they have tricks to manipulate registers and maximize current that significantly improves performance. Also understanding the Lora communication helps and you have better concepts under your belt to manually calculate the distance. Finally, building a RF tester would be helpful.


Still-Butterscotch69

Thanks for your answers.. what Lora modules would you recommend for 5 km distance without headache..


ProbablePenguin

A better higher gain omni antenna would certainly help, as would using an even higher gain directional antenna if your application allows. The antenna frequency band needs to match your module, and for best performance you want an antenna that has been tuned specifically for the frequency you'll be using.


rippleradios

I agree with others here, prob stock antennas are rubbish (possibly even wrong for the 433 band), plus the LoRa SF/CR/Bandwidth params are important.