LUFA host app for Temperature Data Logger

48 views
Skip to first unread message

1apath

unread,
Feb 4, 2012, 10:28:48 AM2/4/12
to LUFA Library Support List
Hi everyone,

I'm building a project off the temperature data logger and I'm having
trouble getting the host app working. I'm running windows 7 with
visual studio 2010.

Under the Temperature Data Logger folder, I opened the TempLogHostApp
folder and then opened the project file. Visual studio opens the
project and I can run the program there -- the GUI starts running and
has fields where I can set the time/date and sample rate.

However, if I click on read or set I get an error "Error: Cannot
connect to DataLogger device."

I'm using the atusbkey and have it plugged into the computer (it shows
up as a mass storage device).

Am I doing something wrong?

Dean Camera

unread,
Feb 5, 2012, 8:12:51 AM2/5/12
to LUFA Library Support List
Woah! Well done, I think you must be the first person to use the host
application since I added it to the public repository.

The PID value in the host application doesn't match the PID value used
in the device's descriptors, so the communication fails. Change this:

private const int DEVICE_PID = 0xFAFA;

To this:

private const int DEVICE_PID = 0x2063;

In the host application and try again, and it should see the device
correctly. I'll fix this in the SVN for the next release.

- Dean
Reply all
Reply to author
Forward
0 new messages