From: njoycoding on 24 Jan 2008 08:57 Hi All, Is there any way to reset power to USB device through code? Thanks in advance
From: Kerem G�mr�kc� on 24 Jan 2008 09:44 Hi, >Is there any way to reset power to USB device through code? AFIAK this is not possible by code, and if, then only with some bios/hardware supported call. I asume you mean with reset cutting the power to the device and reconnecting it to the power source. If you need something like this you can assemble a small hardware device for this that can do this on demand, command/code or timer triggered. There are lots of tutorials out there in the www for building a swicth card on serial interface or even on USB (recommended). Once i did something like that, could be triggere from a USB controlled device, but it was for resetting a huge array of hardware or just some parts of it, even from a mobile phone...LOL I dont know whether you understand german, but this is a example from a german company who distributes hadware and nearly any circuitry available: www.conrad.de Search for the term "relaiskarte",... You can loop through the usb connections for which you want to reset the power with this switches,... Maybe this is not what you are looking for,... Regards Kerem -- ----------------------- Beste Gr�sse / Best regards / Votre bien devoue Kerem G�mr�kc� Microsoft Live Space: http://kerem-g.spaces.live.com/ Latest Open-Source Projects: http://entwicklung.junetz.de ----------------------- "This reply is provided as is, without warranty express or implied."
From: Pavel A. on 24 Jan 2008 15:18 <njoycoding(a)gmail.com> wrote in message news:e678f2e7-b077-4e0b-8847-a57872a62d46(a)e6g2000prf.googlegroups.com... > Hi All, > > Is there any way to reset power to USB device through code? From a kernel driver: look up MSDN for IOCTL_INTERNAL_USB_CYCLE_PORT or WdfUsbTargetDeviceCyclePortSynchronously. No idea how to do this from user mode. Please ask in microsoft.public.development.device.drivers. Regards, --PA
From: Doron Holan [MSFT] on 24 Jan 2008 19:16 this ioctl will not cycle the power to the port itself (e.g. the device will remain powered), it just causes the device to be reenumerated d -- Please do not send e-mail directly to this alias. this alias is for newsgroup purposes only. This posting is provided "AS IS" with no warranties, and confers no rights. "Pavel A." <pavel_a(a)NOwritemeNO.com> wrote in message news:ePFPkdsXIHA.1208(a)TK2MSFTNGP03.phx.gbl... > <njoycoding(a)gmail.com> wrote in message > news:e678f2e7-b077-4e0b-8847-a57872a62d46(a)e6g2000prf.googlegroups.com... >> Hi All, >> >> Is there any way to reset power to USB device through code? > > From a kernel driver: > look up MSDN for IOCTL_INTERNAL_USB_CYCLE_PORT > or WdfUsbTargetDeviceCyclePortSynchronously. > > No idea how to do this from user mode. Please ask in > microsoft.public.development.device.drivers. > > Regards, > --PA > >
From: njoycoding on 25 Jan 2008 06:34 Thanks for the reply .... was informative ... I was looking for some api that does this .... Sorry to say I dont understand German ... On Jan 25, 5:16 am, "Doron Holan [MSFT]" <dor...(a)online.microsoft.com> wrote: > this ioctl will not cycle the power to the port itself (e.g. the device will > remain powered), it just causes the device to be reenumerated > > d > > -- > Please do not send e-mail directly to this alias. this alias is for > newsgroup purposes only. > This posting is provided "AS IS" with no warranties, and confers no rights.. > > "Pavel A." <pave...(a)NOwritemeNO.com> wrote in message > > news:ePFPkdsXIHA.1208(a)TK2MSFTNGP03.phx.gbl... > > > > > <njoycod...(a)gmail.com> wrote in message > >news:e678f2e7-b077-4e0b-8847-a57872a62d46(a)e6g2000prf.googlegroups.com... > >> Hi All, > > >> Is there any way to reset power to USB device through code? > > > From a kernel driver: > > look up MSDN for IOCTL_INTERNAL_USB_CYCLE_PORT > > or WdfUsbTargetDeviceCyclePortSynchronously. > > > No idea how to do this from user mode. Please ask in > > microsoft.public.development.device.drivers. > > > Regards, > > --PA- Hide quoted text - > > - Show quoted text -
|
Next
|
Last
Pages: 1 2 Prev: Print Spooler Job ID Limit on Vista? Next: Working on a NE disassembler |