Re: [linux-usb-devel] driver development

2002-03-04 Thread Steven Toth
> Do I need to write a device driver for such a device or can I mount it and > simply use the "open" "read" "write" command to send commands back and > forth? If yes how do I find where the it is mounted (/dev/??)? You detail is a little thin but Possibly/probably, have you looked at the dr

Re: [linux-usb-devel] basic USB driver help request

2002-01-28 Thread Steven Toth
I don't see the debugging messages on your /var/log/messages file. They get generated using statements like this "dbg(__FUNCTION__ " - minor %d, count = %d", dev->minor, count);"... but only if syslog is configured correctly. I think your distro (by default), has configured syslog to thro

Re: [linux-usb-devel] basic USB driver help request

2002-01-28 Thread Steven Toth
You might want to see what debugging messages you've got being generated. Try reconfiguring syslogd to redirect 'kernel.debug' to a seperate logfile. Then, re-insert your hardware and the kernel will probe etc. Also, I assume that the open and close calls are fine (no seg faults) but the writ

Re: [linux-usb-devel] Help writing a driver for usb digital camera

2002-01-08 Thread Steven Toth
>Hi Steve. Hi list, Hi :-) >I guess this is a timing issue and the driver is expecting to find the >camera faster than it does and just gives up after a while. Probably. >Otherwise I'm not sure what else I can do. Ideas welcome! These are the same kinds of problems I was having using wind

Re: [linux-usb-devel] probe problem : code attached

2002-01-03 Thread Steven Toth
Sorry, I'm playing catchup with email after the xmas break. >This is regarding an earlier mailing to this list >regarding a problem with my driver's probe not being >able to detect the device even though the device's >characteristics show up during kernel boot. This is >the smallest code tha

Re: [linux-usb-devel] Help writing a driver for usb digital camera

2002-01-03 Thread Steven Toth
>If anyone here has experience with writing usb device drivers and would >like to help a newbie write one, I'd be really grateful. If you don't >have time to help but have any useful tips/pointers that would be cool >too. It's not a formal HOWTO but this WILL help. http://www.toth.demon.co.uk/u

Re: [linux-usb-devel] Zio

2001-12-24 Thread Steven Toth
Hi Mathew, It looks like your distro doesn't support this device. >Dec 22 16:03:57 fastbox /etc/hotplug/usb.agent: ... no drivers for USB >product. >What should I try next? If you're planning on writing a device driver then you've come to the right place (but read www.linux-usb.org first

Re: [linux-usb-devel] probe problem

2001-12-24 Thread Steven Toth
> I am having a problem in probing a device in my >driver. The device parameters(configurations, >interfaces, endpoints, etc) show up during kernel >bootup and are fine but when I print out the >dev->descriptor fields in my module's probe function >the values seem all messed up i.e for exampl

Re: [linux-usb-devel] Cause of USB_ST_STALL Error

2001-12-19 Thread Steven Toth
>Can Anyone tell (or point to where it tells) the cause of USB_ST_STALL >errors (and what to do)? The formal 2.0 USB specifications at http://www.usb.org should tell you why and how a stall happens, and (probably) what error recovery mechanisms are available. Also, it's often worth checking t

Re: [linux-usb-devel] Application ioctl to USB driver

2001-12-18 Thread Steven Toth
>If the USB driver registered and the physical device shows up, should the >driver show up under /dev/usb? Simple answer, No. When you register a USB device with the kernel you will be allocated a minor device number. In your example below you've been allocated 16 numbers between 96 and 111. T

Re: [linux-usb-devel] Reverse engineering protocol - legal issues?

2001-12-17 Thread Steven Toth
>I think that in the EU the answer is that you're safe, >and even in the US you're likely safe even though >an increasing number of companies want to change >that. (Example, DMCA if the protocol protects content). Thanks Dave / Mark, I've now got a better understanding of what to avoid and wha

[linux-usb-devel] Reverse engineering protocol - legal issues?

2001-12-16 Thread Steven Toth
Hi, (Background) I've been writing a driver for the PrimaScan/Primax iCam320. I'm using the sniffusb windows USB debugger to capture the data between the host and the device. I'm tranlating that into linux kernel speak and can control basic funcationality and get the frames back into user spa

[linux-usb-devel] Re: Newbie developer issues

2001-12-16 Thread Steven Toth
> >> I'm not familiar with SniffUSB... > > > Thanks anyway, > >Am I right in assuming that SniffUSB is a Win9x program that provides >data on USB transactions? If so, where can I get a copy? > >Best wishes from Riley. Hi, Checkout the binaries and src at http://www.jps.net/koma/. At a later po

Re: [linux-usb-devel] Newbie developer issues

2001-12-10 Thread Steven Toth
Georg, thanks for the feedback >Fill the memory with another pattern (eg. 0xaa or such). If it >is changed, it definitely came from the device. Another hint >would be the length of each frame. Sorry, my fault, I should I said, I already tried that but I'm still getting zero's (indicating t

[linux-usb-devel] Newbie developer issues

2001-12-10 Thread Steven Toth
Hi, I'm stuck on a project and I wondered if any of you kind chaps might be able to help? (platform = kernel 2.4.16 using usb-uhci) I'm writing a device driver (GPL) for the PrimaScan icam320 webcam (based on the existing driver for dabusb). I'm using sniffusb 0.13 to intercept the windows<->