ROBIN -  Open Source Mesh Network Forum Index ROBIN - Open Source Mesh Network
users community forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Antenna selection

 
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> custom.sh scripts repository
View previous topic :: View next topic  
Author Message
Ads






Posted: Fri Dec 15, 2017 8:38 am    Post subject: Ads

Back to top
sankofa
Skilled User
Skilled User


Joined: 27 Jun 2008
Posts: 203
Location: Miami

PostPosted: Tue Apr 06, 2010 6:51 pm    Post subject: Antenna selection Reply with quote

Does anyone have a custom script that will allow me to switch antennas? using the diversity key? I misplaced mine.
Back to top
View user's profile Send private message
sankofa
Skilled User
Skilled User


Joined: 27 Jun 2008
Posts: 203
Location: Miami

PostPosted: Wed Apr 07, 2010 2:33 am    Post subject: Reply with quote

#!/bin/sh
sysctl -w dev.wifi0.diversity=0
sysctl -w dev.wifi0.rxantenna=2
sysctl -w dev.wifi0.txantenna=2
logger -st ${0##*/} "SWITCHED ANTENNA TO EXTERNAL PORT"

exit 0

This script was made for the Deliberant CPE 2. I am sure it can be used on others
Back to top
View user's profile Send private message
jalanmac
Skilled User
Skilled User


Joined: 24 Apr 2008
Posts: 165

PostPosted: Sun Jan 13, 2013 4:47 am    Post subject: Reply with quote

I have been trying to write a script to update antenna diversity on just the Engenius EOC and ECB hardware. In scouring the website, I tried to combine the update just by IP address and the antenna one here. This is what I ended up with, although I haven't tried it yet. Any helpful comments would be greatly appreciated as I plan to give it a whirl tomorrow.....

Thanks in advance,

#!/bin/sh

MY_IP=$(uci get node.general.IP_mesh)

case $MY_IP in
'5.XX.XX.60 5.XX.XX.94')

sysctl -w dev.wifi0.diversity=0
sysctl -w dev.wifi0.rxantenna=2
sysctl -w dev.wifi0.txantenna=2

;;

case $MY_IP in
'5.XX.XXX.164')

sysctl -w dev.wifi0.diversity=0
sysctl -w dev.wifi0.rxantenna=0
sysctl -w dev.wifi0.txantenna=0


;;

esac
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> custom.sh scripts repository All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
c d
e



Powered by phpBB © 2001, 2005 phpBB Group

Abuse - Report Abuse - TOS & Privacy.
Powered by forumup.it free forum, create your free forum! Created by Hyarbor & Qooqoa
Confirmed

Page generation time: 3.31