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.

DLP2010NIR: Connect to Android smartphone via USB

Part Number: DLP2010NIR

I have implemented an Android app which communicates with the DLP NIRscan Nano via Bluetooth LE. It is working fine, but unfortunately it takes a long time to transfer the scan results - especially if you want to do several individual scans in a row.

That's why I'm currently trying to connect the device via an USB OTG cable to the Android smartphone. I can successfully connect to the device via USB but it is unclear how to read or write data.

What I have understood so far:

When I want to read e.g. the Tiva version information, I thought it will work like the code mentioned below. The specification of the device: http://www.ti.com/lit/ug/dlpu030g/dlpu030g.pdf see page 83

Why is it not working? I never get any response from the sensor.

Do I have to use controlTransfer? Is the data packet wrong? Is it possible at all to connect the scanner via USB to an Android smartphone?

Any help appreciated :-)

Thanks Ben

Looks like there is a bug in this board, because I cannot add my source code.
You can find the source code here: https://stackoverflow.com/questions/49748315/ti-dlp-nirscan-nano-connect-to-android-smartphone-via-usb