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. Where to define RF24 Datarate

Where to define RF24 Datarate

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 3 Posters 6.0k Views 5 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.
  • Mark SwiftM Offline
    Mark SwiftM Offline
    Mark Swift
    wrote on last edited by
    #2

    I confirm I see this too...

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hek
      Admin
      wrote on last edited by
      #3

      Do you print debug information before or after configuration has been set?

      It happens here:
      https://github.com/mysensors/Arduino/blob/a7580d124e7424cb1a19ba0b4649a72a1029d692/libraries/MySensors/core/MyTransportNRF24.cpp#L56

      1 Reply Last reply
      0
      • Mark SwiftM Offline
        Mark SwiftM Offline
        Mark Swift
        wrote on last edited by Mark Swift
        #4

        @hek Excuse the lack of knowledge... I have this at the top of my sketch:

        // Enable and select radio type attached
        #define MY_RADIO_NRF24
        // #define MY_RADIO_RFM69

        // Set RF24L01 channel number
        #define MY_RF24_CHANNEL 125

        // Define nRF24L01 datarate
        #define MY_RF24_DATARATE RF24_250KBPS

        // Enable nRF24L01 debug messages
        #define MY_DEBUG_VERBOSE

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hek
          Admin
          wrote on last edited by
          #5

          Looks correct. Are you saying it still goes into 1MBS mode?

          1 Reply Last reply
          0
          • Mark SwiftM Offline
            Mark SwiftM Offline
            Mark Swift
            wrote on last edited by
            #6

            @hek I see this when the node / gateway is started:

            TATUS 0x0E RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
            RX_ADDR_P0-1 0x0F0F3B3F03 0F0F3B3F03
            RX_ADDR_P2-5 0xFF C4 C5 C6
            TX_ADDR 0x0F0F3B3F0E
            RX_PW_P0-6 0x20 20 20 00 00 00
            EN_AA 0x3B
            EN_RXADDR 0x07
            RF_CH 0x4C
            RF_SETUP 0x07
            CONFIG 0x0E
            DYNPD/FEATURE 0x3F 06
            Data Rate 1MBPS
            Model nRF24L01+
            CRC Length 16 bits
            PA Power PA_MAX

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hek
              Admin
              wrote on last edited by
              #7

              Trying to understand where the extended debug prints comes from.
              Did you un-comment this line?
              https://github.com/mysensors/Arduino/blob/a7580d124e7424cb1a19ba0b4649a72a1029d692/libraries/MySensors/core/MyTransportNRF24.cpp#L73

              1 Reply Last reply
              0
              • Mark SwiftM Offline
                Mark SwiftM Offline
                Mark Swift
                wrote on last edited by
                #8

                @hek No, I simply added

                // Enable nRF24L01 debug messages
                #define MY_DEBUG_VERBOSE

                to my sketch?

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hek
                  Admin
                  wrote on last edited by
                  #9

                  Ok.. found it... printDetails happens here:
                  https://github.com/mysensors/Arduino/blob/a7580d124e7424cb1a19ba0b4649a72a1029d692/libraries/MySensors/drivers/RF24/RF24.cpp#L553

                  This is printed before we set the data-rate to 1MBPS. So I guess everything is ok.

                  Mark SwiftM 1 Reply Last reply
                  0
                  • H hek

                    Ok.. found it... printDetails happens here:
                    https://github.com/mysensors/Arduino/blob/a7580d124e7424cb1a19ba0b4649a72a1029d692/libraries/MySensors/drivers/RF24/RF24.cpp#L553

                    This is printed before we set the data-rate to 1MBPS. So I guess everything is ok.

                    Mark SwiftM Offline
                    Mark SwiftM Offline
                    Mark Swift
                    wrote on last edited by
                    #10

                    @hek said:

                    Ok.. found it... printDetails happens here:
                    https://github.com/mysensors/Arduino/blob/a7580d124e7424cb1a19ba0b4649a72a1029d692/libraries/MySensors/drivers/RF24/RF24.cpp#L553

                    This is printed before we set the data-rate to 1MBPS. So I guess everything is ok.

                    Okay, I'll trust you it's being set to 250 kbps then ;-)

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      hek
                      Admin
                      wrote on last edited by
                      #11

                      You can always uncomment the line I pointed to earlier if you don't believe me ;)

                      1 Reply Last reply
                      0
                      • Mark SwiftM Offline
                        Mark SwiftM Offline
                        Mark Swift
                        wrote on last edited by
                        #12

                        @hek I did (Not that I don't trust you), and you're right. Go get yourself a beer and pat yourself on the back ;)

                        Now if I could just get my ESP8266 to actually not reply to 50% off messages with st=fail.

                        I've only been trying to get this all working for 3 weeks (sigh).

                        1 Reply Last reply
                        1

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        19

                        Online

                        12.0k

                        Users

                        11.2k

                        Topics

                        113.4k

                        Posts


                        Copyright 2025 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