COM port communication..
-
I need to be able to write information, just simple lines of text, to the COM port on a normal pc and then receive back a response from that same COM port. I need to do this from vb.net 2005. Anyone have experience doing tt?
PC comports are full duplex, u can send,receive data from same comport at-a-time. 2 pin - Rx - Receive 3 Pin - Tx - Send Use Serialport control in your program to invoke the PC Comports
Rajesh B --> A Poor Workman Blames His Tools <--
-
PC comports are full duplex, u can send,receive data from same comport at-a-time. 2 pin - Rx - Receive 3 Pin - Tx - Send Use Serialport control in your program to invoke the PC Comports
Rajesh B --> A Poor Workman Blames His Tools <--
Ya.. but i am not familiar with the control and i search the internet for information but dun really understand how it works. Now wat i am using a source code i found on the web but seen very complication and whenever i need to use a value i do not know which part of the code generate the value.
-
Ya.. but i am not familiar with the control and i search the internet for information but dun really understand how it works. Now wat i am using a source code i found on the web but seen very complication and whenever i need to use a value i do not know which part of the code generate the value.
ya.., using serial port control is very easy, in the net u can get code samples for the comports using windows APIs, these are very good. choose the controls as per your requirement, using APIs code u can get very fast communication
Rajesh B --> A Poor Workman Blames His Tools <--
-
I need to be able to write information, just simple lines of text, to the COM port on a normal pc and then receive back a response from that same COM port. I need to do this from vb.net 2005. Anyone have experience doing tt?
You're looking for the SerialPort class, here[^].
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008