Hello Srinidhi Thanks for the reference :). Ya PIC development board means, I have a development board of a microcontroller (PIC18F4550) from microchip , it has usb module so I am planning to use that as the device by program it to communicate with my Linux ( I am new to that also, have to learn ). So if any device you suggest ? Which s available in Bangalore ? Sent from my HTC ----- Reply message ----- From: "Srinidhi M" <srinidhi.m26@gmail.com> Date: Mon, Jun 25, 2012 10:25 am Subject: How to start with USB device driver. To: "jeshwanth Kumar N K" <jeshkumar555@gmail.com> Cc: <kernelnewbies@kernelnewbies.org> On Sun, Jun 24, 2012 at 10:12 AM, jeshwanth Kumar N K <jeshkumar555@gmail.com> wrote:
Hello all
I have basic knowledge of character device driver, I would like to learn writing a simple character driver for USB because on my laptop only I can communicate with usb I don't have any Boards. Can anyone suggest some tutorials or simple project to learn USB device driver ? And suggest me any hardware for other side also. Now I am planning to use my PIC board (it has usb) to communicate with linux.
Hi Jeshwanth, You can go through the following link. http://lwn.net/images/pdf/LDD3/ch13.pdf I think, you need a device for testing your written source code. Could you please tell me details about your PIC board as I do not understand it clearly? Regards, Srinidhi.
"jeshwanth Kumar N K" <jeshkumar555@gmail.com> writes:
Thanks for the reference :). Ya PIC development board means, I have a development board of a microcontroller (PIC18F4550) from microchip , it has usb module so I am planning to use that as the device by program it to communicate with my Linux ( I am new to that also, have to learn ).
It's always best to start with one end. Start with either something on the PIC or on Linux. Chances are high that you'll find that every driver you need is already available in Linux. The Microchip firmware examples should just work with Linux class drivers (hid, cdc-acm, usb-storage), and you can also do a lot of stuff in userspace if all you need is to "communicate with" the PIC18F4550. See e.g. http://code.google.com/p/picusb/ So, play with the Microchip examples, find out what you want the firmware to do, and develop it. If it needs a new Linux device driver then I'll be impressed :-) And more GPL'd firmware examples are always nice to have. There are already quite a few to start from. PUF has been there for ages: http://vasco.gforge.enseeiht.fr/ . I'm sure Google will find others. But I'm getting a bit off topic here now... Bjørn
Hi Bjorn, Thanks for the info, I will start with my PIC :). On Thu, Jun 28, 2012 at 1:26 PM, Bjørn Mork <bjorn@mork.no> wrote:
"jeshwanth Kumar N K" <jeshkumar555@gmail.com> writes:
Thanks for the reference :). Ya PIC development board means, I have a development board of a microcontroller (PIC18F4550) from microchip , it has usb module so I am planning to use that as the device by program it to communicate with my Linux ( I am new to that also, have to learn ).
It's always best to start with one end. Start with either something on the PIC or on Linux.
Chances are high that you'll find that every driver you need is already available in Linux. The Microchip firmware examples should just work with Linux class drivers (hid, cdc-acm, usb-storage), and you can also do a lot of stuff in userspace if all you need is to "communicate with" the PIC18F4550. See e.g. http://code.google.com/p/picusb/
So, play with the Microchip examples, find out what you want the firmware to do, and develop it. If it needs a new Linux device driver then I'll be impressed :-)
And more GPL'd firmware examples are always nice to have. There are already quite a few to start from. PUF has been there for ages: http://vasco.gforge.enseeiht.fr/ . I'm sure Google will find others. But I'm getting a bit off topic here now...
Bjørn
-- Regards Jeshwanth Kumar N K +91-7411483498
participants (3)
-
Bjørn Mork -
jeshwanth Kumar N K -
Jeshwanth Kumar N K Jeshu