This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Telnet communication with Biamp Tesira
#2
Hi,

Try this:
Code:
local host, port = "192.168.2.60", 23
local socket = require("socket")
local tcp = assert(socket.tcp())
tcp:connect(host, port)
tcp:settimeout(0.5)

--Set command
command = string.char(0xFF,0xFD,0x01) -- Do Echo

-- Write command
tcp:send(command .. '\r')

--or try Write command
--tcp:send(command)

--Get Reply
local s, status, partial = tcp:receive()
 
--Check if reply has a value
if s then
    --Do your action(s) with replies
    if s == string.char(0xFF,0xFC,0x01) then
     log('Wont Echo')
    end
    loghex(s)
end
tcp:close()
BR,

Erwin
Reply


Messages In This Thread
RE: Telnet communication with Biamp Tesira - by Erwin van der Zwart - 29.10.2020, 14:21

Forum Jump: