How to set up the com1 port for say 9600,8,n,1 in vc2005/vb2005 and output a byte to the port?
K. Sriharan,
This is the sample Comport setting.
// Set the port's settings
comport.BaudRate = 38400;
comport.DataBits = 7;
comport.StopBits = (
comport.Parity = (
comport.PortName =
To Send a byte.
Use this method:
comport.write()
Have a try ..
bibi
comport.BaudRate = 9600;
comport.DataBits = 8;
comport.StopBits = StopBits.One;
comport.Parity = Parity.None;
comport.PortName = "COM1";
try this link. I posted this several months ago, then found the answer and posted it in the thread.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=160755&SiteID=1
Tony
comport.StopBits =