ESP8266 with RFM69HW - missing packets
-
I have a problem with the wifi gateway.
I run this gateway with ESP12E + RFM69HW powered by 9V battery with AMS1117-3.3V.
ESP12E has GPIO0, GPIO2, EN pullup to VCC with 10k and GPIO15 to GND with 10k.Node (Mini Pro 3v 8MHz) is simply RSSI transmitter with OLED screen.
I test transmision with:boolean succes = send(msgRSSI1.set(rssi)); if (!succes){display.print("E ");}Not every package comes to Gateway.
When i run Serial Gateway all is ok. All packets comes to Gateway.
Sorry for my bad English.
-
How many packets per second are you sending to ESP side?
-
Please try to test code with wait() between each send. In some enviroments (not in all) sometimes (not always) ESP code blocks thread of execution up to 200 milliseconds while waiting for TCP ACK packet. So if you send next your packet in this 200 ms interval packet (or next packet) can be missed.
-
In 2.1.1 wait 200ms, did not help
In development, everything is okay. All messages is received by gateway once.
Tomorrow I will check the range, maybe I do not need RFM69HCW just RFM69CW. Thanks for help.One observation:
Global variables in development version use a lot of dynamic memory. Its normal ? -
In 2.1.1 wait 200ms, did not help
In development, everything is okay. All messages is received by gateway once.
Tomorrow I will check the range, maybe I do not need RFM69HCW just RFM69CW. Thanks for help.One observation:
Global variables in development version use a lot of dynamic memory. Its normal ? -
MY_RFM69_NEW_DRIVER uses unique transmission power control, if the distance is less, transmission power is also reduced.
-
Controller: fhem
Sketch: GatewayESP8266OTA with my changes:#define MY_RADIO_RFM69 #define MY_RFM69_NEW_DRIVER #define MY_RFM69_MAX_POWER_LEVEL_DBM 13 #define MY_RF69_IRQ_PIN 15 #define MY_RF69_IRQ_NUM MY_RF69_IRQ_PIN #define MY_RF69_SPI_CS 16Hardware is very simple :)

