TokkyTrackHelpOpen the map →

Setting up digiCentral data forwarding

Guide version 1.0 · 23/11/2026 · for the TokkyTrack digiCentral receiver

This guide connects your Tachosys digiDL units to the TokkyTrack map. Once it's set up, the map shows each lorry's position, its driver's hours from the tachograph, engine data and sensors, as they happen.

digiDL in the vehicle→Tachosys digiCentral→Your TokkyTrack receiver→TokkyTrack map

1Before you start

You will need:

  • A digiCentral login that can see the Forwarding tab. If you can't see it, ask Tachosys or your dealer to switch on data forwarding for your account.
  • A server that's always on and reachable from the internet. A small cloud server is plenty (1 CPU, 1 GB memory). digiCentral sends data to it, so an office PC behind a home router won't do unless you open ports on the router.
  • A web address for it, such as receiver.yourcompany.co.uk, pointing at the server. You need one to get an HTTPS certificate.
  • Node.js 18 or newer on that server (free, from nodejs.org). The receiver needs nothing else installed.
  • The TokkyTrack project files, which hold the receiver program.

If someone else looks after your servers, send them this guide: sections 2 to 4 are for them, and sections 5 to 7 are done in digiCentral and on the map.

2Install the receiver

  1. Copy the project folder to the server, for example to /opt/live-tracking. It must contain at least package.json, the server folder and src/digicentral.js, in the same layout as the original.
  2. Make up two long random values: an API key (the map uses it to read data) and an ingest token (digiCentral uses it to send data). Either command below prints one:
    openssl rand -hex 24
    node -e "console.log(require('crypto').randomBytes(24).toString('hex'))"
    Keep both somewhere safe, such as your password manager.
  3. Start it once by hand to check it runs:
    cd /opt/live-tracking
    API_KEY=your-api-key INGEST_TOKEN=your-ingest-token ALLOW_ORIGIN=https://your-map-website node server/receiver.mjs
    It prints the addresses it listens on. Stop it with Ctrl+C.
  4. Make it start on its own and restart after a crash or reboot. On Linux, save this as /etc/systemd/system/live-tracking-receiver.service:
    [Unit]
    Description=TokkyTrack digiCentral receiver
    After=network.target
    
    [Service]
    WorkingDirectory=/opt/live-tracking
    ExecStart=/usr/bin/node server/receiver.mjs
    Environment=API_KEY=your-api-key
    Environment=INGEST_TOKEN=your-ingest-token
    Environment=ALLOW_ORIGIN=https://your-map-website
    Environment=HOST=127.0.0.1
    Restart=always
    User=www-data
    
    [Install]
    WantedBy=multi-user.target
    then run:
    sudo systemctl daemon-reload
    sudo systemctl enable --now live-tracking-receiver
    sudo systemctl status live-tracking-receiver
Windows servers: the same command works in a terminal. To keep it running, add it as a Windows service with a service wrapper (for example NSSM), with the same settings as environment variables.
The user running the receiver needs permission to write to the server/data folder, because that's where it saves vehicles, positions and events. Back that folder up with your other server backups.

3Make it reachable over HTTPS

The map website is served over HTTPS, and browsers block it from reading a plain-HTTP address. The receiver therefore needs HTTPS too, and digiCentral also accepts https:// addresses. The simplest way is a small web server in front of the receiver that handles the certificate for you. With Caddy (free, from caddyserver.com), the whole configuration is:

receiver.yourcompany.co.uk {
    reverse_proxy 127.0.0.1:8080
}

Caddy gets and renews the certificate on its own. The receiver stays private on the server (that's what HOST=127.0.0.1 above is for) and the outside world talks to Caddy on port 443.

Alternatively, give the receiver certificate files directly with TLS_CERT and TLS_KEY (see Settings reference), and remove HOST=127.0.0.1.

Firewall

PortOpen it when
443 (TCP)Always, if you use Caddy or another web server in front
8080 (TCP)Only if the receiver serves HTTPS itself
5900 (TCP)Only if you choose the Binary forwarding method
5901 (TCP and UDP)Only if you choose the XML via TCP or UDP method
The Binary and XML methods carry no password or token. If you use them, remove HOST=127.0.0.1 so those ports can be reached, and limit them in the firewall to Tachosys's sending addresses (ask Tachosys support for the list). REST over HTTPS with a token is the recommended choice.

4Check the receiver works

  1. Open https://receiver.yourcompany.co.uk/ in a browser. It should say TokkyTrack digiCentral receiver is running.
  2. Open https://receiver.yourcompany.co.uk/api/health?key=your-api-key. You should see a short line of text with "ok":true and a packet count.
  3. Optional: send it a sample lorry journey from the server, so there's something to look at on the map before digiCentral is connected:
    node tools/send-samples.mjs "http://127.0.0.1:8080/digicentral?token=your-ingest-token"
    A vehicle called SAMPLE 1 then appears. It stays in the saved data; to clear it, stop the receiver, delete server/data/digicentral-store.json and start it again.

5Set up forwarding in digiCentral

These steps follow Tachosys's own description of the screens ("Data Packet Forwarding from digiCentral", revision 2.12). Labels may look slightly different in the current version of digiCentral.
  1. Sign in to digiCentral and open the Forwarding tab, then choose Data forwarding from the menu.
  2. Add a new destination and give it a name you'll recognise, such as TokkyTrack.
  3. Choose the method and fill in the address, using the table below. REST is recommended.
  4. Custom tags are optional extra details added to every packet, for example your account number. Leave the box empty unless you need it; the receiver keeps whatever is sent.
  5. Use filter is optional. With it ticked, digiCentral only sends the packet types you select (see the list below). Without it, everything is sent, and the receiver accepts all of it.
  6. Save the destination.
MethodWhat to enter in digiCentralNotes
REST (recommended)Host Name: https://receiver.yourcompany.co.uk/digicentral?token=your-ingest-tokenThe address must begin with https:// (or http://). Sends JSON.
SOAPHost Name: https://receiver.yourcompany.co.uk/digicentral/soap?token=your-ingest-tokenWorks as well as REST; use it if your account is already set up for SOAP.
XML via TCP or UDPHost: receiver.yourcompany.co.uk, Port: 5901No reply is sent back, so digiCentral can't tell if anything was lost. No token.
Binary mode via TCPHost: receiver.yourcompany.co.uk, Port: 5900The receiver acknowledges each packet. No token.

Packet types to send if you use the filter

Tick these for everything the map can show:

  • Tracking and Positional update: positions, speed and direction (the minimum for the map to work)
  • Tracking suppression: when a driver pauses tracking with the in-cab button
  • Tachograph mode and Consolidated DDS (plus Stoneridge Duo, VDO Counter or Intellic iCounter for your tachograph make): driver activity and driving hours
  • Vehicle CAN data (engine on, in journey, engine off): fuel, temperatures, journey summaries, harsh braking and acceleration
  • Sensors and Odometer: temperature probes, switches, journey start and end
  • Alerts, New Driver notification, Clocking, and the Driver Card, Workshop Card and Vehicle Unit file summaries: alerts, driver names, clock in/out and downloads

Other types (alcohol lock, CAN logging, device configuration, data items) are stored as received and listed for checking, but the map doesn't show them yet.

6Attach the destination to a Location

A destination sends nothing until it's attached to a Location. In digiCentral, open the Location that holds your vehicles (for example Depot) and add the TokkyTrack destination to its data forwarding. Every device in that Location then queues its packets for the receiver.

  • If your vehicles are split across several Locations, add the destination to each of them.
  • A Location can forward to more than one destination, so this doesn't affect any other system you already forward to.

7Connect the TokkyTrack map

  1. Sign in to the map and open Settings (top bar, or the Demo data badge).
  2. Under Where positions come from, choose Tachosys digiCentral.
  3. Enter the Receiver address (https://receiver.yourcompany.co.uk, without /digicentral) and the API key.
  4. Press Test connection. It should report the number of vehicles and packets received.
  5. Press Save. The map reloads and the badge at the top changes to Live server.
The address and key are saved in that browser only. Repeat these steps on each computer or phone that uses the map.

8What appears, and when

On the mapComes fromHow often
The vehicle and its positionTracking packetsAbout once a minute while moving (more often on turns, starts and stops), and once an hour while parked
Driver name and activity (Drive, Work, Available, Rest)Tachograph mode, New Driver notification, card downloadsOn every activity change or card insert/withdrawal
Driver hours bars and warningsDriver Decision Support (DDS)On a regular poll while a driver card is in slot 1; the interval is set per device
Fuel, temperatures, journey summaryVehicle CAN data (digiDL-EX with FMS/CAN)Engine on, once a minute while running, engine off
Fridge and other sensorsSensorsOn change, or on the interval set per device
Events tab and pop-up alertsEngine on/off, activity changes, driver-hour warnings, alerts, clocking, journeysAs they happen

A vehicle shows as offline after 75 minutes with no data. Parked vehicles only report hourly, so a short gap is normal. Driver hours need DDS switched on for the device in digiCentral, and on some Stoneridge tachographs DDS must also be enabled in the tachograph itself.

9Troubleshooting

What you seeLikely cause and fix
Test connection shows 0 packetsThe destination isn't attached to a Location (step 6); the Host Name is missing https:// or the ?token= part, or the token doesn't match; or the firewall blocks port 443.
Data stopped arriving after a server problemWhen sending fails, digiCentral pauses all forwarding to that destination. It retries after 1 minute, then waits longer each time, up to 1 hour between tries. Once the receiver is back, data resumes at the next retry, so wait up to an hour.
Map says it couldn't reach the receiverCheck the address opens in a browser (step 4); the receiver needs HTTPS; and ALLOW_ORIGIN must be the map website's address exactly, or *.
Map says the API key was refusedThe key in Settings doesn't match API_KEY on the server. Watch for spaces copied by mistake.
Vehicles appear in the wrong place, or driver names look like gibberishTwo details of the packet layout aren't spelled out in Tachosys's document, so the receiver makes a standard assumption. Paste a real packet into the map's Settings → Test a digiCentral packet to see how it reads. If it looks wrong, set BYTE_ORDER=le or UNICODE=utf8 on the receiver, restart it, and check again.
A vehicle has a position but no driver hoursNo driver card in slot 1, DDS not switched on for that device, or DDS packets filtered out in the destination (step 5).
Something else oddOpen /api/packets?key=your-api-key on the receiver. It lists the last packets received, decoded, including any that couldn't be read.

10Settings reference

The receiver is set up with environment variables, given in front of the command or in the service file.

SettingDefaultWhat it does
API_KEYrandom each startKey the map must send. Always set it, otherwise it changes on every restart.
INGEST_TOKENnoneWhen set, digiCentral's address must end with ?token= and this value. Recommended.
ALLOW_ORIGIN*The map website's address, so only it can read the data from a browser.
HOST0.0.0.0127.0.0.1 keeps the receiver private behind Caddy or nginx.
HTTP_PORT8080REST, SOAP and the map's data.
BINARY_PORT5900Binary mode via TCP.
XML_PORT5901XML via TCP and UDP.
INGEST_PATH/digicentralThe path digiCentral sends to.
TLS_CERT, TLS_KEYnoneCertificate and key files, if the receiver should serve HTTPS itself.
DATA_FILEserver/data/digicentral-store.jsonWhere vehicles, positions and events are saved.
BYTE_ORDERbeByte order of numbers in packets (be or le). Change only if positions come out wrong.
UNICODEutf16leHow driver and workshop names are stored (utf16le, utf16be or utf8).
DATA_ENCODINGautoHow the packet data is written (auto, base64 or hex).

The receiver keeps up to 20,000 positions per vehicle, the latest 5,000 events and the latest 300 raw packets.

11Checklist

  • Forwarding tab visible in digiCentral
  • Server with a web address, Node.js 18 or newer installed
  • API key and ingest token created and stored safely
  • Receiver running as a service and starting after a reboot
  • HTTPS working: the receiver's address opens in a browser with a padlock
  • /api/health answers with "ok":true
  • digiCentral destination created (REST, address with https:// and ?token=)
  • Destination attached to every Location that holds vehicles
  • Map Settings: Tachosys digiCentral chosen, Test connection shows packets
  • Vehicles visible on the map; driver hours shown when a card is in slot 1
  • server/data folder included in backups