<?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>Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55213/sniffer-breaks-serial-devices</link><description>Hi, 
 During startup the nRF sniffer extcap script does the following: 
 
 Which (at least on Linux) breaks applications having open serial ports. 
 
 Why not instead use serial.tools.list_ports.comports(? Something like this: 
 
 Thanks, Jacob</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Dec 2019 16:25:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55213/sniffer-breaks-serial-devices" /><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/224532?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 16:25:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e48ff213-e5a4-4291-80c9-35c4870dfe76</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Thanks for reporting this. I have created an internal Pull Request&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/224508?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 15:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:492430f3-09ac-407c-9c40-c9956c14c602</guid><dc:creator>Jacob</dc:creator><description>&lt;p&gt;Yes:&amp;nbsp;&lt;a href="https://github.com/pyserial/pyserial/blob/master/serial/serialposix.py#L364"&gt;https://github.com/pyserial/pyserial/blob/master/serial/serialposix.py#L364&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Just add exclusive=True to your Serial initialization.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/224507?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 15:06:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:850829cf-1c9b-47f6-aebb-f83e35e4c700</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;I assume you mean `flock` here when you mean &amp;quot;open with exclusive access&amp;quot;. Minicom for example does not see to use that at all and instead creates a /var/lock/LCK../dev/ttyACM*&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/224493?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 14:28:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9de0b5f2-6030-4905-85fd-9ae59a62d51e</guid><dc:creator>Jacob</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/224492?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 14:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dd733d7-ad0a-49a3-9b9d-8148b9efc9e5</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Yes, I can add that patch, I don&amp;#39;t see why not. Expect it as part of the next release. Until then you can make the change locally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/224482?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 13:57:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47a23886-8435-4e3f-9d46-72fe13a0c70f</guid><dc:creator>Jacob</dc:creator><description>&lt;p&gt;That doesn&amp;#39;t feel like a very &amp;quot;general&amp;quot; solution. Can Nordic add exclusive access to the port when opening? I can&amp;#39;t see why it wouldn&amp;#39;t be opened that way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/224479?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 13:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c989223-0179-4c5b-b44c-5571dc85df99</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Yes, the other alternative is to set your sniffer serial port as belonging to a particular user or user group and give that user or group access to only that serial port. Then run Wireshark as that user/group and it will only ever be able to open the serial port you have assigned for sniffing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/224448?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 13:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c7c1a36-680e-476e-a266-97522e4bf60d</guid><dc:creator>Jacob</dc:creator><description>&lt;p&gt;Right.&lt;/p&gt;
&lt;p&gt;Sure, but that means that the sniffer script also has to open the port in exclusive mode in order for it to work.&lt;/p&gt;
&lt;p&gt;Thanks, Jacob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/224439?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 13:00:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb9dbb7a-a03a-48aa-afa8-4e6590d7f4e2</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;The problem here is that some users do not use J-Link at all, and&amp;nbsp; your proposed patch would break nRF Sniffer for Bluetooth LE for them.&lt;/p&gt;
&lt;p&gt;How about opening your other applications&amp;#39; ports in exclusive mode so that the sniffer script you paste is unable to open the serial port?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/224362?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 10:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe390b14-ed41-4d22-80f4-3e8040a3241e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Okey, I have reported it for improvement for future.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/224325?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 08:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa8359ae-c2a9-4f7d-8187-e6766c2e7455</guid><dc:creator>Jacob</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When looking at the code for 3.0.0 this piece of code looks identical.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks, Jacob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer breaks serial devices</title><link>https://devzone.nordicsemi.com/thread/223587?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 12:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e45b14fc-73b8-4316-896b-9cba8861e590</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is a new nRF sniffer planned released on Friday, so I suggest to wait for that.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>