Hello,
I've modified the NetduinoVirtualKeyboard sample to support a non-keyboard USB device. And, I'm able to successfully send packets from my device to the host.
The next step is to alter my Netduino firmware so that it's able to receive packets from the host. Can someone explain what I'd need to do in terms of modifying:
1) The UsbStream:
// finally, create our usb stream -- this must be done before we attach a USB cable between our Netduino and host/computer
usbStream = usbController.CreateUsbStream(USBSTREAM_WRITE_ENDPOINT, UsbStream.NullEndpoint);
2) The configuration endpoint:
// write endpoint
Configuration.Endpoint writeEndpoint = new Configuration.Endpoint(USBSTREAM_WRITE_ENDPOINT, Configuration.Endpoint.ATTRIB_Interrupt | Configuration.Endpoint.ATTRIB_Write);
And, finally, are there any "gotchas" associated with performing the read operation (when reading bytes from the host)?
Thanks!
--Donn
NetduinoVirtualKeyboard sample
Started by donnmo, Oct 17 2012 06:29 PM
1 reply to this topic
#1
Posted 17 October 2012 - 06:29 PM
#2
Posted 05 November 2012 - 05:28 AM
Hi donnmo,
Have you checked out our HID communication sample?
http://forums.netdui...tion-using-usb/
Does it give you a good sample of everything you need?
Chris
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users