Part 5 of 5 · The truck on the internet

The web dashboard

The last part of the chain. A web page, open to us from any phone or computer in the world, that shows what Tartaruga is doing right now: where it is, the state of the batteries and the solar panels, the lights, and the health of every controller. This page explains what the dashboard shows, how the data travels from the truck to the page, and what was difficult on the way.

What it shows

The truck at a glance, from anywhere

Position and travel

Where the truck is, how fast it is moving and in which direction, from the satellite receiver in the suspension controller (Part 2).

Power and services

The camper systems the PLCs report (Part 1), including the lights and the solar panels.

Controller health

A heartbeat from the truck, so we can see at once whether the link and the controllers are alive.

Truck time

The time shown on the dashboard is the truck's own clock, read from the radar controller (Part 3), so the dashboard, the touchscreen and the truck's logs always agree.

Day and night

The page changes between a day and a night colour scheme by itself, from the calculated sunrise and sunset.

Limited remote control

Lights and solar panels only, only when enabled at the SCADA in the truck, and only while the dashboard keeps confirming the button press every second.

Main dashboard page: battery voltages and currents, shore power, sunlight, inside and outside temperature and humidity, water temperature, solar panel position and wind speed, with buttons for location, lights and solar panels.
The main page. Power and environment at a glance, with the truck's own time at the top. Taken after sunset, so the page is in its night colours. The position is blurred.
Location page: latitude, longitude, altitude, heading, speed, number of satellites and truck time, with satellite reception details.
Location. Position, height, heading, speed and satellite reception. The position is blurred.
Lights page: roof, front, awning, back and floodlight. Lights that are on have a green card with ON in green; lights that are off have a red border with OFF in red. Each has a Toggle button.
Lights. Each light shows ON in green or OFF in red, so the state is clear at a glance, with a Toggle button. The buttons work only when remote control is enabled at the SCADA in the truck.
Solar page: battery values, then panel position, mode, limit switches and interconnection, with Auto/Local, Open Panels and Close Panels buttons.
Solar panels. Panel position, mode, limit switches and whether the panels are connected for one or two layers, with the open and close buttons.

TAP TO ENLARGE

How it works

From the truck to your screen

The truck is never directly visible on the internet. Instead, the truck connects out to a small server of our own, and the dashboard lives on that server. The path looks like this:

The same tunnel also lets us reach the truck PC from home with a remote desktop connection, so we can check the SCADA, change a PLC programme or read a diagnostic page (Part 3) without being at the truck. The server runs other things for us too, among them our Iveco Daily 4x4 knowledge base for owners.

We describe the structure here, not the settings. Addresses, ports, names and keys stay private.

Who sees what

Logins and privacy

The dashboard needs a login. Only a few people have one: us, one family member, and a guest login.

A truck's exact position is sensitive information, especially when the truck is parked at home or the people in it are asleep in a remote campsite. So guests will see only an approximate position. The exact position is kept for the family logins.

What it taught us

The difficult parts

The mobile network hides the truck

Some mobile networks do not give a SIM card its own public internet address. Many customers share one address, and nobody outside can connect in. That is why the truck connects out to our server, and not the other way round. With a different network's SIM we do get a public address, but the design no longer depends on it.

Small packets on a mobile link

The tunnel connected, but larger transfers stalled. The mobile path could not carry full-size network packets. Only when we reduced the packet size inside the tunnel considerably did the remote desktop to the truck PC become usable.

The usual protocol did not survive

VPN tunnels normally use UDP. On the mobile network, UDP traffic suffered interference on the carrier side, so we run our tunnel over TCP instead. It is slightly less efficient, but it works.

It must restart itself

A dashboard that stops at 2 a.m. is no use. The dashboard runs as a system service that restarts by itself within seconds if it ever stops. The remote buttons are built so that a lost connection can never leave anything switched on (Part 3).

The whole chain

From a pushbutton to a web page

That completes the series. Four small PLCs switch everything that carries current (Part 1). The suspension controller measures position, movement and weather, and gives the whole truck one clock (Part 2). The radar controller watches the area around the truck, backs up the SCADA, and is the gateway to the outside world (Part 3). The CAN bus controllers listen to the Iveco's own computers (Part 4). And the dashboard brings it all to a screen anywhere in the world.

The batteries behind all of this have their own series: The energy account, about how much energy we carry, how the batteries cope, and where the energy comes from.

None of it was built in one go, and none of it is finished. That is the point of a truck like this.

The series

How the truck thinks