NRF51-52 PA not support ???



  • Hello, everyone. Today I tried to connect the module nRF52 PA. Module to work, but had a standard transmission\reception. The module includes a chip 2401С. As I understand it, the work modules nRF51-52 with PA is not implemented in the library as unconnected pins 20 and 24(the scheme). On the forum NORDIK found(for softdevice):

    #ifdef APP_PA_LAN
        pa_lna_assist(24,20);//Pin 0.24 and pin 0.20
    #endif
    
    
    #ifdef APP_PA_LAN
    static void pa_lna_assist(uint32_t gpio_pa_pin, uint32_t gpio_lna_pin)
    {
        ret_code_t err_code;
        nrf_gpio_cfg_output(gpio_pa_pin);
        nrf_gpio_pin_clear(gpio_pa_pin); //
        nrf_gpio_cfg_output(gpio_lna_pin);
        nrf_gpio_pin_clear(gpio_lna_pin); //
        static const uint32_t gpio_toggle_ch = 0;
        static const uint32_t ppi_set_ch = 0;
        static const uint32_t ppi_clr_ch = 1;
    
        // Configure SoftDevice PA/LNA assist
        static ble_opt_t opt;
        memset(&opt, 0, sizeof(ble_opt_t));
        // Common PA/LNA config
        opt.common_opt.pa_lna.gpiote_ch_id  = gpio_toggle_ch;        // GPIOTE channel
        opt.common_opt.pa_lna.ppi_ch_id_clr = ppi_clr_ch;            // PPI channel for pin clearing
        opt.common_opt.pa_lna.ppi_ch_id_set = ppi_set_ch;            // PPI channel for pin setting
        // PA config
        opt.common_opt.pa_lna.pa_cfg.active_high = 1;                // Set the pin to be active high
        opt.common_opt.pa_lna.pa_cfg.enable      = 1;                // Enable toggling
        opt.common_opt.pa_lna.pa_cfg.gpio_pin    = gpio_pa_pin;      // The GPIO pin to toggle
    
        // LNA config
        opt.common_opt.pa_lna.lna_cfg.active_high  = 1;              // Set the pin to be active high
        opt.common_opt.pa_lna.lna_cfg.enable       = 1;              // Enable toggling
        opt.common_opt.pa_lna.lna_cfg.gpio_pin     = gpio_lna_pin;   // The GPIO pin to toggle
    
        err_code = sd_ble_opt_set(BLE_COMMON_OPT_PA_LNA, &opt);
        APP_ERROR_CHECK(err_code);
    }
    #endif
    

    diagram of the module:
    0_1550940028705_HTB1TMLXc_XYBeNkHFrdq6AiuVXao.jpg

    https://ru.aliexpress.com/store/product/Nordic-nRF52832-BLE-4-0-4-2-5-0-module-bluetooth-low-energy-PA-cer/420533_32863558179.html?spm=a2g0v.12010612.8148356.33.1701caa2z0YpG4

    What to do? Help!!!




  • Mod

    Seems consistent with another user’s experience: https://github.com/mysensors/MySensors/issues/1265

    shajek created this issue in mysensors/MySensors

    open NRF5 PA level is not working #1265







  • @mfalkvidd This is about another (levels MY_NRF5_ESB_PA_LEVEL). I had another problem, the signal amplification on the module with the 2401c chip did not work. But I somehow forced the module to increase the range 🙂 The chips nFR51-52 no pins VDD_PA....



  • Hello,

    I see two issues with this schematic. 1) The Cap C3 looks like it says 100nf. In the non-amplified use, this should be at least 4.7uF. If you are using a PA I would suggest a even larger value be used.

    PO.25 and PO.26 if not used should be tied to ground. If used then they should each have a 12pF cap to ground. The internal bonding wires on the QFN package picks up some stray RF and will probably not pass any agency testing in Korea or Japan. This is probably not that important for personal use. 0_1551034598786_c96f8854-1f40-40f7-8632-1c923ea4f493-image.png



  • @jokgi I don't know what you mean. I'm not at all sure that your recommendations would be enough, I have a completely different solution. It is exclusively software. Maybe you can explain ...more details? where this scheme? С3 is understandable. Why should 25 and 26 be be tied to ground (if not used)? But none the less thank you for your interest in the topic and your comment. Now I have radio module with amplifier works, until tested on 200 metres, all normally, consumption in transfer 16mA. The problem is that the mysensors library offers no solution for amplified radio modules. Pins 20 and 24 are used as GPIOs. There is no #def available to initialize pins as TX RX gain controls. For myself, I did it, it is quite simple, but nevertheless. ...A more subtle approach is needed to make changes to the library.



  • Hi, everybody. Modules nRF5 with RFX2401(signal amplifier) control the amplifier from the legs of the microcontroller, as a rule, r0.20 and P0.24.

    Do I understand correctly that gain control is not implemented in mysensors for nRF5 modules with amplifiers???

    It probably can be done from the sketch, including a strengthening of the:
    digitalWrite(TXEN_PIN, high);
    digitalWrite(RXEN_PIN, high);
    send.(..
    digitalWrite(TXEN_PIN, low);
    wait.(..
    digitalWrite(RXEN_PIN, low);
    But there is also internal communication (which is formed inside, for example - find parent, registration..), the functionality of the repeater, how it should be?



  • 0_1566502101951_444.png


  • Hardware Contributor

    @berkseo
    I think it might be simple, and you might just have to add your digitalwrites to nrf5 driver, then you can PR on git if you want. team's busy for the moment, but if you don't PR, we'll do it, when more time.


 

275
Online

8.8k
Users

9.6k
Topics

100.4k
Posts