is that possible to send the peripheral device data to bluetooth less desktop over ble

Hello,

In my project, I want to send the data from the ble device nrf52832 dev kit to a connected in-built Bluetooth desktop/PC. Some desktop doesn't have inbuilt Bluetooth and for that, so I used a third-party dongle(TP link dongle) that provides Bluetooth capability to Bluetooth-less desktop. I scanned the peripheral devices with a third-party dongle same as the in-built desktop/PC Bluetooth. next, successfully send the data from the peripheral device to the desktop/PC. but i want to develop a custom dongle to send/receive the data from peripherals devices as well as it provides Bluetooth capability to Bluetooth less desktop/PC.

I have tried the nrf52840 dongle and most of them say that it's not recommended for development and even it didn't provide any Bluetooth capability to the desktop as in-built. using nrf connect desktop app we can scan and connect the device but i need the same as the in-built Bluetooth.

So please let me know how can i achieve this.

Thank You. 

  • Sorry, the dongle doesn't support debugging right.?

    so I flashed it to the nrf52840 dev kit and while debugging,

    nrf_ble_scan_init() with no error and nrf_ble_scan_filter_set() also no error.

    at nrf_ble_scan_filters_enable() function I got the error "soft device invalid memory access".

  • sagarnayakm said:

    Sorry, the dongle doesn't support debugging right.?

    No, you would need an external debugger for that. 

    sagarnayakm said:
    at nrf_ble_scan_filters_enable() function I got the error "soft device invalid memory access".

    Try debugging this function then. Where in nrf_ble_scan_filters_enable() does it return an error?Try setting breakpoints to see how far it reaches. Note that you need to reset the application whenever you hit a breakpoint.

    Regarding your "set RAM to max" comment. Please don't do that. This might be what's causing that. Try looking in your log, and look for messages regarding ram. It should be triggered by these in nrf_sdh_ble.c:

    NRF_LOG_WARNING("Change the RAM start location from 0x%x to 0x%x.",
                            app_ram_start_link, *p_app_ram_start);
            NRF_LOG_WARNING("Maximum RAM size for application is 0x%x.",
                            ram_end_address_get() - (*p_app_ram_start));

  • Regarding your "set RAM to max" comment. Please don't do that. This might be what's causing that. Try looking in your log, and look for messages regarding ram. It should be triggered by these in nrf_sdh_ble.c:

    Yes,

    this is the log i got

    <info> app_timer: RTC: initialized.
    <warning> nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
    <warning> nrf_sdh_ble: Change the RAM start location from 0x20002250 to 0x20002260.
    <warning> nrf_sdh_ble: Maximum RAM size for application is 0xDDA0.
    <error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
    <error> app: ERROR 4 [NRF_ERROR_NO_MEM] at C:\NFC_NRF\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_hids_keyboard - Copy\main.c:1399
    PC at: 0x0002BBCD
    <error> app: End of error report

    and after this only i changed 0x200050-->0x20002260.

    Try debugging this function then. Where in nrf_ble_scan_filters_enable() does it return an error?Try setting breakpoints to see how far it reaches. Note that you need to reset the application whenever you hit a breakpoint.

    yes, when i enter to this function then only i got SOFTDEVICE: INVALID MEMORY ACCESS error

     

  • sagarnayakm said:

    and after this only i changed 0x200050-->0x20002260.

    Good. What did you set as your size?

    After you did this, what does the log say now?

  • Hello,

    After this, I tried to debug the nrf52840 dev kit which has the code of the dongle and i got SOFTDEVICE: INVALID MEMORY ACCESS.

    See my point is my dongle code doesn't have any problem because if I use the ble_app_uart example on my peripheral device it is get connected to my dongle.

    but when I use the ble_app_hids_keyboard example then only it is not connected. so now I am confused about which side have to debug. I just added ble_app_uart to the ble_app_hids_keyboard example to enable the NUS service to it. but now it is not connecting to my dongle. 

    my dongle is working fine with ble_app_uart. so tell how can I debug it.?

    Thank You. 

Related