This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to communicate with DLP NIRSCAN Nano via COM Port or HID?

Hello,
 
We bought DLPNIR NANO Evm about one month ago and we are trying to understand how we communicate with device. When we plugged in the device to PC, one HID device appeared in device manager. we think that it is DLPNIR NANO. Do we have to communicate this device with HID or can we communicate with COM port? 
 
We want to develop C#.NET software that can control the device, but we couldn't understand how we can use USB Transaction Sequence in page 76 on the DLP® NIRscanTM Nano EVM User's Guide. In the section of H.1.1.1 USB Read Transaction Sequence on User's guide, there is an explanation of what we have to do for sending commands but we 'll be glad if anyone can send any example code that can send USB commands to device.

Thank you
  • Hi User,

    Have you looked at the source code for our GUI? It includes a command API (API.c) which wraps the USB HID commands into C++ functions. This source code is included in the GUI download on the NIRscan Nano EVM page, and more documentation is available in the doxygen documentation once the GUI sources are installed.

  • In addition to Eric's response, the GUI source code uses a GNU Public source a multi-platform (Windows, Linux, and Mac) HDI library called HDIAPI to handle the HID communications. This is in the source under the hdapi-master directory. In the GUI source code, there is a USB Wrapper functions that interface with the HDIAPI to send the commands. You can find this under the usb.cpp file. The wrapper functions has initialization, opening and closing USB ports, read and write functions. There is also a C-callable APIS that support all the commands of the NIRscan Nano under API.cpp. Thus, for your program start with these files to send commands to the NIRscan Nano.

    Best regards,
    Pedro