This is something New For me...
I have a controller that have 8 sockets.In each socket you can connect an alarm sensor..
the controler connects via ethernet to pc..and finally with a telnet connection there is a communication between controller and pc.
I 've read several articles about telnet and how to connect with vb.net ...
i am a little bit confused so i am starting saying these words:
1.the Controllers ip address is set to 192.168.0.190
2.in the command prompt i ping the ip so i am sure that there is a connection
3.in the command prompt c:>telnet and after that i write:
o 192.168.0.190 10001 and i am seiing continiously every 1 second the communication ..it gives me 8 bytes 11111111
and if a sensor is connected in thecontroller in this socket it gives me a 0 (like 11111011).
1.how can i display these bytes as they are , in multiline textbox..(as 0 or 1)
2.do i have to make a connection when my application starts or just to get the connction
3.how can i translate a single bit which is reffering to a single socket of the controller and check its value
i think these are my 3 very fisrt questions...
a.i am using vs 2008 (vb.net)
b.i know the difference between win XP an win 7 about telnet
c.in the laptop i am asking this question i do not a vb editor to send you the code as far as this point so sorry about that.
d.if something from the above is wrong please fill free to point me..
thank you very much in advance.