ha:sr201
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ha:sr201 [13/06/2025 22:06] – andrew | ha:sr201 [16/06/2025 23:15] (current) – [Testing from BASH] andrew | ||
|---|---|---|---|
| Line 29: | Line 29: | ||
| Below is a quick play about from BASH to test the relay with raw TCP.  '' | Below is a quick play about from BASH to test the relay with raw TCP.  '' | ||
| If you're stuck on windows you probably don't have netcat, yet another reason to upgrade to Linux. | If you're stuck on windows you probably don't have netcat, yet another reason to upgrade to Linux. | ||
| + | |||
| + | < | ||
| + | # Commands are ASCII strings that must be sent in one packet | ||
| + | # (even for TCP): | ||
| + | # | ||
| + | # 0R No operation (but return status). | ||
| + | # | ||
| + | # 1R* Close relay if it's open, wait approx 1/2 a second, open | ||
| + | # | ||
| + | # | ||
| + | # 1R Close relay if it's open. | ||
| + | # | ||
| + | # 1R:0 Close relay if it's open. | ||
| + | # | ||
| + | # 1R:n Close relay if it's open, then in n seconds (1 <= n <= 65535) | ||
| + | # open it. | ||
| + | # | ||
| + | # 2R Open relay if it's closed. | ||
| + | # | ||
| + | # Where: | ||
| + | # | ||
| + | #        R      is the relay number, ' | ||
| + | #               ' | ||
| + | #               If R is ' | ||
| + | # | ||
| + | # If the command is sent over TCP (not UDP, TCP only), the relay will | ||
| + | #    reply with a string of 8 0's and 1's, representing the " | ||
| + | #    was executed" | ||
| + | #    relay is open, ' | ||
| + | </ | ||
| + |  | ||
|  |  | ||
| < | < | ||
ha/sr201.1749852374.txt.gz · Last modified:  by andrew
                
                