HighTechTalks DotNet Forums  

System.IO.Ports Help

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss System.IO.Ports Help in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
kat0
 
Posts: n/a

Default System.IO.Ports Help - 09-10-2006 , 05:55 PM






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.

Thanks a lot

Reply With Quote
  #2  
Old   
Miguel A. Nievas - MCAD.NET
 
Posts: n/a

Default RE: System.IO.Ports Help - 09-27-2006 , 04:18 PM






You can try to make a Loop in a thread.

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



"kat0" wrote:

Quote:
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.

Thanks a lot

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.