foxsi / foxsi-4matter

Code for FOXSI-4 formatter.
https://foxsi.umn.edu/
1 stars 3 forks source link

Mock network interfaces in `systems.json` #35

Closed thanasipantazides closed 10 months ago

thanasipantazides commented 1 year ago

Why

It would be very handy to be able to test the Formatter network interfaces without anything actually plugged in (no SPMU-001/no GSE). We can approximate this with loopback testing.

To do

This will give the Formatter software something to connect to, and not error out on startup. Next, we could write a Python script to sit on the Formatter and send some fake data out when it receives certain loopback packets.

thanasipantazides commented 10 months ago

This is done. See foxsi4-commands/foxsimile_systems.json and the local Foxsimile.h/Foxsimile.cpp files.

This testing framework still needs documentation, but the essentials are done. See #49 for remaining work on this topic.