[Android] camera with serial interface

Started by farmazon3000, May 10, 2013, 04:55:25 PM

Previous topic - Next topic

farmazon3000

hello,

I want to connect a camera (LinkSprite JPEG Color Camera TTL Interface https://www.sparkfun.com/products/10061) to olinuxino under Android.

Unfortunately I don't know where to start. Can anybody help what to search for?

I've already made this camera to work under PC.

BJFreeman

if you wish to use this with the camera icon on the Android then you need a Serial to USB chip and connector
I give this link not as the one to get but what you would have todo.
each type of USB has to be identified as a Camera
https://www.sparkfun.com/products/9019

the other solution is to take one of the Serial ports on the broad and written your own ADK app for it
Fulltimer since 89

farmazon3000

#2
yes I'd like to use:
Quote from: BJFreeman on May 10, 2013, 09:16:50 PMthe camera icon on the Android

I need some clarification  :o

1. device driver
Quote from: BJFreeman on May 10, 2013, 09:16:50 PM
if you wish to use this with the camera icon on the Android then you need a Serial to USB chip and connector
I give this link not as the one to get but what you would have todo.
each type of USB has to be identified as a Camera
https://www.sparkfun.com/products/9019

but does it mean that every time some Android device has a camera on it (e.g. some of-the-shelf smartphone) it has some camera-hardware with usb output and somehow connected to android? weird

EDIT: after some research I found out that I should look for HAL, what do you think?

2. own app
Quote from: BJFreeman on May 10, 2013, 09:16:50 PMthe other solution is to take one of the Serial ports on the broad and written your own ADK app for it

by ADK you mean Android Open Accessory Development Kit, yes?

BJFreeman

The A13 is a dev board so provides a usb serial for a camera, more like a PC.
Normal tablets, use a camera, or two, like this http://www.ebay.com/itm/271130719953
that requires more complicated interface.
Fulltimer since 89

farmazon3000

hi

Quote from: BJFreeman on May 25, 2013, 10:16:17 AM
The A13 is a dev board so provides a usb serial for a camera, more like a PC.
do you mean: "provides spare usb port where you can attach camera-with-serial-interface via usb-serial dongle (ftdi style)"? I suppose that this is related to "own app" option.

Quote from: BJFreeman on May 25, 2013, 10:16:17 AM
Normal tablets, use a camera, or two, like this http://www.ebay.com/itm/271130719953
that requires more complicated interface.
Yes, and this is what I'm asking for. How that "more complicated interface" is implemented, in general, or with a precise example. I suppose that this is related to "own hardware driver" option (hardware abstraction layer is maybe related to this topic).

BJFreeman

#5
there are two parts.
1) the C code to interface to the Camera
https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/A13
has the c code examples
however it depends on the Camera Device you have and you will have to write your own code

though it is a poor example you can look at http://www.arducam.com/ to understand how to talk to the cameras

2)the ADK code to make an app.
in the same folder is    ANDROID-MOD-IO the readme of that folder will give yoiu and ADK that you can use to model you app and how to interface to the C Code you wrote.
Fulltimer since 89