This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Receive all BLE packets through USB/UART

Hello,

I am looking for some advices for a personnal project.

I would like to be able to receive all BLE packets (so all protocols (GATT, SM, LL) and not only GATT) that come from my nrf52840 Dongle through an UART or USB connection. The output I am expecting is raw packets which are displayed just like they are in Wireshark.

Actually, I have no idea how to do that and which sample I should use to start this project.

Do you have any idea how I can manage to do this ?

Thanks for your help.

  • Hello,

    Have you tried the nRF Sniffer for Bluetooth LE before? Is that something you are looking for, and that you can use, perhaps?

    Best regards,

    Edvin

  • Hello Edvin,

     

    Thanks for your answer.

    I have tried the nRF Sniffer example. However, it doesn’t match my expectation.

    Firstly, I do not want to sniff any traffic between two BLE devices but I want to have access to the packets that my Dongle is receiving. (Thus I’m sure that I don’t lose any packet and I’m then able to manage the packets that I am receiving directly with the Dongle firmware)

    I wanted to take a look at the source code of the sniffer sample, in order to adapt it but I only found the .hex file.

     

    Best regards,

  • I understand. 

    Unfortunately, the sniffer source code is not open source, so I don't have anything that I can share.

    As for the softdevice, it is not possible to see the raw data packets that the radio receives, so I guess that if you need these packets, you will need to implement a bluetooth stack on your own. 

    I am sorry that I don't have anything that I can share. 

    Is this for debugging? If so, please let me know, and maybe we can help you sort out any issues that you might experience. 

    Best regards,

    Edvin

  • Hello Edvin,

    Ok I understand, thanks for the answer !

    Do you have any hints to achieve « a bluetooth stack on my own » ?

    I wanted to be able to connect my dongle (that would simulate a BLE Device) to my phone through an application with SC pairing. I thought it was more convenient to analyze (and custom, if needed) packets that are sent/received to perform debugging.

     

    Best regards.

  • ENGLAB Dev said:
    Do you have any hints to achieve « a bluetooth stack on my own » ?

    Unfortunately, no. That is no simple task. To put it in perspective, we have a quite large group working on our Bluetooth Stack as their main job. I don't think that is really realistic. 

    If it is mainly for debugging, then I think I would start somewhere else (XY problem)

    Best Regards,

    Edvin

Related