Skip to end of metadata
Go to start of metadata

The TransferJet Demo Application has a number configuration options which may be set in the gui.conf configuration file, found in the /home/root directory on the board.  This article explains what options are available and how to modify them.

Example configuration file gui.conf

The demo application comes pre-installed with a default configuration file called gui.conf.

 

gui.conf

[tjet]
host=localhost
video_bandwidth=5000000
bench_block_size=455000
reporting_period_ms=2000

[console]
enabled=false

[http]
enabled=false

[button]
enabled=true
device=gpio-keys.26

[ui]
enabled=true
hide_mouse_cursor=true
video_output=mfw_v4lsink

 

This file has been tuned for the ICO-TTJ-500 platform and to give optimal performance over the TransferJet link.

Configuration options

ModuleOptionTypeDefaultUnitsDescription
tjethostStringlocalhost 

The demo application may be run separately on a Linux PC rather than on the hardware platform e.g., no display available in hardware. In this case set this to the hostname or IP address of the target board.

The host must be running tjetObexService.

portInteger5050 The port number on which the tjetObexService daemon is listening for TCP connections.
video_bandwidthInteger5000000Bits per secondNominal allocation of video bandwidth used by Obex Client for sending video data to Obex Server. This must exceed the required video bandwidth for playback to avoid buffer underrun errors at the Obex Client.
bench_block_sizeInteger65536BytesNominal data block size used for transporting benchmark packets over the TransferJet Obex link. It may be tuned to optimized performance. For example, each Obex data transfer has a certain overhead for initiating a data transfer so choosing a larger number is generally better.
reporting_period_msInteger500MillisecondsHow often the daemon reports (and resets) benchmark throughput metrics.
disk_interface_typesListusb Comma separated list of storage device interface types to filter for selection. The list may be empty which means any storage device interface type can be used. Otherwise only the listed storage device types are considered. The permitted values that may be enumerated are: virtual, ata, ata_serial, ata_serial_esata, ata_parallel, scsi, usb, firewire, sdio, platform.
disk_device_filesListNone Comma separated list of device files to filter for selection. The list may be empty which means any device file can be used. Otherwise only the listed storage device files are considered. Storage device files normally take the form /dev/sdXp where X is the driver letter and p is the partition number e.g., /dev/sda1.
uienabledBooleantrue Allows the UI component to be enabled/disabled. This may be useful if you just want to see the message console.
video_widthInteger250PixelsNominal width of video display portion of screen.
video_heightInteger250PixelsNominal height of video display portion of screen.
video_outputStringxvimagesink 

This option is platform-dependent and defines a GStreamer video output sink entity. For example, i.MX6 can use mfw_v4lsink or glimagesink.

video_fileStringm84_1.mpg The file name used by the Obex Client for sending video data to the Obex Server. This file must be installed in the applications ui/data directory.
hide_mouse_cursorBooleanfalse If no mouse is attached (e.g., using button press)
font_sizeInteger17 Nominal font size used where text is rendered in the UI component e.g., TX speed, RX, speed, link status, RSSI and speedometer.
video_vflipBooleanfalse 

The default vertical orientation of the display. Setting to true will flip the display vertically.

Note: If you intend to play video we recommend using glimagesink when combined with this setting.

video_displayString:0 X window manager display identity upon which to apply video operations.
button  enabledBooleantrue If you are using a mouse then you can disable the button press module.
perf_key_assignmentStringKEY_POWERKEY_POWER
KEY_VOLUMEUP
KEY_VOLUMEDOWN 
Platform-dependent. Select one of the allowed key press assignments for toggling the performance benchmark function.
video_key_assignmentStringKEY_POWERKEY_POWER
KEY_VOLUMEUP
KEY_VOLUMEDOWN 
Platform-dependent. Select one of the allowed key press assignments for toggling the video function.
vflip_key_assignmentStringKEY_VOLUMEUPKEY_POWER
KEY_VOLUMEUP
KEY_VOLUMEDOWN 
Platform-dependent. Select one of the allowed key press assignments for toggling vertical screen flip.
file_key_assignmentStringKEY_POWERKEY_POWER
KEY_VOLUMEUP
KEY_VOLUMEDOWN
Platform-dependent. Select one of the allowed key press assignments for toggling vertical screen flip.
perf_key_press_durationInteger0MillisecondsRequired number of milliseconds to hold down the key assignment to activate the performance function.
video_key_press_durationInteger300MillisecondsRequired number of milliseconds to hold down the key assignment to activate the video function.
vflip_key_press_durationInteger0MillisecondsRequired number of milliseconds to hold down the key assignment to activate the screen vertical flip function.
file_key_press_durationInteger2000MillisecondsRequired number of milliseconds to hold down the key assignment to activate a file transfer.
deviceStringgpio-keys.24 This option is platform-dependent and defines the virtual evdev input device used for reading key press events.
consoleenabledBooleantrue The console screen may be enabled to show transport messages from tjetObexService.