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?
Built-in usb serial communication
#1
Posted 08 August 2013 - 03:16 AM
#2
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
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
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
Hardware →
Beta Firmware and Drivers →
Netduino 2 not recognized by Windows XPStarted by salvadorrichter, 30 Jan 2016 driver, USB, XP |
|
|||
Hardware →
Netduino 3 →
USB-Serial ModuleStarted by KenTi, 29 May 2015 GHI, Serial, USB |
|
|||
Hardware →
Netduino Plus 2 (and Netduino Plus 1) →
How can I use USB to communicate with PC?Started by und3r, 07 May 2015 usb |
|
|||
Answered
General →
General Discussion →
"USB Infrared Toy" with Netduino 3 WiFiStarted by tridy, 05 May 2015 Infrared Toy, USB |
|
|||
Answered
General →
General Discussion →
Detect if USB is connectedStarted by navinedrev, 28 Apr 2015 detec, usb, netduino |
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users