all groups > dotnet academic > september 2006 >
You're in the

dotnet academic

group:

System.IO.Ports Help


System.IO.Ports Help kat0
9/10/2006 2:55:02 PM
dotnet academic:
Hi, i'm developer, im writing a C# code to communicate with a Fiscal Printer
(Argentine) throw serial port. I have a problem, my communication is
Asynchronously and i need to simulate a synchronously communication, i mean,
like this.

System.IO.Ports.SerialPort x = new ....
x.Open();
x.Write("SOME COMMANDS");
x.ReadeUntilEnd(),
x.Close();

the problem is that i dont have this kind of think, the serial port
communication is Asynchronously. I cant figure out how to do this.

RE: System.IO.Ports Help Miguel A. Nievas - MCAD.NET
9/27/2006 1:18:02 PM
You can try to make a Loop in a thread.

Miguel A. Nievas
Microsoft IT Academy Instructor - New York
MCAD.NET



[quoted text, click to view]
AddThis Social Bookmark Button