Send/Transmit data through USB

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Send/Transmit data through USB

1,101件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ticup on Mon Mar 05 12:42:56 MST 2012
Dear, nxpUSBlib team, thanks a lot, for the help....I downloaded and configured nxpUSBLib for my particular platform LPC11U14/201.
I run Example_KeyboardDevice and Example_MouseDevice. I can see in Device Manager in and out the HID USB. I need to go one step further and send some mouse coordinates or keyboard strokes .....to my PC. I can see everything goes on in the main as follow:

int main(void)
{
SetupHardware();

LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei();

for (;;)
{
HID_Device_USBTask(&Keyboard_HID_Interface);
USB_USBTask();
}
}

So I try to figure out maybe Keyboard_HID_Interface buffer ??? Maybe there are documents that explain all this...or do you have any other idea how to go ahead and send receive from USB. My project will need to send and receive data thru USB. Thanks in anticipation of your help....

TicuP
ラベル(1)
  • USB

0 件の賞賛
返信
1 返信

986件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Pacman on Sun Oct 14 21:03:33 MST 2012
I know the question is old, but just in case you're still stuck (or someone else needs the answer):

Short answer: There are different ways of transferring data. Bulk endpoints are probably the most interesting if you're transferring a lot of data back and forth.
You'll have to do some programming on both your LPC device and your host computer.

Here's an excellent source of USB information:
http://www.beyondlogic.org/usbnutshell/

Don't forget to read this as well...
http://www.usbmadesimple.co.uk/
-It covers from "What is a wire" to "the bits and electrons". ;)


Love
Jens
0 件の賞賛
返信