This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE UART without flow control

Dear Nordic Team,

Thanks for support.

Currently i am trying BLE UART central (ble_app_uart_c) example without flow control. But its not work. My SDK is 11.0. I want to know the possible for ble uart work without flow control.

Parents
  • Hi,

    First you will need to disable the flow-control. In the function uart_init() make sure you have APP_UART_FLOW_CONTROL_DISABLED. The function will then look like this:

    static void uart_init(void)
    {
        uint32_t err_code;
    
        const app_uart_comm_params_t comm_params =
          {
            .rx_pin_no    = RX_PIN_NUMBER,
            .tx_pin_no    = TX_PIN_NUMBER,
            .rts_pin_no   = RTS_PIN_NUMBER,
            .cts_pin_no   = CTS_PIN_NUMBER,
            .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
            .use_parity   = false,
            .baud_rate    = UART_BAUDRATE_BAUDRATE_Baud115200
          };
    
        APP_UART_FIFO_INIT(&comm_params,
                            UART_RX_BUF_SIZE,
                            UART_TX_BUF_SIZE,
                            uart_event_handle,
                            APP_IRQ_PRIORITY_LOW,
                            err_code);
    
        APP_ERROR_CHECK(err_code);
    }
    

    You must also turn off the flow-control in your terminal, and choose the correct baudrate.

    In Termite the settings would look something like this: image description

  • Yes, the central is receiving the advertising packet you are sending with the mobile app. RSSI and PEER_ADDR is included in the advertising packet.

Reply Children
No Data
Related