 |
|
 |
I don't see a way of sending and receiving feature reports. Is this possible?
Is it possible to specify if the reads and writes are using control or interrupt transfers?
Is it possible to obtain a serial number from a device?
What good is the CheckDevicePresent Method if it doesn't return anything. The documentation lacks the necessary information to understand how this is useful...
|
|
|
|
 |
|
|
 |
|
 |
If I close a form that make use of usblibray I need to remove and reconnect the USB device so that it can be found again. I´ve change the CreateFile according to a previous post (changing the share flags) but didn´t work. Any clue?
Thanks in advance.
|
|
|
|
 |
|
 |
Whenever I made changes in CreateFile share flags (which fix my usb not found problem) data received event is fired twice for each usb packet.
Thanks
|
|
|
|
 |
|
 |
Hi All,
when the program tries to connect to the specific drive, I've the following error:
UsbLibrary.HIDDeviceException: Msg:UsbLibrary.HIDDeviceException: Msg:Failed to create device file WinEr:00000005 at UsbLibrary.HIDDevice.Initialise(String strPath) in D:\DATA\Documents\Visual Studio 2008\Projects\usb hid\UsbLibrary\HIDDevice.cs:line 126 at UsbLibrary.HIDDevice.FindDevice(Int32 nVid, Int32 nPid, Type oType) in D:\DATA\Documents\Visual Studio 2008\Projects\usb hid\UsbLibrary\HIDDevice.cs:line 261 at UsbLibrary.HIDDevice.FindDevice(Int32 nVid, Int32 nPid, Type oType) in D:\DATA\Documents\Visual Studio 2008\Projects\usb hid\UsbLibrary\HIDDevice.cs:line 270 at UsbLibrary.SpecifiedDevice.FindSpecifiedDevice(Int32 vendor_id, Int32 product_id) in D:\DATA\Documents\Visual Studio 2008\Projects\usb hid\UsbLibrary\SpecifiedDevice.cs:line 42 at UsbLibrary.UsbHidPort.CheckDevicePresent() in D:\DATA\Documents\Visual Studio 2008\Projects\usb hid\UsbLibrary\UsbHidPort.cs:line 218
Any help?
Thanks a lot.
|
|
|
|
 |
|
 |
You get that error message when a program on computer is already using the device.
Mice. keyboards. keyboard wedge devices. external hard drives. etc.
will all give that exception message.
|
|
|
|
 |
|
 |
hi, i'm going to use your code in vb.net but it does not work.. can you help me?
|
|
|
|
 |
|
 |
i haz same problem "Assembly 'C:\blablabla\usb_hid\UsbLibrary\obj\Debug\UsbLibrary.dll' doesn't contain any UserControl types."
|
|
|
|
 |
|
 |
usbhidport works very well with the form. I am not able to use it in a class. can you please guide me how can I use it in the class level to make my program architecture simpler Thank you.
|
|
|
|
 |
|
 |
is there some way to power off the usb device. actually the card reader I am using is making problems.Needed to plug out and in again in order to remove the error. Thank you
|
|
|
|
 |
|
 |
How do i find the Ids of the usb?
|
|
|
|
 |
|
 |
I got it now! If you go to the device manager in control pael then got into the details tab of your device and select "Device Instance Path" from the list you get something like this.. "USB\VID_045E&PID_028E\038B48F" so VID is 45 and PID is 28
|
|
|
|
 |
|
 |
I downloaded the code. Program can detect my usb device according to vid and pid. However I can not receive data from my device . could you recommend me anything about this problem?
|
|
|
|
 |
|
 |
I have the same problem!!! have you fixed it?
|
|
|
|
 |
|
 |
No. I could not fixed it I used another code.
|
|
|
|
 |
|
 |
Can you share that code? I really want to do this
|
|
|
|
 |
|
 |
I used the code whose name is generic_hid_cs in this website http://www.lvr.com/hidpage.htm
|
|
|
|
 |
|
|
 |
|
 |
I used this excellent component for detect USB Optocon Barcode Reader . But, the problem is when I typed 0x065a and 0x0001 to 2 textboxes and trace to CreateFile, Sniffer said that it has error 1008 ( ERROR_NO_TOKEN). My environment is Windows 7 ( had tried in XP but no luck ) I applied 64bit patch in threads before, and change Reserved field to UIntPtr too. The strange is if I use CreateFileW ( according to MS, if a path begin with "\\?\" so it should be read as Unicode ) and success get handle, but HID_PreparseData has error ... ?!?!
|
|
|
|
 |
|
 |
Uhm I found it. According to MS , if a device has detected as keyboard by windows using hid.dll, it won't be access in user mode. So the best way is hooking or write a keyboard filter for reading from them ...
|
|
|
|
 |
|
 |
Could you share how to write a keyboard filter? Thanks.
|
|
|
|
 |
|
 |
I've had reports that the device detection works in Win2K, but our USB card reader wouldn't read a card. Has anyone had any experience running this library under Win2K?
|
|
|
|
 |
|
 |
What type of card is that. May be I can help you.
|
|
|
|
 |
|
 |
instead of typing in the VID/PID of the usb. is it possible to write a program to auto detect the USB's VID/PID and display it in a GUI?
|
|
|
|
 |
|
 |
Anyone had a same problem with me? When I use USBlyzer(monitoring tool), my app just hang at
HIDDevice.cs protected void Write(OutputReport oOutRep) { try { here -->> m_oFile.Write(oOutRep.Buffer, 0, oOutRep.BufferLength); } catch { //Console.WriteLine(ex.ToString()); // The device was removed! throw new HIDDeviceException("Probbaly the device was removed"); } }
without using monitoring tools , it just works fine. when my app hangs, I cannot kill my app process. I have to press the power button for 5 seconds to shutdown.
is it something to do with bInterval value in endpoint?
Also is it possible to receive smaller data size then max packet size? If the usb device is composite device, how do I select second interface device?
USB is difficult.
|
|
|
|
 |