Help - Search - Members - Calendar
Full Version: Sharp Camera
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > OpenBSD
mathemajikian
So I'm guessing that this little $19.99 camera could never be made to work under openbsd? blink.gif

Sharp Zaurus Camera
Hrw
no documentation, no open driver for it == no OpenBSD support, no Linux-2.6 support
dhns
QUOTE(Hrw @ Jul 31 2006, 07:41 AM)
no documentation, no open driver for it == no OpenBSD support, no Linux-2.6 support
*

Documentation is (or at least was) open by Sharp (I do not have the link at the moment).

It just needs a serial PCMCIA driver for some /dev/tty

There are some command bytes that must be sent to the camera and it will return a JPEG image and/or the status of the button or if the camera has been rotated.

-- hns
dhns
QUOTE(dhns @ Jul 31 2006, 09:28 AM)
Documentation is (or at least was) open by Sharp (I do not have the link at the moment).

Here it is: http://www.vanille.de/tools/camera-API.pdf

-- hns
koen
QUOTE(dhns @ Jul 31 2006, 08:34 AM)
QUOTE(dhns @ Jul 31 2006, 09:28 AM)
Documentation is (or at least was) open by Sharp (I do not have the link at the moment).

Here it is: http://www.vanille.de/tools/camera-API.pdf

-- hns
*



I didn't know the linux kernel was written in C++ and returned QImages for image data.
dhns
QUOTE(koen @ Jul 31 2006, 09:43 AM)
I didn't know the linux kernel was written in C++ and returned QImages for image data.

???

This is not at all kernel documentation - it is user space. And it is the documentation of a Sharp library which defines the class QImages to encapsulate a very simple serial line interface protocol.

If you read into it, it says e.g.:
QUOTE
This process is implemented by writing following String to the device:
“S=w,h,z,l” (r=false: capture camera image as-is)
“R=w,h,z,l” (r=true: capture camera image with 90-degree rotation)


So, you can write
QUOTE
echo "S=128,128,256,0" >/dev/tty???
.

As long as any device has a CF slot and a serial CF driver, it can use the camera. It does not need a special kernel driver!

What else is needed to make it work?

-- hns
iamasmith
You can see the list of currently supported hardware on the Zaurus project page at www.openbsd.org. It does still omit a few known to work cards like the Socket 10/100 CF card that I added but it covers the Zaurus stuff generally quite well.

I don't actually have one of these cards to test.

It is feasible that it may look like a CF serial card to a driver and be immediately recognised and you would then be into writing a camera application to manage it.

It is also feasible (I haven't looked at any of the Sharp kernel source for a while) that the camera may need a firmware download from the driver and/or the card may need special handling because it doesn't actually look like a CF serial card and the driver abstracts it - this could be a lot of work, but as I said I don't really know because I haven't looked at the original source for the driver.

-Andy
dhns
QUOTE(iamasmith @ Jul 31 2006, 11:02 AM)
It is also feasible (I haven't looked at any of the Sharp kernel source for a while) that the camera may need a firmware download from the driver and/or the card may need special handling because it doesn't actually look like a CF serial card and the driver abstracts it - this could be a lot of work, but as I said I don't really know because I haven't looked at the original source for the driver.
What I don't know is if there is a firmware download - but I heavily doubt it.

I have made the card working for QuantumSTEP by a simple open() to the serial device - but admittedly on the standard Sharp Linux kernel.

-- hns
Sequethin
List price 199 - Buy new 19.99?! What am I missing here? blink.gif
dhns
QUOTE(Sequethin @ Aug 1 2006, 02:20 PM)
List price 199 - Buy new 19.99?! What am I missing here? blink.gif
*

Probably a good opportunity. The cam design is approx. 4 years old - was developed with the SL5500. And since then in over-stock. Quality is ok - but a little outdated. Might not be lead free.

-- hns
moi
The price difference are four years.

even for that price, 20$ for a third of a megapixel is really expensive. It's even worse than the first camera-phones. A good painting/sketching soft would make you get better shots smile.gif

What about the cheapest camera and USB? That would do better results, or at least, better results/effort ratio.
mathemajikian
Great picture!

QUOTE(moi @ Aug 1 2006, 04:28 PM)
The price difference are four years.

even for that price, 20$ for a third of a megapixel is really expensive. It's even worse than the first camera-phones. A good painting/sketching soft would make you get better shots smile.gif

What about the cheapest camera and USB? That would do better results, or at least, better results/effort ratio.
*
mathemajikian
ok so I went off and bought one of the little cameras. Heres the output from dmesg

"SHARP, CEAG06 " (manufacturer 0xb0, product 0x1) at pcmcia1 function 0 not configured


QUOTE(iamasmith @ Jul 31 2006, 10:02 AM)
I don't actually have one of these cards to test.

It is feasible that it may look like a CF serial card to a driver and be immediately recognised and you would then be into writing a camera application to manage it.

It is also feasible (I haven't looked at any of the Sharp kernel source for a while) that the camera may need a firmware download from the driver and/or the card may need special handling because it doesn't actually look like a CF serial card and the driver abstracts it - this could be a lot of work, but as I said I don't really know because I haven't looked at the original source for the driver.

-Andy
*
Mickeyl
It just _isn't_ appearing as a serial device, that's what Hrw and Koen already told you. It implements a serial protocol over a proprietary driver.
kahm
AFAIK, the camera requires a kernel module from sharp that is binary only, and only works with the 2.4.18 kernel. I think that limits the card to the SL6000 or the 860 as the newest Zs that will work with it.
dhns
QUOTE(kahm @ Aug 16 2006, 08:10 PM)
AFAIK, the camera requires a kernel module from sharp that is binary only, and only works with the 2.4.18 kernel. I think that limits the card to the SL6000 or the 860 as the newest Zs that will work with it.
*

I have had it working on a 5500 and 860 but not tried on a newer model. It simply came up as a serial device. I do not remember the result on a C3100 when I had one to try with.

I will try on a c3200 when I am back at home.

-- hns
javahack
I have an sl-c3100 and got it to work with cacko 1.23 using the pdaxrom version of the driver.


QUOTE(dhns @ Aug 16 2006, 12:15 PM)
QUOTE(kahm @ Aug 16 2006, 08:10 PM)
AFAIK, the camera requires a kernel module from sharp that is binary only, and only works with the 2.4.18 kernel. I think that limits the card to the SL6000 or the 860 as the newest Zs that will work with it.
*

I have had it working on a 5500 and 860 but not tried on a newer model. It simply came up as a serial device. I do not remember the result on a C3100 when I had one to try with.

I will try on a c3200 when I am back at home.

-- hns
*

dhns
QUOTE(dhns @ Aug 16 2006, 08:15 PM)
I have had it working on a 5500 and 860 but not tried on a newer model. It simply came up as a serial device. I do not remember the result on a C3100 when I had one to try with.

I will try on a c3200 when I am back at home.

-- hns
*


Hi,
I now had some time to experiment.

Yes, the Camera works only on a C860 out of the box. When plugged into the CF slot, it loads a module called sharpzdc_cs that appears in "lsmod".

This driver module adds a new device /dev/sharp_zdc which is a pseudo-serial device that allows to send commands and receive JPEG files.

Unfortunately, the module is not installed on a C3100. But I have attached the one from the C860 so you *might* be able to load the module (by using insmod).

Hope this helps.

And, you might also need the camera application software: http://www.myzaurus.com/licQpe_camera.asp

-- hns
mathemajikian
Your attachment did not work with kernel 2.4.20 but the one that I have attached works fine. Just copy it to /lib/modules/2.4.20/pcmcia and then do depmod -a
and insmod sharpzdc_cs.o

Click to view attachment

Until oesf.org fixes its database this file can be found here: http://mersenne.homeunix.net/zaurusforums/...topic.php?p=7#7
Gatu
Hi mathemajikian,

I cannot download your attachment as my browser always will open it in a browser window.
Can you please zip this and attach again? ;-)

Thanks,
Gabi
mathemajikian
QUOTE(Gatu @ Dec 3 2006, 05:41 PM)
Hi mathemajikian,

I cannot download your attachment as my browser always will open it in a browser window.
Can you please zip this and attach again? ;-)

Thanks,
Gabi


When your browser opens the page select "save page as" and then save the page as sharpzdc_cs.o
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.