03-25-2020 07:48 AM
Hi,
I saw this post but the OP stopped responding so I am hoping to kick things back up.
I am hoping someone knows how to do this. I want to connect an Arduino Uno over USB to my PXIe-8133 running Real-Time 17.0 (Pharlap). The 8133 is in a PXIe-1082 chassis. Basically the purpose is that there are many sensors that talk SPI, I2C, or UART that I can get up and running very quickly and it would be nice to just send those sensor values over serial USB to the PXI. Not really concerned with timing, determinism, or lossless data.
This should be possible right! I mean c'mon, it's USB! Why have the ports on the pxi controller just sitting, teasing you, saying plug something into me when you can't use them for something as trivial as serial comm. I think I read that they are meant for keyboard/mouse + mass storage but I am hoping for more.
Maybe I need a driver? How would I install custom drivers?
Please help or at least kill this idea in my mind as it is plaguing me! Thanks in advance.
03-27-2020 07:18 AM
You need to write a USB driver. In windows, Microsoft provides a WinUSB kernel driver that you you use by simply writing a user-mode application. Here is the start to their guide. I hope it helps.
https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/usb-driver-development-guide
You will follow the UMDF (user-mode driver framework) instead of the KMDF. The start of these instructions are https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/implement-driver-entry-for-a-usb-dr...
03-31-2020 03:04 PM
OK that is very helpful. So it appears the possibility is there!
Assuming I get something written (big assumption), where would I put the driver or how would I install it?