ptsctl.1.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. ptsctl.1
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='psout.1.html' title=' psout.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='rkey.1.html' title=' rkey.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. ptsctl(1) Qualcomm Atheros Open Powerline Toolkit ptsctl(1)
  22. NAME
  23. ptsctl - PTS Module Controller
  24. SYNOPSIS
  25. ptsctl [options]
  26. DESCRIPTION
  27. Set attenuation level on the Qualcomm Atheros Production Test System using a local RS-232 communication port. The port
  28. settings must be configured before running this program. Settings are 9600 baud, no parity, 8 data and 1 stop bit. See
  29. datasheet http://www.weedtech.com/wtssr-m.pdf for more information.
  30. OPTIONS
  31. -f file
  32. The name of the serial port. On Linux, the name is usually &quot;/dev/ttyS[0-4]&quot;. On OS/X, the name is usually
  33. &quot;/dev/cua[0-4]&quot;. On Windows, the name is &quot;com[0-9]:&quot;. The default is &quot;/dev/ttyS0&quot; on Linux and &quot;com1:&quot; on Win‐
  34. dows. If environment string &quot;PTSCTL&quot; is defined then it takes precedence over the default serial port. This
  35. option then takes precedence over either default.
  36. -g attenuation
  37. The desired line/ground attenation in Decibels. The value may be expressed in decimal, binary, or hexadecimal.
  38. Binary varues start with &quot;0b&quot; and hexadecimal values start with &quot;0x&quot;. The default for this option is 127 dB.
  39. -n attenuation
  40. The desired line/neutral attenation in Decibels. The value may be expressed in decimal, binary, or hexadecimal.
  41. Binary varues start with &quot;0b&quot; and hexadecimal values start with &quot;0x&quot;. The default for this option is 127 dB.
  42. -p power
  43. Turn on or off the Device Under Test power. The value of power can be 1=on or 0=off. Alternately, keywords &quot;on&quot;
  44. and &quot;off&quot; can be used.
  45. -r Read and display undecorated attenuator settings on stdout. Setting appear as two decimal integers representing
  46. the attenuation in decibels. The line/neutral setting appears first then the line/ground setting. This option is
  47. independent of options -n and -g. If this option is present and the other are missing then settings are display
  48. but not changed. If this setting appears with either or both of the other two then the settings are changed then
  49. read and displayed.
  50. -w wait
  51. Wait time in milliseconds. Serial I/O operation are slow and a delay is needed after each write operation.
  52. Unfortunately, different operating systems require different wait times. This options lets you adjust the time.
  53. The default is 10 milliseconds which should be adequate on most systems.
  54. EXAMPLES
  55. The following example turns the Device Under Test power on and configures the line/neutral attenuator for 72dB attenua‐
  56. tion. Line ground attenation is automatically set to 127 dB since it is not specified on the command line. Option -p is
  57. not necessary if the Device Under Test power is already on.
  58. # ptsctl -p 1 -n 72
  59. The next example configures the controller for 42 dB attenuation on line/neutral and 100 dB on line/ground. There is no
  60. needed to turn the Device Under Test on again because it remains on until turned off.
  61. # ptsctl -n 42 -g 100
  62. The next example configures the controller for 56 dB attenuation on line/ground and 127 dB on line/neutral, and turns the
  63. Device Under Test off.
  64. # ptsctl -p off -g 56
  65. The next example reads the atteuator setting and displays them on decimal format on stdout. The line/neutral setting
  66. appears first then the line/ground setting. In this example, line/neutral has 55 dB attenuation and line/ground has 120
  67. dB attenuation.
  68. # ptsctl -r
  69. 55 120
  70. You can also set the attenuation and read it back using one command. The next example sets line/neutral attenuation to
  71. 10 db and line/ground attenuation to 50 db then reads the attenuator settings and displays them in the standard order,
  72. line/neutral then line/ground.
  73. # ptsctl -g 50 -r -n 10
  74. 10 50
  75. REFERENCES
  76. Information shown above applies to WTSSR-M Solid State Relay Module by Weeder Technologies, 90-A Beal Pkwy NW, Fort Wal‐
  77. ton Beach FL 32548 USA; Tel +44 850 863 5723.
  78. SEE ALSO
  79. plc(1), WTSSR-M(1), weeder(1)
  80. CREDITS
  81. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  82. Nathaniel Houghton &lt;nhoughto@qca.qualcomm.com&gt;
  83. open-plc-utils-0.0.3 Mar 2014 ptsctl(1)
  84. </pre>
  85. <div class='footerlink'>
  86. [<a href='psout.1.html' title=' psout.1 '>PREV</a>]
  87. [<a href='toolkit.html' title=' Index '>HOME</a>]
  88. [<a href='rkey.1.html' title=' rkey.1 '>NEXT</a>]
  89. </div>
  90. </body>
  91. </html>