ECE 320 · Week 10

Modern Computer: Embedded Systems

The demo order: two buses, a service, and one question about your own capture or overlay.

Week 10 of 10 · Das Frite

ECE 320 · Week 10 · In class

The demo order: two buses, a service, and one question about your own capture or overlay.

ECE 320 · Week 10 · In class

The homework is the question you will ask your partner about their overlay, and the answer you expect.

ECE 320 · Week 10 · Lecture

A service starts without you

[Unit]
Description=Project data logger

[Service]
ExecStart=/usr/local/bin/project-logger
Restart=on-failure

[Install]
WantedBy=multi-user.target

Save it as /etc/systemd/system/project-logger.service; ExecStart needs an absolute path.

ECE 320 · Week 10 · Lecture

Driving it with systemctl

CommandDoes
sudo systemctl daemon-reloadrereads unit files after an edit
sudo systemctl enable --now project-loggerstarts it now and at every boot
systemctl status project-loggerrunning or not, and its last log lines
sudo systemctl restart project-loggerthe demo's second pass
journalctl -u project-logger -beverything it printed this boot

ECE 320 · Week 10 · Lecture

The demo, in order

  1. Show the service running after boot, with no login needed to start it.
  2. Show the first bus doing its job, then the second.
  3. Answer one question about your own capture or overlay.
  4. Restart the service and show the same two buses again.

ECE 320 · Week 10 · Lecture

A README someone else can follow

ECE 320 · Week 10 · Lab

Lab

  1. Demonstrate the project.
  2. It uses two of this course's buses and starts as a service. Answer one question about your own capture or overlay. Second pass: restart the service and show the same two buses again.
  3. Assemble the lab hand-in: The live demo of a project that uses two of the course's buses and starts as a service, and the repository README that names those two buses.

ECE 320 · Week 10 · Lab

Hand in

The live demo of a project that uses two of the course's buses and starts as a service, and the repository README that names those two buses.

ECE 320 · Week 10 · Homework

Homework

ECE 320 · Week 10 · Homework

Turn in

The question and the expected answer.

ECE 320 · Week 10 · Read

Read

On the lab site: Module 12, A whole system, has no demo hand-in. This week grades the demo and the README that names the two buses.

Arrow keys or space to move, F for full screen, N for speaker notes, Home and End for the first and last slide. Print gives one slide per page.