0

Boot Time

Is there a reason why there is a 2-3min delay between the time I get the telnet message that the player is on-line and the actual execution of the code. I can not even log in on the back end until this time has elapsed. I'm using v8.2.35.4 on the XD4. I've seen this with earlier versions as well.

I have done a factory reset.

The network/telnet settings were initially configured, then commented out for the final test.

 

Sub Main()

EnableZoneSupport(true)

eventMessagePort = CreateObject("roMessagePort")

videoMode = CreateObject("roVideoMode")
videoMode.SetMode("1920x1080x60p")

x = videoMode.GetSafeX()
y = videoMode.GetSafeY()
w = videoMode.GetSafeWidth()
h = videoMode.GetSafeHeight()

networkConfig = CreateObject("roNetworkConfiguration", 0)

_hostName = networkConfig.getHostName()
print _hostName

'networkConfig.ResetInterfaceSettings()
'networkConfig.setHostName("Bright")
'networkConfig.SetIP4Address("192.168.1.110")
'networkConfig.SetIP4Netmask("255.255.255.0")
'networkConfig.SetIP4Broadcast("192.168.1.255")
'networkConfig.SetIP4Gateway("192.168.1.1")
'networkConfig.Apply()

'print networkConfig.GetCurrentConfig()

reg = CreateObject("roRegistrySection", "networking")

isTelnetPresent = reg.read("telnet")
print "Telnet:";isTelnetPresent
'reg.write("telnet","23")
'reg.flush()

print "Running"

while true

end while

end Sub

5 comments

  • 0
    Avatar
    MustangAce

    Found this reference:

    https://brightsign.zendesk.com/hc/en-us/community/posts/360030669753-HD223-startup-takes-2-minutes-

    So, my understanding is because the player cannot phone home and get it's certificate, ie: 

    https://certs.brightsignnetwork.com/features/api/v1/features?serial=44D9A9001028

    it waits 2-3min before executing the autorun. It explains a number of headaches in the past. Since this seems to be related to the cloud, and I haven't explicitly asked for it, can I disable it?

  • 0
    Avatar
    Udi Shemesh

    From the code you posted it seems like you use your own autorun file.

    You could simply try previous firmware version somewhere in the 8.0.x range.

     

    Did you know that during code development, your can transfer your autorun.brs to the player, without removing the SD card, nor having to reboot the player.

  • 0
    Avatar
    MustangAce

    "Did you know that during code development, your can transfer your autorun.brs to the player, without removing the SD card, nor having to reboot the player."

    Can you elaborate on this, I can't seem to find the info on the website.

  • 1
    Avatar
    Udi Shemesh

    You could upload through the web interface aka Diagnostics Web Server (DWS).

    I like using SFTP which is file transfer over SSH, combined with Filezilla or SFTP extension for VS Code.

    With the last one you just need to save the file to your local, and it gets copied to the player automatically.

    If you'd like to connect, I can also be found here https://www.linkedin.com/in/udishemesh/

  • 0
    Avatar
    MustangAce

    Thanks for the lead.

    It took some head scratching because of a bug, but I got it to work with Visual Code. For anyone curious:

    Using liximomo SFTP extension with the fix: https://stackoverflow.com/questions/67506693/error-no-such-file-sftp-liximomo-extension

    Multi context seems to need an absolute path.

    Remote path: /storage/sd

    Using Brightsign Language extension

    Enabled both ssh and telet on the Brightsign.

    Using PuTTY and telnet to get into the shell

    Autorun.brs:

    Sub Main()

                 Print “entry point for Visual Code”

    End Sub

    And used the shell to run the script under development:

    Script test.brs

    CTRL-C inside PuTTY exits the script and brings you back to the shell.

    Shell:

    https://docs.brightsign.biz/display/DOC/BrightSign+Shell+Commands

    Debugger:

    https://docs.brightsign.biz/display/BSV61/6.1-BrightScript+Debug+Console

Please sign in to leave a comment.