Hi,

Indeed, but others programmers like avrisp and j/d-link do not appear as
serial devices.

Best regards,

2016-10-12 12:31 GMT-03:00 Lamarque Souza <lamar...@kde.org>:

> Hi,
>
> I did not understand what you mean by "programmer".
>
> 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.
>
> Lamarque V. Souza
>
> http://planetkde.org/pt-br
>
> On Sun, Jun 12, 2016 at 4:49 PM, patrick JP <patrickelect...@gmail.com>
> wrote:
>
>> Hello,
>>
>> My name is Patrick, a GSoC student working at KDevelop with KDev-Embedded
>> (Embedded development plugin for KDevelop).
>> Right know I am having some problem to identify the programmer in the USB
>> port.
>> I am using something like this
>> <https://github.com/arduino/Arduino/blob/8385aedc642d6cd76b50ac5167307121007e5045/arduino-core/src/processing/app/SerialPortList.java#L50>
>>  and
>> this
>> <https://github.com/mupuf/arduide/blob/5fc1d7870d202e0c8710a633a38fb02ef0f03674/env/Device.cpp#L175>
>>  with
>> Solid.
>> Someone can give an idea to how identify this USB interfaces like:
>> USB-Serial and JTAGs ?
>> 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.
>>
>> Thank you for the attention.
>>
>> Best regards,
>>
>
>


-- 
Patrick José Pereira
10° Fase de Engenharia Eletrônica
Site: www.patrickjp.com
Skype: patrickelectric434
+55(048)9917-4777

Reply via email to