<?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>NRFSniffer python tools: How to capture the connection phase</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84640/nrfsniffer-python-tools-how-to-capture-the-connection-phase</link><description>Hi 
 We are using NRF_51422 dongle in our university for Labs development with students 
 We were able to setup &amp;amp; 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 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Feb 2022 09:32:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84640/nrfsniffer-python-tools-how-to-capture-the-connection-phase" /><item><title>RE: NRFSniffer python tools: How to capture the connection phase</title><link>https://devzone.nordicsemi.com/thread/352824?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 09:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:656d8619-8235-44ce-b88e-990a038b51e5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vincent,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The sniffer_ble.py expects a command from Wireshark drop down menu (the&amp;nbsp;&lt;span&gt;handle_control_command()) to start tracking the device. It&amp;#39;s not something you can input in the commandline arguments when calling python.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;It&amp;#39;s API from Wireshark that communicate to the python application directly. So I afraid the easiest way is still to modify&amp;nbsp;nrf_sniffer_ble.py to add the command in, or you can write your own python code for that.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFSniffer python tools: How to capture the connection phase</title><link>https://devzone.nordicsemi.com/thread/352699?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 15:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67df5a32-f05c-4789-b026-1bdb2f83322e</guid><dc:creator>v.planat</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks very much for your answer.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m very surprised that the capture is not possible on the connection ..?? Are you really sure that I have to develop this&amp;nbsp; code, meaning that this sniffer_ble.py is only capable of sniffing ADV_IND ?? I&amp;#39;m not a deep expert in python but the code seems much extended and seems to cover this space also..&lt;/p&gt;
&lt;p&gt;Are you aware of any other example of command line that are refering to this code ?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a bit reluctant trying to recode something that may already work&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I really thank you for your support&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Vincent&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFSniffer python tools: How to capture the connection phase</title><link>https://devzone.nordicsemi.com/thread/352669?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 14:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8559ab06-6c51-45fe-88a0-379cc0e672f9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Planat,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think --device has been implemented in the nrf_sniffer_ble.py to actually follow the device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The device to follow is handled in&amp;nbsp;control_loop() -&amp;gt;&amp;nbsp;handle_control_command-&amp;gt;follow_device()&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have much experience with the&amp;nbsp;&lt;span&gt;nrf_sniffer_ble.py file, but I would suggest to have a look at the&amp;nbsp;Sniffer API Guide.pdf doc and follow the documentation there to write your own python (instead of nrf_sniffer_ble.py)&amp;nbsp; to run the sniffer, an example.py is provided in the doc folder.&amp;nbsp;&amp;nbsp;&lt;br /&gt;You job is to modify that and then output to a&amp;nbsp;file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>