JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 31
  • Score
    100M100P100Q72289F
  • License ISC

TSL UMDv5 Protocol for Node.js

Package Exports

  • tsl-umd-v5
  • tsl-umd-v5/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tsl-umd-v5) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tsl-umd-v5

Installation

npm install tsl-umd-v5

Example

const TSL5 = require('tsl-umd-v5')

var umd = new TSL5()

//Listen for UDP tallies
umd.listenUDP(8900)

//Listen for TCP tallies
umd.listenTCP(9000)

umd.on('message', (msg) => {
    console.log("Tally Received:", msg)
})

//Sending tallies
tally = {
    "screen": 0,
    "index": 1,
    "display": {
        "rh_tally": 1,
        "text_tally": 0,
        "lh_tally": 0,
        "brightness": 3,
        "text": "Test Tally"
    }
}
//Send UDP tally
umd.sendTallyUDP('192.168.X.X', 8900, tally)

//Send TCP tally
umd.sendTallyTCP('192.168.X.X', 9000, tally)

Tally Values

Value Colour
0 Off
1 Red
2 Green
3 Amber

npm

git



DLE/STX Sequence

By default, the DLE/STX sequence is enabled on TCP packets and disabled on UDP packets as specified here.

If necessary, use the sequence argument to override the defaults.

//Send UDP tally with DLE/STX forced ON
umd.sendTallyUDP('192.168.X.X', 8900, tally, true)

//Send TCP tally with DLE/STX forced OFF
umd.sendTallyTCP('192.168.X.X', 9000, tally, false)