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 have modified the ble_uart_project_template sketch to allow the serial monitor of the Arduino to send data from the PC. Set the baud rate to 115200 with Newline. I use the "newline" character '\n' to detect the length of the string before sending it to nRF UART app.

    The modified sketch is attached.

    Note: The ble_uart_project_modify_setup project is used as an example to recalculate the CRC for a Setup that was manually modifed. The recalculated CRC can then be put into the header file so the Setup can be successfully sent to the nRF8001.

    ble_uart_project_template.ino

Reply
  • I have modified the ble_uart_project_template sketch to allow the serial monitor of the Arduino to send data from the PC. Set the baud rate to 115200 with Newline. I use the "newline" character '\n' to detect the length of the string before sending it to nRF UART app.

    The modified sketch is attached.

    Note: The ble_uart_project_modify_setup project is used as an example to recalculate the CRC for a Setup that was manually modifed. The recalculated CRC can then be put into the header file so the Setup can be successfully sent to the nRF8001.

    ble_uart_project_template.ino

Children
Related