Socket connection with Digi Connect EM

I need to know if it’s posible to set up a socket connection with the:

Digi Connect® EM

What i need to do is controlling the GPIOs and Serial interfaces by using a UDP / TCP Connection.

And are there samples of how to do it. A socket conection a already have in VB.net only is it posible to use this on te Digi Connect device?

Of course: that’s what the Connect ME and Connect EM are made for (ethernet-to-serial conversion). But the real question isn’t about establishing the socket, but the protocol you are going transmit over that socket to send/receive data. There are almost unlimited choices for that.

I have a windows socket connection and I like to write direct to the EM without change anything to the Digi Connect EM firmware or write my own application.

I want to control it by a VB.net application with a socket connection.

Something like this for sending data to the serial port:

tcpClient.Connect(“192.168.1.68”, 10001)
networkStream = tcpClient.GetStream()
’ Do a simple write.
'MsgBox(“Data send…”)
Textbox2.text = “Data has been send…”

        sendBytes = Encoding.ASCII.GetBytes("Is anybody there")
        networkStream.Write(sendBytes, 0, sendBytes.Length)

Ens something like that for the GPIO control

Like GPIO pin1 = high

Message was edited by: Twan