It is currently 29 Mar 2017, 18:00



Interfacing with Scoreboards

Videos, graphics, Flash templates – how to create and play them using CasparCG

Moderators: Macey, Jonas Hummelstrand, didikunz

Interfacing with Scoreboards

Postby Eviltechie » 12 Aug 2014, 03:21

I received a pm from a member asking for information about how I interfaced with a scoreboard for use with CasparCG. I figured I'd write up what I know for the benefit of other members.

Before you begin, know that depending on what sport you are doing and the complexity of the graphics you desire, this can be anywhere from a weeklong to a monthlong project. You will need to have some programming experience, and be comfortable writing your own CasparCG client.

First thing is to do is figure out how to get data from your scoreboard controller into your computer. Chances are, this is going to involve an old fashioned serial port.

Where I work, all of our venue scoreboards are Daktronics scoreboards. They all have a console which has buttons for controlling the clock, scores, and whatever else the sport requires. They then connect through a large multi-pin plug (or wirelessly) to the actual scoreboard.

Unfortunately our consoles didn't have any proper serial ports. (Some models may have one, our do not.) What we did have though, was another Daktronics product called the All Sport Character Generator. This is a simple analog character generator with a built in keyer. RCA in and out on the bottom. If I remember correctly, it connects to the CG with a DB9 on one end, and to one of the console's auxiliary scoreboard outputs with a 1/4in tip ring phone jack on the other end. Conveniently, it also has a serial port on it which spits out data every second or every update to the scoreboard. (This is an undocumented feature.) I hooked this up to my computer with a serial to usb converter and was able to read the data with the standard 9600 8 n 1. It outputs a fixed length string starting with the SOH character and ending with EOT. At that point, all I had to do was change the scores, clocks, etc on the console and see which value changed in the string. With a little trial and error, I was able to figure out which characters corresponded to which element on the scoreboard.

If you don't have the same hardware that I do, you may need to contact the scoreboard manufacturer for help. They may be glad to point you in the right direction, or they may try to sell you a proprietary solution. You might need to start probing pins on connectors and reverse engineer the protocol.

I'm a Java programmer, so here are the two classes I'm using to parse the data. The Football one is untested, but I'm pretty sure it's correct.
American Football: https://gist.github.com/Eviltechie/bcb1427fccab72870a69
Baseball: https://gist.github.com/Eviltechie/8c96262df9ce632cc34a

This isn't my work, but I did come across it. It might be useful.
http://xy-kao.com/projects/decoding-dak ... port-2000/
https://github.com/xyk2/daktronics

Other links that may be useful.
http://serialtools.tv/shop/daktronics-port-expander/
http://serialtools.tv/manuals/daktronics-data-tap.pdf
http://www.daktronics.com/Web%20Documen ... -12483.pdf (RTD spec. If you are in a fancy venue, they may have a large RTD breakout for your use. I think we have one, it looks like a 1U rack mount thing with 8 or so serial ports on it. I think that's what a TV truck will connect to when they come.)
http://www.atemuser.com/forums/atem-vis ... splay-text
Eviltechie
 
Posts: 13
Joined: 15 Mar 2014, 05:34

Re: Interfacing with Scoreboards

Postby videohead » 14 Aug 2016, 23:53

For commercial products, also see : http://graphicsoutfitters.com/
Not the cheapest vendor around, but they are knowledgeable and skilled at providing tools for many systems.
I am not a dealer or reseller of their systems, but have seen them in use and they are pretty good.
User avatar
videohead
 
Posts: 13
Joined: 11 Jul 2016, 04:05

Re: Interfacing with Scoreboards

Postby stevespaw » 16 Aug 2016, 15:12

You can get one common set of xml from all scoreboards with this:

http://sportzcast-site.azurewebsites.net/streaming-technology/

Steve
stevespaw
 
Posts: 75
Joined: 01 Aug 2013, 15:21

Re: Interfacing with Scoreboards

Postby jackreynolds » 16 Aug 2016, 17:23

In regards to LiveXML, how would CCG take in the data to a flash template (or HTML)?
jackreynolds
 
Posts: 154
Joined: 02 Nov 2015, 18:02
Location: Pittsburgh, Pennsylvania, USA

Re: Interfacing with Scoreboards

Postby didikunz » 17 Aug 2016, 06:30

jackreynolds wrote:In regards to LiveXML, how would CCG take in the data to a flash template (or HTML)?

One would write a client, that reads the data and sends the comands to Caspar.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3401
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: Interfacing with Scoreboards

Postby itod » 17 Aug 2016, 14:17

While looking at the solutions for this, I've came across very cheap Serial-To-Ethernet converters:
(RS485 only): http://www.aliexpress.com/item/1-Piece-USR-TCP232-204-Serial-RS485-to-TCP-IP-Ethernet-Server-Low-Price-ARM-Processor/32631504500.html
( RS232 + RS485): http://www.aliexpress.com/item/RS232-RS485-serial-to-Ethernet-TCP-IP-converter-server-with-5V-power-adapter-supply/32460639593.html

Here where I am all scoreboards use RS485 serial protocol, so the first cheaper one should be adequate, not sure which protocol Daktronics support. Both gadgets have option to be TCP or UDP servers, configurable through web interface, so you can concentrate on programming instead of wires.
itod
 
Posts: 95
Joined: 29 Oct 2011, 20:54

Re: Interfacing with Scoreboards

Postby didikunz » 17 Aug 2016, 15:56

That is a good solution, if you only work in one stadium or with the same type of controllers. The beauty of LiveXML and the like is, that they support multiple controllers and provide the same API on your side. So you need to implement your interface only once.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3401
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: Interfacing with Scoreboards

Postby jackreynolds » 17 Aug 2016, 18:37

It's really that simple didi? It might be time for me to learn some live code...
jackreynolds
 
Posts: 154
Joined: 02 Nov 2015, 18:02
Location: Pittsburgh, Pennsylvania, USA

Re: Interfacing with Scoreboards

Postby stevespaw » 18 Aug 2016, 13:30

We really just need some smart good guy to create sample flash projects that reads the Scorebot LiveXml and share it. They have a standard xml for every sport. I could probably get those xml's if someone is willing. :-)

Steve
stevespaw
 
Posts: 75
Joined: 01 Aug 2013, 15:21

Re: Interfacing with Scoreboards

Postby mcdikki » 18 Aug 2016, 18:04

jackreynolds wrote:It's really that simple didi? It might be time for me to learn some live code...

You may mixed up something here. LiveXML has nothing to do with livecode.

cheers
mcdikki
sublan.tv - Wir teilen Begeisterung
User avatar
mcdikki
 
Posts: 1051
Joined: 11 Dec 2012, 15:48
Location: Germany

Re: Interfacing with Scoreboards

Postby jackreynolds » 18 Aug 2016, 18:06

Livecode to make my own client, that is.
jackreynolds
 
Posts: 154
Joined: 02 Nov 2015, 18:02
Location: Pittsburgh, Pennsylvania, USA

Re: Interfacing with Scoreboards

Postby didikunz » 18 Aug 2016, 20:58

jackreynolds wrote:Livecode to make my own client, that is.

If you want to make more system oriented clients, connecting to other systems etc. I would not sugest learning LifeCode. You are better served with a cmore onventional language like Visual Basic or C#.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3401
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: Interfacing with Scoreboards

Postby jackreynolds » 19 Aug 2016, 02:48

Duely noted, thank you.
jackreynolds
 
Posts: 154
Joined: 02 Nov 2015, 18:02
Location: Pittsburgh, Pennsylvania, USA


Return to Content

Who is online

Users browsing this forum: No registered users and 2 guests