This app will emulate eye tracker hardware and send commands to serial port.
Specifically, this app does the following:
- Randomly select one of 3 types of commands
- Send the command to serial port (
COM2
by default) - Pause for a random interval
- Repeat
The 3 types of commands are described in the Eye Tracker App documentation.
usage: run.py [-h] [--port PORT] [--rate RATE] [--min-interval MIN_INTERVAL] [--max-interval MAX_INTERVAL]
Serial communication emulator
options:
-h, --help show this help message and exit
--port PORT Serial port (default: COM2)
--rate RATE Baud rate (default: 9600)
--min-interval MIN_INTERVAL
Min interval in milliseconds between commands (default: 500)
--max-interval MAX_INTERVAL
Max interval in milliseconds between commands (default: 4000)