commaai / commaai/qdl.js

Support streaming data to flash partition

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
19
Forks
10
PR merge metrics
No merged PRs in 30d

Description

`qdlDevice#flashBlob` and `firehose#cmdProgram` currently expect a blob with the entire image to flash upfront

- ~~Use WebUSB from worker? https://chromestatus.com/feature/5928209916887040~~ that would be in flash
- Modify `sparse.js` to handle splitting up a `ReadableStream` into chunks for `firehose.js`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing qdlDevice#flashBlob into firehose#cmdProgram and read sparse.js and firehose.js to understand how image data is currently passed and split. Implement support for consuming a ReadableStream in chunks so the complete image is not held upfront, and verify that streamed data can still be programmed to the flash partition.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.