Socket Export Guide

Practical reference for configuring and understanding the three Socket export protocols available in TSConnector for timing devices.

 

 

1. Overview

TSConnector can stream live timing using different Socket export protocols.

Each protocol is designed for a specific type of scoring or analytics software. Make sure to select the protocol expected by the downstream system.

All protocols are configured from the Socket Export window. The selected Protocol determines which configuration fields are available.

To open this window:

  1. In TSConnector 2 (see TSConnector 2 - Quick Guide), click the menu icon (☰) in the top left corner.

    TSConnector 2 main screen with the menu icon in the top left corner

  2. In the menu, under the exports, click the gear icon next to Socket. The switch of each export turns it on or off.

    TSConnector 2 menu with the list of exports and the Socket gear icon

This is the protocol to use:

TsV1
Use this if you have already migrated from TSConnector 1 to TSConnector 2. This version is backward compatible with the previous TSConnector.

TsV2
Recommended for new integrations. It is the preferred protocol for building from scratch.

CTP01
Select this if you will be working with Runscore or RaceDay.

 

2. Available protocols

Protocol TsV1 TsV2 CTP01
Role Server (fixed) Server or Client Client (fixed)
Wire format JSON, numeric tag Enriched JSON Text compatible with RaceDay or Runscore (~ separated, CRLF)
Typical use Legacy integrations Modern integrations Software compatible with RaceDay or Runscore
Connection handling Server always listening Auto-reconnect in Client mode Reconnect with resume

 

3. Read types

Type Name Description
0 Wave / gun time Reference events such as wave start or gun signal
1 First-seen Immediate detection, low latency, not recommended for official timing
2 Best-seen Optimized detection, recommended for official results
✅ Recommendation: always use Type 2 (Best-seen) reads for scoring and classification.

 

4. Common configuration fields

Field Description Applies to
Protocol Selects TsV1, TsV2, or CTP01 All
Role Server or Client mode TsV2
Host Target host or IP address TsV2 Client, CTP01
Port TCP port All
Filter read type 1 Excludes First-seen reads All
Use UTC time Emits timestamps in UTC CTP01

 

5. TsV1 – Legacy JSON

TsV1 is the historical Socket export format. It is intended for systems that require numeric tags.

 

Role

  • Server only
  • TSConnector listens on the configured port
  • Scoring software connects as a TCP client

 

Message format

JSON array terminated by a carriage return (\r).

[{"Chip":123456,"Moment":"2026-04-22T10:15:42.1234567Z","TimingPoint":"Finish","Type":2,"Antenna":2,"Source":"Reader-01"}]

 

6. TsV2 – Enriched JSON

TsV2 is the recommended modern format. It supports alphanumeric tags and provides extended metadata.

  • Local and UTC timestamps
  • RSSI (signal strength)
  • Full tag EPC
  • Server and Client modes

 

7. CTP01 – Protocol compatible with programs such as RaceDay or Runscore

CTP01 is a stateful, text-based protocol widely supported by Chronotrack-compatible scoring software.

  • Command-based handshake
  • Push and pull modes
  • Automatic reconnect with resume

 

8. Resilience and reconnect

  • Automatic TCP reconnect
  • Bounded internal buffer
  • Persistent connection identity (CTP01)
💡 Rule of thumb: if data loss is suspected, resending duplicates is safer than missing detections.

 

9. Troubleshooting

 

No data received

  • Verify Host and Port
  • Check firewall rules
  • Confirm Server / Client roles

 

Incorrect timestamps

  • TsV1 and TsV2 use local time by default
  • In TsV2, use UtcMoment for UTC processing
  • In CTP01, review the Use UTC time option
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.