using my own tcp socket

The place where software developers meet

Moderator: marcus

using my own tcp socket

Postby IREric » Thu 23. Jun 2011, 15:38

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.
IREric
 
Posts: 7
Joined: Tue 1. Mar 2011, 14:39

Re: using my own tcp socket

Postby IRTrans » Thu 23. Jun 2011, 16:08

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
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32


Return to APIs

Who is online

Users browsing this forum: No registered users and 11 guests