Send/Transmit data through USB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Send/Transmit data through USB

608 Views
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
Labels (1)
0 Kudos
1 Reply

493 Views
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 Kudos