oh1kk / kiwisdr-antenna-switch-extension Goto Github PK
View Code? Open in Web Editor NEWKiwiSDR antenna switch extension
License: MIT License
KiwiSDR antenna switch extension
License: MIT License
Currently antenna switching is open to everyone at any time. Should there be restrictions.
If there are several users online, is it OK to change antenna then. Switching affects to all listeners. Should switching be limited only if there is only one listener online?
Should antenna switching make available only to admin user? and if so, move controls to admin page?
Should there been option to lock antenna from admin panel so switching is not possible to regular users.
I have noticed some minor issues with the antenna switch extension:
Regards
Mauritz / SM2BYC
Current implementation on antenna switching on url parameter allow you to select antenna.
This works fine and is logical if you use just one antenna. If you are using antenna switch extensions in mixing mode where selecting multiple antenna simultaneously is allowed, this does antenna toggling instead of selecting single antenna.
Should there are +3, -3 commands for toggling and 3 just to select single antenna 3. If so, how multiple selection should be handled (something like ext=ant,1,3,7). Should there be mechanism to restrict antenna switching from url parameter.
Leaving this open until got idea what is way to go.
Direction finding arrays and things like that might require more than 7 antenna outputs.
Increase maximum number of antennas.
If there is more than one user online antenna switching will disrupt other users. Is it possible to lock out antenna switching when multiple user are online?
when the kiwi was restarted all inputs form the switch are activated
when the ant_switch extension is opened in the Browser all antennas going to off
i use the switch over the gpio pins
thank you for your great work ๐
Stefan
Today i found that my KiwiSDR was caught in an update loop. After removing the antenna switch extension and a rebuild of de KiWi server updating works fine.
Then i tried to reinstall the server and it worked to some degree. The extension doesn't show up within the KiWi web environment but the antenna does switch when i use the shell command. I took a look at the demo-site and found it updating too. Not sure it is the same loop problem.
regards Huub
Beaglebone green has a lot of GPIO's
http://wiki.seeed.cc/BeagleBone_Green/
And It looks that controlling gpio's should quite easy on beaglebone
http://beaglebone.cameon.net/home/using-the-gpios
Write antenna switch script that can use GPIO's
Implement uninstall.
My MS-S4A-Web antenna switch arrived today - controller just got up-/down-buttons to select the antenna port. Same goes for the web interface which works nicely over wifi.
Wrote a backend for it: https://gist.github.com/RipperFox/79a0bfa16ff49c5a3c84fbdf6f1fc6dd
Number of ports has to be configured on the controller and in the backend (lz2rr sells this type of controllers also for MS-S7 switches - so 2-7 ports are possible).
I felt a bit too smart and implemented a simple port count detection in the initialization routine (just switches through and notices the highest port number returned from the controller) , but it looks like this routine is called all the time :)
Is is normal that every switch goes through ground?
73, Sascha
Implement thunderstorm mode. In thunderstrom mode all antennas will be grounded and users cannot switch antenna until thunder strom mode is disabled.
Line 67 fails if the variable never has been set (empty string ""):
if [ $FORBIDSWITCH -eq 1 ]; then
fix could be comparing strings:
if [ "$FORBIDSWITCH" = "1" ]; then
when reset-to-default-antennas-when-no-users-online is activated you can activate thunderstorm mode but after a while it switches the default antenna on
Improvement idea based on Kenneth / SM0OHC feedback.
The kiwi extension though don't allow for antenna switching
when another extension is active.Of course you could open another browser-window and send the commands.
However, how difficult is it to make the arduino code for controlling
instead of receiving commands ?
That is 8 pushbuttons and 8 led's for status and the 28J60.
Automatic antenna selection by band.
Not sure if this is this possible at least in multiple simultaniuous listener cases.
Move button to admin page. Use freed space on GUI to antenna 8 button.
Instead of instant abort, if ms-s7-web cannot be reached, ask something like
Unable to connect MS-S7-WEB at address $IPADDRESS.
Do you want to continue extension installation anyway (y/n)?
There can be antenna which is good on VLF and other which performs better on 11m band.
What happens if you select both antennas at same time?
Need testing.
Make antenna switch part more generic and remove ms-s7-web words. Use generic antenna-switch-script which can symlinked to ms-s7-web or beage-green-gpio-antenna-switch
Helo!
I have a KiwiSDR with a BeagleBone Green labeled BBG217021635.
Got it from Seedstudio.com in January 2018.
The kit is connected to my LAN (192.168.0.110:8073) and works
just fine. Now I want to use Kari's "KiwiSDR-antenna-switch-extension"
with the Beagle-gpio-backend. I intend to use my own solution of interface
with opto-coupled relays etc.
+++++++++++++++++++++++++++++++++++++
I have tried to install the software 5 times but haven't succeded
to get this extension functioning.
1:st try: -------------------------------
I followed this instruction...
cd /root
git clone https://github.com/OH1KK/KiwiSDR-antenna-switch-extension.git
cd KiwiSDR-antenna-switch-extension
bash ./ant-switch-extension-installer
On the question:
"which backend you would like to use ?"
I just hit Return and got the "ms-s7-web" backend version, and
got the message:
"Rebuilding KiwiSDR. This will take about 13 minutes."
Then nothing happend, I had to switch off and on the Kiwi but
no Antenna switching was installed.
2:nd try: -------------------------------
I followed the above instruction chain but chose the
beagle-gpio alternative.
I got the same negative result, ie:
nothing happend, I had to switch off and on the Kiwi but
no Antenna switching was installed.
3:d try: -------------------------------
I reloaded the original BBG software from the SD-card
and went through the above procedure, but negative...
4 and 5:th try: -------------------------------
I did slight variations on the above procedures, and
again...negative !
During the tries there was no hardware attached to the
gpio-pins, does that prevent the switch-extension from
being installed ?
In such a case is there a collission between the use of
gpio-pins? gpio-pins #70-71 and #78-86 are dedicated to
other functions in certain modes!
As I see are:
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
checked in the "ant-switch-backend-beagle-gpio" ?!
("Error. GPIO pin $GPIOPIN failed to initialize.")
What can be done ???
Wkr / Lou-lovo
I found one issue with this extension.
After restart of the Kiwi server (for example after FW update) the extension isn't working.
You have to reboot the beagle bone to get it working.
In the web interface the buttons can be clicked, but they stay white and no change on the GPIO pins.
Running v1.128
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.