1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.62k stars 799 forks source link

OMG Lora receiving only 20% of packets sent to it #454

Closed svwhisper closed 4 years ago

svwhisper commented 5 years ago

I've now had many days using the Lora gateway and am finding that only 20% of packets sent by a remote node are received by the gateway. This isn't a range issue, as I moved the sender within a few feet of the gateway and didn't see any improvement. The antenna on the gateway is a commercial-grade 433mHz external antenna. I coded the receive example in Mistry's repo and ran it on a Moteino. It received 100% of the packets.

I've verified that all the Lora parameters (freq, bandwidth, spreading factor, etc.) are aligned between nodes. I wonder if the gateway is busy doing something else when the packets arrive? I only have Lora functionality enabled, i.e. no other modules like BLE.

I will try to progress root cause through review of the code but wanted to report this now.

1technophile commented 5 years ago

thanks for this report. could you indicate what is the sender board and firmware please?

svwhisper commented 5 years ago

Sender is a Moteino Mega with RFM95 transceiver using Sandeep Mistry's Lora library.

1technophile commented 5 years ago

did you find a solution to your issue?

svwhisper commented 5 years ago

I didn't intend to close the issue. Not sure how that happened.

Cloolalang commented 5 years ago

Hey Florian, Congratulations on this great project! I have a Lora question: I have started with and ESP-32 and a RA-02 433MHz lora module. I have installed V0.9.2 Binary ok Reading the guide: https://github.com/1technophile/OpenMQTTGateway/wiki/User-guide-LORA I see that we can setup the transmitter parameters for the Lora transmissions. Is is possible to configure my Lora receive parameters as well? The reason I ask is that the default seems to be 868MHz, and mine needs to be set to 433MHz. I would really like to be able to do this via an MQTT command rather than re-compiling the ESP firmware. Best Wishes Patrick

Cloolalang commented 5 years ago

Hey, So After more research, I have it all working except I can only get the ESP32+RA-02 working both transmit and receive using the Lora.h library version 3.0.\

I was able to setup my Lora transmit and receiver parameters by MQTT (using MQTT explorer) to publish a retained message to the topic: home/OpenMQTTGateway/commands/MQTTtoLORA the following Json; {"message":"B","spreadingfactor":12,"signalbandwidth":125E3,"frequency":434.250E6,"preamblelength":5,"codingrate":5,"enablecrc":false}

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

nikito7 commented 1 year ago

Need to fix node to single channel