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. General Discussion
  3. How to change PA _LOW to PA_MAX

How to change PA _LOW to PA_MAX

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 1.4k Views 1 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.
  • J Offline
    J Offline
    jpbabou
    wrote on last edited by
    #1

    I met problems with sensors and nrf2l01.
    How can i change the PA_LEVEL from PA_LOW to PA_MAX
    Here is the start of the gateway
    ================ SPI Configuration ================
    CSN Pin = CE0 (PI Hardware Driven)
    CE Pin = Custom GPIO25
    Clock Speed = 8 Mhz
    ================ NRF Configuration ================
    STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
    RX_ADDR_P0-1 = 0xa8a8e1fc00 0xa8a8e1fc00
    RX_ADDR_P2-5 = 0xff 0xc4 0xc5 0xc6
    TX_ADDR = 0xa8a8e1fc0a
    RX_PW_P0-6 = 0x20 0x20 0x20 0x00 0x00 0x00
    EN_AA = 0x3b
    EN_RXADDR = 0x06
    RF_CH = 0x4c
    RF_SETUP = 0x23
    CONFIG = 0x0e
    DYNPD/FEATURE = 0x3f 0x06
    Data Rate = 250KBPS
    Model = nRF24L01+
    CRC Length = 16 bits
    PA Power = PA_LOW

    Tks for your help

    1 Reply Last reply
    0
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      You define it in your sketch before including MySensors, or modify MyConfig.h

      I don't know why you want to change it, but if you have communication problems, changing to a higher level often makes things worse.

      J 1 Reply Last reply
      1
      • mfalkviddM mfalkvidd

        You define it in your sketch before including MySensors, or modify MyConfig.h

        I don't know why you want to change it, but if you have communication problems, changing to a higher level often makes things worse.

        J Offline
        J Offline
        jpbabou
        wrote on last edited by
        #3

        @mfalkvidd My problem is the following:
        i have 2 sensors DS1820D with promini
        Same sketch (except nodeid)
        One is OK: far from 1-2 meter from the Pigateway
        The other one (t° of my swimming pool) if far from max 10 m.. :works a few times (every 15 minutes).. then stop sendind

        I become crazy: i changed the power from battery to a 9v connected to a 3,3 V convertor connected on raw ..

        Thks for any idee ?
        Where do i have to change the code to have a PA_MAX for the PiGateway when i test with
        /usr/local/sbin/PiGatewaySerial

        Starting PiGatewaySerial...
        Protocol version - 1.4
        Created PTY '/dev/pts/0'
        Gateway tty: /dev/ttyMySensorsGateway
        ================ SPI Configuration ================
        CSN Pin = CE0 (PI Hardware Driven)
        CE Pin = Custom GPIO25
        Clock Speed = 8 Mhz
        ================ NRF Configuration ================
        STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
        RX_ADDR_P0-1 = 0xa8a8e1fc00 0xa8a8e1fc00
        RX_ADDR_P2-5 = 0xff 0xc4 0xc5 0xc6
        TX_ADDR = 0xe7e7e7e7e7
        RX_PW_P0-6 = 0x20 0x20 0x20 0x00 0x00 0x00
        EN_AA = 0x3b
        EN_RXADDR = 0x06
        RF_CH = 0x4c
        RF_SETUP = 0x23
        CONFIG = 0x0e
        DYNPD/FEATURE = 0x3f 0x06
        Data Rate = 250KBPS
        Model = nRF24L01+
        CRC Length = 16 bits
        PA Power = PA_LOW

        mfalkviddM 1 Reply Last reply
        0
        • J jpbabou

          @mfalkvidd My problem is the following:
          i have 2 sensors DS1820D with promini
          Same sketch (except nodeid)
          One is OK: far from 1-2 meter from the Pigateway
          The other one (t° of my swimming pool) if far from max 10 m.. :works a few times (every 15 minutes).. then stop sendind

          I become crazy: i changed the power from battery to a 9v connected to a 3,3 V convertor connected on raw ..

          Thks for any idee ?
          Where do i have to change the code to have a PA_MAX for the PiGateway when i test with
          /usr/local/sbin/PiGatewaySerial

          Starting PiGatewaySerial...
          Protocol version - 1.4
          Created PTY '/dev/pts/0'
          Gateway tty: /dev/ttyMySensorsGateway
          ================ SPI Configuration ================
          CSN Pin = CE0 (PI Hardware Driven)
          CE Pin = Custom GPIO25
          Clock Speed = 8 Mhz
          ================ NRF Configuration ================
          STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
          RX_ADDR_P0-1 = 0xa8a8e1fc00 0xa8a8e1fc00
          RX_ADDR_P2-5 = 0xff 0xc4 0xc5 0xc6
          TX_ADDR = 0xe7e7e7e7e7
          RX_PW_P0-6 = 0x20 0x20 0x20 0x00 0x00 0x00
          EN_AA = 0x3b
          EN_RXADDR = 0x06
          RF_CH = 0x4c
          RF_SETUP = 0x23
          CONFIG = 0x0e
          DYNPD/FEATURE = 0x3f 0x06
          Data Rate = 250KBPS
          Model = nRF24L01+
          CRC Length = 16 bits
          PA Power = PA_LOW

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @jpbabou if the node stops sending, it probably has a power issue. Using more power will make the problem worse. And changing the power level on the gateway when the sensor stops sending will not help. What does the serial debug output say on the two nodes?

          But if you still want to try, stop the gateway, modify MyConfig.h and re-compile and re-install the serial gateway. Then start the gateway again.

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


          20

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          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