flowjob Posted February 28, 2007 Posted February 28, 2007 (edited) Hi, I'm trying to send a text file through the serial port to a blood glucose meter. When using the hyperterminal, that comes with Windows, it works, but when I try do it on my own using C# it doesn't. How does the hyperterminal send text files using the serial port? And how can this be done using C#? Edited February 28, 2007 by flowjob Quote
Nate Bross Posted March 2, 2007 Posted March 2, 2007 You will want to lookinto System.IO.Ports. Look on MSDN for VB/C# 'Code Snippets' There's a great example of sending data to the serial port and getting responses back. I will see if I can post a smiple sample tomorrow when I get to my home computer. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
flowjob Posted March 3, 2007 Author Posted March 3, 2007 Thanks, no need for the samples. Got it working by adding \r at the end of each command. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.