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


Groups > sci.electronics.design > #485098 > unrolled thread

Windows USB question

Started byJohn Larkin <jjlarkin@highland_snip_technology.com>
First post2017-11-13 10:43 -0800
Last post2017-11-14 19:58 +0100
Articles 18 — 14 participants

Back to article view | Back to sci.electronics.design


Contents

  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

#485098 — Windows USB question

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2017-11-13 10:43 -0800
SubjectWindows USB question
Message-ID<ekpj0d1ovdd578gkp99rpo90vuv60i6h34@4ax.com>

Some times we want to use a USB port, often through an FTDI serial
converter chip, to talk to a device or to a test set. Under Windows,
the COMn port seems to come up with random n. 

Sometimes we write a program to scan all the comm ports, looking for
our target device. That can be messy.

Does anyone know of a way to reserve or nail a USB com port?
Apparently that is not a problem with Linux.



-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [next] | [standalone]


#485103

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2017-11-13 12:11 -0800
Message-ID<f00b7fc3-214c-4d41-8988-2cfc1b2cd7ad@googlegroups.com>
In reply to#485098
Den mandag den 13. november 2017 kl. 19.43.51 UTC+1 skrev John Larkin:
> Some times we want to use a USB port, often through an FTDI serial
> converter chip, to talk to a device or to a test set. Under Windows,
> the COMn port seems to come up with random n. 
> 
> Sometimes we write a program to scan all the comm ports, looking for
> our target device. That can be messy.
> 
> Does anyone know of a way to reserve or nail a USB com port?
> Apparently that is not a problem with Linux.

http://www.ftdichip.com/Support/Documents/AppNotes/AN_123_How%20COM%20Ports_Are%20Allocated%20on%20Driver_Installation.pdf

[toc] | [prev] | [next] | [standalone]


#485104

FromGeorge Herold <gherold@teachspin.com>
Date2017-11-13 12:16 -0800
Message-ID<4629392f-07b3-4e34-8cba-53a71a6a72fe@googlegroups.com>
In reply to#485098
On Monday, November 13, 2017 at 1:43:51 PM UTC-5, John Larkin wrote:
> Some times we want to use a USB port, often through an FTDI serial
> converter chip, to talk to a device or to a test set. Under Windows,
> the COMn port seems to come up with random n. 
> 
> Sometimes we write a program to scan all the comm ports, looking for
> our target device. That can be messy.
> 
> Does anyone know of a way to reserve or nail a USB com port?
> Apparently that is not a problem with Linux.
> 
> 
No, my experience (with FTDI and windows) is the same as yours.  
Some random number and I have to find/config the port each time.  

George h. 
> 
> -- 
> 
> John Larkin         Highland Technology, Inc
> picosecond timing   precision measurement 
> 
> jlarkin att highlandtechnology dott com
> http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#485268

Fromrickman <gnuarm@gmail.com>
Date2017-11-15 10:11 -0500
Message-ID<ouhlfl$44s$1@dont-email.me>
In reply to#485104
George Herold wrote on 11/13/2017 3:16 PM:
> On Monday, November 13, 2017 at 1:43:51 PM UTC-5, John Larkin wrote:
>> Some times we want to use a USB port, often through an FTDI serial
>> converter chip, to talk to a device or to a test set. Under Windows,
>> the COMn port seems to come up with random n.
>>
>> Sometimes we write a program to scan all the comm ports, looking for
>> our target device. That can be messy.
>>
>> Does anyone know of a way to reserve or nail a USB com port?
>> Apparently that is not a problem with Linux.
>>
>>
> No, my experience (with FTDI and windows) is the same as yours.
> Some random number and I have to find/config the port each time.

Once you plug in the serial device and the drivers are installed you can 
manually change the serial port number in the driver settings and that 
number will be used any time that type of device is used in that USB port in 
the future.  You will either need to be consistent about the USB port used 
or you need to go through this procedure with every new USB port you use. 
No worries!

-- 

Rick C

Viewed the eclipse at Wintercrest Farms,
on the centerline of totality since 1998

[toc] | [prev] | [next] | [standalone]


#485108

FromMichael Elwood <mkelwoodut@gmail.com>
Date2017-11-13 12:43 -0800
Message-ID<32d3477f-ddf2-45c7-80e4-0108933742ca@googlegroups.com>
In reply to#485098
John, this doesn't answer your question, but scanning the attached port devices 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 friendly name, then extract the COM port number; a few dozen lines of C code. I can send you the code if you're interested.

With best regards,

MKE


On Monday, November 13, 2017 at 11:43:51 AM UTC-7, John Larkin wrote:
> Some times we want to use a USB port, often through an FTDI serial
> converter chip, to talk to a device or to a test set. Under Windows,
> the COMn port seems to come up with random n. 
> 
> Sometimes we write a program to scan all the comm ports, looking for
> our target device. That can be messy.
> 
> Does anyone know of a way to reserve or nail a USB com port?
> Apparently that is not a problem with Linux.
> 
> 
> 
> -- 
> 
> John Larkin         Highland Technology, Inc
> picosecond timing   precision measurement 
> 
> jlarkin att highlandtechnology dott com
> http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#485109

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2017-11-13 12:51 -0800
Message-ID<k91k0dt4jr6k1ppv40q591ut31nlcnptmo@4ax.com>
In reply to#485108
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 devices 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 friendly name, then extract the COM port number; a few dozen lines of C code. I can 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.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#485111

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2017-11-13 13:07 -0800
Message-ID<2364c479-1318-4b49-8b5f-5ca0d3c08dde@googlegroups.com>
In reply to#485109
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 devices 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 friendly name, then extract the COM port number; a few dozen lines of C code. I can 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 

[toc] | [prev] | [next] | [standalone]


#485125

FromDon Kuenz <g@crcomp.net>
Date2017-11-14 00:04 +0000
Message-ID<20171113b@crcomp.net>
In reply to#485111
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

[toc] | [prev] | [next] | [standalone]


#485153

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2017-11-13 20:44 -0800
Message-ID<igsk0dlv4qn1bev2cu9rf68quhesii4bf8@4ax.com>
In reply to#485111
On Mon, 13 Nov 2017 13:07:26 -0800 (PST), 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 devices 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 friendly name, then extract the COM port number; a few dozen lines of C code. I can 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 
>

I took one USB-serial adapter and plugged it into all open ports on my
PC and its USB hub, one at a time. It started at COM3 and worked its
way up one count at a time, independent of where it was plugged, but
in time order of plugging in. If I unplugged it, the COMn port
disappeared from the device manager. If I then plugged it into any
open port, it came up as the com number that it was when I first
plugged it in there. A physical USB port was bound to a com number by
my plugging-in sequence. I don't now if that binding will survive a
reboot... I'll try that.

The first plug-in event created COM3, and I made it up to COM10.

COM10 has to be opened in a program as device "\\.\COM10"


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#485255

FromJohn Devereux <john@devereux.me.uk>
Date2017-11-15 07:03 +0000
Message-ID<87po8kf2ha.fsf@devereux.me.uk>
In reply to#485153
John Larkin <jjlarkin@highlandtechnology.com> writes:

> On Mon, 13 Nov 2017 13:07:26 -0800 (PST), 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 devices 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 friendly name, then
>>> > extract the COM port number; a few dozen lines of C code. I can
>>> > 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 
>>
>
> I took one USB-serial adapter and plugged it into all open ports on my
> PC and its USB hub, one at a time. It started at COM3 and worked its
> way up one count at a time, independent of where it was plugged, but
> in time order of plugging in. If I unplugged it, the COMn port
> disappeared from the device manager. If I then plugged it into any
> open port, it came up as the com number that it was when I first
> plugged it in there. A physical USB port was bound to a com number by
> my plugging-in sequence. I don't now if that binding will survive a
> reboot... I'll try that.

Read that app note. I think they do that in the absence of an embedded
FTDI serial number (e.g. if you reprogram it with your own identifier).

>
> The first plug-in event created COM3, and I made it up to COM10.
>
> COM10 has to be opened in a program as device "\\.\COM10"

-- 

John Devereux

[toc] | [prev] | [next] | [standalone]


#485117

FromM Philbrook <jamie_ka1lpa@charter.net>
Date2017-11-13 17:56 -0500
Message-ID<MPG.3473ed20a811080e98a06b@news.eternal-september.org>
In reply to#485098
In article <ekpj0d1ovdd578gkp99rpo90vuv60i6h34@4ax.com>, 
jjlarkin@highland_snip_technology.com says...
> 
> Some times we want to use a USB port, often through an FTDI serial
> converter chip, to talk to a device or to a test set. Under Windows,
> the COMn port seems to come up with random n. 
> 
> Sometimes we write a program to scan all the comm ports, looking for
> our target device. That can be messy.
> 
> Does anyone know of a way to reserve or nail a USB com port?
> Apparently that is not a problem with Linux.

In windows you can get the vender of the comport as you enumerate the 
test ports..

 You can also get basic info by query of the Register.. Each time you 
plug in the device it appears in the COM and LPT port key. That key will 
give you info about it.

 Btw..
  If you use the file method to scan the ports you need to use the 
 "\\.\\" at the start f the name to get ports above 9  etc.

[toc] | [prev] | [next] | [standalone]


#485118

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2017-11-13 15:21 -0800
Message-ID<h6ak0dhhvnj19164u4j17cqe8mndunkhek@4ax.com>
In reply to#485117
On Mon, 13 Nov 2017 17:56:19 -0500, M Philbrook
<jamie_ka1lpa@charter.net> wrote:

>In article <ekpj0d1ovdd578gkp99rpo90vuv60i6h34@4ax.com>, 
>jjlarkin@highland_snip_technology.com says...
>> 
>> Some times we want to use a USB port, often through an FTDI serial
>> converter chip, to talk to a device or to a test set. Under Windows,
>> the COMn port seems to come up with random n. 
>> 
>> Sometimes we write a program to scan all the comm ports, looking for
>> our target device. That can be messy.
>> 
>> Does anyone know of a way to reserve or nail a USB com port?
>> Apparently that is not a problem with Linux.
>
>In windows you can get the vender of the comport as you enumerate the 
>test ports..
>
> You can also get basic info by query of the Register.. Each time you 
>plug in the device it appears in the COM and LPT port key. That key will 
>give you info about it.
>
> Btw..
>  If you use the file method to scan the ports you need to use the 
> "\\.\\" at the start f the name to get ports above 9  etc.
>

Damn, Windows is a mess.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#485122

FromTTman <kraken.sankey@gmail.com>
Date2017-11-13 23:44 +0000
Message-ID<oudaou$vi$1@dont-email.me>
In reply to#485098
On 13/11/2017 18:43, John Larkin wrote:
> 
> 
> Some times we want to use a USB port, often through an FTDI serial
> converter chip, to talk to a device or to a test set. Under Windows,
> the COMn port seems to come up with random n.
> 
> Sometimes we write a program to scan all the comm ports, looking for
> our target device. That can be messy.
> 
> Does anyone know of a way to reserve or nail a USB com port?
> Apparently that is not a problem with Linux.
> 
> 
> 
FTDI have a whole host of useful 'fix it' tools for their com port 
devises...

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

[toc] | [prev] | [next] | [standalone]


#485160

FromDavid Brown <david.brown@hesbynett.no>
Date2017-11-14 09:42 +0100
Message-ID<ouea99$lt1$1@dont-email.me>
In reply to#485098
On 13/11/17 19:43, John Larkin wrote:
> 
> 
> Some times we want to use a USB port, often through an FTDI serial
> converter chip, to talk to a device or to a test set. Under Windows,
> the COMn port seems to come up with random n. 
> 

The one FTDI device plugged into the /same/ USB port on the PC will get
the same COM number each time.  Plug it into a different physical port
(or hub), and it can get a different COM number.  If this is on a test
machine and you use the same FTDI devices each time, some labelling
should help get the same devices in the same ports each time.
Alternatively, glue is quite a good solution.

There are a couple of ways around this.  FTDI had an extra "secret"
driver configuration setting that fixes the COM number based on the
physical port number.  This is designed for production and testing when
the cards being produced have FTDI chips.  I don't know if this still
works on current Windows.

Another way is to forget the COM port drivers.  Use the FTDI dll's and
their specific functions.  They let you easily check for all FTDI
devices attached to the PC, and identify them based on device serial
number and/or physical port.  Then you can open the devices and read and
write to them much like a COM port.

> Sometimes we write a program to scan all the comm ports, looking for
> our target device. That can be messy.
> 
> Does anyone know of a way to reserve or nail a USB com port?
> Apparently that is not a problem with Linux.
> 

Yes, Linux is /massively/ easier in this way.  I have a USB hub stuck to
my desk, plugged into my Linux machine.  When I put an FTDI device into
port X on the hub, I have a serial port /dev/ttySerial_X.  If the device
has two UARTs, I get /dev/ttySerial_X1 and /dev/ttySerial_X2.  You can
set things up as you want - it's just a couple of lines of udev
configuration file.

[toc] | [prev] | [next] | [standalone]


#485182

FromDon Kuenz <g@crcomp.net>
Date2017-11-14 18:00 +0000
Message-ID<20171114a@crcomp.net>
In reply to#485160
David Brown <david.brown@hesbynett.no> wrote:
> On 13/11/17 19:43, John Larkin wrote:
>>
>>
>> Some times we want to use a USB port, often through an FTDI serial
>> converter chip, to talk to a device or to a test set. Under Windows,
>> the COMn port seems to come up with random n.
>>
>
> The one FTDI device plugged into the /same/ USB port on the PC will get
> the same COM number each time.  Plug it into a different physical port
> (or hub), and it can get a different COM number.  If this is on a test
> machine and you use the same FTDI devices each time, some labelling
> should help get the same devices in the same ports each time.
> Alternatively, glue is quite a good solution.
>
> There are a couple of ways around this.  FTDI had an extra "secret"
> driver configuration setting that fixes the COM number based on the
> physical port number.  This is designed for production and testing when
> the cards being produced have FTDI chips.  I don't know if this still
> works on current Windows.
>
> Another way is to forget the COM port drivers.  Use the FTDI dll's and
> their specific functions.  They let you easily check for all FTDI
> devices attached to the PC, and identify them based on device serial
> number and/or physical port.  Then you can open the devices and read and
> write to them much like a COM port.
>
>> Sometimes we write a program to scan all the comm ports, looking for
>> our target device. That can be messy.
>>
>> Does anyone know of a way to reserve or nail a USB com port?
>> Apparently that is not a problem with Linux.
>>
>
> Yes, Linux is /massively/ easier in this way.  I have a USB hub stuck to
> my desk, plugged into my Linux machine.  When I put an FTDI device into
> port X on the hub, I have a serial port /dev/ttySerial_X.  If the device
> has two UARTs, I get /dev/ttySerial_X1 and /dev/ttySerial_X2.  You can
> set things up as you want - it's just a couple of lines of udev
> configuration file.

    My favorite OS, FreeBSD, probably does likewise. The only problem is
that most people don't use FreeBSD nor Linux. Most people use some
version of Windows.
    My onsite kit includes an ancient Windows Vista tablet "beater" with
a FTDI RS-232 dongle. The dongle perpetually vacillates between COM1 and
COM5 whenever it's plugged in. Sleuthing out the latest COM port's more
of a nuisance than anything.
    This thread, along with FTDI Application Note 123, helps me to
understand why the vacillations occur. This thread also enhances my
appreciation as to the many permutations that a vendor must foresee and
accommodate in order to keep USB as seamless as possible for the masses.

Thank you,

--
Don Kuenz, KB7RPU

[toc] | [prev] | [next] | [standalone]


#485189

FromJeff Liebermann <jeffl@cruzio.com>
Date2017-11-14 10:57 -0800
Message-ID<poem0d1oial5f4ai3fa9vok4h1cbip16e3@4ax.com>
In reply to#485098
On Mon, 13 Nov 2017 10:43:39 -0800, John Larkin
<jjlarkin@highland_snip_technology.com> wrote:

>Some times we want to use a USB port, often through an FTDI serial
>converter chip, to talk to a device or to a test set. Under Windows,
>the COMn port seems to come up with random n. 
>
>Sometimes we write a program to scan all the comm ports, looking for
>our target device. That can be messy.
>
>Does anyone know of a way to reserve or nail a USB com port?
>Apparently that is not a problem with Linux.

I are not a programmist, so I can't answer your question.
However, methinks you might find a USB Device View program useful.
<http://www.nirsoft.net/utils/usb_devices_view.html>
My XP desktop machine shows 342 USB devices.  Perhaps it's time for a
cleanup.

-- 
Jeff Liebermann     jeffl@cruzio.com
150 Felker St #D    http://www.LearnByDestroying.com
Santa Cruz CA 95060 http://802.11junk.com
Skype: JeffLiebermann     AE6KS    831-336-2558

[toc] | [prev] | [next] | [standalone]


#485194

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2017-11-14 12:12 -0700
Message-ID<erfm0dlvih17p1r6lhvbrackub4b9bhj84@4ax.com>
In reply to#485189
On Tue, 14 Nov 2017 10:57:10 -0800, Jeff Liebermann <jeffl@cruzio.com>
wrote:

[snip]

>However, methinks you might find a USB Device View program useful.
><http://www.nirsoft.net/utils/usb_devices_view.html>
>My XP desktop machine shows 342 USB devices.  Perhaps it's time for a
>cleanup.

Nice!  I only had 20 devices, but one was for a device that was
uninstalled a few years ago... didn't work under Win7.  So I deleted
that port.
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
     It's what you learn, after you know it all, that counts.

[toc] | [prev] | [next] | [standalone]


#485190

FromRobert Roland <fake@ddress.no>
Date2017-11-14 19:58 +0100
Message-ID<oddm0dddjp9rpog1uc5id3u0tg33osdi96@4ax.com>
In reply to#485098
On Mon, 13 Nov 2017 10:43:39 -0800, John Larkin
<jjlarkin@highland_snip_technology.com> wrote:

>Under Windows,
>the COMn port seems to come up with random n. 

It is not random. It is simply the next available one.

>Does anyone know of a way to reserve or nail a USB com port?
>Apparently that is not a problem with Linux.

Windows does reserve port numbers for USB devices, but only if the
device has a serial number. Windows will remember which serial number
has which COM port and assign the same port number to the same device,
regardless of which port you plug it in to, or which order you plug
them in.

Some USB devices do not have a serial number. In this case, Windows
will assign a new port number if you plug the device into a new USB
port.

If I remember right, the FT232 does not come with a preprogrammed
serial number, while the FT232R does.

If you want to see the assigned COM ports that are not currently in
use, and get a chance to delete them (to reclaim the "lost" port
numbers), try this:

https://technet.microsoft.com/en-us/library/ff184583.aspx
-- 
RoRo

[toc] | [prev] | [standalone]


Back to top | Article view | sci.electronics.design


csiph-web