Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #485125

Re: Windows USB question

Path csiph.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From Don Kuenz <g@crcomp.net>
Newsgroups sci.electronics.design
Subject Re: Windows USB question
Date Tue, 14 Nov 2017 00:04:53 -0000 (UTC)
Organization A noiseless patient Spider
Lines 34
Distribution world
Message-ID <20171113b@crcomp.net> (permalink)
References <ekpj0d1ovdd578gkp99rpo90vuv60i6h34@4ax.com> <32d3477f-ddf2-45c7-80e4-0108933742ca@googlegroups.com> <k91k0dt4jr6k1ppv40q591ut31nlcnptmo@4ax.com> <2364c479-1318-4b49-8b5f-5ca0d3c08dde@googlegroups.com>
Injection-Date Tue, 14 Nov 2017 00:04:53 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="a7511082335c683dd809e337bc3fce1e"; logging-data="8133"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ojjuZNoJVuIPPt4VAY6ND"
Cancel-Lock sha1:nQv71Cz5hjTkVCpPq+cVdVZ/uNk=
Xref csiph.com sci.electronics.design:485125

Show key headers only | View raw


Lasse Langwadt Christensen <langwadt@fonz.dk> wrote:
> Den mandag den 13. november 2017 kl. 21.51.33 UTC+1 skrev John Larkin:
>> On Mon, 13 Nov 2017 12:43:38 -0800 (PST), Michael Elwood
>> <mkelwoodut@gmail.com> wrote:
>>
>> >John, this doesn't answer your question, but scanning the attached port devi
ces is not ridiculously messy. I wrote some code that uses the Windows SetupAPI
to scan the Ports Device Class, find the desired device by matching to desired f
riendly name, then extract the COM port number; a few dozen lines of C code. I c
an send you the code if you're interested.
>> >
>> >With best regards,
>> >
>> >MKE
>> >
>>
>>
>> The code's not that hard, but we plug and unplug cables during tests,
>> and we may get comm errors, so all sorts of locations in a program may
>> have to re-scan the ports. And we may test multiple units, so it would
>> be nice if we knew which unit a physical USB cable connects to.
>
> the same ftdi cable should get the same com port number every time you
> plug it in, it should be based on serial number

    Indeed. It's all there in the app note that you kindly posted
earlier. Several hacks are available that enable users to exercise some
control over FTDI's enumeration behavior.

Thank you,

--
Don Kuenz, KB7RPU

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Windows USB question John Larkin <jjlarkin@highland_snip_technology.com> - 2017-11-13 10:43 -0800
  Re: Windows USB question Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-11-13 12:11 -0800
  Re: Windows USB question George Herold <gherold@teachspin.com> - 2017-11-13 12:16 -0800
    Re: Windows USB question rickman <gnuarm@gmail.com> - 2017-11-15 10:11 -0500
  Re: Windows USB question Michael Elwood <mkelwoodut@gmail.com> - 2017-11-13 12:43 -0800
    Re: Windows USB question John Larkin <jjlarkin@highland_snip_technology.com> - 2017-11-13 12:51 -0800
      Re: Windows USB question Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-11-13 13:07 -0800
        Re: Windows USB question Don Kuenz <g@crcomp.net> - 2017-11-14 00:04 +0000
        Re: Windows USB question John Larkin <jjlarkin@highlandtechnology.com> - 2017-11-13 20:44 -0800
          Re: Windows USB question John Devereux <john@devereux.me.uk> - 2017-11-15 07:03 +0000
  Re: Windows USB question M Philbrook <jamie_ka1lpa@charter.net> - 2017-11-13 17:56 -0500
    Re: Windows USB question John Larkin <jjlarkin@highland_snip_technology.com> - 2017-11-13 15:21 -0800
  Re: Windows USB question TTman <kraken.sankey@gmail.com> - 2017-11-13 23:44 +0000
  Re: Windows USB question David Brown <david.brown@hesbynett.no> - 2017-11-14 09:42 +0100
    Re: Windows USB question Don Kuenz <g@crcomp.net> - 2017-11-14 18:00 +0000
  Re: Windows USB question Jeff Liebermann <jeffl@cruzio.com> - 2017-11-14 10:57 -0800
    Re: Windows USB question Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-11-14 12:12 -0700
  Re: Windows USB question Robert Roland <fake@ddress.no> - 2017-11-14 19:58 +0100

csiph-web