I want to use MT9P031 sensor on Leopardboard 368I want to use TI SDK.However, I do not know how to use MT9P031 sensor registers.
How to set MT9P031 sensor register on Leopardboard 368?------------------------------
○Hardwarecamera sensor：MT9P031board：Leopardboard 368
Aptina MT9P031 full specification is under NDA. At the beginning of our development both myself and a colleague contacted Aptina to get the full datasheets for various sensors (includes the register details etc.) but they did not reply - apparently we are not worth bothering with. But you are in luck - the full specification for the MT9P031 is on the loose somewhere on the Internet. I will not tell you where but you are looking for a document titled 'MT9P031.pdf'. When you open the document you should see in red writing on each page, 'Micron Confidential and Proprietary'. This is the full sensor specification not the brief.
MT9P031 is a pretty old sensor by now but still a good one to use. I was amused that there are serious defects in the method used for pixel binning in this sensor, which result in misalignment of the Bayer pattern. (Okay, maybe not that amused, since it's a lot of trouble to work around these problems). Maybe if they were not so restrictive with their specifications, someone would have pointed this out to them years ago and it would be fixed...
You should find the MT9P031 drivers by RidgeRun and TI are in pretty good shape, by now. But we ended up writing our own at an early stage, to support some advanced functions like pan and zoom within the sensor, variable binning and setting of analogue and digital gains. Most likely you could start using one of the existing drivers and, using the full specification, tailor the performance to your needs.
Mark Lesha, ANSTO
I'm the Director of Software at Aptina Imaging. Ridgerun kindly forwarded this thread to me. First off I'd like to apologize on behalf of Aptina for not replying to your request. It is my personal mission to make Aptina more open. I would also like to make it easier to get drivers for our parts. We just recently started developing drivers for the Beagleboard-xM. So far we just have ones for the MT9P031 and the MT9D131, but are working on others.
As far as the datasheet for the MT9P031, as far as I can tell it is completely open - no NDA - you don't even need to register for the site. You can download it from our website at www.aptina.com/.../mt9p031i12stc. The confusion is that it looks like the datasheet was split into 2 documents - the registers are now in a 2nd document, but this is also downloadable from the same location. It is possible that something changed recently though, because I see the post date on the site is August 16, 2011. I can research this - but I think the main point it is all there now.
So back to drivers. As I mentioned we are developing drivers. If anyone has any driver releated questions please email me at email@example.com. Our github site is https://github.com/Aptina. The intial drivers we did are using the Angstrom kernel. We are just about to start porting these to the 2.3.69 kernel.
Looking forward to hearing from you.
I got it working the DM368 leopard board with the MT9P031, but the image is overexpose, I try to do the adjustment on the drivers but that didnt work, any calibrations that I have to do?
You need to call the AEW (Automatic Exposure / Automatic White Balance) driver - available in the kernel to adjust the gain / color balance based on your environment - from your application. In order to fully understand how the DM36x AEW Module works, you will have to obtain the NDA version of the VPFE User's Guide from your local TI FAE/rep.