Skip to content

Command line

The package installs one command, eskin, with three subcommands.

Terminal window
eskin ports # list serial ports that can be the sensor
eskin stream # print frame statistics
eskin viz # start the live visualiser

stream and viz accept these options.

Option Default Meaning
-p, --port PORT automatic The serial port.
--no-calibrate off Do not record a baseline at start.
--threshold N 60 Set values below N counts to 0.
--rotate K 1 Turn each frame clockwise by K quarter turns. See Orientation.

The port is found automatically only when exactly one USB serial device is connected. If more than one is connected, the command stops and lists the ports. Then use --port.

Unless you use --no-calibrate, each command records a baseline of 20 frames at start. Do not touch the pad during that time.

Prints one port on each line. Bluetooth ports are not included. The command lists all USB serial devices, not only e-skin boards.

Prints one line that updates for each frame:

seq=412 max= 860 sum= 15240 fps= 55.8 resyncs=0
Field Meaning
seq Frame count since the port was opened.
max, sum Maximum and sum of the corrected values.
fps Mean frame rate since the start.
resyncs How many times the parser skipped bytes. See Limits of the data link.
Option Meaning
-n, --frames N Stop after N frames.
--ascii Draw the 48×48 grid as text in the terminal.

Starts the live visualiser and opens it in your browser.

Option Default Meaning
--host HOST 127.0.0.1 The address that the web server listens on.
--http-port PORT 8765 The port of the web server.
--no-browser off Do not open the browser.
--size-mm MM 20 Side length of the pad. Only the page title uses it.
Code Meaning
0 Success.
1 No port, more than one port, or no data from the sensor. The message says which.
130 Stopped with Ctrl-C.