<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78423/nrf-sniffer-integration-for-802-15-4-in-a-python-scipt-pcap-file-problems</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Apr 2024 06:30:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78423/nrf-sniffer-integration-for-802-15-4-in-a-python-scipt-pcap-file-problems" /><item><title>RE: nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/thread/479106?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 06:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:606edc9c-9eec-4df5-b105-21f9aad82e03</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Kay, as this ticket is fairly old please open a new ticket and provide a description of your issue and what environment you are running.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/thread/479087?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 03:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1dc939d-c406-408d-8489-fcdd6789afed</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Hi Stig,&lt;/p&gt;
&lt;p&gt;Apologies for breaking in like this. I have the same issue. I am not using a script but standard Wireshark UI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please elaborate a bit more on how you solved this?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/thread/324689?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 13:47:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e0a970a-ac01-4ca4-9e07-d2cfd714d7a7</guid><dc:creator>Ayoub GH</dc:creator><description>&lt;div&gt;I thank you for your answer and for all this very useful information, it allowed me to understand well the problem of the sniffer.&lt;/div&gt;
&lt;div&gt;I have two other questions to ask you about this problem:&lt;br /&gt; - Why does it sometimes work very well and I have no problem decrypting package with python sniffer ?&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;- Since it seems it&amp;#39;s a problem of configuration of sub layers (Coap, 6LowPan, IPv6, IEEE 802.15.4 ...) in my python script, is there a way to configure the sniffer in Python? At the moment, I only use&amp;nbsp;&lt;em&gt;extcap_capture&lt;/em&gt; function, however in wireshark, I followed the explainations in the folowing documentation :&lt;br /&gt; &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF_Sniffer_802154_User_Guide_v0.7.2.pdf"&gt;infocenter.nordicsemi.com/.../nRF_Sniffer_802154_User_Guide_v0.7.2.pdf&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;Whould you know the needed function to do a correct configuration with Python librarires?&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;br /&gt; Best regards,&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Ayoub GH&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/thread/324553?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 19:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c508d75-90e6-4fe5-a9f8-1e428fa93944</guid><dc:creator>Stig</dc:creator><description>&lt;p&gt;In Pcap_Failed you are missing a 802.15.4 Broadcast packet with full source address to be able to recreate the &amp;quot;Extended Address&amp;quot; (needed for decryption)&amp;nbsp;on packets without full source address. You can see this in &amp;quot;Source Address Mode&amp;quot; Long vs. Short in the 802.15.4 Frame Control Field, and the following &amp;quot;No extended source address - can&amp;#39;t decrypt&amp;quot; warning from Wireshark. In&amp;nbsp;working packets you will find a &amp;quot;Origin&amp;quot; field with a reference to this Broadcast packet.&lt;/p&gt;
&lt;p&gt;In Pcap_Passed you have several of this packets in the beginning.&lt;/p&gt;
&lt;p&gt;In the attached Pcap_Failed_Fixed I have manually copied packet&amp;nbsp;6 to the beginning of the file, and then the decryption should work.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Pcap_5F00_Failed_5F00_Fixed.pcap"&gt;devzone.nordicsemi.com/.../Pcap_5F00_Failed_5F00_Fixed.pcap&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/thread/324546?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 18:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:801b6ac5-429c-4842-aecb-42587d078e6b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Our experts is not able to reproduce and answers that it looks good to him. Looking at the pcap file, he does not suspect an issue with the python script either.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/thread/324510?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 13:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43d18e26-37a0-4cce-bcc9-da2b7ae0a3a0</guid><dc:creator>Ayoub GH</dc:creator><description>&lt;p&gt;&lt;span&gt;I use Wireshark version 3.4.6&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For the encryption key here is the screenshot:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Capture_5F00_Wireshark.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ayoub GH&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/thread/324506?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 13:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d90dd013-e2c9-4ab8-b31d-f3b7c6a3df4c</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I&amp;#39;ve forwarded these to one of our WireShark experts.&amp;nbsp;He replies that it works for him. What version of Wireshark are you running?&lt;br /&gt;&lt;br /&gt;Here is the &amp;quot;failed&amp;quot; file at his end. Note that without encryption key, it is not possible to see CoAP content:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1628689069332v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/thread/324406?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 09:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a67d83e1-38d7-4244-b196-5504826c362c</guid><dc:creator>Ayoub GH</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Attached are the two Pcap files:&lt;/p&gt;
&lt;p&gt;Pcap_Failed.pcap: this is the file generated with the python script.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pcap_Passed.pcap: this is the file save with Wireshark&lt;/p&gt;
&lt;p&gt;Note: In the pcap_Passed file, packets from 16 to 22 should match packets from 1 to 7 in the pcap_Failed.pcap file&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ayoub GH&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;,&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Pcap_5F00_Failed.pcap"&gt;devzone.nordicsemi.com/.../Pcap_5F00_Failed.pcap&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Pcap_5F00_Passed.pcapng"&gt;devzone.nordicsemi.com/.../Pcap_5F00_Passed.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/thread/324402?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 08:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9c06c06-bff5-4dbf-94c9-8335f8bb1b0e</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, can you please provide both pcaps, one working and one failing?&lt;br /&gt;&lt;br /&gt;Thanks.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/thread/324268?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 13:11:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2c38fa8-140e-4608-96a2-95f5fd08b7f6</guid><dc:creator>Ayoub GH</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Attached is the screenshot of the Pcap file generated with the python script and the Wireshark capture.&lt;/p&gt;
&lt;p&gt;in the attached photo the colored lines (orange, blue, green) in the python script should be like the colored lines in Wireshark.&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;Note: the sniff with python and with Wireshark are launched at the same time&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6888.Capture.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer integration for 802.15.4 in a python scipt (Pcap file problems)</title><link>https://devzone.nordicsemi.com/thread/324252?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 12:55:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb5cbb68-488e-4d99-b351-aba0bbd8d3da</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure I understand the question. Can you please elaborate more on what you are trying to achieve?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>