How to programmatically communicate with a software device driver in Java or C#?
-
22-06-2021 - |
Pregunta
Recently I've installed a software device driver for a device that connects to my local machine via USB. How do I communicate with the device? Do I communicate directly with the installed software device driver?
Tools:
- OneTouch Ultra 2 glucometer
- Windows XP
- Meter Drivers for OneTouch(R) Software v1.12.0.0
- Custom Communication Protocols
Solución
The company offers both a "meter driver" and "communication protocols". If you're wanting to write your own software to communicate with the meter, I'd fill out the form on http://www.onetouch.com/software_kit and see what that has to offer.
Otros consejos
You would have to use JNI to access the underlying OS. Standard Java provides no hooks into the OS at that level in pure Java.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow