Re: reading usb device
- From: "Galen Somerville" <galen@xxxxxxxxxxxxxxxx>
- Date: Sun, 3 Feb 2008 14:04:12 -0800
No, all USB devices do not look like drives. Only USB drives look and act
like drives.
The real question here is, what kind of USB device are you dealing with. The
device I work with is proprietary and has a whole Sh--pot full of commands.
Some commands set it up and others return various types of data. All
commands have to be explicitly written to conform to the USB drivers made
specifically for the device.
If it's a Sound card then the normal Windows features work with it
automatically.
So you are back to square one. What is the USB device and how do you access
it?
Galen
"Lorin" <Lorin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9FD5DE12-BE57-4A8F-A232-039969B1F351@xxxxxxxxxxxxxxxx
Does API
apiSerialNumber()
actively read the device (if it is a drive type device).
i.e. do Win read it and store it such that when I call the API it reads
what
windows read when the device was plugged in?
Do all USB devices look like drives.
I use the above API to get the serial number of all types of drives
including thumb drives.
"Galen Somerville" wrote:
Just a thought. If the device designers can add battery monitoring code
to
their device, then you could write a program to interrogate it.
Galen
"caver_dave" <caverdave@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B08750E0-00DE-4859-880C-2DF0ED13D7FA@xxxxxxxxxxxxxxxx
Thanks Galen
c'est la vie, they are charging only.
regards dave
"Galen Somerville" wrote:
"caver_dave" <caverdave@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A607B588-014A-46CE-A280-867C62DCDE6A@xxxxxxxxxxxxxxxx
I admit I am stumped on how to begin, I have been asked to write a
program
to
to monitor a device on charge via a usb port. There are no coding
libraries
dll or ocx available is there any way to get some generic
information
about
the unit without any of these.
Please if there is any way or help to start me off
Thanks in advance
caver dave
If they plug it in just to charge the device, forget it.
If the device is operational when they plug it in, you need to find
out
what
data you can send/receive to/from the device.
And to do that you need their device drivers and info on how to use
the
drivers.
Galen
.
- References:
- Re: reading usb device
- From: Galen Somerville
- Re: reading usb device
- From: Galen Somerville
- Re: reading usb device
- From: Lorin
- Re: reading usb device
- Prev by Date: Re: Strange Type Declaration ERROR, please help!
- Next by Date: Internetopen generates Error: No more handles can be generated.
- Previous by thread: Re: reading usb device
- Next by thread: Re: reading usb device
- Index(es):
Relevant Pages
|
Loading