How to write to a COM port using VB.Net

Help!!!!
 
  I am trying to write to a COM Port using VB.Net and to establlish a TCP/IP Connection..

Appreciate the Help!!

Thanks
shahjagatAsked:
Who is Participating?
 
kemi67Commented:
I see that you mix COM port and TCP/IP communication: they are two completely different things.

Here you can find a good tutorial about COM serial ports
http://www.dreamincode.net/forums/topic/37361-serial-port-communication-in-vbnet/
and a short example here
http://www.codeproject.com/KB/vb/Comport_made_simple.aspx

In your question you ask even for TCP/IP comunication. Port in TCP are not the same of the COM port, so you need different tutorial:
http://vb.net-informations.com/communications/vb.net_socket_programming.htm
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
shahjagatAuthor Commented:
Thank you Soujanya..:)

Thanks Kemi67
 I think i have to establish a TCP/IP Connection first  and write in to that Port. Could you please provide me the example,How to write in to a TCP port..

Thanks
0
 
shahjagatAuthor Commented:
Thanks for you Help..:)
0
 
shahjagatAuthor Commented:
Hello Kemi,

 Is it possible to Write to a COM Port using a TCP/IP Connection.??


Thanks
0
 
kemi67Commented:
Hi shahjagat,
yours is a strange question, Serial ports and Tcp/IP ports are not the same thing, they are two different protocols.
Why are you asking that? Are you trying to build a tcp/ip to serial converter?
Which devices do you need to connect?
I suspect that you are misunderstanding something. Tcp/ip communication required a network card. It seems that you want to use a serial port as network card, and this would be like you are writing a device driver.
You needs strong tcp/ip basics to do that.
Are you trying to build a device like this:
 http://www.barcode-manufacturer.com/serial-ethernet
Or like this
http://www.sharewareconnection.com/tcp-com.htm
Or try to look here
http://tcp-ip.qarchive.org/

Can you better explain what are are you really trying to do? Perhaps there is another way to do that.
0
 
shahjagatAuthor Commented:
Thanks
0
All Courses

From novice to tech pro — start learning today.