Skip to contentSkip to conversation

How to start with USB device driver.

DISCUSSION jeshwanth Kumar N K 2 participants 4 messages Jun 25, 2012 – Jun 30, 2012 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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" <[email protected]>
Date: Mon, Jun 25, 2012 10:25 am
Subject: How to start with USB device driver.
To: "jeshwanth Kumar N K" <[email protected]>
Cc: <[email protected]>

Quoted 9 lines · jeshwanth Kumar N K

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120625/4bb8616b/attachment.html

A message that is not in the archive (sent off-list or not yet received): CABzL1gaeZAjp1kEXomJUgHNarbFhiuKdhj8Wv7K2o+N+MmQ5eQ@mail.gmail.com

#2 lore raw

Hello Pravin

It is working fine for me,

goto http://www.linuxforu.com/

In search bar : linux device drivers series.

And if you want USB device driver :
goto http://www.linuxforu.com/2011/10/usb-drivers-in-linux-1/

And while replying put cc to kernelnewbies at kernelnewbies.org

Quoted 69 lines · Pravin Shedage

http://www.linuxforu.com/tag/linux-device-drivers-series/

this link not working can you please help me ?

Quoted 50 lines · jeshwanth Kumar N K

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" <[email protected]>
Date: Mon, Jun 25, 2012 10:25 am
Subject: How to start with USB device driver.
To: "jeshwanth Kumar N K" <[email protected]>
Cc: <[email protected]>

Quoted 8 lines · jeshwanth Kumar N K

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

Quoted 1 line

hardware for other side also. Now I am planning to use my PIC board (it

has

Quoted 2 lines

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.

Quoted 6 lines

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

--
Thanks & Regards,*
---------PraviN---------*

Signature · 3 lines
Regards
Jeshwanth Kumar N K
+91-7411483498
#3 lore raw
In reply to jeshwanth Kumar N K
Quoted 5 lines · jeshwanth Kumar N K

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

#4 lore raw

Hi Bjorn,

Thanks for the info, I will start with my PIC :).

Quoted 29 lines · Bj?rn Mork
Quoted 5 lines · jeshwanth Kumar N K

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

Signature · 6 lines
Regards
Jeshwanth Kumar N K
+91-7411483498
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120630/57bf0227/attachment.html