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

Built-in usb serial communication

usb serial communication micro-usb built-in usb

  • Please log in to reply
3 replies to this topic

#1 Gerhman

Gerhman

    New Member

  • Members
  • Pip
  • 3 posts

Posted 08 August 2013 - 03:16 AM

I am planning on using a Netduino Plus 2 for a commercial product that I want to produce. The thing is, the customer needs the device to interact with a PC over a usb connection and having to use an external usb to serial convertor would be costly and impractical in my case (I will not actually have COM pins open). I therefore want to know if it would be possible for serial communication to take place over the built-in micro usb port?



#2 nakchak

nakchak

    Advanced Member

  • Members
  • PipPipPip
  • 404 posts
  • LocationBristol, UK

Posted 08 August 2013 - 07:16 AM

Hi Gehrman

 

This thread may be of interest to you http://forums.netdui...tion-using-usb/ i am unsure of its status in 4.2 though...

 

Alternativly as you are planning to use the plus, could you not make use of the telnet server classes in the netmftoolbox? that way you could just telnet to the device for configuration instead of direct serial connection.  The only downside would be having to probably use a a hard coded password for auth, (unless you were to have a webservice for auth)...

 

Annother option would be to add a additional UART to your project something like the MAX3100 from maxim would do the trick, assuming you are already using SPI for your project then it would just be the cost of additional CS pin added to your project.

 

Nak.



#3 Gerhman

Gerhman

    New Member

  • Members
  • Pip
  • 3 posts

Posted 12 August 2013 - 02:54 PM

Please help,

 

If any one knows of a way to get the "driverless usb communication" mentioned in the above post to run on the newer firmware then please help me!



#4 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 13 August 2013 - 10:50 AM

The Netduino would have to implement a CDC class USB device. I'm pretty sure that would have to be done in native code for performance reasons. I beleive the likeliness for that being included in a coming firmware release is pretty slim so you'd have to do it yourself. This has been discussed before:

 

http://forums.netdui...oard#entry50164

 

Another option could be to implement a USB HID device class and use that for communication. This has been done in managed code, try this Google query and you will find some threads about HID:

 

http://www.google.se...etduino.com HID

 

While using HID from PC application is rather easy (there are libraries), it's not generic like serial communication so you would have to write a dedicated PC application.







Also tagged with one or more of these keywords: usb, serial communication, micro-usb, built-in usb

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.