ptsctl.1 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. .TH ptsctl 1 "Mar 2014" "plc-utils-2.1.6" "Qualcomm Atheros Powerline Toolkit"
  2. .SH NAME
  3. ptsctl - PTS Module Controller
  4. .SH SYNOPSIS
  5. .BR ptsctl
  6. .RI [ options ]
  7. .SH DESCRIPTION
  8. Set attenuation level on the Qualcomm Atheros Production Test System using a local RS-232 communication port.
  9. The port settings must be configured before running this program.
  10. Settings are 9600 baud, no parity, 8 data and 1 stop bit.
  11. See datasheet \fIhttp://www.weedtech.com/wtssr-m.pdf\fR for more information.
  12. .SH OPTIONS
  13. .TP
  14. -\fBf\fI file\fR
  15. The name of the serial port.
  16. On Linux, the name is usually "/dev/ttyS[0-4]".
  17. On OS/X, the name is usually "/dev/cua[0-4]".
  18. On Windows, the name is "com[0-9]:".
  19. The default is "/dev/ttyS0" on Linux and "com1:" on Windows.
  20. If environment string "\fBPTSCTL\fR" is defined then it takes precedence over the default serial port.
  21. This option then takes precedence over either default.
  22. .TP
  23. -\fBg\fI attenuation\fR
  24. The desired line/ground attenation in Decibels.
  25. The value may be expressed in decimal, binary, or hexadecimal.
  26. Binary varues start with "\fB0b\fR" and hexadecimal values start with "\fB0x\fR".
  27. The default for this option is \fB127\fR dB.
  28. .TP
  29. -\fBn\fI attenuation\fR
  30. The desired line/neutral attenation in Decibels.
  31. The value may be expressed in decimal, binary, or hexadecimal.
  32. Binary varues start with "0b" and hexadecimal values start with "0x".
  33. The default for this option is \fB127\fR dB.
  34. .TP
  35. -\fBp\fI power\fR
  36. Turn on or off the Device Under Test power.
  37. The value of \fBpower\fR can be \fB1\fR=on or \fB0\fR=off.
  38. Alternately, keywords "\fBon\fR" and "\fBoff\fR" can be used.
  39. .TP
  40. .RB - r
  41. Read and display undecorated attenuator settings on stdout.
  42. Setting appear as two decimal integers representing the attenuation in decibels.
  43. The line/neutral setting appears first then the line/ground setting.
  44. This option is independent of options \fB-n\fR and \fB-g\fR.
  45. If this option is present and the other are missing then settings are display but not changed.
  46. If this setting appears with either or both of the other two then the settings are changed then read and displayed.
  47. .TP
  48. -\fBw\fI wait\fR
  49. Wait time in milliseconds.
  50. Serial I/O operation are slow and a delay is needed after each write operation.
  51. Unfortunately, different operating systems require different wait times.
  52. This options lets you adjust the time.
  53. The default is 10 milliseconds which should be adequate on most systems.
  54. .SH EXAMPLES
  55. The following example turns the Device Under Test power on and configures the line/neutral attenuator for \fB72\fRdB attenuation.
  56. Line ground attenation is automatically set to \fB127\fR dB since it is not specified on the command line.
  57. Option \fB-p\fR is not necessary if the Device Under Test power is already on.
  58. .PP
  59. # ptsctl -p 1 -n 72
  60. .PP
  61. The next example configures the controller for \fB42\fR dB attenuation on line/neutral and \fB100\fR dB on line/ground.
  62. There is no needed to turn the Device Under Test on again because it remains on until turned off.
  63. .PP
  64. # ptsctl -n 42 -g 100
  65. .PP
  66. The next example configures the controller for \fB56\fR dB attenuation on line/ground and \fB127\fR dB on line/neutral, and turns the Device Under Test off.
  67. .PP
  68. # ptsctl -p off -g 56
  69. .PP
  70. The next example reads the atteuator setting and displays them on decimal format on stdout.
  71. The line/neutral setting appears first then the line/ground setting.
  72. In this example, line/neutral has \fB55\fR dB attenuation and line/ground has \fB120\fR dB attenuation.
  73. .PP
  74. # ptsctl -r
  75. 55 120
  76. .PP
  77. You can also set the attenuation and read it back using one command.
  78. The next example sets line/neutral attenuation to \fB10\fR db and line/ground attenuation to \fB50\fR db then reads the attenuator settings and displays them in the standard order, line/neutral then line/ground.
  79. .PP
  80. # ptsctl -g 50 -r -n 10
  81. 10 50
  82. .SH REFERENCES
  83. Information shown above applies to WTSSR-M Solid State Relay Module by Weeder Technologies, 90-A Beal Pkwy NW, Fort Walton Beach FL 32548 USA; Tel +44 850 863 5723.
  84. .SH SEE ALSO
  85. .BR plc ( 1 ),
  86. .BR WTSSR-M ( 1 ),
  87. .BR weeder ( 1 )
  88. .SH CREDITS
  89. Charles Maier <cmaier@qca.qualcomm.com>
  90. Nathaniel Houghton <nhoughto@qca.qualcomm.com>