This shows you the differences between two versions of the page.
|
rasb:lab:02 [2026/06/24 18:28] cezar.zlatea [Instructor Timing] |
rasb:lab:02 [2026/06/24 18:34] (current) cezar.zlatea [Exercise 1: Identify The Renode Scenario] |
||
|---|---|---|---|
| Line 278: | Line 278: | ||
| - Which output file contains firmware UART logs? | - Which output file contains firmware UART logs? | ||
| - | Expected answers: | + | hints: |
| * wiring file: ''renode/sensor_i2c.repl''; | * wiring file: ''renode/sensor_i2c.repl''; | ||
| Line 410: | Line 410: | ||
| - Which method is easier to tune if the data distribution changes? | - Which method is easier to tune if the data distribution changes? | ||
| - | Expected discussion: | + | hint: |
| * the threshold filter catches large absolute outliers and large immediate jumps; | * the threshold filter catches large absolute outliers and large immediate jumps; | ||
| Line 426: | Line 426: | ||
| - | ===== Instructor Reference ===== | ||
| - | |||
| - | The completed solution is stored separately from the student starter: | ||
| - | |||
| - | <code> | ||
| - | reference/firmware/main.c | ||
| - | </code> | ||
| - | |||
| - | The student TODO file remains: | ||
| - | |||
| - | <code> | ||
| - | firmware/main.c | ||
| - | </code> | ||
| - | |||
| - | To validate the reference without modifying the starter permanently: | ||
| - | |||
| - | <code bash> | ||
| - | sg docker -c 'DOCKER_HOST=unix:///var/run/docker.sock docker run --rm --entrypoint /bin/bash \ | ||
| - | -v "$PWD":/host:ro renode_dt-digital-twin:latest \ | ||
| - | -lc "cp /host/reference/firmware/main.c /workspace/firmware/main.c && /workspace/scripts/entrypoint.sh"' | ||
| - | </code> | ||
| - | |||
| - | If the current shell already has Docker group membership, the outer ''sg docker -c'' wrapper is not needed. Keep ''%%DOCKER_HOST=unix:///var/run/docker.sock%%'' if Docker points at a stale rootless socket. | ||
| ===== Common Problems ===== | ===== Common Problems ===== | ||
| Line 486: | Line 463: | ||
| This is expected. The starter code reads the sensor but does not yet implement the threshold and model decisions correctly. | This is expected. The starter code reads the sensor but does not yet implement the threshold and model decisions correctly. | ||
| - | |||
| - | ===== What To Submit ===== | ||
| - | |||
| - | For the practical part, submit: | ||
| - | |||
| - | * answers to Exercises 1 and 2; | ||
| - | * the implementation of the threshold filter; | ||
| - | * the implementation of the model score and model keep/drop decision; | ||
| - | * the final summary line; | ||
| - | * a short explanation of why the two methods disagree at ''seq=2'' and ''seq=7''. | ||