RS232 control with Barix Barionet 50

Discussions of Q-SYS hardware and software.

Moderators: Cameron Shoffner, Christian Cook, Kirk Fyvie, Martin Barbour, Fred Thomke, Gary Evans_QSC, Chris Brouelette

Thu Apr 21, 2016 2:29 pm



  • Code: Select all
    address = "220.117.129.112"
    port = 12302
    sock = TcpSocket.New()
    sock.ReadTimeout = 0
    sock.WriteTimeout = 0
    sock.ReconnectTimeout = 5

    sendData1 = string.char(0x63,0x3D,0x31,0x30,0x32,0x00) -- Start Stream
    sendData2 = string.char(0x63,0x3D,0x31,0x30,0x31,0x00) -- Stop Stream

    sock.EventHandler = function(sock, evt, err)
    if evt == TcpSocket.Events.Connected then
    print( "socket connected" )
    Controls.Connect.Value = 1
    sock:Write(sendData2)-- stop Stream
    elseif evt == TcpSocket.Events.Reconnect then
    print( "socket reconnecting..." )
    elseif evt == TcpSocket.Events.Data then
    print( "socket has data" )
    line = sock:ReadLine( TcpSocket.EOL.CrLfStrict )
    print( "reading until CrLf got "..line )
    Controls.Text.String = line
    elseif evt == TcpSocket.Events.Closed then
    print( "socket closed by remote" )
    Controls.Connect.Value = 0
    elseif evt == TcpSocket.Events.Error then
    print( "socket closed due to error", err )
    Controls.Connect.Value = 0
    elseif evt == TcpSocket.Events.Timeout then
    print( "socket closed due to timeout" )
    Controls.Connect.Value = 0
    else
    print( "unknown socket event", evt ) --should never happen
    end
    end

    Controls.Set.EventHandler = function()
    if Controls.Set.Value == 1 then
    sock:Write(sendData1)
    print (sendData1)
    elseif Controls.Set.Value == 0 then
    sock:Write(sendData2)
    print (sendData2)
    end
    end

    sock:Connect(address, port)


    it's Barix Extreamer100 Stream Control codes
    Barix Barionet is not differents.

    and Serial Tunneling is same too
    just check tcp ports.
    jkjh82
    Newbie
     
    Posts: 2
    Joined: Mon Apr 11, 2016 2:29 am


  • Thank you both for your assistance with this. I will give both solutions a try and see what magic I can make happen.

    Thanks again
    -Mark
    molson
    Rookie
     
    Posts: 13
    Joined: Thu Apr 21, 2016 12:16 pm
    Location: Minnesota


  • Callum,

    Could you provide a little more information on the command button or scriptable commands that you used for the Global Cache itach units?

    Thanks
    -Mark
    molson
    Rookie
     
    Posts: 13
    Joined: Thu Apr 21, 2016 12:16 pm
    Location: Minnesota


  • I do now have this working with the Barix Barionet 50 (projector and relay controls) and also with the Global Cache iTach IP2SL-P. If you want the steps for making any of that work, PM me and I will be happy to share.

    -Mark
    molson
    Rookie
     
    Posts: 13
    Joined: Thu Apr 21, 2016 12:16 pm
    Location: Minnesota



  • The prices are as follows:

    Barix Barionet 50 = $179.49 (Markertek.com)
    Global Cache iTach IP2SL-P = $121.04 (Amazon.com)

    Pros for the Barionet 50 are that you also have relays on the board for automating a motorized screen or other device that uses relay triggers. Pros for the iTach is that it is PoE (Barionet 50 requires a power supply).

    So if you only want projector control, the iTach is the better value... if you want projector & screen control, the Barionet is the better choice as you probably will have power at the projector anyway.

    Hope this helps.

    -Mark
    molson
    Rookie
     
    Posts: 13
    Joined: Thu Apr 21, 2016 12:16 pm
    Location: Minnesota



Return to Q-SYS Support




Information
  • Users browsing this forum: No registered users and 0 guests