Skip to main content

Session and Ownership

A board streams its data and sends its events to one PC at a time: the PC whose address was set with DEST. That PC is the board's owner.

WhatGoes to
Command replies and data linesThe PC that sent the command
Data stream (port 55151)The owner
Events (EVT …)The owner

Any PC can send commands at any time; ownership only decides who receives the stream and the events.

States of a board​

INFO reports the board state in the state field:

stateMeaning
wait_netNo network address yet
wait_headstageNo headstage connected
headstage_faultA headstage is present but cannot be identified
needs_setupReady to be configured: SETUP is required before START
readyConfigured; START is accepted
runningAcquisition is running
busyA measurement (impedance scan…) is in progress

Taking a board over​

  1. Read dest from INFO (or GET_DEST). none means nobody owns the board.
  2. Send DEST <your-ip>.
  3. The previous owner receives EVT dest taken and stops receiving the stream and the events.

Taking over does not interrupt a running acquisition or a Studio program: they simply continue, now streaming to the new owner.

Releasing a board​

Send DEST NONE. The acquisition and the program keep running, but nothing is streamed and no event is sent until a new destination is set.

How the HMCLS app uses this​

When it connects, the app reads INFO, takes DEST if the board has no owner, and runs SETUP by itself when the state is needs_setup. If another PC already owns the board, the app asks you to take control or to observe only. See Connecting to a Device.