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

BLE_app_uart issues

main.cble_uart.hex Hello,

I use nRF5_SDK_11.0.0_89a8197 and s130_nrf51_2.0.0_softdevice configuration to test the ble_uart program.

i use nrfgo Studio to load the soft device and application in custom ble hardware.

I use nRF51822_xxAB ble chip.

i use termite as a serial terminal.

the RAM and ROM configuration... IROM1 : 0x1B000 & 0xB000 IRAM1 : 0x20002000 & 0x2000

i use nrftoolbox as a android application to test the code.


Now the problem is...

After connecting the ble device...when i send the data from Android app to UART console only one time one byte is transfer.

the second problem is when transmit the data from terminal to APP , nothing to see in app, no data are shown in application.

where is the problem?

please correct me if i am wrong..

please suggest me the right solution.

Thank You Milav

Parents
  • In your main file you have configured the UART like this:

    const app_uart_comm_params_t comm_params =
    {
        RX_PIN_NUMBER,
        TX_PIN_NUMBER,
        RTS_PIN_NUMBER,
        CTS_PIN_NUMBER,
        APP_UART_FLOW_CONTROL_ENABLED,
        false,
        UART_BAUDRATE_BAUDRATE_Baud38400
    };
    

    That baud rate and flow control doesn't match the configuration you say you have in Termite. Try to use the same settings. With the correct settings your code worked for me.

Reply
  • In your main file you have configured the UART like this:

    const app_uart_comm_params_t comm_params =
    {
        RX_PIN_NUMBER,
        TX_PIN_NUMBER,
        RTS_PIN_NUMBER,
        CTS_PIN_NUMBER,
        APP_UART_FLOW_CONTROL_ENABLED,
        false,
        UART_BAUDRATE_BAUDRATE_Baud38400
    };
    

    That baud rate and flow control doesn't match the configuration you say you have in Termite. Try to use the same settings. With the correct settings your code worked for me.

Children
No Data
Related