This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF51 Dongle Sniffing Python 3.6

Hi,

We are trying to implement an interface to sniff bluetooth data. We are using Linux with Ubuntu 18.04. Our code for other interfaces are written in Python 3.6. Naturally, we also have Python 2.7 installed as well by default from Ubuntu 18.04.

We bought the nRF51 dongle and are having problems trying to get the sniffing to work on our machine. We have tried the tutorials regarding sniffing in Wireshark which did not work either. The interface never showed up on the list, even with the permissions added for nrf_sniffer.py

Now we are trying to see if we can only use Python, without using Wireshark, because we will have to do that sooner or later to merge with the rest of the code in our project. But all the code from the Nordic download for the sniffer here is written in Python 2.7.

Is there a Python 3 version of this code somewhere? What's a good approach to implement BLE sniffing with our requirements?

Regards,

Horace

Parents
  • Hi Horace

    Is there a Python 3 version of this code somewhere?

    The sniffer software we provide is only Python 2. The sniffer has been tested with python 2.7.x.You also need pyserial 3.4, as described in the documentation.

    What's a good approach to implement BLE sniffing with our requirements?

    I cannot say without knowing your requirements. What do you want to do? Why can you not just use the sniffer directly? Do you want to use the sniffer as part of a product, and not just as a debug tool? If you just want to use it as a debug tool, why not just use what we supply directly? You just need to make sure that you have all the dependencies, and preferably the exact same versions that we have tested.

Reply
  • Hi Horace

    Is there a Python 3 version of this code somewhere?

    The sniffer software we provide is only Python 2. The sniffer has been tested with python 2.7.x.You also need pyserial 3.4, as described in the documentation.

    What's a good approach to implement BLE sniffing with our requirements?

    I cannot say without knowing your requirements. What do you want to do? Why can you not just use the sniffer directly? Do you want to use the sniffer as part of a product, and not just as a debug tool? If you just want to use it as a debug tool, why not just use what we supply directly? You just need to make sure that you have all the dependencies, and preferably the exact same versions that we have tested.

Children
No Data
Related