psout(7) Atheros Powerline Toolkit psout(7)
NAME
psout - Export PIB Prescalers
SYNOPSIS
psout [options] file [>stdout]
DESCRIPTION
Export the prescaler section of a PIB file as an amplitude map suitable for input to pro‐
gram psin or the Atheros Windows Device Manager. Prescalers are stored in the PIB in
binary format but the amplitude map is in text format so that values may be changed using
an ordinary text editor. Program psin can be used to import an amplitude map.
This program is part of the Atheros Powerline Toolkit. See the AMP man page for an
overview and installation instructions.
OPTIONS
None.
ARGUMENTS
file The name of an Atheros Parameter Information Block (PIB) file. This file is not
modified. By convention, PIB files have a .pib extension but this program does not
enforce that convention and does not make any assumption based on filename or
extension but the program will reject invalid PIB files. Only one filename will be
accepted on the command line.
FILES
An amplitude map consists of 1155 frequency-amplitude pairs. Each pair consists of a deci‐
mal index and a hexadecimal scaler value. The index represents a frequecy from 1.8 mhz
through 30 mhz. The scaler represents the amplitude attenuation applied at that frequency.
The frequency and attenuation are computed as follows.
frequency = 40.96 * (index + 74)
index = (frequency / 40.96) - 74
decibels = 20 * log10 (scaler / 256)
scaler = 256 * pow (decibels / 20)
EXAMPLES
The following example prints the prescaler section of file abc.pib on stdout as an ampli‐
tude map. The output has been abbreviated here to save space. A single comment line iden‐
tifies the prescaler source file. Output may be directed to a text file, edited using a
text editor and read into the same or another PIB file with program psin.
# psout abc.pib
# file: abc.pib
00000000 00000000
00000001 00000000
00000002 00000000
00000003 00000000
...
00000027 000000D0
00000028 000000D0
00000029 000000D1
00000030 000000D1
...
00000214 00000000
00000215 00000000
00000216 00000000
...
00001154 00000000
The next example copies prescalers from file abc.pib to def.pib using a command line pipe.
# psout abc.pib | psin def.pib
DISCLAIMER
PIB file structure and content is proprietary to Atheros Communications, Ocala FL USA.
Consequently, public information is not available. Atheros Communications reserves the
right to modify PIB file structure or content in future firmware releases without any
obligation to notify or compensate users of this program.
SEE ALSO
psgraph(7), pskey(7), psin(7)
CREDITS
Charles Maier <charles.maier@atheros.com>
int6000-utils-linux Atheros Communications psout(7)