Re: resetting a usb com port?

[email protected] (MLH) Tue, 4 Aug 2026 13:06:30 -0400 (EDT)
Newsgroups gmane.os.netbsd.general
Message-ID <[email protected]>
MLH wrote:
> Greg Troxel wrote:
> > [email protected] (MLH) writes:
> > 
> > >> Did you try plugging the cable into a different port?
> > >
> > > No response when I tried to plug it into another usb port, however, plugging
> > > a hub in worked:
> > >
> > > [ 730330.9162374] uhub4 at uhub1 port 10: GenesysLogic (0x05e3) USB2.1 Hub (0x0610), class 9/0, rev 2.10/6.56, addr 7
> > > [ 730330.9162374] uhub4: single transaction translator
> > > [ 730331.6662392] uhub5 at uhub4 port 4: GenesysLogic (0x05e3) USB2.1 Hub (0x0610), class 9/0, rev 2.10/6.56, addr 8
> > > [ 730331.6662392] uhub5: single transaction translator
> > > [ 730472.0466106] uchcom0 at uhub4 port 1
> > > [ 730472.0466106] uchcom0: QinHeng Electronics (0x1a86) USB Serial (0x7523), rev 1.10/2.64, addr 10
> > 
> > That's port 10, not port 9.  Did you try to plug the hub into the same
> > port?  Or was it really the same port?
> 
> Not sure. There are two usb ports together. The esp32 didn't work
> on either of them at that time. I will try both later. Setting up
> to program several esp32s asap.

You were correct. It was the other usb port. Seems port 9 still
isn't working, but the usb hub did reset both yesterday but is only
working with port 10 now.

I was previously using WSL to program the esp32s, but a windows
update borked the com ports so couldn't use that and went to using
VSC with PlatformIO on win for a while but right after win and vsc
updates about a month ago, something broke programming the esp32s
and I'm trying to determine what happened. I can program them one
time and then can **sometimes** connect to them but can no longer
program them after the first time.

When I try to reprogram them, vsc can't find the serial connection,
though the vsc terminal was just interacting with them. When I try
to connect to netbsd, I get this:

Aug  4 13:05:13 tiamat /netbsd: [ 784014.7641038] uhub5: port 4, device not enabled
Aug  4 13:05:13 tiamat /netbsd: [ 784015.2741054] uhub5: port 4, device not enabled
Aug  4 13:05:13 tiamat /netbsd: [ 784015.3641056] uhub5: autoconfiguration error: port error, restarting port 4
Aug  4 13:05:13 tiamat /netbsd: [ 784015.7841070] uhub5: port 4, device not enabled
Aug  4 13:05:13 tiamat /netbsd: [ 784015.8741073] uhub5: autoconfiguration error: port error, restarting port 4
Aug  4 13:05:14 tiamat /netbsd: [ 784016.2941086] uhub5: port 4, device not enabled
Aug  4 13:05:14 tiamat /netbsd: [ 784016.3941088] uhub5: autoconfiguration error: port error, restarting port 4
Aug  4 13:05:14 tiamat /netbsd: [ 784016.8141102] uhub5: port 4, device not enabled
Aug  4 13:05:14 tiamat /netbsd: [ 784016.9041105] uhub5: autoconfiguration error: port error, restarting port 4
Aug  4 13:05:15 tiamat /netbsd: [ 784017.3241118] uhub5: port 4, device not enabled
Aug  4 13:05:15 tiamat /netbsd: [ 784017.4141121] uhub5: autoconfiguration error: port error, restarting port 4
Aug  4 13:05:15 tiamat /netbsd: [ 784017.4141121] uhub5: autoconfiguration error: port error, giving up port 4

I would really like to get PlatformIO working under pkgsrc so I
don't have to depend on windows, which often breaks things... I
have part of it down but could really use help configuring a pkgsrc
pkg. I'm not a developer so am often clueless there.