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


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

USB CDC device works on laptop, but not on WinBook tablet

Started by"P E Schoen" <paul@pstech-inc.com>
First post2015-11-19 01:43 -0500
Last post2015-11-20 00:08 -0500
Articles 15 — 5 participants

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


Contents

  USB CDC device works on laptop, but not on WinBook tablet "P E Schoen" <paul@pstech-inc.com> - 2015-11-19 01:43 -0500
    Re: USB CDC device works on laptop, but not on WinBook tablet "David Eather" <eather@tpg.com.au> - 2015-11-19 18:28 +1000
      Re: USB CDC device works on laptop, but not on WinBook tablet "P E Schoen" <paul@pstech-inc.com> - 2015-11-19 17:55 -0500
        Re: USB CDC device works on laptop, but not on WinBook tablet DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-11-19 18:08 -0500
    Re: USB CDC device works on laptop, but not on WinBook tablet M Philbrook <jamie_ka1lpa@charter.net> - 2015-11-19 20:33 -0500
      Re: USB CDC device works on laptop, but not on WinBook tablet DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-11-19 21:13 -0500
        Re: USB CDC device works on laptop, but not on WinBook tablet M Philbrook <jamie_ka1lpa@charter.net> - 2015-11-20 12:36 -0500
          Re: USB CDC device works on laptop, but not on WinBook tablet DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-11-20 13:25 -0500
            Re: USB CDC device works on laptop, but not on WinBook tablet DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-11-20 13:32 -0500
              Re: USB CDC device works on laptop, but not on WinBook tablet M Philbrook <jamie_ka1lpa@charter.net> - 2015-11-20 14:49 -0500
                Re: USB CDC device works on laptop, but not on WinBook tablet DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-11-20 15:40 -0500
                  Re: USB CDC device works on laptop, but not on WinBook tablet "P E Schoen" <paul@pstech-inc.com> - 2015-11-20 17:43 -0500
                    Re: USB CDC device works on laptop, but not on WinBook tablet M Philbrook <jamie_ka1lpa@charter.net> - 2015-11-20 18:13 -0500
    Re: USB CDC device works on laptop, but not on WinBook tablet Sylvia Else <sylvia@not.at.this.address> - 2015-11-20 14:14 +1100
      Re: USB CDC device works on laptop, but not on WinBook tablet "P E Schoen" <paul@pstech-inc.com> - 2015-11-20 00:08 -0500

#385603 — USB CDC device works on laptop, but not on WinBook tablet

From"P E Schoen" <paul@pstech-inc.com>
Date2015-11-19 01:43 -0500
SubjectUSB CDC device works on laptop, but not on WinBook tablet
Message-ID<n2jqv2$u7l$1@dont-email.me>
I have a USB device that I designed several years ago, using the Microchip 
PIC18F2550, and it has worked mostly OK on various laptops. It has four 
DC-DC converters driven by the USB 5V power and it is configured for the 
maximum 500 mA current draw. The actual current is 350 mA. The 5V USB supply 
connects to a 47 uF 16V aluminum electrolytic and a 1 uF 16V MLC capacitor. 
The 5V logic supply for the PIC and other components is fed through a 
Schottky diode and then multiple 1 uF bypass capacitors. There is a 
P-channel MOSFET which is turned on once the USB has been enumerated, and it 
provides power to the four DC-DC converters bypassed by a 47 uF capacitor.

The laptop, running Win 8.0, accepts the USB device with no complaints, and 
everything works OK. But when I plug into the Winbook, the status LEDs 
indicate that the device starts to initialize, but it seems to hang up when 
the MOSFET is turned on, and it then turns off with the LEDs showing an 
incomplete initialization. The odd thing is that the Device Manager reports 
the device to be working normally as a serial port. I tried changing the 
values of the large capacitors but the problem persists.

I would like to be able to operate this device from the WinBook (which is 
fully charged and plugged into the charger). The WinBook is running Win 8.1, 
which shouldn't make any difference to the USB subsystem. If I had 
encountered this when designing it, I could have incorporated some current 
limiting circuitry, but this is a mature design and not easy to modify. Any 
ideas on how to troubleshoot?

Thanks,

Paul 

[toc] | [next] | [standalone]


#385617

From"David Eather" <eather@tpg.com.au>
Date2015-11-19 18:28 +1000
Message-ID<op.x8b9ujt4wei6gd@phenom-pc>
In reply to#385603
On Thu, 19 Nov 2015 16:43:53 +1000, P E Schoen <paul@pstech-inc.com> wrote:

> I have a USB device that I designed several years ago, using the  
> Microchip PIC18F2550, and it has worked mostly OK on various laptops. It  
> has four DC-DC converters driven by the USB 5V power and it is  
> configured for the maximum 500 mA current draw. The actual current is  
> 350 mA. The 5V USB supply connects to a 47 uF 16V aluminum electrolytic  
> and a 1 uF 16V MLC capacitor. The 5V logic supply for the PIC and other  
> components is fed through a Schottky diode and then multiple 1 uF bypass  
> capacitors. There is a P-channel MOSFET which is turned on once the USB  
> has been enumerated, and it provides power to the four DC-DC converters  
> bypassed by a 47 uF capacitor.
>
> The laptop, running Win 8.0, accepts the USB device with no complaints,  
> and everything works OK. But when I plug into the Winbook, the status  
> LEDs indicate that the device starts to initialize, but it seems to hang  
> up when the MOSFET is turned on, and it then turns off with the LEDs  
> showing an incomplete initialization. The odd thing is that the Device  
> Manager reports the device to be working normally as a serial port. I  
> tried changing the values of the large capacitors but the problem  
> persists.
>
> I would like to be able to operate this device from the WinBook (which  
> is fully charged and plugged into the charger). The WinBook is running  
> Win 8.1, which shouldn't make any difference to the USB subsystem. If I  
> had encountered this when designing it, I could have incorporated some  
> current limiting circuitry, but this is a mature design and not easy to  
> modify. Any ideas on how to troubleshoot?
>
> Thanks,
>
> Paul

I would be looking at that 500ma. The USB device has to ask for 500ma  
first, before it tries to draw it otherwise a fully compliant host will  
shut it down if it just tries to take more than 100ma

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


#385748

From"P E Schoen" <paul@pstech-inc.com>
Date2015-11-19 17:55 -0500
Message-ID<n2ljtc$kdg$1@dont-email.me>
In reply to#385617
"David Eather"  wrote in message news:op.x8b9ujt4wei6gd@phenom-pc...

> On Thu, 19 Nov 2015 16:43:53 +1000, P E Schoen <paul@pstech-inc.com> 
> wrote:

>> I have a USB device that I designed several years ago, using the 
>> Microchip PIC18F2550, and it has worked mostly OK on various laptops. It 
>> has four DC-DC converters driven by the USB 5V power and **it is 
>> configured for the maximum 500 mA current draw**. The actual current is 
>> 350 mA. The 5V USB supply connects to a 47 uF 16V aluminum electrolytic 
>> and a 1 uF 16V MLC capacitor. The 5V logic supply for the PIC and other 
>> components is fed through a Schottky diode and then multiple 1 uF bypass 
>> capacitors. There is a P-channel MOSFET which is turned on once the USB 
>> has been enumerated, and it provides power to the four DC-DC converters 
>> bypassed by a 47 uF capacitor.
>
>> The laptop, running Win 8.0, accepts the USB device with no complaints, 
>> and everything works OK. But when I plug into the Winbook, the status 
>> LEDs indicate that the device starts to initialize, but it seems to hang 
>> up when the MOSFET is turned on, and it then turns off with the LEDs 
>> showing an incomplete initialization. The odd thing is that the Device 
>> Manager reports the device to be working normally as a serial port. I 
>> tried changing the values of the large capacitors but the problem 
>> persists.
>
>> I would like to be able to operate this device from the WinBook (which is 
>> fully charged and plugged into the charger). The WinBook is running Win 
>> 8.1, which shouldn't make any difference to the USB subsystem. If I had 
>> encountered this when designing it, I could have incorporated some 
>> current limiting circuitry, but this is a mature design and not easy to 
>> modify. Any ideas on how to troubleshoot?
>
>> Thanks,
>
>> Paul

> I would be looking at that 500ma. The USB device has to ask for 500ma 
> first, before it tries to draw it otherwise a fully compliant host will 
> shut it down if it just tries to take more than 100ma

The USB descriptors for this device call for the maximum 500 mA, and it has 
worked on many other computers, mostly laptops and desktops. I have seen 
cases where excess current was being drawn, and that shows up as an error 
message pop-up as well as in the details of the device in the device 
manager.

An employee at the company that uses this device (BTS Analyzer) found that 
there were some USB ports that didn't work with the analyzer, and he came up 
with a fix where he replaced the capacitors with C36=330 uF and C56=470 uF. 
C56 is directly across the USB power, and C36 is on the other side of the 
MOSFET to the DC-DC converters. Here is the procedure:

http://enginuitysystems.com/files/BTSA-3%20No%20Power%20Modification.pdf

And here is the schematic (The BTSA-3T and ORTM-4H use the same board, but 
populated differently):

http://enginuitysystems.com/files/ORTM4H_Sch-R2.pdf

I haven't tried such large capacitors, and they are much larger than the 
recommended value for the USB supply. But I'll give it a try to see if it 
works on the WinBook. I will also have a closer look at the PIC code. It 
seems like the PIC may be latching up, and perhaps the watchdog timer or 
power-up timers are not working.

Thanks for the ideas.

Paul

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


#385749

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2015-11-19 18:08 -0500
Message-ID<oels4b5l4vcbffvbtb1k9vinfoamnmvjnt@4ax.com>
In reply to#385748
On Thu, 19 Nov 2015 17:55:45 -0500, "P E Schoen" <paul@pstech-inc.com>
Gave us:

>"David Eather"  wrote in message news:op.x8b9ujt4wei6gd@phenom-pc...
>
>> On Thu, 19 Nov 2015 16:43:53 +1000, P E Schoen <paul@pstech-inc.com> 
>> wrote:
>
>>> I have a USB device that I designed several years ago, using the 
>>> Microchip PIC18F2550, and it has worked mostly OK on various laptops. It 
>>> has four DC-DC converters driven by the USB 5V power and **it is 
>>> configured for the maximum 500 mA current draw**. The actual current is 
>>> 350 mA. The 5V USB supply connects to a 47 uF 16V aluminum electrolytic 
>>> and a 1 uF 16V MLC capacitor. The 5V logic supply for the PIC and other 
>>> components is fed through a Schottky diode and then multiple 1 uF bypass 
>>> capacitors. There is a P-channel MOSFET which is turned on once the USB 
>>> has been enumerated, and it provides power to the four DC-DC converters 
>>> bypassed by a 47 uF capacitor.
>>
>>> The laptop, running Win 8.0, accepts the USB device with no complaints, 
>>> and everything works OK. But when I plug into the Winbook, the status 
>>> LEDs indicate that the device starts to initialize, but it seems to hang 
>>> up when the MOSFET is turned on, and it then turns off with the LEDs 
>>> showing an incomplete initialization. The odd thing is that the Device 
>>> Manager reports the device to be working normally as a serial port. I 
>>> tried changing the values of the large capacitors but the problem 
>>> persists.
>>
>>> I would like to be able to operate this device from the WinBook (which is 
>>> fully charged and plugged into the charger). The WinBook is running Win 
>>> 8.1, which shouldn't make any difference to the USB subsystem. If I had 
>>> encountered this when designing it, I could have incorporated some 
>>> current limiting circuitry, but this is a mature design and not easy to 
>>> modify. Any ideas on how to troubleshoot?
>>
>>> Thanks,
>>
>>> Paul
>
>> I would be looking at that 500ma. The USB device has to ask for 500ma 
>> first, before it tries to draw it otherwise a fully compliant host will 
>> shut it down if it just tries to take more than 100ma
>
>The USB descriptors for this device call for the maximum 500 mA, and it has 
>worked on many other computers, mostly laptops and desktops. I have seen 
>cases where excess current was being drawn, and that shows up as an error 
>message pop-up as well as in the details of the device in the device 
>manager.
>
>An employee at the company that uses this device (BTS Analyzer) found that 
>there were some USB ports that didn't work with the analyzer, and he came up 
>with a fix where he replaced the capacitors with C36=330 uF and C56=470 uF. 
>C56 is directly across the USB power, and C36 is on the other side of the 
>MOSFET to the DC-DC converters. Here is the procedure:
>
>http://enginuitysystems.com/files/BTSA-3%20No%20Power%20Modification.pdf
>
>And here is the schematic (The BTSA-3T and ORTM-4H use the same board, but 
>populated differently):
>
>http://enginuitysystems.com/files/ORTM4H_Sch-R2.pdf
>
>I haven't tried such large capacitors, and they are much larger than the 
>recommended value for the USB supply. But I'll give it a try to see if it 
>works on the WinBook. I will also have a closer look at the PIC code. It 
>seems like the PIC may be latching up, and perhaps the watchdog timer or 
>power-up timers are not working.
>
>Thanks for the ideas.
>
>Paul
>
  Try buying a powered USB hub, and seeing if it powers the device
enough to not shut down.  The hub will certainly work on the winbook and
not have a high current draw, and the fact that it is powered means that
the hub itself is what powers the devices plugged into it.

  I am not saying this is a solution.  This will allow you to diagnose
whether or not it is a power draw problem.

  It would also be a solution were you to not care that you now have
more than the mere device itself plugged in (rats nest syndrome).

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


#385775

FromM Philbrook <jamie_ka1lpa@charter.net>
Date2015-11-19 20:33 -0500
Message-ID<MPG.30b8425b426e1da6989da3@news.eternal-september.org>
In reply to#385603
In article <n2jqv2$u7l$1@dont-email.me>, paul@pstech-inc.com says...
> 
> I have a USB device that I designed several years ago, using the Microchip 
> PIC18F2550, and it has worked mostly OK on various laptops. It has four 
> DC-DC converters driven by the USB 5V power and it is configured for the 
> maximum 500 mA current draw. The actual current is 350 mA. The 5V USB supply 
> connects to a 47 uF 16V aluminum electrolytic and a 1 uF 16V MLC capacitor. 
> The 5V logic supply for the PIC and other components is fed through a 
> Schottky diode and then multiple 1 uF bypass capacitors. There is a 
> P-channel MOSFET which is turned on once the USB has been enumerated, and it 
> provides power to the four DC-DC converters bypassed by a 47 uF capacitor.
> 
> The laptop, running Win 8.0, accepts the USB device with no complaints, and 
> everything works OK. But when I plug into the Winbook, the status LEDs 
> indicate that the device starts to initialize, but it seems to hang up when 
> the MOSFET is turned on, and it then turns off with the LEDs showing an 
> incomplete initialization. The odd thing is that the Device Manager reports 
> the device to be working normally as a serial port. I tried changing the 
> values of the large capacitors but the problem persists.
> 
> I would like to be able to operate this device from the WinBook (which is 
> fully charged and plugged into the charger). The WinBook is running Win 8.1, 
> which shouldn't make any difference to the USB subsystem. If I had 
> encountered this when designing it, I could have incorporated some current 
> limiting circuitry, but this is a mature design and not easy to modify. Any 
> ideas on how to troubleshoot?
> 
> Thanks,
> 
> Paul 

 Some of those systems had power output settings for the USB ports..
A lot of times you don't get the full 500mA but you can if you go
in there and config it.
 
 That as been my experience..

Jamie

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


#385782

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2015-11-19 21:13 -0500
Message-ID<sa0t4b91hu1p132v9mv825v02a01mfce8j@4ax.com>
In reply to#385775
On Thu, 19 Nov 2015 20:33:06 -0500, M Philbrook
<jamie_ka1lpa@charter.net> Gave us:

> Some of those systems had power output settings for the USB ports..
>A lot of times you don't get the full 500mA but you can if you go
>in there and config it.
> 
> That as been my experience..
>
>Jamie

  Bullshit, liar.  There are no laptops or PCs,  much less tablets where
the OS allowed one to configure the current drive capacity of the port.

The only thing you could configure was the timeout and whether the power
stayed up after a shutdown.

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


#385895

FromM Philbrook <jamie_ka1lpa@charter.net>
Date2015-11-20 12:36 -0500
Message-ID<MPG.30b9240ff0b96f08989da6@news.eternal-september.org>
In reply to#385782
In article <sa0t4b91hu1p132v9mv825v02a01mfce8j@4ax.com>, DLU1
@DecadentLinuxUser.org says...
> 
> On Thu, 19 Nov 2015 20:33:06 -0500, M Philbrook
> <jamie_ka1lpa@charter.net> Gave us:
> 
> > Some of those systems had power output settings for the USB ports..
> >A lot of times you don't get the full 500mA but you can if you go
> >in there and config it.
> > 
> > That as been my experience..
> >
> >Jamie
> 
>   Bullshit, liar.  There are no laptops or PCs,  much less tablets where
> the OS allowed one to configure the current drive capacity of the port.
> 
> The only thing you could configure was the timeout and whether the power
> stayed up after a shutdown.

Now that is where you are full of shit, again....

Please do your home work before you add to that
"Make myself an Ass" again pile.

Jamie

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


#385914

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2015-11-20 13:25 -0500
Message-ID<9bpu4bpnt9a4mg2q0tsk3cp8pun0f7ulgs@4ax.com>
In reply to#385895
On Fri, 20 Nov 2015 12:36:00 -0500, M Philbrook
<jamie_ka1lpa@charter.net> Gave us:

>In article <sa0t4b91hu1p132v9mv825v02a01mfce8j@4ax.com>, DLU1
>@DecadentLinuxUser.org says...
>> 
>> On Thu, 19 Nov 2015 20:33:06 -0500, M Philbrook
>> <jamie_ka1lpa@charter.net> Gave us:
>> 
>> > Some of those systems had power output settings for the USB ports..
>> >A lot of times you don't get the full 500mA but you can if you go
>> >in there and config it.
>> > 
>> > That as been my experience..
>> >
>> >Jamie
>> 
>>   Bullshit, liar.  There are no laptops or PCs,  much less tablets where
>> the OS allowed one to configure the current drive capacity of the port.
>> 
>> The only thing you could configure was the timeout and whether the power
>> stayed up after a shutdown.
>
>Now that is where you are full of shit, again....
>
>Please do your home work before you add to that
>"Make myself an Ass" again pile.
>
>Jamie

  Pop me a screen shot of the "current control" dialog box then, you
lying piece of shit.

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


#385919

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2015-11-20 13:32 -0500
Message-ID<2mpu4bte6l1oa5b6251o7mr5t6fnk9u195@4ax.com>
In reply to#385914
On Fri, 20 Nov 2015 13:25:28 -0500, DecadentLinuxUserNumeroUno
<DLU1@DecadentLinuxUser.org> Gave us:

>On Fri, 20 Nov 2015 12:36:00 -0500, M Philbrook
><jamie_ka1lpa@charter.net> Gave us:
>
>>In article <sa0t4b91hu1p132v9mv825v02a01mfce8j@4ax.com>, DLU1
>>@DecadentLinuxUser.org says...
>>> 
>>> On Thu, 19 Nov 2015 20:33:06 -0500, M Philbrook
>>> <jamie_ka1lpa@charter.net> Gave us:
>>> 
>>> > Some of those systems had power output settings for the USB ports..
>>> >A lot of times you don't get the full 500mA but you can if you go
>>> >in there and config it.
>>> > 
>>> > That as been my experience..
>>> >
>>> >Jamie
>>> 
>>>   Bullshit, liar.  There are no laptops or PCs,  much less tablets where
>>> the OS allowed one to configure the current drive capacity of the port.
>>> 
>>> The only thing you could configure was the timeout and whether the power
>>> stayed up after a shutdown.
>>
>>Now that is where you are full of shit, again....
>>
>>Please do your home work before you add to that
>>"Make myself an Ass" again pile.
>>
>>Jamie
>
>  Pop me a screen shot of the "current control" dialog box then, you
>lying piece of shit.


  Or give the steps to navigate to it.

  Otherwise, jackass, you are EXACTLY the liar I said you are.

  AGAIN, there IS NO "CURRENT CONTROL" in the driver dialogs or Windows
OS for USB ports.

  AGAIN, you are a goddamned lying putz!

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


#385937

FromM Philbrook <jamie_ka1lpa@charter.net>
Date2015-11-20 14:49 -0500
Message-ID<MPG.30b943364dc21b5c989daa@news.eternal-september.org>
In reply to#385919
In article <2mpu4bte6l1oa5b6251o7mr5t6fnk9u195@4ax.com>, DLU1
@DecadentLinuxUser.org says...
> 
> On Fri, 20 Nov 2015 13:25:28 -0500, DecadentLinuxUserNumeroUno
> <DLU1@DecadentLinuxUser.org> Gave us:
> 
> >On Fri, 20 Nov 2015 12:36:00 -0500, M Philbrook
> ><jamie_ka1lpa@charter.net> Gave us:
> >
> >>In article <sa0t4b91hu1p132v9mv825v02a01mfce8j@4ax.com>, DLU1
> >>@DecadentLinuxUser.org says...
> >>> 
> >>> On Thu, 19 Nov 2015 20:33:06 -0500, M Philbrook
> >>> <jamie_ka1lpa@charter.net> Gave us:
> >>> 
> >>> > Some of those systems had power output settings for the USB ports..
> >>> >A lot of times you don't get the full 500mA but you can if you go
> >>> >in there and config it.
> >>> > 
> >>> > That as been my experience..
> >>> >
> >>> >Jamie
> >>> 
> >>>   Bullshit, liar.  There are no laptops or PCs,  much less tablets where
> >>> the OS allowed one to configure the current drive capacity of the port.
> >>> 
> >>> The only thing you could configure was the timeout and whether the power
> >>> stayed up after a shutdown.
> >>
> >>Now that is where you are full of shit, again....
> >>
> >>Please do your home work before you add to that
> >>"Make myself an Ass" again pile.
> >>
> >>Jamie
> >
> >  Pop me a screen shot of the "current control" dialog box then, you
> >lying piece of shit.
> 
> 
>   Or give the steps to navigate to it.
> 
>   Otherwise, jackass, you are EXACTLY the liar I said you are.
> 
>   AGAIN, there IS NO "CURRENT CONTROL" in the driver dialogs or Windows
> OS for USB ports.
> 
>   AGAIN, you are a goddamned lying putz!

 You are an ass, that is plain to see.

  My dell allows me to configure the ports, its call enumerating the
settings, it only allows to serve 2 USBs at 500mA, while the others
are at 100mA.

 I also have an add on for charging that lets me configure up over that
, something in the hood of 1.7 amps. That was a plug in card.

 Go pound sand like usually, always wrong.

 P.S.
  A good many laptops only supply 100mA, but I am sure you already
knew that, correct, alwayswrong?

 With all that technology you claim you sit on or hang out over, leads 
me to believe you are nothing more than the night time janitor of a 
facility that made a mistake of hiring you.

 I am sure they feel sorry for you and don't have the heart to 
hand you your walking papers. I wouldn't hasitate.

  But if it makes you feel any better, you do bring a smile to some
faces around here, especially mine, each time you post here.

Jamie

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


#385948

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2015-11-20 15:40 -0500
Message-ID<071v4bpdei6tji24g869t4n9na9gbb4gcb@4ax.com>
In reply to#385937
On Fri, 20 Nov 2015 14:49:15 -0500, M Philbrook
<jamie_ka1lpa@charter.net> Gave us:

>  My dell allows me to configure the ports, its call enumerating the
>settings, it only allows to serve 2 USBs at 500mA, while the others
>are at 100mA.

  But it DOES NOT allow you to change the current output setting,
because there is none as the USB spec is set in stone, idiot.  And you
claimed it was adjustable, so YOU LIED!

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


#385968

From"P E Schoen" <paul@pstech-inc.com>
Date2015-11-20 17:43 -0500
Message-ID<n2o7j0$e4v$1@dont-email.me>
In reply to#385948
"DecadentLinuxUserNumeroUno"  wrote in message 
news:071v4bpdei6tji24g869t4n9na9gbb4gcb@4ax.com...

> On Fri, 20 Nov 2015 14:49:15 -0500, M Philbrook <jamie_ka1lpa@charter.net> 
> Gave us:

>>  My dell allows me to configure the ports, its call enumerating the 
>> settings, it only allows to serve 2 USBs at 500mA, while the others are 
>> at 100mA.

>  But it DOES NOT allow you to change the current output setting, because 
> there is none as the USB spec is set in stone, idiot.  And you claimed it 
> was adjustable, so YOU LIED!

I doubt that there are any host devices that do not have at least one full 
spec USB port allowing 500 mA. I have proven that my Winbook, with only one 
USB port, easily drives 350 mA.

My Dell laptop has two full speed USB 2.0 root hubs capable of 500 mA and an 
xHCI extensible USB hub probably 3.0 high speed, which does not show the 
power (current) available. There are also two generic USB hubs capable of 
500 mA per port.

Here is an article that claims a way to adjust the power available, but my 
power management properties do not have that option, but only allowing the 
PC to turn off the device to save power.
http://www.ehow.com/how_6889574_adjust-usb-power.html

Here is more information:
https://msdn.microsoft.com/en-us/library/windows/hardware/ff537057(v=vs.85).aspx

I was under the impression that the USB port defaulted to low power (100mA) 
until the enumeration and configuration process completed, which negotiates 
for the higher power 500mA. That's why I added the MOSFET to delay the 
additional current draw until the port was ready. But apparently the port 
allows the full 500 mA, and may even allow it without client USB hardware, 
as may be the case for USB powered lamps and fans. I have confirmed this by 
plugging in two LED lamps that draw a total of 330 mA, and the device 
manager does not report their presence.

Paul 

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


#385969

FromM Philbrook <jamie_ka1lpa@charter.net>
Date2015-11-20 18:13 -0500
Message-ID<MPG.30b97336640aafae989db1@news.eternal-september.org>
In reply to#385968
In article <n2o7j0$e4v$1@dont-email.me>, paul@pstech-inc.com says...
> 
> "DecadentLinuxUserNumeroUno"  wrote in message 
> news:071v4bpdei6tji24g869t4n9na9gbb4gcb@4ax.com...
> 
> > On Fri, 20 Nov 2015 14:49:15 -0500, M Philbrook <jamie_ka1lpa@charter.net> 
> > Gave us:
> 
> >>  My dell allows me to configure the ports, its call enumerating the 
> >> settings, it only allows to serve 2 USBs at 500mA, while the others are 
> >> at 100mA.
> 
> >  But it DOES NOT allow you to change the current output setting, because 
> > there is none as the USB spec is set in stone, idiot.  And you claimed it 
> > was adjustable, so YOU LIED!
> 
> I doubt that there are any host devices that do not have at least one full 
> spec USB port allowing 500 mA. I have proven that my Winbook, with only one 
> USB port, easily drives 350 mA.
> 
> My Dell laptop has two full speed USB 2.0 root hubs capable of 500 mA and an 
> xHCI extensible USB hub probably 3.0 high speed, which does not show the 
> power (current) available. There are also two generic USB hubs capable of 
> 500 mA per port.
> 
> Here is an article that claims a way to adjust the power available, but my 
> power management properties do not have that option, but only allowing the 
> PC to turn off the device to save power.
> http://www.ehow.com/how_6889574_adjust-usb-power.html
> 
> Here is more information:
> https://msdn.microsoft.com/en-us/library/windows/hardware/ff537057(v=vs.85).aspx
> 
> I was under the impression that the USB port defaulted to low power (100mA) 
> until the enumeration and configuration process completed, which negotiates 
> for the higher power 500mA. That's why I added the MOSFET to delay the 
> additional current draw until the port was ready. But apparently the port 
> allows the full 500 mA, and may even allow it without client USB hardware, 
> as may be the case for USB powered lamps and fans. I have confirmed this by 
> plugging in two LED lamps that draw a total of 330 mA, and the device 
> manager does not report their presence.
> 
> Paul 

 After playing with mine, It seems that windows dose a rescan, enumerate 
of devices and calculates power usage. I have my devices listed as how
much current each device on the bus is using.

 Is it possible your device is coming on soft and then ramping up the 
current, there by causing the system to kind of fold back?

 Maybe it needs to be at full 500mA at plug in to get the hold deal on 
yours?

 It also is telling me I have a 100mA drain from a USB mass storage 
device, one that I wasn't aware of because I don't have any flash drives
plugged in. Unless its the back up storage that is hidden from the 
shell? I wasn't shy when I got this machine, although its aging now :)
   
 
Jamie

   
 

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


#385794

FromSylvia Else <sylvia@not.at.this.address>
Date2015-11-20 14:14 +1100
Message-ID<db7hfsFr4k3U1@mid.individual.net>
In reply to#385603
On 19/11/2015 5:43 PM, P E Schoen wrote:
> I have a USB device that I designed several years ago, using the
> Microchip PIC18F2550, and it has worked mostly OK on various laptops. It
> has four DC-DC converters driven by the USB 5V power and it is
> configured for the maximum 500 mA current draw. The actual current is
> 350 mA. The 5V USB supply connects to a 47 uF 16V aluminum electrolytic
> and a 1 uF 16V MLC capacitor. The 5V logic supply for the PIC and other
> components is fed through a Schottky diode and then multiple 1 uF bypass
> capacitors. There is a P-channel MOSFET which is turned on once the USB
> has been enumerated, and it provides power to the four DC-DC converters
> bypassed by a 47 uF capacitor.
>
> The laptop, running Win 8.0, accepts the USB device with no complaints,
> and everything works OK. But when I plug into the Winbook, the status
> LEDs indicate that the device starts to initialize, but it seems to hang
> up when the MOSFET is turned on, and it then turns off with the LEDs
> showing an incomplete initialization. The odd thing is that the Device
> Manager reports the device to be working normally as a serial port. I
> tried changing the values of the large capacitors but the problem persists.
>
> I would like to be able to operate this device from the WinBook (which
> is fully charged and plugged into the charger). The WinBook is running
> Win 8.1, which shouldn't make any difference to the USB subsystem. If I
> had encountered this when designing it, I could have incorporated some
> current limiting circuitry, but this is a mature design and not easy to
> modify. Any ideas on how to troubleshoot?
>
> Thanks,
>
> Paul

The USB spec says that a device switching from low power to a higher 
power must not cause a Vbus (the 5V line) drop of more than 330mV, and 
indicates that this can be achieved by limiting the additional 
capacitance to 10uF.

Clearly, you device doesn't comply with that, so the USB system is 
within its rights not to work properly.

Does the PIC have control over the DC-DC converters? Could it disable 
the converters, and switch the MOSFET on and offer repeatedly, so as to 
charge the capacitor in steps, leaving time in between for the Vbus to 
recover?

Sylvia.

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


#385819

From"P E Schoen" <paul@pstech-inc.com>
Date2015-11-20 00:08 -0500
Message-ID<n2m9ou$dqm$1@dont-email.me>
In reply to#385794
"Sylvia Else"  wrote in message news:db7hfsFr4k3U1@mid.individual.net...

> The USB spec says that a device switching from low power to a higher power 
> must not cause a Vbus (the 5V line) drop of more than 330mV, and indicates 
> that this can be achieved by limiting the additional capacitance to 10uF.

> Clearly, you device doesn't comply with that, so the USB system is within 
> its rights not to work properly.

> Does the PIC have control over the DC-DC converters? Could it disable the 
> converters, and switch the MOSFET on and offer repeatedly, so as to charge 
> the capacitor in steps, leaving time in between for the Vbus to recover?

I tried adding a 470 uF capacitor across C56 (47 uF) but it still did not 
fix the problem. At one point, the device manager reported that the USB 
device could not start, but then after re-inserting the connector it 
reported no problems, but the device was still not working properly. I 
jumpered across the MOSFET so the USB power was applied immediately to the 
DC-DC converters, and it works OK, drawing 0.32A from the Winbook.

So it appears that there is a problem with the PIC firmware, but it seems 
odd that it fails only on the Winbook and not the laptop. Apparently the 
host firmware assumes the device is working if it goes to the enumeration 
and configuration state, and then does no more checking. Perhaps the easiest 
"fix" is to install the jumper, which conveniently goes between two test 
points 1/4" apart.

I recall having some similar problems when first designing this unit, and I 
may have tried using simple PWM to "soft-start" the power to the DC-DC 
converters, but I think I changed the capacitor values and it seemed to work 
on the computers I had at the time.

Thanks,

Paul 

[toc] | [prev] | [standalone]


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


csiph-web