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

nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)

I have developed a python script to sniff the OpenThread network using the Nrf802154Sniffer() library, which generates a pcap file.

 I used it with the nRF Sniffer hardware (nRF52840 DK and nRF52840 Dongle).


The problem is that in the pcap file generated, I found that there are packets that are not well analyzed, but in Wireshark it sniffs packets well.

Do you have any idea where this problem comes from.

thank you in advance

Best regards,

Ayoub GH

Parents
  • Hello, 

    I'm not sure I understand the question. Can you please elaborate more on what you are trying to achieve?

    Thank you.

    Kind regards,
    Øyvind

  • the problem is that when I sniff with a python script, the packets are not well analyzed. but when I use Wireshark the packets are well captured.

    Attached is the screenshot of the Pcap file generated with the python script and the Wireshark capture.

    in the attached photo the colored lines (orange, blue, green) in the python script should be like the colored lines in Wireshark.

    We also note that the time corresponds well to what is captured by Wireshark, but the capture stops in the IEEE 802.15.4 layer instead of going to the CoAP layer

    Note: the sniff with python and with Wireshark are launched at the same time

Reply
  • the problem is that when I sniff with a python script, the packets are not well analyzed. but when I use Wireshark the packets are well captured.

    Attached is the screenshot of the Pcap file generated with the python script and the Wireshark capture.

    in the attached photo the colored lines (orange, blue, green) in the python script should be like the colored lines in Wireshark.

    We also note that the time corresponds well to what is captured by Wireshark, but the capture stops in the IEEE 802.15.4 layer instead of going to the CoAP layer

    Note: the sniff with python and with Wireshark are launched at the same time

Children
Related