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.

DLPNIRNANOEVM: UART example code

Part Number: DLPNIRNANOEVM

Dear DLP team, I was wondering if there is any example code available for performing common scan functions over the UART interface, such as initiating a scan, reading binary scan data,  and later converting it into a text format. Several UART-related functions are available in a file named "uartstdio.c" within the "Drivers" folder of the NIRScanNano GUI, but there are no examples that demonstrate how to use them to perform higher-level operations.

Thank you.

  • Soumyajit,

    The NIRscan Nano GUI has a regression test that can use an FTDI USB to serial converter to send UART commands to a Nano. This regression test goes through the API.cpp commands during the test serially. The GUI file serial.c shows how to use a COM port to send these commands serially. The UART and USB commands are the same, so follow the NIRscan Nano User's Guide for the sequence of commands to start a scan and the GUI scantab.cpp code for examples.