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.

dlp_nirscan ioctl commands

Other Parts Discussed in Thread: DLPC350, DLPNIRSCANEVM

Hey,

I have been working on the NIRscan EVM for a while now. We only have the main board and the DMD attached to it, since we don't need any of the other components. For my research purposes I need to be able to insert BMP images into the framebuffer at a rate of about 1 per second. 

When browsing through the dlp_nirscan source code I noticed it can load BMP images into the DLPC350 framebuffer using ioctl commands. I find these commands very hard to follow and I wonder if there is any documentation on how the images are loaded into the framebuffer.

I hope some light can be shed on this.

With kind regards,

Gordian

  • Hey,


    I am considering buying the NIRscan EVM, but I am concerned about whether all the code is accessible and well documented because I will want to modify it. I have some specific questions in http://e2e.ti.com/support/dlp__mems_micro-electro-mechanical_systems/f/983/p/376473/1328545.aspx#1328545

    Maybe as a user who has been involved at the code level you could give me your thoughts on my questions? Also, where are the docs which tell you how to modify, compiled and load the code?

    Thanks,

    Tom

  • Hey Tom,

    At the beginning of this week I browsed these TI forums a lot and saw your post as well. To answer the questions in this post I must say that the code is quite accessible and modifiable, though not very well documented. The API that is used to control the DMD is relatively well described, but the nirscan software that often calls the API is not...

    If you are looking for documents on the device, they can be found here: http://www.ti.com/tool/dlpnirscanevm#Technical Documents

    Since I prefer to code  on Linux I took the "DLP NIRscan Software Bundle for Linux" package which needs the "AM335x Sitara ARM SDK" if you want to develop for the Sitare (ARM) processor on the board. I thought the crosscompiling environment was adequately documented, but needed some modifications to load the right libraries.

    I also used the LightCrafter GUI to control the board and the source code is also available which calls the API a lot.

    Your questions from the other thread: I think you should be able to adjust the web interface. And you can write your own GUI or command line interface to communicate with the device. I have not really worked with the SD card (except for data transfer) but you can do stuff with it. 

    To answer my own question at the beginning of this thread: I have found a solution to load BMPs into the framebuffer and display them.

    I hope this answers some of your questions. If you have more specific questions, you can ask them, but I'd like TI to also give some more support on this matter (more documentation etc), since it took me a long time to figure things out to the point where I am now.

    Kind regards,

    Gordian