lowRISC / lowRISC/ot-sca

[uJSON] Delay between commands

Open
#256 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Priority:P0
Dominant language
Jupyter Notebook
Stars
43
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Currently, a small timeout ([`time.sleep(0.01)`](https://github.com/lowRISC/ot-sca/blob/e20ffa3f0210cf8b568d6bae89f59e1b6587bcf3/capture/lib/ot_communication.py#L43)) between uJSON commands are needed to prevent that the receive buffers overflow and the message gets lost.
To speed up capture rate, we should get rid of this problem.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in capture/lib/ot_communication.py at the time.sleep(0.01) between uJSON commands and inspect how receive buffers are handled. Reproduce the lost-message or overflow behavior, then verify that removing the delay maintains reliable command handling while improving capture rate.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot, performance
Issue type
Bug
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.