LPC1343 HID Demonstration.exe

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

LPC1343 HID Demonstration.exe

1,657 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jush on Tue Sep 07 03:09:33 MST 2010
Hello,

Did someone know were I can get the source code of the LPC1343 HID Demonstration.exe in which this application can be found on the lpc1343 bundle of codes sample in USBHID..

Thanks.
0 Kudos
Reply
4 Replies

1,610 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jush on Sun Sep 12 23:10:05 MST 2010
Maybe it works, but my point is I want to know the source code of host application of LPC134x HID Demonstration.exe in order to understand the interaction between the USBHID example of LPC13xx and the host application.
0 Kudos
Reply

1,610 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Sun Sep 12 20:51:34 MST 2010
My friend, I realized that was not the same, but it works.

The source code is almost the same, but something tells me you do not even compiled and tested the examples.

With the code I told you, I built three programs (one with EasyHID, Jedi HID, and the code of NXP) and [COLOR=Red][B]all worked[/B][/COLOR].

Below code to Linux (it really should work on all Unix with little or no modification):
Uses sysutils;

Var
  f : Longint;
  d : Word;

Begin
  f := FileOpen ('/dev/hidraw0', fmOpenWrite);
  d := $0100;  // LED ON
  Filewrite (f,d,2);
  FileClose(f);
end.
[COLOR=#000000]Have fun? :p[/COLOR]
0 Kudos
Reply

1,610 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jush on Sun Sep 12 18:06:47 MST 2010
Hi,

Thanks for your help I really appreciate it, but unfortunately the one you give me is not the one what I'm looking for. I've attached an image for the LPC134x HID Demonstration.exe what it looks like. It can be found on this link http://ics.nxp.com/support/documents/microcontrollers/zip/an10904.zip. On this zip file only the exe file is included for the HID Demonstration and w/o the source code of host application.


Thanks.
0 Kudos
Reply

1,610 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Thu Sep 09 19:40:32 MST 2010
Hello,

This question is repeated many times here.

A search revealed several options to use HID with dynamic libraries:


[LIST]
[*]EasyHID ([COLOR=#000000]It generates code automatically).[/COLOR]
[*]AtUsbHid.dll (From Atmel).
[*]etc.
[/LIST]
[COLOR=#000000]NXP used directly Jedi HID, without DLL.

[/COLOR]I did not find the exact example, but I found one that also works.

Download this application note, download the library, modify the VIP / PID and compile.

Notes:
- HIDKomponente has several examples, one is used to read and write the USB port.

- Under Linux just use the device file: "/dev/hidraw0" (0 = device number).

That's why I love Linux. :)

Have fun!
0 Kudos
Reply