NRF BLE Sniffer + Python - different behaviour/missing parameter

Hello,

I am using NRF BLE sniffer with Wireshark on Linux and MakerDiary NRF52840 USB dongle. The firmware version is reported as "3.6" (ttyACM0-3.6) and software is 4.1.1.

With Wireshark everything works great - but when I wrote small application for a cusom analysis (based on the provided example_linux.py) things went a bit not as expected. 

My BLE devices send "extended advertising" packets (PDU type=7 or AUX_ADV_IND in WireShark) - containing "short name" and "manufacturer data" fields. These packets appear as expected in Wireshark - but in my progtram they are completely missed by the sniffer. Moreover - when I kiled Wireshark and launched my program w/o pulling out the stick - suddenly the packets appeared in a log, causing me to think that I miss some configuration WoreShark does to the sniffer. 

Please advise

  • Hello,

    I have never tried the python api for this, but comparing the two files, example_linux.py and your snippet, it looks like you are probably missing a line saying "sniffer.scan()" (line 58 in the example_linux.py in v4.1.1).

    Try adding this, and see if that helps.

    Best regards,

    Edvin