OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => OpenBSD => Topic started by: mathemajikian on July 30, 2006, 03:21:32 pm
-
So I'm guessing that this little $19.99 camera could never be made to work under openbsd?
Sharp Zaurus Camera (http://www.scienceblog.com/store/shop.php?c=7&n=172282&i=B0000645V8)
-
no documentation, no open driver for it == no OpenBSD support, no Linux-2.6 support
-
no documentation, no open driver for it == no OpenBSD support, no Linux-2.6 support
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137003\"][{POST_SNAPBACK}][/a][/div]
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
-
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 (http://www.vanille.de/tools/camera-API.pdf)
-- hns
-
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 (http://www.vanille.de/tools/camera-API.pdf)
-- hns
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137009\"][{POST_SNAPBACK}][/a][/div]
I didn't know the linux kernel was written in C++ and returned QImages for image data.
-
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.:
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 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
-
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
-
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
-
List price 199 - Buy new 19.99?! What am I missing here?
-
List price 199 - Buy new 19.99?! What am I missing here?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137147\"][{POST_SNAPBACK}][/a][/div]
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
-
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
What about the cheapest camera and USB? That would do better results, or at least, better results/effort ratio.
-
Great picture!
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
What about the cheapest camera and USB? That would do better results, or at least, better results/effort ratio.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137164\"][{POST_SNAPBACK}][/a][/div]
-
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
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137025\"][{POST_SNAPBACK}][/a][/div]
-
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.
-
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.
-
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138833\"][{POST_SNAPBACK}][/a][/div]
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
-
I have an sl-c3100 and got it to work with cacko 1.23 using the pdaxrom version of the driver.
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138833\"][{POST_SNAPBACK}][/a][/div]
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138834\"][{POST_SNAPBACK}][/a][/div]
-
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
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=138834\")
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: [a href=\"http://www.myzaurus.com/licQpe_camera.asp]http://www.myzaurus.com/licQpe_camera.asp[/url]
-- hns
-
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
[ You are not allowed to view attachments ]
Until oesf.org fixes its database this file can be found here: http://mersenne.homeunix.net/zaurusforums/...topic.php?p=7#7 (http://mersenne.homeunix.net/zaurusforums/viewtopic.php?p=7#7)
-
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
-
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