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. Development
  3. Specific register setting fo NRF24 with PA-LNA

Specific register setting fo NRF24 with PA-LNA

Scheduled Pinned Locked Moved Development
13 Posts 4 Posters 95 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.
  • C Offline
    C Offline
    cabat
    wrote on last edited by
    #1

    It has long been known, that the NRF24 module with PA-LNA work strangely, if the RF24_PA_LEVEL parameter has not the RF24_PA_LOW value.

    I decided to study the issue a little and found such a parameter in the registers of the NRF24 chip settings - "LNA gain":

    "6.5 LNA gain
    The gain in the Low Noise Amplifier (LNA) in the nRF24L01 receiver is controlled by the LNA gain setting. The LNA gain makes it possible to reduce the current consumption in RX mode with 0.8mA at the cost of 1.5dB reduction in receiver sensitivity.The LNA gain has two steps and is set by the LNA_HCURR bit in the RF_SETUP register."

    (see nRF24L01 Single Chip 2.4GHz TransceiverProduct Specification)

    I see this setting in RF24registers.h:

    #define RF24_LNA_HCURR		(0)
    

    May be here I may use "1" for module with PA-LNA?

    #define RF24_LNA_HCURR		(1)
    
    mfalkviddM 1 Reply Last reply
    0
    • C cabat

      It has long been known, that the NRF24 module with PA-LNA work strangely, if the RF24_PA_LEVEL parameter has not the RF24_PA_LOW value.

      I decided to study the issue a little and found such a parameter in the registers of the NRF24 chip settings - "LNA gain":

      "6.5 LNA gain
      The gain in the Low Noise Amplifier (LNA) in the nRF24L01 receiver is controlled by the LNA gain setting. The LNA gain makes it possible to reduce the current consumption in RX mode with 0.8mA at the cost of 1.5dB reduction in receiver sensitivity.The LNA gain has two steps and is set by the LNA_HCURR bit in the RF_SETUP register."

      (see nRF24L01 Single Chip 2.4GHz TransceiverProduct Specification)

      I see this setting in RF24registers.h:

      #define RF24_LNA_HCURR		(0)
      

      May be here I may use "1" for module with PA-LNA?

      #define RF24_LNA_HCURR		(1)
      
      mfalkviddM Online
      mfalkviddM Online
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @cabat no. The define specifies which bit (bit number 0) to change when changing the register. The value of the register is not set by the define.

      C 1 Reply Last reply
      0
      • mfalkviddM mfalkvidd

        @cabat no. The define specifies which bit (bit number 0) to change when changing the register. The value of the register is not set by the define.

        C Offline
        C Offline
        cabat
        wrote on last edited by cabat
        #3

        @mfalkvidd you right, this define don't changing the register..
        I find deeper and what can i see in datasheet:

        06374145-7fe1-4398-9c1c-9519e94b9349-изображение.png

        and i see in RF24.h:

        #define RF24_RF_SETUP (uint8_t)(( ((MY_RF24_DATARATE & 0b10 ) << 4) | ((MY_RF24_DATARATE & 0b01 ) << 3) | (MY_RF24_PA_LEVEL << 1) ) + 1) 		//!< RF24_RF_SETUP, +1 for Si24R1 and LNA
        

        May be need change in this define?

        UPDATE: As i see, in RF4.h used HCURR = 1:

        #define RF24_RF_SETUP ..  // !< RF24_RF_SETUP, +1 for Si24R1 and LNA
        
        YveauxY 1 Reply Last reply
        0
        • C cabat

          @mfalkvidd you right, this define don't changing the register..
          I find deeper and what can i see in datasheet:

          06374145-7fe1-4398-9c1c-9519e94b9349-изображение.png

          and i see in RF24.h:

          #define RF24_RF_SETUP (uint8_t)(( ((MY_RF24_DATARATE & 0b10 ) << 4) | ((MY_RF24_DATARATE & 0b01 ) << 3) | (MY_RF24_PA_LEVEL << 1) ) + 1) 		//!< RF24_RF_SETUP, +1 for Si24R1 and LNA
          

          May be need change in this define?

          UPDATE: As i see, in RF4.h used HCURR = 1:

          #define RF24_RF_SETUP ..  // !< RF24_RF_SETUP, +1 for Si24R1 and LNA
          
          YveauxY Offline
          YveauxY Offline
          Yveaux
          Mod
          wrote on last edited by Yveaux
          #4

          @cabat what are you trying to achieve? Setting that LNA_HCURR to 1? It appears indeed to be 1 by default in MySensors

          http://yveaux.blogspot.nl

          C 1 Reply Last reply
          0
          • skywatchS Offline
            skywatchS Offline
            skywatch
            wrote on last edited by
            #5

            Which PA/LNA module are you referrig to? There are a few..... Some better than others.

            C 1 Reply Last reply
            0
            • YveauxY Yveaux

              @cabat what are you trying to achieve? Setting that LNA_HCURR to 1? It appears indeed to be 1 by default in MySensors

              C Offline
              C Offline
              cabat
              wrote on last edited by
              #6

              @Yveaux I want to try solve the problem with NRF24 module with PA-LNA..

              1 Reply Last reply
              0
              • skywatchS skywatch

                Which PA/LNA module are you referrig to? There are a few..... Some better than others.

                C Offline
                C Offline
                cabat
                wrote on last edited by
                #7

                @skywatch I am using this module
                710a31f3-a25c-44d1-b320-28b1056d3f4b-изображение.png

                and like this
                4875dbb7-7153-4a2e-ab7b-467a26c0f252-изображение.png

                skywatchS 1 Reply Last reply
                0
                • C cabat

                  @skywatch I am using this module
                  710a31f3-a25c-44d1-b320-28b1056d3f4b-изображение.png

                  and like this
                  4875dbb7-7153-4a2e-ab7b-467a26c0f252-изображение.png

                  skywatchS Offline
                  skywatchS Offline
                  skywatch
                  wrote on last edited by skywatch
                  #8

                  @cabat I have both of those and the one in the second photo is a pain. I do not use that one any more.
                  The Ebyte one is the better of the two. ATM I only use it for the gateway set to low Tx power and no problems at all with it. I did invest in a good quality branded power supply from major UK distriburor and added a capacitor to the board.

                  If you are havving problems with this module I suggest you post a photo of how it is all wired up.

                  C 1 Reply Last reply
                  0
                  • skywatchS skywatch

                    @cabat I have both of those and the one in the second photo is a pain. I do not use that one any more.
                    The Ebyte one is the better of the two. ATM I only use it for the gateway set to low Tx power and no problems at all with it. I did invest in a good quality branded power supply from major UK distriburor and added a capacitor to the board.

                    If you are havving problems with this module I suggest you post a photo of how it is all wired up.

                    C Offline
                    C Offline
                    cabat
                    wrote on last edited by
                    #9

                    @skywatch The peoblem is in not working OTA with NRF24-PA-LNA, if the RF24_PA_LEVEL parameter has not the RF24_PA_LOW value..
                    It's refers to Ebyte module too..
                    The power supply is the brand Samsung power adapter for the tablet and the LM1117 3.3V with 100uF capacitor.

                    skywatchS 1 Reply Last reply
                    0
                    • C cabat

                      @skywatch The peoblem is in not working OTA with NRF24-PA-LNA, if the RF24_PA_LEVEL parameter has not the RF24_PA_LOW value..
                      It's refers to Ebyte module too..
                      The power supply is the brand Samsung power adapter for the tablet and the LM1117 3.3V with 100uF capacitor.

                      skywatchS Offline
                      skywatchS Offline
                      skywatch
                      wrote on last edited by skywatch
                      #10

                      @cabat So FOTA works with both NRF modules if set to PA_LOW but not at higher Tx level?

                      Both gateway and node use the same modules? Same samsung model power supply for the node and gateway?

                      What is the distance between modules when testing this?

                      Also, if it works on low power why not leave it like that?

                      C 1 Reply Last reply
                      0
                      • skywatchS skywatch

                        @cabat So FOTA works with both NRF modules if set to PA_LOW but not at higher Tx level?

                        Both gateway and node use the same modules? Same samsung model power supply for the node and gateway?

                        What is the distance between modules when testing this?

                        Also, if it works on low power why not leave it like that?

                        C Offline
                        C Offline
                        cabat
                        wrote on last edited by cabat
                        #11

                        @skywatch Yes, FOTA works with both modules, it is one gateway, i just change one module (black) to another (Ebyte), distance between gatway and node aprox 2-3m.
                        I want to find a solution to increase distance, because of some of my node work unstable..

                        skywatchS 1 Reply Last reply
                        0
                        • C cabat

                          @skywatch Yes, FOTA works with both modules, it is one gateway, i just change one module (black) to another (Ebyte), distance between gatway and node aprox 2-3m.
                          I want to find a solution to increase distance, because of some of my node work unstable..

                          skywatchS Offline
                          skywatchS Offline
                          skywatch
                          wrote on last edited by
                          #12

                          @cabat If you increase power with only 2-3M it will saturate the LNA, move them further apart and try again.

                          Are you saying that all modules are cdebyte or only one of them?

                          C 1 Reply Last reply
                          0
                          • skywatchS skywatch

                            @cabat If you increase power with only 2-3M it will saturate the LNA, move them further apart and try again.

                            Are you saying that all modules are cdebyte or only one of them?

                            C Offline
                            C Offline
                            cabat
                            wrote on last edited by
                            #13

                            @skywatch May be you right - the distance between node and gateway so small..
                            But how can i solve the problem of unstable link with node on distance about 5m and more with wall between node and gateway?

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


                            17

                            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