We are running a USB TC08 on a remote site. We have recently been having stability issues with our software (DAQFactory) which has caused an occasional crash.
I understand that if the driver isn't closed cleanly before the application closes the TC08 unit hangs. The issue I have is that a reboot doesn't seem to fix this! I tried dropping the device through Device Manager / USBDview / command line tools to no avail! The device must physically be unplugged / replugged for the PC to find the device on the USB.
This isn't ideal as the PC is 50 miles from my location!
Is there any way I can recover the unit without physically being at the location?
As I do not have the ability to replicate the issue here I was hoping to ask you a few questions.
What language are you using?
Is it possible to call usb_tc08_close_unit (As the handle is always 1 if you have only one device connected) and then re opening device using usb_tc08_open_unit?
When the application crashes does the device keep its green light on?
Thanks for that, interesting that the handle is always 1 with one unit connected, that must be the handle that the Pico driver assigns rather than Windows.
My code always starts in DaqFactory by attempting a new connection, if this fails the code goes no further.
I will have a play around with trying to ID the device before initiating a new connection, if I can do this I may be able to switch it off.
You are correct it is the driver that assigns the handle value.
If the crash occurs would be no be best to disconnect all devices?
The handle values increments by 1 for each device connected to,
for example first device has a handle value of 1 and second device has a handle value of 2.