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?
i have checked oled was working fine ,but i have not test the serial terminal before i started modifying the example
my question was whenever the data transmitted through bluetooth serial terminal BLE_NUS_EVT_RX_DATA event will occur right?
venkatesha kj said:i have checked oled was working fine ,but i have not test the serial terminal before i started modifying the example
Please test this, to verify that you are receiving the data that you think you are receiving, prior to modifying it to work with the OLED. When you have verified that each part works as expected separately, you could continue to merge the two functionalities together.
venkatesha kj said:my question was whenever the data transmitted through bluetooth serial terminal BLE_NUS_EVT_RX_DATA event will occur right?
You are correct, the BLE_NUS_EVT_RX_DATA event will be generated whenever data has been received over the NUS service in the previous connection event.
Best regards,
Karl
ok but why that event will not triggered in my case?
will uart needs to be eanbled to occur BLE_NUS_EVT_RX_DATA event?
will uart needs to be eanbled to occur BLE_NUS_EVT_RX_DATA event?
even i have checked BLE_NUS_EVT_RX_DATA event not occured without modification
Did you send any data to the device? Did you see this data being output on the serial terminal of the connected device?
The event will only be generated when data is received over the NUS service.
Best regards,
Karl
i am using serial bluetooth terminal to send the data. When i use nrf uart v2.0 device was not at all visible
venkatesha kj said:i am using serial bluetooth terminal to send the data.
Which application is this? Please be specific.
Did you follow the instructions in the example's documentation when you tested the NUS example? Which step of the documentation did not succeed, and how did it behave different from what was expected?
Best regards,
Karl
nrf uart was not supported for android 10, so can u please send me the app link for uart communication