Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

NetduinoVirtualKeyboard sample


  • Please log in to reply
1 reply to this topic

#1 donnmo

donnmo

    Member

  • Members
  • PipPip
  • 28 posts
  • LocationSpokane area

Posted 17 October 2012 - 06:29 PM

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

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

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

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.