Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Remove ToC, h1 to h2, h2 to h3, etc. for Refined.
Expand
titleTable of Contents
Table of Contents
indent20px

Overview

BrightSign players in large, distributed networks should meet certain provisioning and recovery requirements. Partners who want to set up their own provisioning and recovery systems, rather than using BSN.cloud, should make sure that those systems meet the following requirements.

...

The following player registry entries are associated with the provisioning and recovery process. These keys can be modified by accessing the registry’s “networking” section using the roRegistrySectionBrightScript object.

Registry Key

Description

ub

The URL prefix that is applied to the URLs of the ru, eu, and cu key values. This prefix is not applied to a key value containing a colon.

ru

The provisioning/recovery URL used by the player to download an autorun script

eu

The URL to which error notifications are posted

cu

The URL to which crash reports are posted

p

The

.

password to the recovery handler (ru) that is specified above

The following registry keys are specific to BSN.cloud but can be modified by partners to affect the BSN.cloud registration. You should not store your own information in these sections because it can affect BSN.cloud operations:

Registry Key

Description

a

The name of the BSN.cloud account to which the player belongs. 

u

The name of the BSN.cloud user in the account to which the player belongs

g

The BSN.cloud group within the account to which the player belongs

The account, username, and group registry keys are used for provisioning/recovery with BSN.cloud. A request handler may use these keys, but they are not required. 

...

  1. The player connects to a network and obtains an IP address.

  2. The player checks the storage device for an autorun. If an autorun is found, the player will execute the autorun and if none is found, it will proceed with the steps below. See Player Storage for more information about storage devices and device priority (if you have multiple storage devices).

  3. If an IPv4 address exists, the player will attempt to provision over the network.

  4. The player will check for a recovery URL (ru):

    • If a DHCP Option 43 recovery URL (ru) is found, it will override any registry value for ru until the end of the DHCP lease. This URL can be set through DHCP Option 43. See Option 43 to configure a DHCP server to communicate this URL to a BrightSign player.

    • If DHCP Option 43 ru is not found, the ru that is set in the registry will be used.

    • If there is no registry value for the ru, this step will be skipped.

  5. If the recovery URL is blank, the player will attempt:

    • Well-known host provisioning: Also known as custom name mapping in your network's DNS server. If an IP address is mapped to brightsign-b-deploy, then the player will attempt to use the associated IP to provision itself automatically.

    • B-Deploy cloud provisioning: See B-Deploy/Provisioning APIs.

    • multicast DNS (mDNS): The player will automatically check the standard mDNS location (http://brightsign-b-deploy.local/) and if there is a server on your network with that address, the player will automatically provision itself. However, no other provisioning methods can be active if you want to provision with mDNS. See the Appendix for more information about this option.

  6. The player will retry the provisioning process every 30 seconds until there is a successful response or interruption.

...

These parameters are used for communicating between a player and the request handler. 

Player Request Parameters

The following parameters are included in the header of HTTP GET requests that a player sends to provisioning/recovery URL:

Parameter

Example Value

Description

DeviceModel

XT1144

The model designation of the BrightSign player

DeviceFamily

malibu

The family designation of the BrightSign player

DeviceId

D5E86P001287

The unique serial number of the player

DeviceFwVersion

8.2.42

The OS (firmware) version currently installed on the player

DeviceUpTime

240

The amount of time (in seconds) since the player booted up

RecoveryMode

override

The mode of the current URL request: 

  • override: The initial HTTP GET request of a player with a valid autorun script

  • periodic: Subsequent HTTP GET requests of a player with a valid autorun script

  • last-resort: The HTTP GET request of a player without a valid autorun script

CrashDump

yes

A flag indicating that the current boot was initiated by a forced reboot due to a crash (this header is only present if true).

StorageStatus

usb1=none;sd=autorun; sd2=storage;ssd=none;

The current autorun and file-system status of each storage device. 

Optional BSN.cloud Keys

Parameter

Example Value

Description

Account

bsaccount

The a registry value described above

User

bsuser

The u registry value described above

Group

bsgroup

The g registry value described above

Password

bspassword

The p registry value described above

Storage Status Parameters 

The StorageStatus value contains a list of key-value pairs indicating the status of each storage device. The following storage device keys are returned:

BrightScript Key

Storage Status Key

USB1:

usb1

SD:

sd

SD2:

sd2

SSD:

ssd

These status values can be returned for each storage device:

Storage Status Value

Description

none

The storage device was not detected.

storage

The storage device is present, but an autorun script was not detected.

autorun

The storage device is present and contains an autorun.brs or autorun.zip file.

autorun-load-error

The storage device is present and contains an autorun.brs or autorun.zip file that failed to load.

autorun-runtime-error

The storage device is present and contains an autorun.brs or autorun.zip file that encountered a runtime error.

error

The storage device is present but failed a file-system check. This value also implies that attempts to repair the file system also failed.

Server Response Parameters

The header of a request handler response may contain a single parameter. This parameter can accompany an HTTP 204 or 200 response (even if the response body is empty). 

Parameter

Example Value

Description

Retry-After

7200

The amount of time (in seconds) that the player should wait to make a periodic request to the provisioning/recovery URL. If this parameter is not provided, the default request interval will be two hours.

Player Recovery

If no valid autorun is found, a recovery is triggered. In a recovery, the player pulls down content from the recovery URL (stored in the registry) and attempts to execute it.

...

Multicast DNS is a unique DNS protocol developed for small networks. These diagrams show the differences between a normal DNS setup and a mDNS setup. Note that multicast DNS is not on by default in all networks.

...

Setting up a Recovery/Provisioning Server

...

  • Different provisioning scripts depending on the DeviceId or Group (or other HTTP GET parameters)

  • Multiple provisioning or recovery autorun scripts for different storage

...

Next - Autorun Files >