ptsctl(1)
π ptsctl β PTS Module Controller π
okay bestie, welcome to ptsctl(1), straight out of the Qualcomm Atheros Open Powerline Toolkit. it's a whole little vibe: you talk to a Production Test System over a local RS-232 port and set the attenuation. that's it, that's the girl. π
β¨ SYNOPSIS β¨
ptsctl [options]
πΈ DESCRIPTION πΈ
so what this does is set the attenuation level on the Qualcomm Atheros Production Test System, using a local RS-232 communication port. that's the whole plot. π¦
heads up though β the port settings have to be configured before you run this program. the settings are: 9600 baud, no parity, 8 data and 1 stop bit. like, it will not hold your hand on that one.
more info lives in the datasheet at http://www.weedtech.com/wtssr-m.pdf. go read it, i believe in you π
π OPTIONS π
-ffile β the name of the serial port. on Linux the name is usually/dev/ttyS[0-4]. on OS/X the name is usually/dev/cua[0-4]. on Windows the name iscom[0-9]:. the default is/dev/ttyS0on Linux andcom1:on Windows. but if the environment stringPTSCTLis defined then it takes precedence over the default serial port. and this option then takes precedence over either default. so it's like a whole hierarchy, very main character energy π-gattenuation β the desired line/ground attenuation in Decibels. the value may be expressed in decimal, binary, or hexadecimal. binary values start with0band hexadecimal values start with0x. the default for this option is 127 dB. no cap.-nattenuation β the desired line/neutral attenuation in Decibels. the value may be expressed in decimal, binary, or hexadecimal. binary values start with0band hexadecimal values start with0x. the default for this option is 127 dB. twins with-g, honestly π«Ά-ppower β turn on or off the Device Under Test power. the value of power can be1=on or0=off. alternately, keywords"on"and"off"can be used. pick your fighter π-rβ read and display undecorated attenuator settings onstdout. settings appear as two decimal integers representing the attenuation in decibels. the line/neutral setting appears first then the line/ground setting. this option is independent of options-nand-g. if this option is present and the others are missing then settings are displayed but not changed. if this setting appears with either or both of the other two then the settings are changed, then read, then displayed. it's giving "read and then also write, bestie" π-wwait β wait time in milliseconds. serial I/O operations are slow and a delay is needed after each write operation. unfortunately, different operating systems require different wait times. this option lets you adjust the time. the default is 10 milliseconds, which should be adequate on most systems. (key word: most π)
π₯ EXAMPLES π₯
first up: turn the Device Under Test power on and configure the line/neutral attenuator for 72dB attenuation. line/ground attenuation is automatically set to 127 dB since it is not specified on the command line. option -p is not necessary if the Device Under Test power is already on. π
# ptsctl -p 1 -n 72
next one: configure the controller for 42 dB attenuation on line/neutral and 100 dB on line/ground. there is no need to turn the Device Under Test on again because it remains on until turned off. iconic behaviour honestly β
# ptsctl -n 42 -g 100
next: configure the controller for 56 dB attenuation on line/ground and 127 dB on line/neutral, and turn the Device Under Test off. πΈ
# ptsctl -p off -g 56
next: read the attenuator settings and display them in decimal format on stdout. the line/neutral setting appears first then the line/ground setting. in this example, line/neutral has 55 dB attenuation and line/ground has 120 dB attenuation. β¨
# ptsctl -r
55 120
and you can also set the attenuation and read it back using one command. the next example sets line/neutral attenuation to 10 db and line/ground attenuation to 50 db, then reads the attenuator settings and displays them in the standard order, line/neutral then line/ground. slay π¦
# ptsctl -g 50 -r -n 10
10 50
π§ REFERENCES π§
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. π
π SEE ALSO π
go read those too, i know you will π
π CREDITS π
- Charles Maier
- Nathaniel Houghton
and that's the whole page, bestie π«Ά this was ptsctl(1) from open-plc-utils-0.0.3, dated November 2013 β yes she's a vintage queen and she still ate. πβ¨π
π¦ where this page comes from
- alpine 3.24: open-plc-utils-doc 0_git20250712-r1 Β· BSD-3-Clause-Clear
- debian bookworm: plc-utils-extra 0.0.6+git20230504.1ba7d5a0-1 Β· BSD-3
- debian trixie: plc-utils-extra 0.0.6+git20250517.7fb8ac5-1 Β· BSD-3
- ubuntu noble: plc-utils-extra 0.0.6+git20230504.1ba7d5a0-1 Β· BSD-3
- ubuntu questing: plc-utils-extra 0.0.6+git20250517.7fb8ac5-1
- ubuntu resolute: plc-utils-extra 0.0.6+git20250712.46c3506-1 Β· BSD-3
- ubuntu stonking: plc-utils-extra 0.0.6+git20250712.46c3506-1 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms