Skip to content

dbc: current layouts for PCS_dcdcBusStatus (0x2B4) and UI_locationStatus (0x309) - #277

Open
ehoeve786 wants to merge 1 commit into
softwiredtech:mainfrom
ehoeve786:fix/dbc-stale-layouts
Open

ehoeve786 wants to merge 1 commit into
softwiredtech:mainfrom
ehoeve786:fix/dbc-stale-layouts

Conversation

@ehoeve786

Copy link
Copy Markdown
Collaborator

Two messages in bus_1_tesla_vehicle.dbc (Android and iOS copies) still had layouts from older firmware. Nothing in the app reads either one today, so this changes no behaviour; it keeps anyone building on them from decoding wrong values.

0x2B4 PCS_dcdcBusStatus: the old 5-byte layout reads a 16 V battery as about 22 V. On current firmware (2025.20.8 and 2026.x, Model 3 and Model Y) it is 6 bytes:

  • PCS_dcdcLvBusVolt 0|13 × 0.01 V (DC-DC sensed LV bus)
  • PCS_dcdcHvBusVolt 16|14 × 0.1 V
  • PCS_dcdcLvOutputCurrent 32|13 signed × 0.1 A

The layout follows the firmware, not the battery type; 0–81.91 V covers 12 V and 16 V cars.

0x309: was still described as DAS_object. On current firmware the gateway sends UI_locationStatus on this id:

  • UI_latitude 0|28 signed × 1e-6 deg
  • UI_longitude 28|29 signed × 1e-6 deg
  • UI_gpsAccuracy 57|7 × 0.2 m (127 = SNA)

The old DAS_object signals and their value tables are removed; the message cycle time is 1000 ms.

Testing: CAN logs from a legacy Model Y on current firmware (DashKit, full-bus capture), decoded with the app's own CANParsers:

  • 0x2B4: LV bus 15.8–16.0 V (16 V battery); HV bus 360–372 V, matching BMS_hvBusStatus pack voltage 361–377 V on the same drive; LV current 33–80 A.
  • 0x309: confirmed as GPS position on the car; latitude/longitude decode to the car's location with 0.8–1.8 m accuracy.
  • Bridge host tests pass with the updated DBC.

PCS_dcdcBusStatus used an older layout that reads a 16 V battery as about
22 V. On current firmware (talas9's 2026 Model Y DBC; wattline's capture)
it is 6 bytes: LV bus 0|13 x0.01 V, HV bus 16|14 x0.1 V, LV current 32|13
signed x0.1 A. Checked on a legacy Model Y CAN log: 15.8-16.0 V, HV bus
360-372 V against 0x132 pack voltage 361-377 V.

0x309 was still described as DAS_object; on current firmware the gateway
sends UI_locationStatus there (latitude, longitude, GPS accuracy), which the
same log decodes plausibly. Nothing in the app reads either message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant