<div dir="ltr">Hi,<div><br></div><div>I did not understand what you mean by "programmer".</div><div><br></div><div>Everybody needs to compare strings when dealing with serial ports. In you case, I think you need more than that to identify JTAGs. USB-Serial ports usually follows the pattern "(ttyS|ttyUSB|ttyACM|ttyAMA|rfcomm|ttyO)[0-9]{1,3}" used in the first example you gave. I have never used JTAGs so I do not know how they work.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">
<p style="margin:0px">Lamarque V. Souza</p>
<p style="margin:0px"><a href="http://planetkde.org/pt-br" target="_blank">http://planetkde.org/pt-br</a></p></div></div></div></div></div>
<br><div class="gmail_quote">On Sun, Jun 12, 2016 at 4:49 PM, patrick JP <span dir="ltr"><<a href="mailto:patrickelectric@gmail.com" target="_blank">patrickelectric@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<br><br>My name is Patrick, a GSoC student working at KDevelop with KDev-Embedded (Embedded development plugin for KDevelop).<br>Right know I am having some problem to identify the programmer in the USB port.<br>I am using something like <a href="https://github.com/arduino/Arduino/blob/8385aedc642d6cd76b50ac5167307121007e5045/arduino-core/src/processing/app/SerialPortList.java#L50" target="_blank">this</a> and <a href="https://github.com/mupuf/arduide/blob/5fc1d7870d202e0c8710a633a38fb02ef0f03674/env/Device.cpp#L175" target="_blank">this</a> with Solid.<br>Someone can give an idea to how identify this USB interfaces like: USB-Serial and JTAGs ?<br>Maybe by the VID/PID or using the string compare, but I'm not sure if it's the best solution to perform this operation.<br><br>Thank you for the attention.<br><br>Best regards,<br>
</div>
</blockquote></div><br></div>