I enumerate the usb devices on the pc to pick out a particular USB device w/ TUSB3410 driver package and succeed in retrieving that device's info and device path which I later use when calling CreateFile(..) to open the communication with the device. However, I am receiving a system error on executing CreateFile(..) which is ERROR_NO_SYSTEM_RESOURCES. Any idea why this may be happening?
Here is the source code surrounding the CreateFile(..) error...
/*
* BUSerPortOpen - This routine will open a device communication port.
*/
BUINTFN BUSerPortOpen(void *p, LPTSTR PortStr, int DispErr)
{
...
if (pSPC->hCommId != COMM_PORT_CLOSED)
return(BU_NOERROR);
if ((pSPC->hCommId = CreateFile(
PortStr,
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
NULL)
) == INVALID_HANDLE_VALUE) {
Err = ERR_CREATEFILE;
if (DispErr) BUErrorMsg(Err, _T("Audiometer connection error"));
goto Err10;
}
}Any help would be greatly appreciated.Thanks
Matt,
As you may know, we’ve found the root cause of the issue you were experiencing at your end. Since your TUSB3410 implementation was attempting to load FW from an external EEPROM and at the same time our driver was trying to load it from the host PC, there were some wrong features being performed within our driver. We’ve fixed this and now FW in EEPROM is being loaded without troubles. I’ve sent you and interim test driver. Please test it at your end and let me know your inputs.
Thanks for your patience,
Ismael
Thanks and Best Regards,
Ismael Durón
Ismael,
Thank you for your continued attentive and productive support. The interim driver proved to be compatible with our existing devices in which the TUSB3410 had been previously implemented. The FW load collision with the latest TUSB3410 driver was completely resolved with the interim driver.
We have tested the implementation of the interim driver with our full application under XP (32-bit), Vista (32-bit), and Vista (64-bit). Our USB CIC device functions appropriately with the driver under these environments and we are greatly satisfied with the results.
Your support was an unprecedented experience for us at BMI. Thank you again for your assistance.
Matt