Skip to content

SiteTrackingFleet reference stack ​

Bench test

Pending bench test — Validation status.

Fleet dashboard for site vehicles / mobile assets. Device type: site_tracker. Detail mode: tracking.


Telemetry contract ​

KeyUnitNotes
latitude°WGS84
longitude°WGS84
speed_kmhkm/hGround speed
battery_pct%Tracker battery

Sample trackers follow a real road loop near Dewas. Position, speed, and battery change on every sample. Route history is on the tracker page (not Fleet home). Open one tracker from the Active list or the fleet map. The route is for that tracker. The time range is the Dashboard time control at the top of the preview (default Last 1h). Change it to Last 15m or Last 6h if you want a shorter or longer path. Play runs forward through the window (oldest → newest). A faint outline shows the full path; the coloured route draws under the vehicle as it moves (speed 1×–25×). Live position stays on Live position above. Latitude, longitude, and speed each have their own line chart with minimum, maximum, and average for that time range.

LimitDefaultWhat Sample does
speed_high_kmh80Speed moves a little around 42, 50, or 58 km/h, then 96 km/h for a short stretch, then back under 60. The overspeed alarm clears when speed is back under the limit. Set the limit to 60 or 80; both are crossed by the fast stretch and cleared by the slow stretch.
battery_low_pct20One tracker drops to 14%, then returns above 20%. The low-battery alarm clears when the percent is back above the limit.

Open a tracker (the device page, not Fleet home). Limits sets high speed and low battery on that tracker. You set the shared attribute. Sample writes the same number back as the client attribute about a second later, and the card shows Confirmed. Another tracker can keep a different number. The alarm uses the shared value on that tracker. Profile alarm rules still run.

A circle named Demo yard sits on the road (enter and exit alarms on, trackers only). Crossing it raises an alarm. That alarm stays until you clear it. Coming back inside the yard does not clear it by itself.


Industry map baseline (seeded) ​

Home and detail dashboards seed:

SurfaceWidgetConfig highlights
Fleet homemap (fleet-map)enableClustering, staleAfterMinutes: 15, showGeofences, lat/lon + speed/battery popups
DetailmapLive position for selected tracker
DetailrouteMapenablePlayback, detectStops, colorBySpeed, history path

Map capabilities ​

  • Clustering — MapLibre cluster layers when many trackers are on screen
  • Stale / offline — amber markers when last fix older than staleAfterMinutes; chip shows stale count
  • Geofences — overlay from GET /api/geofences (migration 0041); monitor raises enter/exit alarms (GEOFENCE_MONITOR_ENABLED)
  • Route playback — full path drawn; Play / scrub / speed move one vehicle marker along it
  • Stops / trips — client-side segmentation from speed / dwell
  • Speed colors — path segments colored by speed_kmh
  • Reverse geocode (opt-in) — Nominatim, rate-limited; enable in widget config

Reference hardware (pending bench test) ​

RoleClass / exampleProtocol
PrimaryLTE GPS tracker (Queclink / Teltonika class)MQTT / HTTP over 4G
Fleet OBDOBD-II + BLE gateway phone/edgeMQTT
Asset tagBattery GPS + LoRaWANP6 webhook
Yard Modbus GPSRare industrial GPS Modbus moduleRTU → DTU

Status: Pending bench test — primary path is P4 LTE MQTT, not Modbus.


Connectivity options ​

ProfileEdgeLinkStatus
P4Native LTE tracker4G MQTT/HTTPPending (recommended)
P6LoRaWAN GPS tagLoRa → ChirpStack → webhookPending
P5Yard gateway relays tagsWiFi / EthernetBYO
P2ESP32 + GPS UART (lab only)WiFiPending
P1Modbus GPS + 4G DTU4GBYO

Wiring — P4 (LTE tracker) ​

mermaid
flowchart LR
  AC[Autoconnecto]
  TRK[LTE GPS tracker]
  SIM[Cellular SIM]
  SAT[GNSS]
  TRK --- SIM
  TRK --- SAT
  TRK <-->|MQTT TLS| AC
StepAction
1Create device type site_tracker; copy MQTT token
2Point tracker broker to Autoconnecto; map JSON → keys
3Confirm lat/lon update interval (e.g. 10–60 s moving)
4Optional: create yard geofences on the Geofences screen, or with POST /api/geofences

Wiring — P6 (LoRaWAN) ​

Configure ChirpStack HTTP integration (device connectivity); decode payload to latitude / longitude / speed_kmh / battery_pct.


How to demo ​

  1. Open Solutions → SiteTrackingFleet. Turn Sample On (5s is fine).
  2. Fleet home: Active shows 3. The fleet map shows three markers on the Dewas road and the Demo yard circle. Markers move while Sample is On. Open a marker or open Active → a tracker row. The map counts only the Demo yard for this fleet (not other yards in the tenant).
  3. Tracker page: Live position moves on the live map. Route history covers that tracker for the Dashboard time window. Press Play — the vehicle moves forward and the coloured route draws behind it (faint outline shows the rest). Use speed 5× or 10× for a short review.
  4. Limits (lower on the tracker page): change high speed to 60 and save. About a second later the card shows Confirmed. When Sample runs the fast stretch at 96 km/h, overspeed fires. Set it back to 80 if you want.
  5. Battery: Tracker 2 drops to about 14% for a short stretch, then recovers. Low battery clears when the percent is back above the limit.
  6. Demo yard: enter and exit alarms stay until a person clears them. Do not clear them in a customer demo unless you mean to.

Use copies a clean dashboard — bind your own site_tracker devices; Sample devices are not copied.

Checklist ​

  • [ ] Device type site_tracker
  • [ ] Coordinates in decimal degrees (not scaled integers)
  • [ ] Map / routeMap widgets bind latitude / longitude / speed_kmh
  • [ ] Migration 0041_geofences.sql applied for geofence overlay + alarms
  • [ ] Reseed SiteTrackingFleet after pulling tracking seed changes

support@autoconnecto.in · founder@autoconnecto.in · +91 92121 00555 · app.autoconnecto.in