weeder(1)

πŸ’… weeder β€” the Weeder Solid State Relay Module Controller, bestie

okay so this is weeder(1) from the Qualcomm Atheros Open Powerline Toolkit, and it's literally the little guy that talks to your relay module over serial. let's get into it ✨


✨ SYNOPSIS ✨

weeder [options] [attenuation]

🌸 DESCRIPTION 🌸

So basically you're setting or getting the attenuation level on the Qualcomm Atheros Production Test System, and you do it through a local RS-232 communication port. that's it, that's the whole vibe 🫢

Here's the tea on how it decides what to do:

  • if you specify an attenuation value, the attenuator settings get changed ✨
  • if you don't specify one, the attenuator settings get read and displayed back at you πŸ’–
⚠️ important bestie: the serial port settings have to be configured before you run this program. the settings are 9600 baud, no parity, 8 data and 1 stop bit. no cap.

want more info? go look at the datasheet at http://www.weedtech.com/wtssr-m.pdf 🌈


πŸ‘‘ OPTIONS πŸ‘‘

  • -e echo β€” turn echo mode on or off. the value of echo can be 1=on or 0=off, and ngl you can also just use the keywords "on" and "off" if you're feeling wordy. Atheros recommends you always disable echo when using this program, because it speeds up relay switching. so like... do that πŸ’…
  • -m mode β€” turn the Device Under Test power on or off. the value of mode can be 1=on or 0=off. and yes, the keywords "on" and "off" work here too, she's flexible like that πŸŽ€
  • -o units β€” change the relay control module order. each individual relay control module gets assigned a digital address that you can reference using the UTF-8 letters "[A-P]" then "[a-p]". the Atheros PTS is configured so that module "B" is activated before module "A" (iconic of them), and this option lets you specify some other module order. the default value is "BA" to indicate "B" before "A" πŸ¦‹
  • -p port β€” the name of the serial port. here's the rundown per OS:
    • 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 is "com[0-9]:"

the default is "/dev/ttyS0" on Linux and "com1:" on Windows. and here's the precedence lore: if the environment string WEEDER is defined, then it takes precedence over the default serial port, and this option then takes precedence over either default. also fyi, Belkin USB-to-serial cables are named "/dev/ttyUSB0" on Linux 🌸

  • -w wait β€” 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, so this option lets you adjust the time. the default is 10 milliseconds, which should be adequate on most systems ⭐

πŸ“ ARGUMENTS πŸ“

  • attenuation β€” the attenuation in decibels. when setting the attenuator, the attenuation may be expressed in decimal, binary or hexadecimal, but when reading the attenuator it's displayed in decimal. binary values start with "0b" and hexadecimal values start with "0x" ✨

πŸ”₯ EXAMPLES πŸ”₯

this first one turns the Device Under Test power on and configures the attenuator for 72db attenuation. option -m is not necessary if the Device Under Test power is already on, iykyk.

# weeder -m 1 72

next up: this configures the controller for 42db attenuation. there is no need to turn the Device Under Test on again because it remains on until turned off. she stays on, periodt πŸ’…

# weeder 42

this one configures the controller for 56db attenuation and turns the Device Under Test off. double duty, main character energy πŸ‘‘

# weeder -m off 56

and lastly, this one displays the current attenuation on the console, because no attenuation value was specified. look at her, just reading πŸ“–

# weeder

🌈 REFERENCES 🌈

everything shown above applies to the 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 πŸ’–

amp(1), ptsctl(1), WTSSR-M(1)


🧚 CREDITS 🧚

Charles Maier


okay that's the whole page bestie, go forth and switch some relays πŸ’œ

this was weeder(1) from open-plc-utils-0.0.3, dated November 2013 β€” sending you love and low latency, mwah πŸ’…βœ¨