View previous topic :: View next topic |
Author |
Message |
javick82
Joined: 12 Jul 2007 Posts: 43
|
USB Driver Writing |
Posted: Fri Jun 04, 2010 9:25 am |
|
|
I have been going through the USB development kit examples and it seems that the only way to get the most out of a USB device would be to write a custom driver for it. I realize this is more of a software question, but is this something any of you had had much experience with? Are there any good examples out there of how to do this? The example book suggested just modifying existing drivers for starters... |
|
|
jacqueskleynhans
Joined: 10 Apr 2008 Posts: 109 Location: Cape Town, South Africa
|
usb ?? |
Posted: Fri Jun 04, 2010 1:39 pm |
|
|
Are you trying to connect to the usb protocol or a usb device eg.. pen drives ??
There is a bridge available, check USB Host controller, Vinculums VDIP1. _________________ "THE ONLY EASY DAY WAS YESTERDAY" |
|
|
javick82
Joined: 12 Jul 2007 Posts: 43
|
|
Posted: Fri Jun 04, 2010 1:59 pm |
|
|
I could just use the USB to UART to emulate a COM port, but I want to know (if nothing else for my own benefit) what would be required in designing a hardware driver. |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Sat Jun 05, 2010 10:47 am |
|
|
I had been playing around with USB and I´m agree that it is not a trivial issue to get a final product.
Microchip released the MCP2200 wich is like the FTDI's but with some enhacement. It is an USB to
UART serial converter + 6 general purposes pins + 256 bytes of EEPROM, supports 12 Mb/s
USB speed, you can implement CDC device for communications, bus powered or self-powered,
USB 2.0 compliant and uses standard Windows® drivers for Virtual Com Port (VCP).
Humberto |
|
|
javick82
Joined: 12 Jul 2007 Posts: 43
|
|
Posted: Mon Jun 07, 2010 10:45 am |
|
|
I think writing a whole device driver for my USB device may end up be a waste of time unfortunately (since I can do what I need to do using the existing CDC transfer).
Still, if anyone has a good source to learn how to write Windows drivers for USB devices I am all ears. |
|
|
Douglas Kennedy
Joined: 07 Sep 2003 Posts: 755 Location: Florida
|
|
Posted: Mon Jun 07, 2010 12:10 pm |
|
|
Microchip has a free driver mpusbapi.dll.
In this boards code library there are examples of its use.
Basically in your PC code VC or delphi or lazarus you make a one line call to the api and get a buffer full of info from and to the PIC. |
|
|
|