Thingy91 connectivity_bridge UART speed

Hi,

I'm trying to achieve a higher transmission speed between nRF9160 and PC on Thingy91 using connectivity_bridge from NCS 1.7.0. On the 115200 everything is working fine, but other speed doesn't work. I tried 230400, 460800, 250000, 921600, and 1M as well as lower (57600, 19200, etc.).

I'm changing the speed in the DTS overlay for both sides (nRF52 and nRF91).

Is there anything hardcoded in the connectivity bridge that I'm not aware?

Best regards,

Mateusz

  • Hi, 

    Check the file zephyr.dts to see if the baud rate is set correctly. 

    Regards,
    Amanda

  • I've checked both zephyr.dts. For nRF91 I've got:

     uart0: uart@8000 {
    compatible = "nordic,nrf-uarte";
    reg = < 0x8000 0x1000 >;
    interrupts = < 0x8 0x1 >;
    status = "okay";
    label = "UART_0";
    current-speed = < 0x3d090 >;
    tx-pin = < 0x12 >;
    rx-pin = < 0x13 >;
    rts-pin = < 0x14 >;
    cts-pin = < 0x15 >;
    };
     
    And for nRF52 I've got:
     uart0: uart@40002000 {
    reg = < 0x40002000 0x1000 >;
    interrupts = < 0x2 0x1 >;
    status = "okay";
    label = "UART_0";
    compatible = "nordic,nrf-uarte";
    current-speed = < 0x3d090 >;
    tx-pin = < 0xf >;
    rx-pin = < 0xb >;
    rts-pin = < 0x15 >;
    cts-pin = < 0x14 >;
    };


  • Hi, 

    All the UART speeds should work fine, but note that when opening PC COM port, the baud rate specified by PC side must match the baud rate that the nRF9160 is using. The 1M baud rate has been tested extensively as part of nRF9160 trace output. 

    I would suggest you use thingy91_nrf9160_ns.overlay and thingy91_nrf52840.overlay to modify UART as

    &uart0 {
    compatible = "nordic,nrf-uarte";
    current-speed = <921600>;
    status = "okay";
    };

    I use thingy91_nrf52840.overlay under connectivity_bridge to set UART0 speed to 921600 and thingy91_nrf9160_ns.overlay under hello_world UART0 speed to 921600 in the test NCS1.7_connectivity_bridge_hello_world.zip

    SWD to nRF52
    >cd connectivity_bridge
    >rm -r build
    >west build -b thingy91_nrf52840 && west flash

    SWD to nRF91
    >cd hello_world
    >rm -r build
    >west build -b thingy91_nrf9160_ns && west flash

    Set Putty speed to 921600, and check the output on the terminal. 

    -Amanda

Related