Skip to content

CarLife: send the auth result unasked when the receiver sends no challenge - #40

Merged
riko2chen merged 1 commit into
mainfrom
agent/carlife-unsolicited-auth
Dec 2, 2026
Merged

riko2chen merged 1 commit into
mainfrom
agent/carlife-unsolicited-auth

Conversation

@riko2chen

Copy link
Copy Markdown
Contributor

CarLife receiver 4.3.79 (com.baidu.carlifevehicle) stalls at 30%: it no longer sends the 98376 AuthenRequest and waits for the sender's 65611 AuthenResult, the path where the sender checks the head unit after its statistics (Baidu integration guide §17.2). The same head unit with 4.0.0 code42 connects.

  • After device info, a challenging (4.x) receiver that sends no 98376 within 3 s gets 65611 {1: true}; diagnostic auth unsolicited_result=true.
  • A late 98376/98378 is still answered; a repeated 98380 is ignored so the session is established once.
  • Receivers that challenge at once are unchanged.

Tests added in CarlifeSessionTest (not run locally; CI runs them). Not yet device-tested on a 4.3 receiver.

…lenge

CarLife 4.3 receivers no longer send 98376 and wait for the sender's 65611
(the sender-checks-head-unit path, Baidu integration guide 17.2), so the
handshake stalled at 30% until handshake_timeout. If no challenge arrives
within 3 s of device info, send 65611 {1:true} and accept 98380 as usual.
A late challenge is still answered and the session is established once.
@riko2chen
riko2chen enabled auto-merge December 2, 2026 04:34
@riko2chen
riko2chen merged commit 429cfce into main Dec 2, 2026
6 checks passed
@riko2chen
riko2chen deleted the agent/carlife-unsolicited-auth branch December 2, 2026 04:36
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant