jks
About
- Username
- jks
- Joined
- Visits
- 35,586
- Last Active
- Roles
- Member, Administrator, Moderator
- Points
- 600
Reactions
-
Antenna switch | Kits | Commercially available?
Okay, the bug is that where you say
echo "Selected antenna: $sel"
you need to sayantennas
i.e. plural. This is because most of the backends have the possibility of mixing antennas and hence returning multiple antennas selected at the same time. The parsing of the response is fixed and looks for "antennas" specifically.Your script is very good. I had the impression you didn't quite know what to do. But it's absolutely fine. Here's a version with a simulation mode (
SIM=1
) I used to find the problem without actually having the raas4 hardware: -
Antenna switch | Kits | Commercially available?
What happened to your previous script? It was much closer to being correct. That vibe thing is crap.
Your AntSW_ShowBackend function needs to return info in the exact format as shown below (example from the beagle-gpio backend). A version number as second parameter is missing. The number of channels 3rd parameter is missing the "ch" directly after the number. A "mix" or "nomix" 4th parameter needs to indicate if the switch can mix antenna selections.
Get rid of that
case ... esac
stuff at the end.AntSW_ShowBackend() { ... echo "beagle-gpio v2.0 10ch mix not-applicable" ... }
-
"Content-Length" and "Transfer-Encoding" headers sent at the same time, breaking Nginx proxy [fixed]
-
Alpha (RSDN-20) navigation: Krasnodar, Novosibirsk, Khabarovsk active
-
SNR Measurement Issue, Perhaps? [fixed in v1.811]