Skip to main content

mrg-iot run

The whole experiment lifecycle in one guided, interactive command: set up, use, tear down.

Usage​

mrg-iot run

run asks for everything it needs as it goes. Its flags (see mrg-iot run --help) are for unattended use and apply only with --non-interactive. To script an experiment step by step instead, use the exp, cmd, stream, and file commands, which never prompt.

Details​

run is the one command that asks questions. It:

  1. Shows a numbered list of your projects and the free devices, and asks which you want.
  2. Provisions an experiment with them.
  3. Opens VLC viewers for any cameras.
  4. Drops you at the spiot_ctl > prompt with the experiment's banner: its devices, cameras, and file-server login.
  5. When you type exit (or press Ctrl-C), offers to download the experiment's files and cleans up.
run can keep your experiment

On exit run asks whether to delete the experiment and, if so, whether to delete the XDC too. Deleting the experiment also releases its hardware. A kept experiment stays deployed, so it goes on holding the hardware until you run exp undeploy or its duration runs out.

mrg-iot run choosing a project and device, naming the experiment, realization, and XDC, running exp devices at the spiot_ctl prompt, then deleting the XDC and experiment on exit

Example​

mrg-iot run

Back to the full walkthrough: Using mrg-iot.