English 中文(简体)
arm7 usb programming
原标题:
  • 时间:2009-12-14 06:14:32
  •  标签:
  • usb
  • arm

we are developing a sendor device, with a arm7(current: LPC2368) .

this device samples a mv signal,A/D, and need to send this signal data to the PC.(continusly)

at the same time, PC need send command to arm7 (like get temperature, control status, etc..)

rs232 is too slow, so we choose USB.(20K/s - 200K/s)

but the question is, we donnot known how to do usb programming(both pc and arm..)

any direction? any portal? any tutorial?

currently we only sim the device as a HID....

最佳回答

For the ARM side you need a USB Stack. For the PC side you need to implement an USB driver and an application interfacing the driver. It is therefore easier to stick to one of the common profiles (HID, Mass Storage, Virtual COM). For all these you will be able to find USB stacks and not to have to implenent your own. Also you won t need to implement a USB driver for the PC.

I think that the easiest thing to do is to use a Virtual COM approach. From the PC side it would like you are accessing a Serial Port. The speed however can be higher than standard RS232 ports. I have found this USB Stack targetting an earlier processor. You could adapt it for your needs or use it as reference. Generally a Virtual COM driver for the PC will be provided along with the ARM USB stack.

Another approach is to use libusb. This will allow you to interact with USB without writing a kernel driver.

For application notes and commercial USB stacks look here. If you are determined to write your own stack and driver, Jungo is the industry leader for embedded USB stacks and drivers.

问题回答

暂无回答




相关问题
Question about Process communication over USB cable

I have some questions regarding communication over USB cable in Linux, in a Host-Target Device environment.(USB2.0) Please help as we are stuck for the below imiplementation. We have a host PC ...

Turn on PC with USB-device

I want to be able to turn my PC on and off using an IR-remote sensor that is connected via USB to the PC. The sensor is a custom PCB implemented with an AVR microprocessor and V-USB software USB-...

Is there software or code to alter USB power output

I had a look at this and this but no one sounded particularly sure of their ideas and I m kind of after a different thing anyway. I want to hook my usb power cables (red and black) up to my phone so I ...

Monitor USB traffic

I want to view all traffic going out the USB, with the potential to block data transactions to/from the USB based on content policy. How would this be done? Any way to achieve this in C#, or is it ...

热门标签