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.
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
- Copy the project folder to the server, for example to
/opt/live-tracking. It must contain at leastpackage.json, theserverfolder andsrc/digicentral.js, in the same layout as the original. - 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:
Keep both somewhere safe, such as your password manager.openssl rand -hex 24 node -e "console.log(require('crypto').randomBytes(24).toString('hex'))" - Start it once by hand to check it runs:
It prints the addresses it listens on. Stop it with Ctrl+C.cd /opt/live-tracking API_KEY=your-api-key INGEST_TOKEN=your-ingest-token ALLOW_ORIGIN=https://your-map-website node server/receiver.mjs - 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:
then run:[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.targetsudo systemctl daemon-reload sudo systemctl enable --now live-tracking-receiver sudo systemctl status live-tracking-receiver
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
| Port | Open 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 |
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
- Open
https://receiver.yourcompany.co.uk/in a browser. It should say TokkyTrack digiCentral receiver is running. - Open
https://receiver.yourcompany.co.uk/api/health?key=your-api-key. You should see a short line of text with"ok":trueand a packet count. - Optional: send it a sample lorry journey from the server, so there's something to look at on the map before digiCentral is connected:
A vehicle called SAMPLE 1 then appears. It stays in the saved data; to clear it, stop the receiver, deletenode tools/send-samples.mjs "http://127.0.0.1:8080/digicentral?token=your-ingest-token"server/data/digicentral-store.jsonand start it again.
5Set up forwarding in digiCentral
- Sign in to digiCentral and open the Forwarding tab, then choose Data forwarding from the menu.
- Add a new destination and give it a name you'll recognise, such as TokkyTrack.
- Choose the method and fill in the address, using the table below. REST is recommended.
- 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.
- 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.
- Save the destination.
| Method | What to enter in digiCentral | Notes |
|---|---|---|
| REST (recommended) | Host Name: https://receiver.yourcompany.co.uk/digicentral?token=your-ingest-token | The address must begin with https:// (or http://). Sends JSON. |
| SOAP | Host Name: https://receiver.yourcompany.co.uk/digicentral/soap?token=your-ingest-token | Works as well as REST; use it if your account is already set up for SOAP. |
| XML via TCP or UDP | Host: receiver.yourcompany.co.uk, Port: 5901 | No reply is sent back, so digiCentral can't tell if anything was lost. No token. |
| Binary mode via TCP | Host: receiver.yourcompany.co.uk, Port: 5900 | The 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
- Sign in to the map and open Settings (top bar, or the Demo data badge).
- Under Where positions come from, choose Tachosys digiCentral.
- Enter the Receiver address (
https://receiver.yourcompany.co.uk, without/digicentral) and the API key. - Press Test connection. It should report the number of vehicles and packets received.
- Press Save. The map reloads and the badge at the top changes to Live server.
8What appears, and when
| On the map | Comes from | How often |
|---|---|---|
| The vehicle and its position | Tracking packets | About 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 downloads | On every activity change or card insert/withdrawal |
| Driver hours bars and warnings | Driver Decision Support (DDS) | On a regular poll while a driver card is in slot 1; the interval is set per device |
| Fuel, temperatures, journey summary | Vehicle CAN data (digiDL-EX with FMS/CAN) | Engine on, once a minute while running, engine off |
| Fridge and other sensors | Sensors | On change, or on the interval set per device |
| Events tab and pop-up alerts | Engine on/off, activity changes, driver-hour warnings, alerts, clocking, journeys | As 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 see | Likely cause and fix |
|---|---|
| Test connection shows 0 packets | The 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 problem | When 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 receiver | Check 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 refused | The 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 gibberish | Two 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 hours | No driver card in slot 1, DDS not switched on for that device, or DDS packets filtered out in the destination (step 5). |
| Something else odd | Open /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.
| Setting | Default | What it does |
|---|---|---|
API_KEY | random each start | Key the map must send. Always set it, otherwise it changes on every restart. |
INGEST_TOKEN | none | When 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. |
HOST | 0.0.0.0 | 127.0.0.1 keeps the receiver private behind Caddy or nginx. |
HTTP_PORT | 8080 | REST, SOAP and the map's data. |
BINARY_PORT | 5900 | Binary mode via TCP. |
XML_PORT | 5901 | XML via TCP and UDP. |
INGEST_PATH | /digicentral | The path digiCentral sends to. |
TLS_CERT, TLS_KEY | none | Certificate and key files, if the receiver should serve HTTPS itself. |
DATA_FILE | server/data/digicentral-store.json | Where vehicles, positions and events are saved. |
BYTE_ORDER | be | Byte order of numbers in packets (be or le). Change only if positions come out wrong. |
UNICODE | utf16le | How driver and workshop names are stored (utf16le, utf16be or utf8). |
DATA_ENCODING | auto | How 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/healthanswers 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/datafolder included in backups