Click here to Skip to main content
15,896,497 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
For a project I'm doing for the Intel ISEF this year, I'm using an mbed microcontroller (http://www.mbed.org/[^]) to send data from two cameras containing their normal view, resized view, blob detection view, and binocular disparity map all at a baud rate of 921600 bps.

I've written a C# Project that monitors the serial data using the System.IO.Ports.SerialPort class from the mbed (on the serial port COM6), but I'm having a problem with the mbed recognizing its activity with the program. For instance, when I use Tera Term (http://sourceforge.jp/projects/ttssh2/releases/[^]) and reset the port (under Control-Reset Port) the terminal reads the data streaming out from the mbed perfectly, but I can't seem to replicate that function with my program of which I've tried many things already such as Closing and Opening the program right after a short delay. The project is located here (http://dl.dropbox.com/u/501412/BinocularCameraOutput.zip[^]) and is pretty easy to navigate around. By the way, it's isn't quite done with every aspect (reset function not included). If any other program bugs come up, I'd be more than happy to learn about the bug and hopefully fix it.

So, if anyone could help me with figuring out how to properly reset my serial port using the System.IO.Ports.SerialPort or another class, I would be very appreciative.
Posted
Updated 21-Feb-10 16:32pm
v4

1 solution

Well, I tried out using the Flush() method, but it doesn't quite work the way I'd wish it would. In Tera Term, when one "Resets the Port", it seems to automatically link with the data and displays all that is sending through the port without actually Closing then Opening it. I've looked a little through the source for than function, but I haven't quite made heads or tails of it (I think it's this file, http://en.sourceforge.jp/projects/ttssh2/svn/view/trunk/teraterm/teraterm/commlib.c?root=ttssh2&view=log[^]).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900