Send/Transmit data through USB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Send/Transmit data through USB

1,098 次查看
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)
0 项奖励
回复
1 回复

983 次查看
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 项奖励
回复