EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

How to communicate with USB in AT91SAM9260 in c with linux?

Started by pratibha_275 July 4, 2009
Hi!

I want to read and write data with USB ports in AT91SAM9260 in Linux in C. I am not getting any clue how to get it.Like to read a RS232 i open a serial port as tts0,tty0....so on.
cant it possible to open a serial port with ttyUSB. I am trying it like this but not succeeding.
I am just a beginner with it.Can anybody help?

Pratibha,

If your kernel configuration has the USB CDC serial driver you can open and
communicate with the USB ports like /dev/ttyUSB0.
Regards
T.V.R.Prasad

On Sat, Jul 4, 2009 at 3:46 PM, pratibha_275 wrote:

> Hi!
>
> I want to read and write data with USB ports in AT91SAM9260 in Linux in C.
> I am not getting any clue how to get it.Like to read a RS232 i open a serial
> port as tts0,tty0....so on.
> cant it possible to open a serial port with ttyUSB. I am trying it like
> this but not succeeding.
> I am just a beginner with it.Can anybody help?
>
>
>
It depends on what kind of device driver your AT91SAM9260 is using. You
should get usb interface information by lsusb -v command after you plug in
your device, then see which driver is suitable for you.
On Sat, Jul 4, 2009 at 5:35 PM, vishnu Tadepalli > wrote:

> Pratibha,
>
> If your kernel configuration has the USB CDC serial driver you can open and
> communicate with the USB ports like /dev/ttyUSB0.
> Regards
> T.V.R.Prasad
> On Sat, Jul 4, 2009 at 3:46 PM, pratibha_275 wrote:
>
>> Hi!
>>
>> I want to read and write data with USB ports in AT91SAM9260 in Linux in C.
>> I am not getting any clue how to get it.Like to read a RS232 i open a serial
>> port as tts0,tty0....so on.
>> cant it possible to open a serial port with ttyUSB. I am trying it like
>> this but not succeeding.
>> I am just a beginner with it.Can anybody help?
>
>

--
Ercument ESER

http://www.ercueser.com
http://twitter.com/ercu
http://facebook.com/ercument

The 2024 Embedded Online Conference