How to change PA _LOW to PA_MAX



  • 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


  • Mod

    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.



  • @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


  • Mod

    @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.


Log in to reply
 

Suggested Topics

  • 4
  • 15
  • 9
  • 17
  • 4
  • 20

15
Online

11.4k
Users

11.1k
Topics

112.7k
Posts