Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. ESP8266 with RFM69HW - missing packets

ESP8266 with RFM69HW - missing packets

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 3 Posters 2.8k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    robosensor
    wrote on last edited by
    #3

    How many packets per second are you sending to ESP side?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      melwinek
      wrote on last edited by
      #4

      In loop:
      V_VAR1
      V_VAR1
      V_VAR1
      Wait 5sec.

      Between 3 VAR messages no wait.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        robosensor
        wrote on last edited by
        #5

        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.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          melwinek
          wrote on last edited by melwinek
          #6

          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 ?

          mppM 1 Reply Last reply
          0
          • M melwinek

            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 ?

            mppM Offline
            mppM Offline
            mpp
            wrote on last edited by
            #7

            @melwinek why are you using #define MY_RFM69_NEW_DRIVER? The documentation about this doesn't explain why you should or should not use it.

            MyController with USB powered WeMos D1/mini ESP8266 MQTT Gateways and battery powered Arduino Pro Mini using the RFM69 radio

            1 Reply Last reply
            0
            • M Offline
              M Offline
              melwinek
              wrote on last edited by
              #8

              MY_RFM69_NEW_DRIVER uses unique transmission power control, if the distance is less, transmission power is also reduced.

              mppM 1 Reply Last reply
              0
              • M melwinek

                MY_RFM69_NEW_DRIVER uses unique transmission power control, if the distance is less, transmission power is also reduced.

                mppM Offline
                mppM Offline
                mpp
                wrote on last edited by
                #9

                @melwinek thank you. What controller and sketch are you using?

                MyController with USB powered WeMos D1/mini ESP8266 MQTT Gateways and battery powered Arduino Pro Mini using the RFM69 radio

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  melwinek
                  wrote on last edited by
                  #10

                  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 16
                  

                  Hardware is very simple :)
                  0_1494437968070_1.jpg
                  0_1494437986271_2.jpg

                  1 Reply Last reply
                  0
                  • mppM Offline
                    mppM Offline
                    mpp
                    wrote on last edited by
                    #11

                    Wow, very simple indeed! You're just using the ESP12E chip, have you tried using a microcontroller like the NodeMCU or WeMos D1?

                    MyController with USB powered WeMos D1/mini ESP8266 MQTT Gateways and battery powered Arduino Pro Mini using the RFM69 radio

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      melwinek
                      wrote on last edited by
                      #12

                      NodeMCU is much bigger. It also costs a lot more. I do not need a USB port or any other features that have these modules.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      11

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      Posts


                      Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular