Page 1 of 1

using my own tcp socket

PostPosted: Thu 23. Jun 2011, 15:38
by IREric
I want to use a AVR microcontroller to communicate with the IRTrans device.(Microsoft's microframework).
So it means I can't use the IRTransserver (or service),
I've tried to connect the device with my C# socket code,
but it refuses to connect,(code tested on my PC,with IRtrans service not running).

IPAddress ip = new IPAddress(new byte[] { 192, 168, 2, 47 });

client = new Socket(AddressFamily.InterNetwork,SocketType.Stream, ProtocolType.Tcp);

IPEndPoint remoteEndPoint = new IPEndPoint(ip, alPort); // port 21000

client.Connect(remoteEndPoint);

Is it possible anyway to connect with my own socket instead of using the IRTransserver ?,


Thanks in advance.

Re: using my own tcp socket

PostPosted: Thu 23. Jun 2011, 16:08
by IRTrans
Hi,
When you want to talk directly to the IRTrans device you will need to use the TCP ASCII API.
You can download the documentation for that API from our website.

That way you can connect to TCP port 21000 of the IRTrans device.

However, please note that you will need an IRTrans device with internal flash memory (IRDB version) to use this API.

IRTrans