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

Data exchange through UART

I have nRF8001-DK and Arduino Uno. ble_uart_project_template from nRF8001 SDK for Arduino (Bluetooth_low_energy_for_Arduino_0_5_0_0_RC2) was used. It was used with Master Emulator with nRFUart sample code included. By using this template I can send string from nRFUart and recieve this one in Arduino Serial Monitor. How I can add functionality to send string to nRFUart from Arduino Serial Monitor?

And I can't start with ble_uart_project_modify_setup. nRFUart can't discover nRF8001.

Parents
  • I am able to get it running perfectly even at 19200 baud. I am looking for the "Newline" in the string that the SM sends to the Arduino so Newline should also be on in the SM. I am also attaching the BLE library that I am using as a zip file, that works with the sketch that I attached earlier. Use the BLE library I am sending with the sketch.

    Can you also turn on debug printing in your sketch and send me the traces that you see.

    //We reset the nRF8001 here by toggling the RESET line connected to the nRF8001 //and initialize the data structures required to setup the nRF8001 lib_aci_init(&aci_state);

    //Turn debug printing on for the ACI messages lib_aci_debug_print(true);

    This will print all the ACI commands and events that are sent to the nRF8001.

    BLE_4-Sep-2013.zip

Reply
  • I am able to get it running perfectly even at 19200 baud. I am looking for the "Newline" in the string that the SM sends to the Arduino so Newline should also be on in the SM. I am also attaching the BLE library that I am using as a zip file, that works with the sketch that I attached earlier. Use the BLE library I am sending with the sketch.

    Can you also turn on debug printing in your sketch and send me the traces that you see.

    //We reset the nRF8001 here by toggling the RESET line connected to the nRF8001 //and initialize the data structures required to setup the nRF8001 lib_aci_init(&aci_state);

    //Turn debug printing on for the ACI messages lib_aci_debug_print(true);

    This will print all the ACI commands and events that are sent to the nRF8001.

    BLE_4-Sep-2013.zip

Children
No Data
Related