0

Tcp server

I need to emulate a old video server. This server open a TCP/IP port and the control system connect to this port and send commands. With a Brighrsign HD222 i wish to emulate this . I look for a TCP server script example. I found a telnet but this example don´t have the event of receive only the plug -in message event.

I ask you if I can get this example

Thanks




telnet_example.brs

8 comments

  • 0
    Avatar
    Romeo

    Hi,

    Please see the below attachment for a script example.

    Regards,

    Romeo

  • 0
    Avatar
    Adam

    i may be able to help you with this. contact me at adam@toulouse.co.nz

  • 0
    Avatar
    David Gaither

    Romeo, 

     

    If you are still monitoring this thread, I would appreciate if you could post/send me the TCP server example you sent.  I have been unable to to find another example of running a tcp server on a player, and when I tried making one using the Object Reference Guide, it seems to fail silently and never opens the port.  I haven't been able to find another example to see what I am doing wrong.

    Thanks!

  • 0
    Avatar
    Adam

    try pre FW 7

    FW 7 and greater broke TCPservers.

    I requested this be fixed over two months ago and provided an example but have yet to see a resolve

  • 0
    Avatar
    David Gaither

    That definitely makes me feel better if true... I was really banging my head against a wall.  I'll give that a shot and see.

     

    If you have an example you want me to test, post it and I can find out tomorrow.  I'm learning to write my own, and haven't found any examples of TCP server code to reference against mine, so it could still totally be my error.  

  • 0
    Avatar
    Shaun

    What was broken in FW 7? I had to dig out a BS out of storage to test one of my old scripts after a client saw this and wanted to know if a plugin I wrote ages ago would break against a FW 7 upgrade.

    Tested some pretty basic server functionality on 7.1.49 which works as expected. Nothing is noted in the FW release about a TCP bug fix.

    Test script: https://github.com/shaunmw/PublicBS/blob/master/simpleTCPServer.brs

     

     

  • 0
    Avatar
    Adam

    we were installing 9 odd players into to a site that has 30 odd already. all players run a plugin i created to accept TCP connections for control

    all of the new players failed to accept any TCP connections (everything else in the plugin worked).

    we reverted the FW to pre 7 and all units started accepting connections again. (6.2.147.2 is what we use)

    I cant recall exactly what version of 7 we tested with, players were HD3 and LS3

    I  didn't have time during the onsite install to debug it properly and determine exactly what part of the TCP server wasn't working 

    we also saw "issues" with the Http server object on FW7 (for a different project) so have stayed away from FW7 for now until i can fully test/ debug all the features we rely on

    FW7 doesn't offer any major features we need so there is no current rush to move away from 6.2.147.2

  • 0
    Avatar
    Lyndon

    I can't duplicate the plugin problem under 7.1.49. I can send shutdown and startup messages using hercules over tcp.  I did notice that if I disconnect, I can't reconnect over tcp unless I reboot the player. But, I noticed the same thing  in 6.2 firmware. 

Please sign in to leave a comment.