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

Slightly off topic - HID device to Windows


  • Please log in to reply
5 replies to this topic

#1 JonnyBoats

JonnyBoats

    Advanced Member

  • Members
  • PipPipPip
  • 155 posts
  • LocationPhillips, ME

Posted 26 April 2011 - 03:32 PM

I just ran across this nice post http://www.waitingfo...C18F_USB_device
where the author uses a $5 part to interface push buttons and LEDs to a Windows 7 computer.

The reason I mention it here is that he provides the source code in C++ and details on how the Windows side of things work as well as the code for the interface chip he uses. The Windows side is here: Open Source Visual C++ Class for USB Generic HID Communication.

While the author uses a PIC18F4550 chip for his interface (about $4.50 in single unit quantity), the Windows C++ code provided will work with any generic USB HID device.

#2 kenNET

kenNET

    Advanced Member

  • Members
  • PipPipPip
  • 69 posts
  • LocationSweden

Posted 26 April 2011 - 06:16 PM

I just ran across this nice post http://www.waitingfo...C18F_USB_device


Interesting, I'm looking for a easy way to emulate a keybord via HID/USB. For input I want to use a RFID reader like ID-12, so in short TTL to HID windows keyboard.

/Ken

#3 Michel Trahan

Michel Trahan

    Advanced Member

  • Members
  • PipPipPip
  • 155 posts

Posted 26 April 2011 - 07:00 PM

Do I understand this correctly, it would allow a PC Software to communicate with sensors connected to the netduino using the usb cable ? Like showing the results of the accel, gyro, compas on the computer screen ? Is something missing on the netduino to do what I just described ? This would be a great tool to work with :)
Started with C in 1985, moved to Vb3 ... to vb6 and stopped. Now started with .Net and learning C# and VB.net and wishing VB.net was on MF !

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 26 April 2011 - 09:10 PM

Hi Michel,

Early USB HID support is built into the v4.1.1 beta firmware. We posted a sample for a driverless HID communication channel.

You could certainly do these sorts of things natively on Netduino. The benefit of using an external component, I suppose, is that a lot of the software work may already be done for you.

Chris

#5 Michel Trahan

Michel Trahan

    Advanced Member

  • Members
  • PipPipPip
  • 155 posts

Posted 26 April 2011 - 11:59 PM

Early USB HID support is built into the v4.1.1 beta firmware. We posted a sample for a driverless HID communication channel.

But I will need to have a RS232 Shield to be able to deploy using RS232 (and then remove the RS232 Shield ?). Then I can connect to a pc using usb and communicate with the pc using the usb ? (do I need to give the netduino power with an external source?)

You could certainly do these sorts of things natively on Netduino. The benefit of using an external component, I suppose, is that a lot of the software work may already be done for you.

Was not thinking of using an external one. Was looking at the echo code which would be perfect for me ... except for the RS232, my portable does not have one ... but simple enough for transfering sensor data to a full graphical application !
Started with C in 1985, moved to Vb3 ... to vb6 and stopped. Now started with .Net and learning C# and VB.net and wishing VB.net was on MF !

#6 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 27 April 2011 - 03:11 AM

But I will need to have a RS232 Shield to be able to deploy using RS232 (and then remove the RS232 Shield ?). Then I can connect to a pc using usb and communicate with the pc using the usb ? (do I need to give the netduino power with an external source?)

Today, yes you'll need to use an RS232 for debugging if using the USB for a communication channel. We're also working to eliminate that requirement in the future...

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.