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?
The advertising interval only configures the time in between each advertising. The advertising duration or timeout is what determines how long the device will be advertising. The device will be in the low-power SYSTEM_ON idle state in between each advertising, and wake up when an advertising event is upcoming.
Best regards,
Karl
if i set advertising interval as 40ms then system is on idle state for 40ms after advertising right?
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
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
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?