Skip navigation.
Home
The QNX Community Portal

View topic - Read and write from a device connected through USB to PC

Read and write from a device connected through USB to PC

For discussion of realtime and/or embedded programming.

Read and write from a device connected through USB to PC

Postby 193966 » Sat Nov 20, 2010 9:49 am

Hi All,
Is there any APIs in QNX, which can be used to read and write the data from a device which is connected to PC through USB cable.

This device is a storage device which has magnetic disks inside.

I want to read the data sector wise, each sector is of 512 blocks in size.

Thank you All in advance.
193966
New Member
 
Posts: 2
Joined: Sat Nov 20, 2010 8:48 am

RE: Read and write from a device connected through USB to PC

Postby mario » Sat Nov 20, 2010 4:55 pm

open ( "/dev/umass0" ...
read()
write()
close()
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to Realtime and Embedded

Who is online

Users browsing this forum: Bing [Bot] and 3 guests