LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   [OMAP L-138]creating a USB application working in Linux and windows (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/%5Bomap-l-138%5Dcreating-a-usb-application-working-in-linux-and-windows-801708/)

LinuxNewman 04-13-2010 04:24 AM

[OMAP L-138]creating a USB application working in Linux and windows
 
Hi All,
I am using OMAP-L138 chip which has ARM 9 core and runs linux. The device which I am making stores some data. I have to retirve that data using USB interface. For this, I have to make an application which communicates with the device drivers provided by the ARM linux(which comes with the OMAP L-138 *) so that we can transfer the data stored in the device to a computer.

My question:
Suppose I make such an application which makes the host Linux computer detect my device connected at its USB port and then transfer the stored data to the computer. Will windows computers be able to detect my device? What should I do so that my device can transfer data to both Linux and Windows pc?

I am totally new in this field. Please correct me if you find anything wrong in my approach.

JonathanWilson 04-15-2010 12:33 PM

By setting up and using the USB Gadget driver(s) on the embedded device there are a number of ways to resolve your problem.

You could... set up the gadget as a disk, IP over usb, serial, etc. (This does assume your product has a USB device, MiniUSB, socket)

Then it would not matter what OS was on the host (PC), assuming a driver is available. Then either copy/move the data manually (easy if your device shows up as a disk, similar to the way cameras do) or write a program/script to copy/move the data when the device is plugged in.

LinuxNewman 04-18-2010 10:25 PM

Thanks for the help Jonathan. That helps a lot. Now I am going to look how to use USB Gadget drivers. By the way, my device will have a USB OTG port configured in peripheral mode.

asprakash 04-23-2010 06:12 AM

Are you using Hawkboard or others?

The board is not like a memory device and you simply copy and paste from your target into host. However you can also retrieve your datas.

Let me know what data you have stored in your target and where you stored?. Flash memory or external memory or others.


All times are GMT -5. The time now is 06:54 AM.