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

How to find/set the Serial Port on Netduino Plus 2?


  • Please log in to reply
4 replies to this topic

#1 henslecd

henslecd

    New Member

  • Members
  • Pip
  • 8 posts

Posted 10 January 2014 - 11:46 PM

Hello, I hope I am asking the right questions so bear with me.

 

I am trying to figure out what serial port the Netduino Plus 2 uses when attached via USB.  I have looked in Device Manager as well as used USBDeview.  Neither show a port. With Arduino it automatically detects the COM port.   Also how do you set or detect output port? Currently I have my D3 connected to my motor controller. Thanks for any help you can provide.  



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 10 January 2014 - 11:59 PM

Hi henslecd, Netduino does not use a USB CDC connection (virtual serial port) to communicate with your PC. It utilizes a dedicated USB communication channel. That means that all of the digital and analog pins are available for use in your application. Chris

#3 henslecd

henslecd

    New Member

  • Members
  • Pip
  • 8 posts

Posted 11 January 2014 - 12:06 AM

OK that sounds great, but I am having a problem following Dimension Engineering sample app then.  Their Sabertooth Motor controller example instantiates with [color=#2b91af;]Sabertooth[/color] ST = [color=#0000FF;]new[/color] [color=#2b91af;]Sabertooth[/color]([color=#a31515;]"COM2"[/color],9600);  In the example, it specifically states:

          [color=#008000;]// For Netduino, the connections to make are:[/color]
[color=#008000;]//  Netduino D3 -> Sabertooth S1[/color]
[color=#008000;]//  Netduino GND -> Sabertooth 0V[/color]
[color=#008000;]//  Netduino 5V -> Sabertooth 5V (OPTIONAL, if you want the Sabertooth to power the Netduino)[/color]

How do I know what to set the port as? 



#4 ShVerni

ShVerni

    Advanced Member

  • Members
  • PipPipPip
  • 138 posts
  • LocationNew York, New York

Posted 11 January 2014 - 03:28 AM

Hello,

 

If you look here:

 

http://netduino.com/...plus2/specs.htm

 

you'll see UART 1, UART 2, etc... with RX and TX. These refer to COM1 receive and transmit, COM2 receive and transmit, and so on. In short:

 

COM1 RX-TX: Pins 0-1,

COM2 RX-TX: Pins 2-3,

COM3 RX-TX: Pins 7-8,

COM4 RX-TX: SDA-SCL

 

I hope that helps!



#5 henslecd

henslecd

    New Member

  • Members
  • Pip
  • 8 posts

Posted 11 January 2014 - 03:31 AM

Thanks. I am using COM2 and it still isn't working.  I have opened a ticket with Dimension Engineering.  Thanks.






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.