how to do simple data transfer using bluetooth serail terminal?
how to do simple data transfer using bluetooth serail terminal?
Hello,
You could use the BLE NUS peripheral and central examples to do such a transfer between your devices.
The examples will relay anything they receive over UART to their connected peer over BLE, and the peer will output the messages received over BLE out on its UART, and visa versa.
Test this according to the example documentation, and let me know if you encounter any issues or questions.
Best regards,
Karl
i go through the nsu code but which api was used to transfer the data?
This will depend on your application, but in the BLE peripheral example's cases: Yes, unless there are other parts of the application keeping the CPU awake.
how much time the device will take to advertise the data? and how do i calculate?
This depends on your advertising configuration and payload. You could use the Online Power Profiler to estimate how long each advertising / transfers will take.
Best regards,
Karl
| Sleep | 1 | Push | BSP_EVENT_WAKEUP |
| Sleep | 2 | Push | BSP_EVENT_CLEAR_BONDING_DATA |
| Startup | 2 | Hold | BSP_EVENT_CLEAR_BONDING_DATA |
| Startup | 4 | Hold | BSP_EVENT_DFU |
| Awake | 2 | Long Push | BSP_EVENT_WHITELIST_OFF |
| Connected | 1 | Long push | BSP_EVENT_DISCONNECT |
| Not Connected | 1 | Release | BSP_EVENT_SLEEP |
for (num = 0; ((num < BUTTONS_NUMBER) && (err_code == NRF_SUCCESS)); num++)
{
err_code = bsp_event_to_button_action_assign(num, BSP_BUTTON_ACTION_PUSH, BSP_EVENT_DEFAULT);
}
this was the function to assign the buttons to appropriate bsp events but in that function why default event passed ? which means all the buttons assinged to default events then how come button1 assigned to bsp_event_wakeup?
will online power profiler requires power profiler kit ?
will online power profiler requires power profiler kit ?
where actually transmission power set api called and how to change the transmission power?
how to measure power consumption in nrf52840 development kit using power profiler kit?