You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(xcp): add XCP master implementation with script API
Add an XCP (ASAM MCD-1 XCP) master, mirroring the CAN-TP architecture:
- src/main/xcp/xcpProtocol.ts: transport-agnostic command/response codec
covering STD, CAL/PAG, DAQ and PGM commands, with Intel/Motorola byte-order
handling. Byte layout validated against the pyXCP master test vectors.
- src/main/xcp/xcpMaster.ts: high-level XcpMaster over a pluggable transport,
negotiating slave byte order at CONNECT.
- src/main/xcp/xcpCan.ts: XCP-on-CAN transport binding on the existing CAN layer.
- src/main/worker/xcp.ts: worker script API (XcpCreateConnection, XcpConnect,
XcpShortUpload, DAQ/PGM helpers, ...) bridged via the 'xcpApi' RPC.
- nodeItem.ts: xcpApi handler dispatching whitelisted master methods.
Tests (test/xcp): 79 codec/master vectors ported from pyXCP plus 5 end-to-end
XCP-on-CAN tests over the simulate backend.
Also add ambient *?asset / *?asset&asarUnpack module declarations so the worker
webpack bundle builds (pre-existing gap that blocked npm run worker:js).
0 commit comments