Hi from a new K8055 user. Great device and I see there is great customer service available here too.
I’ve been playing with this thing for a couple of days now under FreeBSD, and it is fun. I had no problem connecting it to my home proximity alert system. It can monitor all the motion detectors around the house and all that. Really cool.
Of course, I had to get my hands dirty trying to do access the K8055 under Windows, using the K8055D.DLL. I was able to figure out the (undocumented) ReadAll() call so I can get all the readings from digital, analog and counters without doing 4 IOs. So much for the simple stuff.
What I cannot figure out is how to detect IO errors or device disconnect. If I just unplug the K8055 from the USB port, all readings go zero. It doesn’t reopen the device when it is reconnected and there doesn’t seem to be a function that checks if communication with the opened device is still happening. Under FreeBSD using libusb, I get at least timeouts when the communication fails. What am I missing?