Serial Programming in VB.Net 2008
-
I am doing a hardware based project and planning to establish communication with the computer using Serial Port RS-232 using an interface IC MAX 232. I am doing my project VB.Net 2008 and have no prior experence with the same. My computer doesnot posses a serial port so I am using USB to Serial convertor. My PC has COM3 port. Please can someone help me with the serial programming as MSDN was of no help. Also the binding navigator command is unable to calculate the maximum number of records present when the form is opened.
-
I am doing a hardware based project and planning to establish communication with the computer using Serial Port RS-232 using an interface IC MAX 232. I am doing my project VB.Net 2008 and have no prior experence with the same. My computer doesnot posses a serial port so I am using USB to Serial convertor. My PC has COM3 port. Please can someone help me with the serial programming as MSDN was of no help. Also the binding navigator command is unable to calculate the maximum number of records present when the form is opened.
Ishaan Karnik wrote:
Please can someone help me with the serial programming as MSDN was of no help
If you think that is the case, then you are using the wrong search term. I found loads of Serial/RS232 tutorials with VB on MSDN. Try altering your search!
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
I am doing a hardware based project and planning to establish communication with the computer using Serial Port RS-232 using an interface IC MAX 232. I am doing my project VB.Net 2008 and have no prior experence with the same. My computer doesnot posses a serial port so I am using USB to Serial convertor. My PC has COM3 port. Please can someone help me with the serial programming as MSDN was of no help. Also the binding navigator command is unable to calculate the maximum number of records present when the form is opened.
Hi, You want the SerialPort class. :)
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
-
Hi, You want the SerialPort class. :)
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
I meant MSDN was of no help because it confused me. From where exactly should I start. I have no experence in this issue and even a begginer in VB.Net. Do i need to get some dll or I can directly start as shown in MSDN. I am using Visual Studio 2008. Thank You.
-
I meant MSDN was of no help because it confused me. From where exactly should I start. I have no experence in this issue and even a begginer in VB.Net. Do i need to get some dll or I can directly start as shown in MSDN. I am using Visual Studio 2008. Thank You.
Hi, if you are a beginner in .NET or in one of its languages, then a serial port application is not a good start. You should get well acquainted with the platform before you start tackling a serial communication, since that is, although not very complex, well hard to debug and get it right, since it takes some doing to figure out which end is or isn't doing what. Once you know .NET and either C# or VB.NET you will need the SerialPort class. There are some good articles on CodeProject about serial communication. The port being USB connected is rather irrelevant, assuming you install the driver that came with the USB-to-serial cable. The driver turns the port into a regular serial port, so it shows up in all serial port enumerations, and most/all serial apps can use it, whether HyperTerminal or some .NET based app using SerialPort class. The app never is aware the USB-based serial port is connected in a different manner, all the nasty details are hidden by Windows and the device drivers. :)
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets