Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2002 04:27:51 -0600
From:      Sean Kelly <smkelly@zombie.org>
To:        Peter McGarvey <pmcgarvey@vianetworks.co.uk>
Cc:        questions@freebsd.org
Subject:   Re: Digital Camera Question
Message-ID:  <20020108042751.A12125@edgemaster.zombie.org>
In-Reply-To: <E16NrrU-0002Ik-00@pooh.noc.u-net.net>; from pmcgarvey@vianetworks.co.uk on Tue, Jan 08, 2002 at 08:44:00AM %2B0000
References:  <20020107233637.A3585@edgemaster.zombie.org> <E16NrrU-0002Ik-00@pooh.noc.u-net.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 08, 2002 at 08:44:00AM +0000, Peter McGarvey wrote:
> On Tuesday 08 January 2002 05:36 am, Sean Kelly wrote:
> > For Christmas, I received a Canon PowerShot S110 camera.  It is a nice
> > little camera, but I've got a problem.  I'm sure you can guess what it
> > is.
> >
> > How do I use this thing with FreeBSD?
=2E..

> I've got a Canon Digital IXUS 300.  Initially I couldn't get s10sh to wor=
k=20
> either.  I managed to get it to work by hacking the source code.
>=20
> It seems that the author had momentarily forgotten how to count in Hex,=
=20
> with 0x3050 comming after 0x3049.  Running in debug mode told my the=20
> actual Product ID of my camera (0x304D).  And once I knew this it was=20
> fairly simple to get something that worked.

My problem appears to be worse:

edgemaster# usbdevs -v
Controller /dev/usb0:
addr 1: self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 0x0=
100
 port 1 powered
 port 2 addr 2: self powered, config 1, PowerShot S110(0x3051), Canon Inc.(=
0x04a9), rev 0x0001
edgemaster# s10sh -D -u
DEBUG mode enabled
USB mode enabled
S10sh -- version 0.2.0
Copyright (C) 2000-2001 by Salvatore Sanfilippo <antirez@invece.org>
S10sh is FREE SOFTWARE under the terms of the GNU public license

usb_set_debug: Setting debugging level to 1 (on)
Camera not found, please press the shot button and
check that the camera is in PC mode, then retry
edgemaster#

My problem appears to be here in usb.c:
int USB_camera_init(struct usb_device **camera_dev)
{
=2E..
             for (bus =3D usb_busses; bus; bus =3D bus->next) {
                for (dev =3D bus->devices; dev; dev =3D dev->next) {
=2E..

That second 'for' never goes.  The outer for loops once, but the conditions
never arise for the inner for loop to go.

Since usbdevs -v shows stuff, my only conclusion is that libusb is broken.
And in fact, I ran one of the test programs with libusb and it also found
nothing.

Unfortunately playing with libusb is starting to get a bit out of my
league... :(


uhci0: <VIA 83C572 USB controller> port 0xc400-0xc41f irq 9 at device 7.2 o=
n pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xc800-0xc81f irq 9 at device 7.3 o=
n pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered

Any assistance anybody could offer would be greatly appreciated.

Thanks again,

--=20
Sean Kelly         | PGP KeyID: 77042C7B
smkelly@zombie.org | http://www.zombie.org

For PGP key, send e-mail with subject "send pgp key"

--vtzGhvizbBRQ85DL
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)

iD8DBQE8Osmn2aukpHcELHsRAi4KAJ9uixmvQX2QuHbobeWWblsWlFgmFwCdGNGe
bCOcEjQYUxJPlbtnIPdhT8A=
=4w+R
-----END PGP SIGNATURE-----

--vtzGhvizbBRQ85DL--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020108042751.A12125>