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

Hi, am collecting the data from mpu6050 which has to be send through the bluetooth from ble peripheral to ble central..?

What i need is , am collecting the data from the sensor(which acts as a ble peripheral ) , the data which has to be transmitted to the ble central and that data should be displayed in serial monitor window of uart terminal..is there any example code..?? am a newbie to this platform , can anyone please help me

Parents
  • Hello Reeshma

    There is an example that is very close to what you're asking for. It is the Nordic UART service example.

    The example uses two devices, one to act as central, and one as peripheral. It allows you to use a terminal like Putty to write to, and read from, each of the devices. The nRF5x uses UART to send and receive data to the interface MPU. Anything written to one device will be sent via BLE to the other, and the received data can be read in the terminal.

    The code for the central device can be found in [SDK folder]\examples\ble_central\ble_app_uart_c

    Documentation: infocenter.nordicsemi.com/index.jsp

    The code for the peripheral device can be found in [SDK folder]\examples\ble_peripheral\ble_app_uart

    Documentation: infocenter.nordicsemi.com/index.jsp

    A UART example can also be found at [SDK]/examples/peripheral/uart

    Documentation: infocenter.nordicsemi.com/index.jsp

    Best regards

    Jørn Frøysa

Reply
  • Hello Reeshma

    There is an example that is very close to what you're asking for. It is the Nordic UART service example.

    The example uses two devices, one to act as central, and one as peripheral. It allows you to use a terminal like Putty to write to, and read from, each of the devices. The nRF5x uses UART to send and receive data to the interface MPU. Anything written to one device will be sent via BLE to the other, and the received data can be read in the terminal.

    The code for the central device can be found in [SDK folder]\examples\ble_central\ble_app_uart_c

    Documentation: infocenter.nordicsemi.com/index.jsp

    The code for the peripheral device can be found in [SDK folder]\examples\ble_peripheral\ble_app_uart

    Documentation: infocenter.nordicsemi.com/index.jsp

    A UART example can also be found at [SDK]/examples/peripheral/uart

    Documentation: infocenter.nordicsemi.com/index.jsp

    Best regards

    Jørn Frøysa

Children
Related