Manpage of VRUIDDTEST
Section: FreeVR Commands (1FV)
Updated: 21 August 2013
Return to Main Contents
- test the setup of a Vrui VR device daemon server.
vruiddtest [-nodata] [-p <port>] [-protocol <protocol>] [<hostname>]
The vruiddtest program is used to interface with the Vrui VRDeviceDaemon
server, which in turn communicates with any number of input devices and aggregates
the data into a single input stream.
The vruiddtest program can be used to determine how many inputs are
being served by the daemon, and if there are virtual devices (protocol-3 only),
then it will list each device with it's details.
devices and provide
Once communication is established, unless the -nodata option is
given it will then report all the incoming values as they are received.
The program is terminated by pressing the interrupt key (usually ^C),
or by pressing the first two buttons on the list of buttons.
The -nodata option allows communication to be established with the
server, report all the details that are received, including any potential
virtual device information, and then close the communication and quit.
- -p <port number> | -port <port number>
The -p option allows one to specify which port on the server the
Vrui VRDeviceDaemon is listening for client requests. The usual default
value is 8555, but this may be overriden with the VRUIDD_PORT
environment variable (below).
- -protocol <protocol number> | -prot <protocol number>
The -protocol option allows one to specify with which of the
Vrui VRDeviceDaemon protocols to communicate with the server.
By sending a protocol number to the VRDeviceDaemon, it will generally
acknowledge this and ajdust what protocol is will communication with.
However, the original protocol (what we will refer to as protocol-0)
does not have this acknowledgement sequence. To accomodate this,
vruiddtest will shift from protocol-0 to protocol-1 if it
fails to connect to the server within 5 attempts.
In general, Vrui library versions have adopted new protocols when the
major version number changes:
* The protocol for Vrui 1.x was not specifically assigned a protocol
number, so for the purpose of interfacing with various versions of Vrui,
we have deFacto chosen to refer to this as protocol-0.
The default is to use protocol-0, which will shift to protocol-1 if
unable to connect.
The <hostname> optional argument is the name of IP address of the
computer which is hosting the Vrui VRDeviceDaemon. The usual default
value is localhost, but this may be overridden with the
VRUIDD_HOST environment variable (below).
Default values can be overridden using shell environment variables.
This allows one to continue to use the same values without entering
them on the command line each time.
Set the default value for what hostname (or IP address) to communicate
with to connect to the Vrui VRDeviceDaemon.
Set the default value for what port number to communicate over when
connecting to the Vrui VRDeviceDaemon.
Set the default value for what protocol to use for communicating
with Vrui VRDeviceDaemon.
- Establish a connection, report information and quit.
% vruiddtest -nodata
- Report inputs from the computer "vruiserver.indiana.edu":
% vruiddtest vruiserver.indiana.edu
- Set the default protocol be "2" and report events:
% setenv VRUIDD_PROTOCOL 2
Add a screen-rendering option
The source code for vruiddtest is in the "vr_input.vruidd.c" file,
which also handles the vruidd input interface to the FreeVR library.
Copyright 2013, Bill Sherman, All rights reserved.
- ENVIRONMENT VARIABLES
- SEE ALSO
This document was created by
using the manual pages.
Time: 05:02:19 GMT, December 13, 2013