NRFSniffer python tools: How to capture the connection phase

Hi

We are using NRF_51422 dongle in our university for Labs development with students

We were able to setup & install the NRF_sniffer. It is working with the command line  python nrf_sniffer.py and we were able to capture traces with the command

   python nrf_sniffer_ble.py --extcap-interface COM6-None --capture --fifo myOutput_connect.pcap

Unfortunately, we cannot for the moment capture CONNECT req messages.

In your doc you mention that (https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Fsniffer_usage.html) the 2nd mode of opertation allows

  1. Follow one particular device and try to catch all packets sent to or from this particular device. This mode catches all:
    • Advertisements and Scan Responses sent from the device
    • Scan Requests and Connect Requests sent to the device
    • Packets in the connection sent between the two devices in the connection

But I cannot find any example of command line that allows this capture

In your doc here https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Fsniffer_usage.html you refer to wireshark for selecting the peripheral but in our case (cmd.exe not allowed on the PC) the automatic capture from wireshark is not possible. We have to capture manually & then open file from wireshark

We tried the following command

python nrf_sniffer_ble.py --extcap-interface COM6-None --capture --fifo myOutput_connect.pcap --device fd:e0:99:56:27:c2

But not CON_REQ message ..

Which procedure should we follow ?

Thanks a lot for your help

Regards

Parents
  • Hi Planat, 

    I don't think --device has been implemented in the nrf_sniffer_ble.py to actually follow the device. 

    The device to follow is handled in control_loop() -> handle_control_command->follow_device() 

    I don't have much experience with the nrf_sniffer_ble.py file, but I would suggest to have a look at the Sniffer API Guide.pdf doc and follow the documentation there to write your own python (instead of nrf_sniffer_ble.py)  to run the sniffer, an example.py is provided in the doc folder.  
    You job is to modify that and then output to a file. 

Reply
  • Hi Planat, 

    I don't think --device has been implemented in the nrf_sniffer_ble.py to actually follow the device. 

    The device to follow is handled in control_loop() -> handle_control_command->follow_device() 

    I don't have much experience with the nrf_sniffer_ble.py file, but I would suggest to have a look at the Sniffer API Guide.pdf doc and follow the documentation there to write your own python (instead of nrf_sniffer_ble.py)  to run the sniffer, an example.py is provided in the doc folder.  
    You job is to modify that and then output to a file. 

Children
No Data
Related