I have one laboratoric device, which it is connected with computer by
TCP/IP.
I know taht this device is using ASTM protocol.
I need to connect to this deviceand send him some commands.
How to do this and maybe you can give me the example link.

Thanks

Re: TCP/IP and ASTM protocol by Peter

Peter
Fri Nov 30 10:20:00 PST 2007

On 2007-11-29 23:24:14 -0800, "vaidas gudas" <vaidas.gudas@rst.lt> said:

> I have one laboratoric device, which it is connected with computer by
> TCP/IP.
> I know taht this device is using ASTM protocol.
> I need to connect to this deviceand send him some commands.
> How to do this and maybe you can give me the example link.

As far as .NET is concerned, the fact that ASTM is used isn't relevant.
However, given that the connection is a TCP/IP connection, you will
find the Socket and TcpClient classes useful. Either one should serve
your needs for communicating.

http://msdn2.microsoft.com/en-us/library/system.net.sockets.socket.aspx
http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx

Pete