Tik-76.115 Individual Project: Guinea Pig
$Id: abx_interface.html,v 1.1 1996/04/22 07:29:55 kepa Exp $

Testee UI - A/B/X Test Communication protocol

This document describes the communication protocols used between Test Logic process and GUI process to implement A/B/X Test Testee UI.

Protocol messages sent to GUI process

Here is the list of protocol messages sent to GUI process. The type of the parameter is in parenthesis. The command and parameters are separated by whitespace and each command line ends with a newline character ('\n').
ARM
ENABLE
CLOSE

ARM command tells GUI to reset the GUI and all variables.

ENABLE command tells GUI to enable the testee to give his/her answer.

CLOSE command tells GUI process to exit, closing communication socket and GUI window during the process.

Protocol messages sent by GUI process

Here is the list of protocol messages sent by GUI process. The type of the parameter is in parenthesis. The command and parameters are separated by whitespace and each command line ends with a newline character ('\n').
EVENT timestamp(float) BUTTON A
EVENT timestamp(float) BUTTON B
EVENT timestamp(float) BUTTON X
EVENT timestamp(float) BUTTON STOP
ANSWER timestamp(float) A
ANSWER timestamp(float) B

The GUI process will start sending messages after receiving the ENABLE message from test logic. It will then send any number of the EVENT messages followed by a single ANSWER message. The button events are requests from the test subject to the test logic to start or end playing samples. The timestamp parameter is a float telling the system time in seconds as returned by Python time.time() method.

ANSWER A message means testee answered A and ANSWER B message means testee answered B correspondingly.


· Communication protocols · Testee UI Architecture · Testee UI Index · Document index · Guinea Pig ·