Antenna switch module - Netshield

I have two different issues using the antenna switch extension.

Running fw/sw versions are 1.821 and D11.11

From the command line the switch is acting as expected:

debian@kiwisdr:~$ curl http://192.168.1.35/?cmd=+3 

3

debian@kiwisdr:~$ curl http://192.168.1.35/?cmd=+4 

4

It seems to me the configuration is correct:

First issue: sometimes the antenna message says grounded. Why it happens if I've choose a different setting?

Second issue: I cannot commutate the antenna from the panel.

The settings are for antenna mixing, so the message should be '?cmd=+n'.

Sniffing the packet the Kiwi is sending:

  • Hypertext Transfer Protocol

So the '+' sign is encoded as a space... how to avoid this behavior?

The receiver is accessible at iw2nke.ddns.net:8073

Comments

  • First, I am away on vacation until the end of the month. So I can't fix any problems and make any Kiwi software releases until then.

    To get a '+' I would say use a URL escape. But don't do that right now as there seems to be a bug in the new Mongoose web server package we are now using. If you do that you will brick your Kiwi on startup when it attempts to parse the curl command with the embedded URL escape.

    There is another issue. If you intend to use curl commands with antenna mixing how will you differentiate between the curl command to add or drop an antenna? Does sending '+' repeatedly just toggle the antenna state? Or does '+' select it and another character like '-' unselect it? If toggle, how can you establish a known initial state when the Kiwi server starts to keep track of the toggling? Is there are ground command like 'g' that unselects all antennas?

    I don't understand your first question.

  • I don't know if this has anything to do with the ‘+’ problem mentioned.

    I also use a ‘+’ in the switch URL and have no problems switching even with the new Mongose package.

    For me, the switchover is handled by an ESP8266 with Tasmota firmware, and the switch command for me is

    http://192.168.x.y/cm?cmnd=Power1+Off

    or

    http://192.168.x.y/cm?cmnd=Power1+On

    and it works without any problems.

    Regards, Steffen

  • My first question is: why I see this message if the thunderstorm mode is disabled?


  • The '+' case is a standard URL escape to insert a space character. And the ant switch curl processing code specifically handles that case and it works fine. What I'm talking about is the %hh URL escape which is broken. Again, don't use that for now. Otherwise you get a bricked Kiwi. And I can't help you because I'm sitting in yet another airport right now. And there is unknown Internet connectivity where I'm going.

Sign In or Register to comment.