psgen.1 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. .TH psgen 1 "Mar 2014" "plc-utils-2.1.6" "Qualcomm Atheros Powerline Toolkit"
  2. .SH NAME
  3. psgen - Qualcomm Atheros Prescaler Generator
  4. .SH SYNOPSIS
  5. .BR psgen
  6. .BI [ options ]
  7. .IR input_file
  8. .SH DESCRIPTION
  9. Read a spectrum analyzer output file and write a set of computed prescaler values to stdout or directly into a PIB file.
  10. Options permit input file format specification, target chipset selection, power level flattening, gain adjustment, carrier notching and slope manipulation.
  11. .PP
  12. The spectrum manipulating options described below are applied in the following order: flattening (\fB-F\fR), tweaking (\fB-T\fR), and notching (\fB-N\fR) (in the case of multiple tweaks, they are applied in order as shown on the command line).
  13. .PP
  14. This program can also adjust the output power level adjustment PIB setting on the 6400.
  15. The gain setting as well as the prescaler values can be inserted directly into the PIB by using the \fB-P\fR option, or the user can manually insert the prescalers and gain setting using tools such as \fBpsin\fR and \fBsetpib\fR.
  16. .PP
  17. This program is part of the Qualcomm Atheros Powerline Toolkit.
  18. See the \fBAMP\fR man page for an overview and installation instructions.
  19. .SH OPTIONS
  20. .TP
  21. -\fBd \fIchipset\fR
  22. The target powerline device family (ie; chipset).
  23. Supported chipsets are \fBar6400\fR, \fBar7400\fR, \fBqca6410\fR and \fBqca7420\fR.
  24. At this point only ar6400 and ar7400 have been tested.
  25. .TP
  26. -\fBi \fIinput_format\fR
  27. Specifies the input format for the spectrum analyzer file.
  28. File format will vary depending in the analyser make and model.
  29. Valid values are: "rs" -- Rohde & Schwarz FSL-3 and ESR-7
  30. .TP
  31. -\fBF \fIlevel\fR
  32. Flatten the output power to \fIlevel\fR.
  33. \fIlevel\fR is in the units used in the spectrum analyzer trace.
  34. .TP
  35. -\fBG \fIgain_adjustment\fR
  36. Adjust the output power of the AFE by \fIgain_adjustment\fR dB.
  37. Valid values depend on the \fItarget_device\fR.
  38. .TP
  39. -\fBN \fInotch_set\fR
  40. Notch the output prescaler using the \fInotch_set\fR specified.
  41. Supported notch sets are "usa", "japan", and "none".
  42. .TP
  43. -\fBn \fInotch_guard\fR
  44. When notches are present in the spectrum analyzer input (determined by the output prescalers), psgen does not attempt to calculate the gain adjustment of \fInotch_guard\fR carriers on each side of the notch.
  45. Instead it averages \fInotch_guard\fR prescalers \fInotch_guard\fR carriers away from the notch edges and replace \fInotch_guard\fR carriers with the average value.
  46. Defaults to 3.
  47. .TP
  48. -\fBp \fIprescaler_file\fR
  49. Specify the prescalers that were in use on the device when the spectrum analyzer data file was captured.
  50. If this option is not specified, it is assumed that all entries in the prescaler are at the unity value.
  51. This file should have notched prescalers set to 0.
  52. .TP
  53. -\fBP \fIpib_file\fR
  54. Save prescalers and gain setting to pib file \fIpib_file\fR instead of outputting them to standard output.
  55. .TP
  56. -\fBr \fIx-y\fR
  57. Modify prescalers in frequency range [x,y].
  58. Other prescalers retain their previous value (see -p).
  59. Use of -r is optional, except in cases where a device utilizes a larger frequency range than captured with the spectrum analyzer (ie.
  60. psgen is run with -d ar7400, but only 0->30MHz is captured with the spectrum analyzer).
  61. By default x and y are defined by the target powerline device specified with -d.
  62. The frequencies x and y can contain suffixes M for MHz or K/k for KHz.
  63. Without any suffix they are assumed to be in Hz.
  64. .TP
  65. -\fBT \fIsf,ef,sd,ed\fR
  66. Tweak the prescaler output from sf (start frequency) to ef (end frequency) by sd (start delta) at sf, and by ed (end delta) at ef, sloping linearly in dB from sf to ef.
  67. The frequencies sf and ef can contain suffixes M for MHz or K/k for KHz.
  68. Without any suffix they are assumed to be in Hz.
  69. .TP
  70. .RB - v
  71. Output more verbose information.
  72. This option does not yet have any effect.
  73. .TP
  74. .RB - ? ,-- help
  75. Print program help summary on stdout.
  76. This option takes precedence over other options on the command line.
  77. .TP
  78. .RB - ! ,-- version
  79. Print program version information on stdout.
  80. This option takes precedence over other options on the command line.
  81. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of the Linux Toolkit you are using.
  82. .SH ARGUMENTS
  83. .TP
  84. .IR input_file
  85. The spectrum analyzer data file.
  86. Spectrum analyzer output format will depend on analyzer make and model so file format may be specified using option \fB-i\fR when executing this program.
  87. .SH EXAMPLES
  88. .PP
  89. NOTE: For the following examples the spectrum analyzer data file units are in dBm.
  90. The units of all power level adjustments match the units found in the spectrum analyzer data file.
  91. The following example outputs the prescalers for an AR6400 device with USA notches and the non-notched areas at -12dBm.
  92. .PP
  93. $ psgen -d ar6400 -N usa -F -12 rs_output.txt
  94. .PP
  95. The following example outputs the prescalers for an AR6400 device with USA notches and the non-notched areas at -12dBm to the PIB file abc.pib.
  96. .PP
  97. $ psgen -d ar6400 -N usa -F -12 -P abc.pib rs_output.txt
  98. .PP
  99. The following example outputs the prescalers for an AR6400 device with no notches, flattens the spectrum to -12dBm, and adds a slope from 10MHz to 20Mhz from -18dBm at 10MHz to -10dBm at 20MHz.
  100. The final result will be a prescaler that is flat at -12dBm except for between 10MHz and 20MHz.
  101. From 10MHz to 20MHz, the output will start at -18dBm and increase until a value of -10dBm.
  102. .PP
  103. $ psgen -d ar6400 -N none -F -12 -T 10M,20M,-6,2 rs_output.txt
  104. .PP
  105. The following example outputs the prescalers for an AR6400 device with no notches, flattens the spectrum to -12dBm, and applies an AFE gain of -4dB.
  106. The results are saved in abc.pib.
  107. .PP
  108. $ psgen -d ar6400 -N none -F -12 -G -4 -P abc.pib rs_output.txt
  109. .PP
  110. The following example outputs the prescalers for an AR7400 device with USA notches and the non-notched areas at -12dBm to the PIB file abc.pib.
  111. .PP
  112. $ psgen -d ar7400 -N usa -F -12 -P abc.pib rs_output.txt
  113. .PP
  114. The following example outputs the prescalers for an AR6400 device with no notches, flattens the spectrum to -12dBm, and adds a slope from 10MHz to 20Mhz from -18dBm at 10MHz to -10dBm at 20MHz.
  115. It then applies a tweak from 15MHz to 20MHz of -3dBm.
  116. The second tweak will shift the 15MHz to 20MHz portion of the first tweak down by -3dBm.
  117. .PP
  118. $ psgen -d ar6400 -N none -F -12 -T 10M,20M,-6,2 -T 15M,20M,-3,-3 rs_output.txt
  119. .PP
  120. The following example flattens the spectrum from 0Hz to 30Mhz to -12dBm with no notches.
  121. Other frequencies are not affected.
  122. .PP
  123. $ psgen -d ar7400 -N none -F -12 -r 0-30M rs_output.txt
  124. .PP
  125. The following example flattens the spectrum from 0Hz to 30Mhz to -12dBm with no notches.
  126. Other frequencies are not affected.
  127. The prescalers used during the spectrum analyzer trace capture are provided using option \fB-p\fR
  128. .PP
  129. $ psgen -p input_prescalers.txt -d ar7400 -N none -F -12 -r 0-30M rs_output.txt
  130. .SH DISCLAIMER
  131. PIB file structure and content is proprietary to Qualcomm Atheros, Ocala FL USA.
  132. Consequently, public information is not available.
  133. 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.
  134. .SH SEE ALSO
  135. .BR psin ( 1 ),
  136. .BR psout ( 1 )
  137. .SH CREDITS
  138. Nathaniel Houghton <nhoughto@qca.qualcomm.com>