psout.1 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. .TH psout 1 "Mar 2014" "plc-utils-2.1.6" "Qualcomm Atheros Powerline Toolkit"
  2. .SH NAME
  3. psout - Export PIB Prescalers
  4. .SH SYNOPSIS
  5. .BR psout
  6. .RI [ options ]
  7. .IR file
  8. .RI [> stdout ]
  9. .SH DESCRIPTION
  10. Export the prescaler section of a PIB file as an amplitude map suitable for input to program \fBpsin\fR or the Qualcomm Atheros Windows Device Manager.
  11. 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.
  12. Program \fBpsin\fR can be used to import an amplitude map into the original or another PIB file.
  13. .PP
  14. This program is part of the Qualcomm Atheros Powerline Toolkit.
  15. See the \fBAMP\fR man page for an overview and installation instructions.
  16. .SH OPTIONS
  17. None.
  18. .SH ARGUMENTS
  19. .TP
  20. .IR file
  21. The name of an Atheros Parameter Information Block (\fBPIB\fR) file.
  22. This file is not modified.
  23. By convention, PIB files have a \fB.pib\fR 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.
  24. Only one filename is permitted on the command line.
  25. .SH FILES
  26. An amplitude map consists of 1155 frequency-amplitude pairs.
  27. Each pair consists of a decimal \fBindex\fR and a hexadecimal \fBscaler\fR.
  28. The index represents a frequecy from 1.8 mhz through 30 mhz.
  29. The \fBscaler\fR represents the amplitude attenuation applied at that frequency.
  30. The frequency and attenuation are computed as follows.
  31. .PP
  32. \fBfrequency = 40.96 * (index + 74)\fR
  33. .PP
  34. \fBindex = (frequency / 40.96) - 74\fR
  35. .PP
  36. \fBdecibels = 20 * log10 (scaler / 256)\fR
  37. .PP
  38. \fBscaler = 256 * pow (decibels / 20)\fR
  39. .SH EXAMPLES
  40. The following example prints the prescaler section of file \fBabc.pib\fR on stdout as an amplitude map.
  41. The output has been abbreviated here to save space.
  42. A single comment line identifies the prescaler source file.
  43. Output may be directed to a text file, edited using a text editor and read into the same or another PIB file with program \fBpsin\fR.
  44. .PP
  45. # psout abc.pib
  46. # file: abc.pib
  47. 00000000 00000000
  48. 00000001 00000000
  49. 00000002 00000000
  50. 00000003 00000000
  51. ...
  52. 00000027 000000D0
  53. 00000028 000000D0
  54. 00000029 000000D1
  55. 00000030 000000D1
  56. ...
  57. 00000214 00000000
  58. 00000215 00000000
  59. 00000216 00000000
  60. ...
  61. 00001155 00000000
  62. .PP
  63. The next example copies prescalers from file \fBabc.pib\fR to \fBdef.pib\fR using a command line pipe.
  64. .PP
  65. # psout abc.pib | psin def.pib
  66. .SH DISCLAIMER
  67. PIB file structure and content is proprietary to Qualcomm Atheros, Ocala FL USA.
  68. Consequently, public information is not available.
  69. Qualcomm Atheros 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.
  70. .PP
  71. Tampering with prescaler settings may violate national or international electo-magnetic emission standards and lead to fines or penalties.
  72. Qualcomm Atheros shall not be held responsible for any consequences of modifications made to prescaler sets provided to their customers.
  73. .SH SEE ALSO
  74. .BR psgraph ( 1 ),
  75. .BR pskey ( 1 ),
  76. .BR psin ( 1 )
  77. .SH CREDITS
  78. Charles Maier <cmaier@qca.qualcomm.com>