OpenWrt Forum Archive

Topic: wl-500g Premium:SMA external antenna not working!(..internal works ok)

The content of this topic has been archived on 2 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,
   I have new ASUS wl-500gp and successfuly installed openwrt, but I can't get external original asus antenna working:
I tried with WhiteRussian 0.9, Kamikaze 7.07, 7.09. Original mini-pci chipset(Broadcom), 2.4 kernel.
I changed wl0_antdiv variable in NVRAM as said in documantation, but when I set external R-SMA antenna ON and Internal OFF, there is no difference in signal strength if I attach external antenna or remove it.

Any ideas? Do you experiance such problems?
Should I return router to warranty service?

edited: also I get very low signals of strong networks, when doing "iwlist scan", also removing original asus antenna doesn't change signal level shown with "iwlist scan".

Thanks in advice for suggestions!
Sorry for my imperfect english smile
Kestas

(Last edited by saugumas on 4 Nov 2007, 13:12)

No, wait. Do you have signal? can you connect to the router via wlan?

If you are near the router signal strength is good even without antenna. Actually the pigtail (cable from mini-pci wireless card inside the router to ext antenna connector, a reverse SMA) acts already as antenna.If your wireless client is near the router, you can leave the antenna (i do within 5 meters).

The difference with ext antenna is: as long as you move far from the router signal strength is falling much slower as without ext antenna. If you need signal on a wider range, buy a better antenna (for the wireless client a/o router). A 5dB antenna should be enough in a building within 15 meters

I want to use external antenna, I have reverse-SMA to N-type adapter, RG213 cable, and self-made bi-quad ANT.

I tryed with original asus antenna(simple dipole), but I noticed that external antenna is not working - when I set wl0_antdiv to use external antenna, signal strength is low, no matters if I connect or disconnect ext antenna.

Hope you understood, my english is not good smile

Regards,
Kestas

(Last edited by saugumas on 9 Oct 2007, 11:56)

saugumas wrote:

but I noticed that external antenna is not working

What do you mean? Do you get connected or not?
Signal strength will be nearly the same with or without ext antenna at close distance!

I connected external antenna on 15meter cable, tried omni-directional dipole and directional quad antennas, and saw no networks.
With notebook mini-pci card and Linksys WEP54g Access Point(in client mode) I see 2-3 networks.

On wl-500gP I tried all wl0_antdiv combinations throught command line, also I tried select Left/Right on X-WRT web control interface, but "iwlist eth2 scan" says that there isn't any networks with external antenna.
But when I place wl-500gP near open window "iwlist eth2 scan" command shows networks(with external antenna disconnected).

Unhappily original asus firmware doesn't have wireless scan function.


Any ideas why this happen?


Regards,
Kestas

No, it's your external antenna then. 15m cable! Supposed, you didn't build it yourself, i can guess the electrical specifications don't fit the ones of the wl500gp wireless card.
Radio waves are generated through current peaks. It can be your antenna needs more current than the wifi card can deliver.
I never dealt with such problems, so i can't be of much help...

rAndy wrote:

No, it's your external antenna then. 15m cable! Supposed, you didn't build it yourself, i can guess the electrical specifications don't fit the ones of the wl500gp wireless card.
Radio waves are generated through current peaks. It can be your antenna needs more current than the wifi card can deliver.
I never dealt with such problems, so i can't be of much help...

you did'n understand me.
sorry, I made a mistake, cable is 10meters long. I made it myself, I have some background in RF engineering. I used good quality S400 cable (RG213 equivalent) it has 2.2dB siganl drop @ 2.45Ghz @ 10 meters length.
Linksys WEP54G access point is working OK on my CABLE. But I need USB and OPEN-WRT capabilities so I bought ASUS WL-500gP and now experiencing problem with external antenna selection as I wrote before,

maybe it's kernel or firmware bug?



Regards,
Kestas

(Last edited by saugumas on 16 Oct 2007, 09:44)

thanks, zsjoska!
My previous expiremets shows that defect described in http://www.xbitlabs.com/articles/other/ … ium_3.html is  quite possible. I don't have my router now, but soon I will, and I am going to check for this problem.


Edited: I checked - external antenna is connected to "MAIN" slot on mini-pci. The problem should be something else.

Regards,
Kestas

(Last edited by saugumas on 17 Oct 2007, 07:39)

WL-500g(p) Users, can you confirm that external antenna is working with OpenWRT?



Regards,
Kestas

(Last edited by saugumas on 19 Oct 2007, 08:04)

For me no defect as described in the article, stock ext antenna ok (wl500gp)

Did you try to change the antenna using the "wl txant" and "wl antdiv" command directly (e.g. using ssh) ?
I just experienced some problems like yours when trying to set an antenna using the X-WRT GUI. It seems it sets the wl0_txdiv and wl0_antdiv variables correctly, but the change is not visible in terms of signal strenght (I use a WRT54GL and disconnected one Antenna for testing, the other port was connected to an directional antenna).
When I applied the "wl txant" command, the difference in signal strength was huge between both ports.

/edit
I just read the postings again. Isn't the right variable to set the transmit antenna called "wl0_txant" ? "wl0_antdiv" is IMHO just to set the antenna when receiving.


cu

el-X

(Last edited by el-x on 23 Oct 2007, 18:29)

I believe I'm having the same problem.  I get exactly the same power readings (low) from across my house when I have the external antenna plugged in and when I totally disconnect it.  There appear to be settings 'txant' and 'rxant' available via wlc, but I'm not sure exactly what to set these to.  I've tried 0 and 1, but those don't seem to make a difference.

I should mention that I'm running 7.09 2.4 kernel...

(Last edited by zimm0who0net on 25 Oct 2007, 17:07)

zimm0who0net wrote:

I believe I'm having the same problem.  I get exactly the same power readings (low) from across my house when I have the external antenna plugged in and when I totally disconnect it.  There appear to be settings 'txant' and 'rxant' available via wlc, but I'm not sure exactly what to set these to.  I've tried 0 and 1, but those don't seem to make a difference.

I should mention that I'm running 7.09 2.4 kernel...

Maybe ASUS or Broadcom has changed hardware spec.. it is unlikely but possible.
I tried with X-WRT(WhiteRussian 0.9) and Kamikaze 7.09.
I tried to scan for a networks with "iwlist scan" command with external antenna connected, but it results in "No scan results". Another access point Linksys WAP54g(with original firmware) is working well and see other wireless networks with same external antenna.

Situation is: I can't see existing wireless networks with wl-500gp in sta or ap mode on external dirctional antenna, changing wl0_antdiv nvram variable didn't help.
Can more wl-500g(p) users confirm such problem?

(Last edited by saugumas on 4 Nov 2007, 13:20)

Another very strange thing is that "iwlist wl0 scan" reporting very low signal of strong networks.
I put my notebook near wl-500gp and notebook shows signal level of -45dB, but wl-500gp "iwlist scan" shows only -75dB. That means notebook is receiving 30dB(1000 times!) stronger signal. Also if I remove asus original external antenna signal doesn't change at all.
I tried "wlc rxant", "wlc txant", "nvram set wl0_antdiv", "nvram set wl_antdiv", "nvram set wl0_txdiv" combinations, tried with commit changes with "wifi", "nvram commit" but no results, these commands didn't change anything.
Also there is interesting thing: txpower is changing only with "iwconfig wl0 txpower xx", but editing nvram doesn't change output power level.

Also I can't switch txpower "on" when I am in sta (repeater) mode, I only can set power "on/off" in ap mode.

p.s. I checked, external antenna cable is connected in "MAIN" socket on mini-pci card.

my nvram:

root@OpenWrt:~# nvram show | grep wl
wl_radius_port=1812
wl_mode_x=0
wl0_frameburst=0
filter_wl_default_x=ACCEPT
wl_wdsapply_x=0
wl_gmode_protection_x=0
wl0_akm=none
wl_maxassoc=128
wl0_guest_key1_1=
wl0_phrase_x=
wl_phytypes=
wl0_infra=1
wl0_country_code=DE
wl_infra=1
filter_wl_time_x=00002359
wl_maclist_x=
wl_radio_x=1
wl0_wme_sta_be=15 1023 3 0 0 off
wl_guest_auth_mode_1=open
wl_radius_ipaddr=
wl0_gmode_protection_x=0
wl0_ifname=eth2
wl0_guest_wpa_gtk_rekey_1=0
wl0_wme_sta_bk=15 1023 7 0 0 off
wl_wdsnum_x=0
wl_net_reauth=36000
wl0_mrate=0
wl_guest_crypto_1=0
wl0_mode=sta
wl_guest_key2_1=
wl0_ap_isolate=0
wl0_radio_x=1
wl_mrate=0
wl_akm=
filter_wl_date_x=1111111
wl0_wme_no_ack=off
wl0_gmode=1
filter_wl_icmp_x=
wl_gmode=1
wl0_dtim=1
wl0_ssid=default
wl_wme_sta_vi=7 15 2 6016 3008 off
filter_wl_dstport_x=
fw_wl_enable_x=0
wl0_macnum_x=0
wl_wme_ap_be=15 63 3 0 0 off
wl0_dfs_preism=60
wl_plcphdr=long
wl_wme_sta_vo=3 7 2 3264 1504 off
wl_macmode=disabled
wl_wme_ap_bk=15 1023 7 0 0 off
wl0_key1=
wl_phytype=b
wl0id=0x4320
wl0_guest_key4_1=
wl0_key2=
wl_lazywds=0
wl_guest_key_1=1
wl0_guest_auth_mode_1=open
wl0_key3=
wl_dfs_postism=60
wl0_wdslist_x=
wl0_key4=
wl_auth_mode=open
wlan_ipaddr=192.168.21.1
wl0_radio_power_x=17
wl_wpa_psk=
filter_wl_num_x=0
wl0_wme_ap_vi=7 15 1 6016 3008 off
wl_mode=ap
size: 12015 bytes (20753 left)
wl0_wdsapply_x=0
wl0_closed=0
wl0_plcphdr=long
wl0_rate=0
wl0_macmode=disabled
wl_wpa_gtk_rekey=0
wl0_radioids=BCM2050
wl0_wme_ap_vo=3 7 1 3264 1504 off
wl0_phytype=g
wl0_lazywds=0
filter_wl_dstip_x=
wl0_guest_enable=0
wl0_afterburner=off
wl0_antdiv=0
wl_chan_list=1 2 3 4 5 6 7 8 9 10 11 12 13
wl_wds_timeout=1
wl0_radio_time_x=00002359
wl0_mode_x=0
wlan_ifname=eth1
wl_ssid=default
wl_dtim=1
wl_mode_ex=ap
wl0_wpa_psk=
wl0_guest_ssid_1=guest
wl_macapply_x=Both
wl_guest_wpa_psk_1=
wl_key1=
wl_guest_key1_1=
wl_key2=
wl0_unit=0
wl_key3=
wl_country_code=DE
wl_key4=
wl0_txpwr=7
wl_hwaddr=
wl_guest_wep_x_1=0
wl0_net_reauth=36000
wl0_mode_ex=ap
wl0_radio_date_x=1111111
wl0_wds=
filter_wl_proto_x=
wl_rate=0
wl0_reg_mode=off
wlan_netmask=255.255.255.0
wl_phrase_x=
wl0_wep_x=0
wl0_radius_port=1812
wl0_wme=off
wl0_auth=0
wl0_guest_key3_1=
wl0_radius_ipaddr=
wl0_wme_sta_vi=7 15 2 6016 3008 off
wl_country=
wl_wep_x=0
wl0_wme_sta_vo=3 7 2 3264 1504 off
wl_rateset=default
wl_crypto=tkip
wl_radius_key=
wl0_maxassoc=128
wl_unit=0
wl0_phytypes=g
wl0_frag=2346
wl0_wep=disabled
wl_guest_phrase_x_1=
wl0_distance=200
wl0_country=
wl_wdslist_x=
wl_wds=
wl0_rateset=default
wl_guest_key4_1=
wl_wme=off
wl0_ssid2=default
wl_wme_ap_vi=7 15 1 6016 3008 off
filter_wl_srcip_x=
wl0_wdsnum_x=0
wl_auth=0
wl_ssid2=default
wl_guest_wpa_gtk_rekey_1=0
wl_wme_ap_vo=3 7 1 3264 1504 off
wl_frameburst=0
wl0_guest_phrase_x_1=
wl_macnum_x=0
wl0_macapply_x=Both
wl0_rts=2347
wl_ifname=
wl_wep=disabled
wl_guest_enable=0
wl0_maclist_x=
wl0_guest_wpa_psk_1=
wl_gmode_protection=off
wl0_wpa_gtk_rekey=0
wl_radio_time_x=00002359
wl_frag=2346
wl0_key=1
wl_preauth=1
wl_maclist=
wl_guest_ssid_1=guest
filter_wl_srcport_x=
wl0_guest_key2_1=
wl_wme_sta_be=15 1023 3 0 0 off
wl0_guest_key_1=1
wl_radioids=
wl0_dfs_postism=60
landevs=vlan0 wl0
wl0_radio=1
wl_corerev=
wl_channel=0
wl0_bcn=100
wl_wme_sta_bk=15 1023 7 0 0 off
wl0_hwaddr=00:1A:92:7E:63:7D
wl_radio=1
wl_afterburner=off
wl0_preauth=1
wl0_gmode_protection=1
wl_radio_date_x=1111111
wl0_maclist=
wl0_guest_wep_x_1=0
wl_rts=2347
wl_ap_isolate=0
wl_wme_no_ack=off
wl0_radius_key=
wl0_wme_ap_be=15 63 3 0 0 off
wl_radio_power_x=17
wl0_txdiv=0
wl0_corerev=9
wl_key=1
wl0_channel=0
wl_guest_key3_1=
wl0_wds_timeout=1
wl0_wme_ap_bk=15 1023 7 0 0 off
wlan_hardware_present=yes
wl_dfs_preism=60
wl0_auth_mode=open
wl_closed=0
wl0_crypto=tkip
wl_bcn=100
wl_reg_mode=off
wl0_guest_crypto_1=0
wl_antdiv=0

Sorry for my bad english,

Regards,
Kestas

(Last edited by saugumas on 4 Nov 2007, 13:15)

setting variables in nvram doesn't have an immediate effect and, unless a 'nvram commit' was issued, the settings are forgotten at the next system (re-)boot. The drivers that control the radio chip in Kamikaze take their input basically from the network and wireless config files; nvram settings is something of the whiterussian firmware but also there only had their effect upon execution of the 'wifi' radio interface binary that looked at a series of nvram variables for input.
Immediate effect should have the iwconfig and wl (broadcom specific) commands. Antenna switching should be accomplished by the 'wl txant' (transmission: fixed 0 | 1, or to follow last successful reception antenna: 3) and 'wl antdiv' commands (reception: fixed 0 | 1 or to choose best signal: 3). If these commands don't work there must be an incompatibility between the broadcom radio circuit as implemented on the mini-PCI board in the Asus (not working according to your reports), and on the motherboard of e.g. a wrt54gl (where these settings work).
The 'wl rssi' command may produce confusion where signals from various sources are received. To be specific you can issue 'wl rssi <mac number>' to get the value of a particular radio. The values are in dBm, a logarithmic factor relative to a reference power level.
A less negative number is stronger than a more negative number. The noise floor is somewhere in the - 95 realm in case of a wrt54gl. In the -60 - -70 range or stronger one can start using full 54M speed in my experience.

Maybe somebody can switch his router to MAIN antenna and post /etc/config/wireless and /etc/config/network, files and nvram settings?
Try to unscrew external antenna and write how much your signal has changed(this is for checking if you really have switched to external antenna).


Regards,
Kestas

(Last edited by saugumas on 5 Nov 2007, 18:40)

I tried on freshly installed Kamikaze 7.09, and found out that wlc method to set diversity is non-working on external(MAIN or "0") antenna.
"wlc rxant"  and "wlc txant" controls only internal antenna("1"), but if I try to set external antenna("0") using "wlc rxant 0" and "wlc txant 0" I get very low signals, both ways, uplink and downlink.

Broadcom Users, can you confirm such behavior of "wlc" or any other method for setting receiving and transmitting antennas?

If external antenna can't be used in OpenWrt, it's quite serious problem, internal antenna has poor characteristics, and bigger problem is that you can't use any directional ant.
Maybe it's bcm43xx driver bug?


edited: look like same problem, still no solution: http://wl500g.info/showthread.php?t=923 … =diversity


sorry for my bad english,
Kestas

(Last edited by saugumas on 6 Nov 2007, 21:19)

I had a success with rxant and txant configuration variables. I used 14dBi external antenna for long range link in client mode. You don't have to call wlc to do that. /lib/wifi/broadcom.sh will take care of it. IIRC, possible antenna settings are 1|2|3, not 0|1|3 as doddel suggested. So in "config wifi-device wl0" section you'll need "option rxant 1" and "option txant 1".
1 is antenna main (connected to chasis RP-SMA connector)
2 is antenna ext (not connected)
3 is diversity (default behavior)

I'm 100% sure that it works, because I have 2 WL-500GP boxes placed 1m apart - one is uplink with 14dBi panel antenna in client mode, other is bridge mode ap (omni antenna) different channel, different network. With default behavior (diversity) my uplink box switched to antenna 2 and could not connect to uplink ap, because signal from ap box was stronger than from uplink. Changed rxant and txant settings and that fixed it.

Of course now I switched to Atheros AR5006XS based NICs, because Broadcoms are crap. For atheros configuration options for antenna selection should be "option rxantenna 0", "option txantenna 0".

Labvakar, Pow! Greeings form neighborly Lithuania wink

Why do you think that Broadcom is so bad, you said that it is working for you, do you have any problems?

I'am running latest Kamikaze svn 2.6 kernel on my wl500-gP with b34/mac80211 driver in sta mode. It shows signal level ~ -70dBm (a laptop next to it is ~ -30dBm).

Does someone know how to select different antenna with this driver?

Correction. It's

option rxant 0
option txant 0

for Broadcom and

option rxantenna 1
option txantenna 1

for Atheros.

saugumas, I switched to Atheros because of superior radio sensitivity and better SNR.

The discussion might have continued from here.