Society of Robots - Robot Forum

Software => Software => Topic started by: Penth on August 22, 2008, 09:34:56 AM

Title: USB Driver
Post by: Penth on August 22, 2008, 09:34:56 AM
Has anyone written a USB device driver before?  If so, what languages/development tools did you use?  I like the idea of phidgets but I'd like to try my hand at making my own.
Title: Re: USB Driver
Post by: airman00 on August 22, 2008, 09:36:59 AM
What I would do is make a USB to RS-232 to TTL converter and then from there it should be pretty easy.
Title: Re: USB Driver
Post by: Admin on August 22, 2008, 12:14:20 PM
Quote
Has anyone written a USB device driver before?
I know someone who has attempted it because nothing on the market could do what he needed. He said it was a huge pain and had tons of things you had to account for. He hasn't finished it since I spoke to him a month ago . . .

You'd do much better just by spending $4 on a USB chip and free drivers . . . thats what I did for my Axon.
Title: Re: USB Driver
Post by: Penth on August 22, 2008, 12:31:10 PM
I know someone who has attempted it because nothing on the market could do what he needed. He said it was a huge pain and had tons of things you had to account for. He hasn't finished it since I spoke to him a month ago . . .

You'd do much better just by spending $4 on a USB chip and free drivers . . . thats what I did for my Axon.

That answers my questions then. I wasn't sure what the cost was for something like that, but if its that easy I won't need to look that far.
Title: Re: USB Driver
Post by: izua on August 22, 2008, 05:09:54 PM
Well, you can definitely get/write firmware to run for usb 1.0 (1.2MBps) on an atmega and use usblib on the host side to communicate with your chip. Totally doable but not worth the pain.

Google for obdev usb, igor cesky usb or lady ada usb programmer.
Title: Re: USB Driver
Post by: Iron Man on August 25, 2008, 10:52:27 AM
if you use a pic they have a code generator that will make the driver for you :)
Title: Re: USB Driver
Post by: Penth on August 25, 2008, 10:55:40 AM
if you use a pic they have a code generator that will make the driver for you :)

is Pic  assembly or basic or can it handle C?
Title: Re: USB Driver
Post by: arixrobotics on August 28, 2008, 04:20:38 AM
I'm thinking, if you use FTDI chips in your USB device, will the computer auto detect the device when it is plugged in? Or do you need to select the port?
Title: Re: USB Driver
Post by: Iron Man on August 28, 2008, 07:41:06 PM
pic will do either c or assembly

there's an FTDI chip with a pic16 on it that does usb connection.