hplisten is a tool receive generic data from the instrument.
Once installed you can run hplisten from a terminal by writing:
Which prints out any character sent by the instrument, if any.
The available options for hptalk are:
- -d | –device=DEVICE_NAME: This option sets which serial interface will hplisten communicate with; by default it is set to ‘/dev/ttyUSB0’;
- -a | –adapter=ADAPTER: This option sets which adapter will hplisten communicate with; by default it is set to ‘prologix‘; if you don’t want to configure the adapter, because you’ve already configured it before (e.g. with hprologix), set ADAPTER to ‘none‘;
- -r | –address=PAD,[SAD]: This option sets the adapter’s address, PAD is the primary address and, SAD is the secondary address, which isn’t necessary;
- -o | –output=OUTFILE: This option tells hpkit to write the instrument’s received data to OUTFILE instead of stdout;
- -t | –timeout=TIMEOUT: set the TIMEOUT in millisecs for the serial port; by default it is set to 2000, the minimum is 100;
- -h | –help: shows the help;
- -v | –version: shows the version and license information;
Here are some examples that may be useful:
$ hplisten [...] $
Saving a raw screenshot from the instruent
$ hplisten --output=screen.bmp $
After pressing enter, you have about 2 seconds to start a print from the instrument.