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 RSSI is the received signal strength indicator. The signal will always be received weaker than what it was transferred as on the other side of the link.
Best regards,
Karl
err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_advertising.adv_handle, tx_power_level);
if tx power set to 4dbm it increases the transmission range right?
Yes, compared to +0dBm it will increase the transmission range.
but it was not increased in my case?
-40dBm, -20dBm, -16dBm, -12dBm, -8dBm, -4dBm, 0dBm, +3dBm and +4dBm.
* In addition, on some chips following values are supported: +2dBm, +5dBm, +6dBm, +7dBm and +8dBm.
can i use any of the above transmission power levels for nrf52840 development kit?
-40dBm, -20dBm, -16dBm, -12dBm, -8dBm, -4dBm, 0dBm, +3dBm and +4dBm.
* In addition, on some chips following values are supported: +2dBm, +5dBm, +6dBm, +7dBm and +8dBm.
can i use any of the above transmission power levels for nrf52840 development kit?
venkatesha kj said:but it was not increased in my case?
It is not guaranteed - it depends on a lot of external factors in the environement.
venkatesha kj said:can i use any of the above transmission power levels for nrf52840 development kit?
You can use the values specified as valid for the TXPOWER register in the documentation for the SoC you are working with, which I linked earlier.
Best regards,
Karl
how to check the rssi level of the central device in the pheripheral device?
i want to scan the central device and check the rssi level of the central device how do i do that?
app: RSSI: 206
<info> app: RSSI: 195
<info> app: RSSI: 180
<info> app: RSSI: 179
<info> app: RSSI: 164
<info> app: RSSI: 171
<info> app: RSSI: 173
<info> app: RSSI: 179
<info> app: RSSI: 174
<info> app: RSSI: 176
<info> app: RSSI: 170
<info> app: RSSI: 175
<info> app: RSSI: 177
<info> app: RSSI: 180
<info> app: RSSI: 176
<info> app: RSSI: 180
<info> app: RSSI: 180
<info> app: RSSI: 181
<info> app: RSSI: 181
<info> app: RSSI: 180
<info> app: RSSI: 182
i started measuring the rssi level when i am near to the device its showing high values but when i move away from the device its showing lower values. But in nrf connect it value is negitive and showing lower negitive values when i am near to the device. will the values returned from the rssi get function are correct?
venkatesha kj said:i want to scan the central device and check the rssi level of the central device how do i do that?
The peripheral does not do any scanning.
You can still use sd_ble_gap_rssi_get on the peripheral to retrieve the RSSI of the last connection event on the peripheral's side.
venkatesha kj said:i started measuring the rssi level when i am near to the device its showing high values but when i move away from the device its showing lower values. But in nrf connect it value is negitive and showing lower negitive values when i am near to the device. will the values returned from the rssi get function are correct?
How did you produce these values? They do not seem like any RSSI values I have ever seen before. Could it be that you have formatted or type-casted them improperly?
Best regards,
Karl