I'm writing a system (X-Platform Windows/Linux) that talks to a custom device using an FTDI USB chip. I use their D2XX driver for device open/close/read/write. So far, so good.
I need to know when the device is disconnected so the program can respond gracefully. At present, under Windows the application receives a sudden unexpected...
Not a question, just a statement to help anyone else who might spend hours getting the Microchip PIC USB DLL to work properly with Unicode.
It expects several strings, and although these are simple PAnsiChar, getting the right combination of DLL call convention took me ages. There are a lot of people on the 'net using Delphi (non-Unicod...
I have a custom-built USB CDC device. If I plug it into a Windows box (2k, XP, Vista), up pops the Found New Hardware Wizard and I can point it at my .inf file, which supplies a mapping from the USB VID and PID to the USB driver (in this case the inbuilt usbser.sys). Then it appears as a virtual COM port and I can set up dial-up networki...
I have a device that came with an AC power adapter where the connector is a mini USB plug. The device however doesn't seem to power itself from a computer's USB port (using a standard USB-mini USB cable) unless a specific driver is installed. The driver is only available for Windows. I would like to charge the device from USB plugs on...
Do you know a way to use the Windows XP API to reset the USB bus? In other words, I'd like the OS to kick out any USB devices that are currently connected, and then auto-detect everything anew.
I'm aware of devcon, and I suppose I could do system calls out to it, but I'm hoping for a direct call into the API.
...
I'm trying to create a test module for one of our USB devices and I'm using Windows XP with the Windows 2003 DDK. When I include the I'm getting a warning that it is obsolete, but without getting any hints as to what replaced it. I see that some definitions were migrated to , but the structure definitions for IOCTLs (like USB_NODE_CO...
Hi all,
I have written a win32 program for detecting USB port device insert and removal.
For this i have used dbt.h header file provided by system.
But still my program fails to link to that and hence my program dont compile.
I have Windows DDK installed on my system and i can find 4 diffrent dbt.h header files.
which one is correct on...
Dear All,
I have some c code with me which detects the usb cable removal and insertion.
But i wanted to know how to get device name of the inserted device.
i found one structure DEV_BROADCAST_DEVICEINTERFACE which is having dbcc_name as member. but i dont know which pointer to type cast to this structure to acess dbcc_name
please hel...
Dear All
I am looking for linux kernel source code for hid module
hid.c for kernel version 2.6.27.14
Thanks & regards,
madni
madni[AT]gmail[DOT]com
...
Code :
hHCDev = CreateFileA(completeDeviceName,
//"F:\\test.txt",
GENERIC_WRITE|GENERIC_READ,
FILE_SHARE_WRITE|FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL);
if (hHCDev == INVALID_HAN...
I had an idea, but don't know if it could be possible to do :
Could it be possible to code a usb cam driver who can multiplex a video source to any software that needs it ?
a sort of "man in the middle" driver :)
...
Hi,
I am developing CDC driver for USB device and I stumble on some problem.
The driver I am using on windows side uses Clear endpoint Feature as some kind of flish mechanism or to get data right. That causes me a lot of trobule because I cant get it working. I think data toggle don't agree and I am missing some important data transfer...
is there any program that sends data from a virtual usb port to host device as computer?
...
Using a FolderBrowserDialog in a USB Drive takes several minutes to offer subfolders (independently of how many subfolders are there). Whereas Windows Explorer does show them in a relatively quick manner.
Code I'm using is:
if (folderBrowserDialog1.ShowDialog() == DialogResult.OK) {
//grab value
}
I navigate to the USB drive, and c...
I'm trying to install ubuntu on an usb, the problem is, I don't want to dual boot once done, I want to keep my windows but boot ubuntu using virtualbox and use the usb as my harddrive for ubuntu, but how?
Virtualbox will not recognize the usb as a harddrive when installing the iso
...
Our winforms application supports a custom controller using the manufacturer's SDK, but there's no support to detect whether a device is present or not. How do I check whether a given USB device is plugged in?
...
How do I find out what's wrong with the device info set returned? I'm re-writing my code again and I'm still hitting the same stumbling block.
deviceInfoSet = SetupDiGetClassDevs(ref tGuid, 0, IntPtr.Zero, (uint)SetupDiFlags.DIGCF_PRESENT );
if (deviceInfoSet.ToInt32() == INVALID_DEVICE_HANDLE)
{
int errCode = Marshal.GetLastWin32Err...
I have a few p/invoked functions (but I'm rewriting my code at the moment so I'm tidying up) and I want to know how to use/pass a nullable type as one of the parameters. working with int types isn't a problem but given the following:
[DllImport("setupapi.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern IntPtr SetupD...
Alright. I figured it out. transfer.flags needed to be a byte instead of an int. Silly me. Now I'm getting an error code from ioctl, errno 16, which I think means the device is busy. What a workaholic. I've asked on the libusb mailing list.
Below is what I have so far. This isn't really that much code. Most of it is ctypes structures fo...
Hello again folks
This time I have an error which I have been trying again to figure out why it exists. Although the error can be ignored but I'd like to know why it exists in the 1st place.
result = SetupDiGetDeviceInterfaceDetail(deviceInfoSet, ref anInterface, IntPtr.Zero, 0, ref buffersize, IntPtr.Zero);
if (!result)
...