Hi ajcg1973,
I think this is pretty amazing, I've always wanted to use the USB on the netduino for communication!
I tested your sample code, but I'm getting an ArgumentException on the ConfigureUsbController method. This is where all the configuration is set, so I'm trying to find some details on what can be causing it. Here is the stack trace:
#### Exception System.ArgumentException - 0xfd000000 (1) ####
#### Message:
#### Microsoft.SPOT.Hardware.UsbClient.UsbController::set_Configuration [IP: 0000] ####
#### NetduinoUSB.HidDevice::ConfigureUsbController [IP: 017a] ####
#### NetduinoUSB.HidDevice::StartUsbController [IP: 0023] ####
#### NetduinoUSB.HidDevice::.ctor [IP: 0008] ####
#### SimpleHidDevice.Program::SetupHardware [IP: 0003] ####
#### SimpleHidDevice.Program::Main [IP: 0003] ####
Is there any place I can download the 4.1.2 alpha firmware source?
Thanks!
David
Couple of things. First, you need to make sure that you have the 4.1.2 alpha firmware installed on the Netduino, which it sounds like you already do. Second, you need to make sure that you are connecting to your Netduino with a serial debug connection and not the usb debug connection. Lastly, you need to make sure that you are powering the Netduino with an external power source and not through USB - keep the USB cable disconnected until you are prompted by the Netduino. When the Netduino is ready to enumerate it will ask you to plug in the USB cable (In the Debug Window). Once you plug in the Netduino, if it enumerates correctly it will then print out an USB connected message.
If all of the above conditions are true then please step through the code and post the code where the error is being generated so we can help further. Just looking at the exception, it looks like you might be using the USBController for USB debugging and therefore its index is already in use but that is just a guess at this point.
As far as the source, I haven't downloaded any of the Netduino source files so I'm not sure. Send Chris Walker (Neduino Moderater) a private message and he will either email it to you or send you a link.