Overview

The ABRP (A Better Routeplanner) destination lets WiCAN push live vehicle and battery telemetry directly to ABRP so trip planning and energy prediction models stay up to date. Instead of generic JSON (used by the standard HTTPS destination) the ABRP integration sends a compact URL‑encoded form payload containing only the fields ABRP cares about.

Key characteristics:

  • Form encoded payloadapplication/x-www-form-urlencoded body (lighter than JSON for small key sets).
  • ABRP token required – Each vehicle profile in ABRP uses a distinct API token.
  • Depends on Grouping – Grouping must be Enabled; otherwise no consolidated telemetry is produced.
  • Automatic field mapping – Internal WiCAN parameter names are translated to ABRP’s expected keys.
  • Multiple destinations compatible – ABRP destination can run alongside MQTT / HTTPS / other types.

Supported devices: WiCAN-PRO
Feature area: Automate → Destinations → Type: ABRP API


Quick Start

  1. Automate tab → Ensure Grouping = Enable.
  2. Add Destination → Type = ABRP API.
  3. Paste your ABRP API Token (from ABRP Settings → Live Data / OBD).
  4. Cycle (ms) = 5000 (recommended start; must be ≥ 1000).
  5. Cert Set = default.
  6. Tick Enabled.
  7. Submit Changes (bottom of page).
  8. Open ABRP app → vehicle → verify live SOC / speed updates after first interval.

1. How It Works

When enabled the firmware:

  1. Builds the grouped telemetry snapshot.
  2. Maps internal keys (speed, soc, voltage, etc.) to ABRP field names.
  3. URL‑encodes the set into a single line form body.
  4. Sends an HTTPS POST to ABRP’s telemetry endpoint (/1/tlm/send or the build’s configured path).

Differences vs generic HTTPS destination:

AspectABRP DestinationGeneric HTTPS
Body FormatForm URL‑encodedJSON
AuthABRP API tokenOptional Bearer token / none
FieldsCurated vehicle metricsAll grouped parameters
MappingInternal→ABRP key translationNo translation

2. Prerequisites

ItemDescription
ABRP AccountFree or premium at https://abetterrouteplanner.com
Vehicle addedSelect or create the vehicle to receive data
API TokenABRP Settings → Live Data → copy token (per vehicle)
Grouping EnabledAutomate top section → Grouping = Enable
Network AccessDevice must reach the Internet
(Optional) Custom Cert SetOnly if intercepting traffic via private CA/proxy

3. Adding the Destination

  1. Automate → Add Destination.
  2. Type = ABRP API.
  3. Enter API Token (exact string, no spaces). Mandatory.
  4. Cycle (ms) ≥ 1000 (start with 5000–10000 to reduce bandwidth & ABRP load).
  5. Cert Set = default.
  6. Tick Enabled.
  7. Submit Changes.
  8. Wait one interval; check ABRP Live Data view.

4. Field Mapping (Illustrative)

InternalABRP KeyNotes
socsocState of charge (%)
sohsohState of health (%)
speedspeedkm/h (fallback: vehicle_speed)
vehicle_speedspeedUsed only if speed absent
latitudelatDegrees
longitudelonDegrees
elevationelevationMeters
is_chargingis_charging1 charging / 0 not
battery_currentcurrentAmps (sign convention: discharge negative)
battery_voltagevoltageVolts
battery_tempbatt_temp°C
ambient_tempext_temp°C
powerpowerkW
car_modelcar_modelABRP vehicle code

Only available values are sent; missing metrics are silently omitted. Custom PIDs are excluded unless mapped in firmware.


5. Payload Format

Content-Type: application/x-www-form-urlencoded

Example (wrapped for readability):

utc=1730000000&soc=54.1&speed=23.4&lat=40.71278&lon=-74.00611&voltage=398.2&current=-42.3&power=16.8&is_charging=0&car_model=tesla:model3:2021

Notes:

  • utc = epoch seconds (UTC)
  • Units normalized before send (speed km/h, temps °C, power kW)
  • Current sign: negative = discharge (typical convention)

6. Rate, Backoff & Recommendations

SettingRecommendationRationale
Cycle (ms)5000–10000Good balance of freshness vs rate limits
Minimum Cycle1000Firmware enforced lower bound
Network ErrorsAutomatic backoffReduces retry storms

Lowering the interval increases bandwidth and may not materially improve ABRP predictions unless you need near real‑time nav overlays.


7. Verifying Data

  1. Open ABRP web or mobile.
  2. Select the target vehicle.
  3. Ensure Live Data / OBD input is enabled.
  4. Observe SOC, speed, position changes (moving or charging may be required for updates).

If no data after 2–3 intervals, proceed to Troubleshooting.


8. Troubleshooting

SymptomLikely CauseFix
401 UnauthorizedBad / expired tokenRe-copy from ABRP; trim spaces
No updatesGrouping off or high cycleEnable grouping; lower cycle
Missing specific fieldsPID not enabled or unsupported profileEnable Standard/Specific PID; update firmware
Position missingNo GPS feedEnsure GNSS data available
Charging status wrongMapping mismatch or outdated firmwareUpdate firmware; verify PIDs
Sporadic postsWiFi instability / backoffImprove signal; lengthen cycle
TLS failureClock driftEnsure NTP sync (System tab)

9. Best Practices

  • Dedicated token per device (revocation & auditing).
  • Avoid unnecessary proxies; they add latency.
  • Start with higher cycle; decrease only if really needed.
  • Keep firmware updated for new mappings.
  • Request additional mappings via issue with internal + desired ABRP names.

10. Minimal Checklist (TL;DR)

  1. Grouping = Enable.
  2. Add Destination → Type = ABRP API.
  3. Paste API Token.
  4. Cycle = 5000 ms.
  5. Cert Set = default.
  6. Enable + Submit.
  7. Verify in ABRP.

11. Security Notes

  • Treat API token as a secret.
  • Rotate when a device is retired or transferred.
  • Never publish raw token in screenshots/logs.

12. Version

Document version: 1.1 (reformatted to match HTTPS guide structure).