Re: Powercycling USB device on hub
Hi, On Wed, Jul 20, 2011 at 3:19 PM, Hans Petter Selasky hsela...@c2i.net wrote: On Wednesday 20 July 2011 14:30:37 Peer Stritzinger wrote: ... Using the usbconfig utility in 8 stable and 9 current, you can set the configuration to 255 which means unconfigured and then 0 for the root HUB. For non-root HUBs you can BUS-reset the devices usbconfig -d X.Y reset or set_config aswell. Do I understand this right: I reset the USB Hub device to powercycle all devices connected to it? There is also a power_off command, but your device might not come back after that. This would probably really not help since I try to reboot a USB device with hung software, so it won't recognize any commands itself. -- Peer ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Powercycling USB device on hub
On Thursday 21 July 2011 12:47:55 Peer Stritzinger wrote: Hi, On Wed, Jul 20, 2011 at 3:19 PM, Hans Petter Selasky hsela...@c2i.net wrote: On Wednesday 20 July 2011 14:30:37 Peer Stritzinger wrote: ... Using the usbconfig utility in 8 stable and 9 current, you can set the configuration to 255 which means unconfigured and then 0 for the root HUB. For non-root HUBs you can BUS-reset the devices usbconfig -d X.Y reset or set_config aswell. Hi, Do I understand this right: I reset the USB Hub device to powercycle all devices connected to it? Yes. That is correct. There is also a power_off command, but your device might not come back after that. This would probably really not help since I try to reboot a USB device with hung software, so it won't recognize any commands itself. Have you tried usbconfig -d X.Y reset ? Do a power_off command before the parent HUB reset, if the parent HUB reset is not enough. Beware that some motherboards hardwire the powersupply to the USB port. I.E. it is not possible to power-cycle the root HUB USB port. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Off-Topic: question about usb-hub power
Hi, Apologies if this is a kind of off-topic for this list - since it does not have anything to do with FreeBSD. The external USB-hubs (v2.0) that I've come across comes in two categories: Some are willing to deliver power (500mA pr. connector) even if the hub isn't connected to a computer - and some that doesn't do this - the hubs that I have purchased from Dlink falls into the last category. I looking for an USB hub that is willing to deliver power without it beeing connected to a computer in order to drive some external units - no it is not a mobile-phone ;-) Could anyone give me a hint what specs to look for ? - before I actually buy another hub - the Dlink ones were not a success... Thanks in advance. Kind regards Uffe Jakobsen ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Off-Topic: question about usb-hub power
On Thu, Jul 21, 2011 at 7:12 AM, Uffe Jakobsen u...@uffe.org wrote: Hi, Apologies if this is a kind of off-topic for this list - since it does not have anything to do with FreeBSD. The external USB-hubs (v2.0) that I've come across comes in two categories: Some are willing to deliver power (500mA pr. connector) even if the hub isn't connected to a computer - and some that doesn't do this - the hubs that I have purchased from Dlink falls into the last category. I looking for an USB hub that is willing to deliver power without it beeing connected to a computer in order to drive some external units - no it is not a mobile-phone ;-) Could anyone give me a hint what specs to look for ? - before I actually buy another hub - the Dlink ones were not a success... Thanks in advance. Kind regards Uffe Jakobsen For me . it is difficult to understand your question . Any links to actual products in such questions may clarify the subject matter very much . In market , there are mainly two kinds of USB hubs : - without power supply , mostly up to four ports or less : Example : http://www.amazon.com/Connectland-CL-U2MNHUB-4B-Ports-V2-0-Black/dp/B0028Y4F4S/ref=sr_1_3?ie=UTF8qid=1311251176sr=8-3 - with power supply , mostly with more than four ports : Example : http://www.amazon.com/Black-Ports-Speed-Power-Adapter/dp/B00475WJEY/ref=sr_1_9?ie=UTF8qid=1311250656sr=8-9 If you need power in ports even it is NOT connected to a computer or there is no power from the computer ( it is switched off ) , you need at least a power supply powered USB hub . Also , the following page contains explanations about power in USB hubs : http://en.wikipedia.org/wiki/USB_hub http://en.wikipedia.org/wiki/Category:USB http://en.wikipedia.org/wiki/USB To understand whether a hub is delivering power to ports when it is not connected to the computer or the computer is switched of , you may measure voltages in its port pins ( 1 and 4 ) by powering the hub by its power supply only : If there is NO voltage , the power supply is bogus ( or eye painting ) . If there is sufficient voltage it means that the hub is powering its ports itself without getting power from the computer port . Power level of power supply should be sufficiently powerful to supply 500 mA to each port , means ( Total power rating ) = ( Number of Ports ) x 500 mA . ( This may require to buy another power supply for the hub if its power supply is not sufficiently powerful ) . OR , It is necessary to consciously NOT to exceed the total power of the power supply by attaching less number of devices to ports : ( Power rating of power supply of hub ) / 500 mA = ( Number of devices attachable to Ports ) ( which is NOT a good selection because if this point is forgotten it is possible to easily exceed the capacity of the power supply means destroy of your hub or malfunctioning of data transmission , if I am correct ... ) . I do not know whether the above answer is correct for you or not . Thank you very much . Mehmet Erol Sanliturk ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Off-Topic: question about usb-hub power
On 2011-07-21 14:55, Mehmet Erol Sanliturk wrote: On Thu, Jul 21, 2011 at 7:12 AM, Uffe Jakobsen u...@uffe.org mailto:u...@uffe.org wrote: Apologies if this is a kind of off-topic for this list - since it does not have anything to do with FreeBSD. The external USB-hubs (v2.0) that I've come across comes in two categories: Some are willing to deliver power (500mA pr. connector) even if the hub isn't connected to a computer - and some that doesn't do this - the hubs that I have purchased from Dlink falls into the last category. I looking for an USB hub that is willing to deliver power without it beeing connected to a computer in order to drive some external units - no it is not a mobile-phone ;-) Could anyone give me a hint what specs to look for ? - before I actually buy another hub - the Dlink ones were not a success... I do not know whether the above answer is correct for you or not . Hi Mehmet, Thanks for your answer - it has revealed that my initial inquiry was quite inaccurate - my apologies for that. I'll try to fill out the gaps. The product I'm referring to is a Dlink DUB-H7 (http://www.dlink.com/products/?pid=149). A standard USB 2.0 hub with 7 ports that can be powered from an external power supply. I do know how to determine if there is power on an usb connector (pins 1+4) - also I know the math involved in making sure that the hub is not overloaded - but that it not really the issue here. This usb-hub will (apparently like so many other usb-hubs) only apply power to its connectors if it is connected to a computer (that is running) - and that applies even if the external power supply is connected to the usb-hub. Let me give you an example: You want to charge your mobile phone but you haven't brought the charger itself. You've only got the micro-usb cable for the mobile phone and the above mentioned Dlink hub - also you've got no computer at hand. Now connecting the mobile phone to the usb-hub while the usb-hub is connected to the external power supply will not make the mobile phone start charging. This will only happen once you connect the uplink usb cable from the usb-hub and to a computer and boot it up. Let me add here that this has nothing to do with the complexity and internal logic of the mobile phone mobile phone and its software - it could be any other device that can drain its power from an usb cable. I've previously owned an usb hub that would deliver power without beeing connected to a running computer - but unfortunately that was lost during relocation - and I do not remember the model/brand. Now I realize that this functionality is a part of the usb standard - and that leads to my original question: It there anyway to determine this habit without unpacking and testing every the usb-hub ? Kind regards Uffe ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Off-Topic: question about usb-hub power
On Thu, Jul 21, 2011 at 9:50 AM, Uffe Jakobsen u...@uffe.org wrote: On 2011-07-21 14:55, Mehmet Erol Sanliturk wrote: On Thu, Jul 21, 2011 at 7:12 AM, Uffe Jakobsen u...@uffe.org mailto:u...@uffe.org wrote: Apologies if this is a kind of off-topic for this list - since it does not have anything to do with FreeBSD. The external USB-hubs (v2.0) that I've come across comes in two categories: Some are willing to deliver power (500mA pr. connector) even if the hub isn't connected to a computer - and some that doesn't do this - the hubs that I have purchased from Dlink falls into the last category. I looking for an USB hub that is willing to deliver power without it beeing connected to a computer in order to drive some external units - no it is not a mobile-phone ;-) Could anyone give me a hint what specs to look for ? - before I actually buy another hub - the Dlink ones were not a success... I do not know whether the above answer is correct for you or not . Hi Mehmet, Thanks for your answer - it has revealed that my initial inquiry was quite inaccurate - my apologies for that. I'll try to fill out the gaps. The product I'm referring to is a Dlink DUB-H7 ( http://www.dlink.com/products/?pid=149). A standard USB 2.0 hub with 7 ports that can be powered from an external power supply. I do know how to determine if there is power on an usb connector (pins 1+4) - also I know the math involved in making sure that the hub is not overloaded - but that it not really the issue here. This usb-hub will (apparently like so many other usb-hubs) only apply power to its connectors if it is connected to a computer (that is running) - and that applies even if the external power supply is connected to the usb-hub. Let me give you an example: You want to charge your mobile phone but you haven't brought the charger itself. You've only got the micro-usb cable for the mobile phone and the above mentioned Dlink hub - also you've got no computer at hand. Now connecting the mobile phone to the usb-hub while the usb-hub is connected to the external power supply will not make the mobile phone start charging. This will only happen once you connect the uplink usb cable from the usb-hub and to a computer and boot it up. Let me add here that this has nothing to do with the complexity and internal logic of the mobile phone mobile phone and its software - it could be any other device that can drain its power from an usb cable. I've previously owned an usb hub that would deliver power without beeing connected to a running computer - but unfortunately that was lost during relocation - and I do not remember the model/brand. Now I realize that this functionality is a part of the usb standard - and that leads to my original question: It there anyway to determine this habit without unpacking and testing every the usb-hub ? Kind regards Uffe From the Wikipedia page http://en.wikipedia.org/wiki/USB_hub : However, there are many non-compliant hubs on the market which announce themselves to the host as self-powered despite really being bus-powered . It seems that the above unit is NOT using the power supply . One way to learn a suitable model is that one of the subscribers of this list knowing that will answer over time . Personally I do not know . Forget this , please : I have a Targus 7-port Hub USB 2.0 Desktop Hub with a AC Adapter Barcode : 5 024442 863608 ( ACH82EU ) Targus Europe Ltd. http://www.targus.com/uk/ In that site , search Targus 7-Port USB Desktop Hub My unit is different than the above as model number . Therefore I can not say that they are exactly equivalent , but my expectation is that they will be similar with respect to power delivery to pins . I have measured voltage across pins 1 and 4 just only it is connected to AC power line ( without any connection to any computer , even USB connection cable is not plugged ) . It is giving 5.00 volts between these two pins . I checked by reverse measuring ( to see effect of sign ) . It is giving either 5.00 or -5.00 volts when measuring pins are reversed . It is very likely that you will be able to find that model . Unfortunately , within product definition documents , mostly there is no any clue about your question . Another very simple test may to use a USB light . In computer shops it is very likely that it is possible to find open units for inspection by customers . Attach a USB light such as http://www.amazon.com/Portable-Flexible-Light-Laptops-Notebooks/dp/B002WI8GG8/ref=sr_1_1?ie=UTF8qid=1311265897sr=8-1 If it gives light , means that pins are receiving power directly from AC power supply . My knowledge is so much . Thank you very much . Mehmet Erol Sanliturk ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail
Re: Off-Topic: question about usb-hub power
Hi, I don't know which chip used in your D-Link hub Uffe, but I believe this one made with respect of standard. Uffe, can You do simple test with your device: 1. connect your device to active PC and check if it charging. 2. put your PC in StandBy or PowerOff mode(don't remove power cord), reattach your device and also check if device still charging. In both cases most devices will continue charging, but some smart device in second case disable charging. (my Sony PRS-600) I was trying to charge my PRS with power supply with USB connector, and reader don't start charging. So charging can start only after some interaction between USB host and device. On Thu, 21 Jul 2011 12:36:29 -0400 Mehmet Erol Sanliturk m.e.sanlit...@gmail.com wrote: On Thu, Jul 21, 2011 at 9:50 AM, Uffe Jakobsen u...@uffe.org wrote: On 2011-07-21 14:55, Mehmet Erol Sanliturk wrote: On Thu, Jul 21, 2011 at 7:12 AM, Uffe Jakobsen u...@uffe.org mailto:u...@uffe.org wrote: Apologies if this is a kind of off-topic for this list - since it does not have anything to do with FreeBSD. The external USB-hubs (v2.0) that I've come across comes in two categories: Some are willing to deliver power (500mA pr. connector) even if the hub isn't connected to a computer - and some that doesn't do this - the hubs that I have purchased from Dlink falls into the last category. I looking for an USB hub that is willing to deliver power without it beeing connected to a computer in order to drive some external units - no it is not a mobile-phone ;-) Could anyone give me a hint what specs to look for ? - before I actually buy another hub - the Dlink ones were not a success... I do not know whether the above answer is correct for you or not . Hi Mehmet, Thanks for your answer - it has revealed that my initial inquiry was quite inaccurate - my apologies for that. I'll try to fill out the gaps. The product I'm referring to is a Dlink DUB-H7 ( http://www.dlink.com/products/?pid=149). A standard USB 2.0 hub with 7 ports that can be powered from an external power supply. I do know how to determine if there is power on an usb connector (pins 1+4) - also I know the math involved in making sure that the hub is not overloaded - but that it not really the issue here. This usb-hub will (apparently like so many other usb-hubs) only apply power to its connectors if it is connected to a computer (that is running) - and that applies even if the external power supply is connected to the usb-hub. Let me give you an example: You want to charge your mobile phone but you haven't brought the charger itself. You've only got the micro-usb cable for the mobile phone and the above mentioned Dlink hub - also you've got no computer at hand. Now connecting the mobile phone to the usb-hub while the usb-hub is connected to the external power supply will not make the mobile phone start charging. This will only happen once you connect the uplink usb cable from the usb-hub and to a computer and boot it up. Let me add here that this has nothing to do with the complexity and internal logic of the mobile phone mobile phone and its software - it could be any other device that can drain its power from an usb cable. I've previously owned an usb hub that would deliver power without beeing connected to a running computer - but unfortunately that was lost during relocation - and I do not remember the model/brand. Now I realize that this functionality is a part of the usb standard - and that leads to my original question: It there anyway to determine this habit without unpacking and testing every the usb-hub ? Kind regards Uffe From the Wikipedia page http://en.wikipedia.org/wiki/USB_hub : However, there are many non-compliant hubs on the market which announce themselves to the host as self-powered despite really being bus-powered . It seems that the above unit is NOT using the power supply . One way to learn a suitable model is that one of the subscribers of this list knowing that will answer over time . Personally I do not know . Forget this , please : I have a Targus 7-port Hub USB 2.0 Desktop Hub with a AC Adapter Barcode : 5 024442 863608 ( ACH82EU ) Targus Europe Ltd. http://www.targus.com/uk/ In that site , search Targus 7-Port USB Desktop Hub My unit is different than the above as model number . Therefore I can not say that they are exactly equivalent , but my expectation is that they will be similar with respect to power delivery to pins . I have measured voltage across pins 1 and 4 just only it is connected to AC power line ( without any connection to any computer , even USB connection cable is not plugged ) . It is giving 5.00 volts between these two pins . I checked by reverse measuring ( to see effect of sign
Re: Off-Topic: question about usb-hub power
On Thu, Jul 21, 2011 at 5:03 PM, Aleksandr Rybalko r...@ddteam.net wrote: Hi, I don't know which chip used in your D-Link hub Uffe, but I believe this one made with respect of standard. Uffe, can You do simple test with your device: 1. connect your device to active PC and check if it charging. 2. put your PC in StandBy or PowerOff mode(don't remove power cord), reattach your device and also check if device still charging. In both cases most devices will continue charging, but some smart device in second case disable charging. (my Sony PRS-600) I was trying to charge my PRS with power supply with USB connector, and reader don't start charging. So charging can start only after some interaction between USB host and device. ... WBW -- Aleksandr Rybalko r...@ddteam.net There is another kind of devices which it is very likely that some of them can be found in any local computer store : USB AC Chargers : A few sample pages would be : http://jingshuo888.en.made-in-china.com/product/doLQBGEUHIWS/China-2-Port-USB-AC-Charger-JS-ACN037-.html http://www.eforcity.com/universal-usb-travel-charger-adaptor-dothusbtcad1.html http://www.overstock.com/Electronics/AC-USB-Power-Adapter-Charger/2453811/product.html Thank you very much . Mehmet Erol Sanliturk ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
boot hang without xhci
More for the archives in case anyone else runs into this. We got a new desktop board in that we were testing out netbooting and noticed that without xhci loaded in the kernel the box hangs with the last thing being initialized em0 (full dmesg etc at http://www.tancsa.com/xhci.txt) Its an Intel DQ67SW ata2: [ITHREAD] ata3: ATA channel 1 on atapci0 ata3: [ITHREAD] pci0: simple comms, UART at device 22.3 (no driver attached) em0: Intel(R) PRO/1000 Network Connection 7.2.3 port 0xf080-0xf09f mem 0xfe60-0xfe61,0xfe628000-0xfe628fff irq 20 at device 25.0 on pci0 em0: Using an MSI interrupt em0: [FILTER] em0: Ethernet address: 00:22:4d:52:04:46 with usb 3 disabled in the BIOS, or with xhci loaded, all boots fine as shown below. ata2: [ITHREAD] ata3: ATA channel 1 on atapci0 ata3: [ITHREAD] pci0: simple comms, UART at device 22.3 (no driver attached) em0: Intel(R) PRO/1000 Network Connection 7.2.3 port 0xf080-0xf09f mem 0xfe60-0xfe61,0xfe628000-0xfe628fff irq 20 at device 25.0 on pci0 em0: Using an MSI interrupt em0: [FILTER] em0: Ethernet address: 00:22:4d:52:04:46 ehci0: EHCI (generic) USB 2.0 controller mem 0xfe627000-0xfe6273ff irq 16 at device 26.0 on pci0 ehci0: [ITHREAD] usbus0: EHCI version 1.0 usbus0: EHCI (generic) USB 2.0 controller on ehci0 pci0: multimedia, HDA at device 27.0 (no driver attached) pcib1: ACPI PCI-PCI bridge irq 17 at device 28.0 on pci0 pci1: ACPI PCI bus on pcib1 pcib2: ACPI PCI-PCI bridge irq 18 at device 28.6 on pci0 pci2: ACPI PCI bus on pcib2 xhci0: XHCI (generic) USB 3.0 controller mem 0xfe50-0xfe501fff irq 18 at device 0.0 on pci2 xhci0: [ITHREAD] xhci0: 32 byte context size. -- --- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, m...@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org