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.

SpitfireMike

Member Since 11 Jan 2012
Offline Last Active Apr 02 2014 12:55 AM
-----

Topics I've Started

Netduino Plus 2 non-standard serialports

17 January 2013 - 09:58 PM

Having trouble reading 19200, 7E2 data from COM2 and COM3 with Netduino Plus 2.

 

<details>

After playing with Netduinos at home, I finally brought one in to work for a relatively simple project.  The board is the Netduino Plus 2 RevA with stock firmware.  The Netduino should sit in the middle of an RS232 connection, reading values from one SerialPort, converting the data, then sending it out the other SerialPort.  The problem seems to be the port configuration that I have to use.  It's 19200, 7E2.  I read in another forum topic here that COM1 may have problems with anything other than 8N1, so I'm using COM2 and COM3.  Everything initializes correctly, no exceptions creating or opening the ports.  The data that is read looks like regular garbage data that you'd see with a config mismatch.  Connecting the input to a Windows XP Hyperterminal session with 19200 7E2 gives me good valid reads.  It sure looks like the Netduino is having trouble with this configuration.

 

The setup is pretty straight forward, an overhead barcode scanner sends data through RS232, RS232 connected to Netduino COM2 pins, DataReceived handler writes to SerialLCD on COM1 and log file on SD card.  Once receive is OK from COM2, send the modified data out COM3 at the same config.

</details>


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.