<?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>Can I restrict &amp;quot;nrfjprog -i&amp;quot; from showing all connected devices on Linux?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110204/can-i-restrict-nrfjprog--i-from-showing-all-connected-devices-on-linux</link><description>Background info 
 I have 10 nRF52840-dk boards connected to a single Ubuntu machine (via usb) and have set-up 10 user accounts. The intention is, each user account to be able to access and program only one of those 10 boards. 
 I have set-up udev rules</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Apr 2024 14:43:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110204/can-i-restrict-nrfjprog--i-from-showing-all-connected-devices-on-linux" /><item><title>RE: Can I restrict "nrfjprog -i" from showing all connected devices on Linux?</title><link>https://devzone.nordicsemi.com/thread/478821?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 14:43:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ba3dcc0-0989-4e41-971e-bfd6f7b8c93b</guid><dc:creator>san_gr</dc:creator><description>&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;I have already done the symlink as you suggested and had instructed the users to always use --snr xxx.&lt;br /&gt;I&amp;#39;m not going to make an alias for each user but I will suggest that they do themselves &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I restrict "nrfjprog -i" from showing all connected devices on Linux?</title><link>https://devzone.nordicsemi.com/thread/478815?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 14:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df14643d-2dc7-42b2-9de5-7232b65229f3</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I do not think that nrfjprog has a way only to list available devices, no. And since nrfjprog is not open source, we can not mod it to be so, either.&lt;/p&gt;
&lt;p&gt;If this is a usability-issue, then maybe the following can work for you?&lt;br /&gt;Use Udev SYMLINK to make devices appear at ttyUSER1, ttyUSER2, etc. Then use &amp;quot;nrfjprog --com&amp;quot; to see which device is yours.&lt;/p&gt;
&lt;p&gt;Alternativley if you want to make it magic and simple:&lt;/p&gt;
&lt;p&gt;alias nrfjprog=&amp;quot;nrfjprog --snr 683304854&amp;quot;&lt;/p&gt;
&lt;p&gt;Then do that for each user.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I restrict "nrfjprog -i" from showing all connected devices on Linux?</title><link>https://devzone.nordicsemi.com/thread/478793?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 13:24:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e174bc3-a6e9-46a0-8748-33b1db061777</guid><dc:creator>san_gr</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;They are using nrfjprog directly for both programming and resetting the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I restrict "nrfjprog -i" from showing all connected devices on Linux?</title><link>https://devzone.nordicsemi.com/thread/478726?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 10:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162af2fd-043f-433f-924d-eff3e143c8be</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That is an interesting use-case.&lt;/p&gt;
&lt;p&gt;What will the users do with the devices? Will they use nrfjprog directly, or will they for example use west for programming?&lt;br /&gt;I am asking to figure out what options we have here.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>