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

UART 2 hardware flow control


  • Please log in to reply
4 replies to this topic

#1 Szymon

Szymon

    Advanced Member

  • Members
  • PipPipPip
  • 108 posts
  • LocationPoland, Krakow

Posted 08 September 2010 - 07:11 AM

Hi, In the tech specs the digital pins 7-8 are labeled as UART 2 RTS, and CTS. I'm thinking to use it with XBee since the RTS and CTS is nicely available on the header in adafruit's xbee adapter that I'm using. But I'm not sure how to enable the hardware flow control. I looked at the SerialPort class and don't see any options in the constructor or otherwise. Did I missed something here? Thanks, -Szymon

#2 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 08 September 2010 - 07:19 AM

Have a look at SerialPort.Handshake property.

#3 greg

greg

    Advanced Member

  • Members
  • PipPipPip
  • 169 posts
  • LocationChicago, IL

Posted 08 September 2010 - 12:49 PM

Hi,
In the tech specs the digital pins 7-8 are labeled as UART 2 RTS, and CTS. I'm thinking to use it with XBee since the RTS and CTS is nicely available on the header in adafruit's xbee adapter that I'm using. But I'm not sure how to enable the hardware flow control. I looked at the SerialPort class and don't see any options in the constructor or otherwise. Did I missed something here?

Thanks,
-Szymon


Any particular reason you want hardware flow control? Aside from burning two more pins it's almost never necessary for the applications we're doing. Unless you're really concerned about losing a byte here and there.

#4 Szymon

Szymon

    Advanced Member

  • Members
  • PipPipPip
  • 108 posts
  • LocationPoland, Krakow

Posted 08 September 2010 - 01:00 PM

Have a look at SerialPort.Handshake property.


Thanks CW2, it didn't occured to me that this property would be related. However there is only Handshake.RequestToSend (RTS) value, so should I assume it will enable CTS as well?

@greg
Probably I don't need it right now, but asked out of curiosity since it was mentioned in Netduino tech spec. I'm also reading the documentation for XBee module that mentioned flow control (p.27) thus I wanted to see how this works.
http://ftp1.digi.com.../90000976_F.pdf

Slightly out of topic: does anyone here looked at the ZigBee application profiles? I wonder if it would be hard to implement one in .NET MF. In particular I'm looking at the home automation profile: http://www.zigbee.or...n/Overview.aspx

#5 greg

greg

    Advanced Member

  • Members
  • PipPipPip
  • 169 posts
  • LocationChicago, IL

Posted 08 September 2010 - 02:00 PM

Thanks CW2, it didn't occured to me that this property would be related. However there is only Handshake.RequestToSend (RTS) value, so should I assume it will enable CTS as well?

@greg
Probably I don't need it right now, but asked out of curiosity since it was mentioned in Netduino tech spec. I'm also reading the documentation for XBee module that mentioned flow control (p.27) thus I wanted to see how this works.
http://ftp1.digi.com.../90000976_F.pdf

Slightly out of topic: does anyone here looked at the ZigBee application profiles? I wonder if it would be hard to implement one in .NET MF. In particular I'm looking at the home automation profile: http://www.zigbee.or...n/Overview.aspx


No worries - curiousity is a good thing. I'm a network engineer so I worry about CTS/RTS all the time for stupid serial lines but I wish I didn't. then again in the stuff I work on they can't afford to lose any bytes along the way since it's all the out-of-band management. :P

I much prefer ignoring CTS/RTS when I can! :)




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.