Author Topic: Sharp Camera  (Read 11944 times)

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Sharp Camera
« 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
« Last Edit: July 30, 2006, 04:11:01 pm by mathemajikian »

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Sharp Camera
« Reply #1 on: July 31, 2006, 02:41:37 am »
no documentation, no open driver for it == no OpenBSD support, no Linux-2.6 support
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sharp Camera
« Reply #2 on: July 31, 2006, 04:28:31 am »
Quote
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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sharp Camera
« Reply #3 on: July 31, 2006, 04:34:26 am »
Quote
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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Sharp Camera
« Reply #4 on: July 31, 2006, 04:43:06 am »
Quote
Quote
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
[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.
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sharp Camera
« Reply #5 on: July 31, 2006, 05:44:45 am »
Quote
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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Sharp Camera
« Reply #6 on: July 31, 2006, 06:02:59 am »
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
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sharp Camera
« Reply #7 on: August 01, 2006, 07:39:29 am »
Quote
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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

Sequethin

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Sharp Camera
« Reply #8 on: August 01, 2006, 09:20:42 am »
List price 199 - Buy new 19.99?! What am I missing here?

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sharp Camera
« Reply #9 on: August 01, 2006, 11:33:12 am »
Quote
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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

moi

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://
Sharp Camera
« Reply #10 on: August 01, 2006, 12:28:43 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

What about the cheapest camera and USB? That would do better results, or at least, better results/effort ratio.
« Last Edit: August 01, 2006, 12:30:43 pm by moi »

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Sharp Camera
« Reply #11 on: August 01, 2006, 05:20:30 pm »
Great picture!

Quote
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]
« Last Edit: August 31, 2006, 05:25:34 pm by mathemajikian »

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Sharp Camera
« Reply #12 on: August 11, 2006, 05:10:53 pm »
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
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]
« Last Edit: August 31, 2006, 05:25:57 pm by mathemajikian »

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Sharp Camera
« Reply #13 on: August 12, 2006, 08:52:01 am »
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.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
Sharp Camera
« Reply #14 on: August 16, 2006, 03:10:30 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.
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive