Page 1 of 1

leds on RB133/c with R52

Posted: Sat Sep 15, 2007 1:49 pm
by cpresto
Hi all,
I'm interesting into building a CPE with rb133/c and R52.
Is there a way to connect external leds that inform about signal received? E.G. 3 leds that:
- remain witched off if CPE is not connected to its AP
- led n°1 switch on if signal > -80
- led n°2 switch on if signal > -70
- led n°3 switch on if signal > -60

any schema available?
Rgds

Re: leds on RB133/c with R52

Posted: Mon Sep 17, 2007 4:08 pm
by sergejs
Information aboit RB133c,
http://routerboard.com/pdf/rb133ugBe.pdf

You may use script with ':beep', it is possible to specify different length and frequency.
Probalbly you may consider more comfortable way to monitor signal strenght - SNMP. RouterOS provides information about signal strenght via SNMP, you may setup remote SNMP collector that will gather this data and create graphics with signal-strenght values.

Re: leds on RB133/c with R52

Posted: Mon Sep 17, 2007 10:00 pm
by cpresto
Yes,
SNMP is useful once CPE is installed at Customer's premises, but I'm looking for something to help antenna orientation during installation phase, that can be used by customer itself or an external installators.
Beep might be useful, a script need to be written in order to related RSSI (or SNR) of first entry into association table to beep lenght. Also, the beep must be disabled once installation is over :shock: . Migh it be possible to use user led in the same way? E.G. siwtched off=no signal, slow blinking=poor signal and fast blinking=good signal.

For sure the better way will be to a a voltage available on card directly proportional to first association table entry RSSI and a led bar (e.g. 3 leds) driven by this voltage. 8)

Rgds

Re: leds on RB133/c with R52

Posted: Tue Sep 18, 2007 10:31 am
by cpresto
Probably this http://wiki.mikrotik.com/wiki/LED_Antenna_Alignment might be applied, changing "blink" with ":beep".

Re: leds on RB133/c with R52

Posted: Tue Sep 18, 2007 3:58 pm
by sergejs
Well, RouterOS provides support for alignment, special mode=alignment-only exists. This mode allows you to position antennas, router will beep more frequently with better signal and vice versa for worse signal.
This script for leds was created for older RB500, because internal beeper was not available.
Settings for wireless alignment,
http://www.mikrotik.com/testdocs/ros/2. ... hp#4.13.11

Re: leds on RB133/c with R52

Posted: Tue Sep 18, 2007 4:50 pm
by cpresto
Thank you Sergejs,
is "alignment-only" supported for all HW on only for RB512?

Rgds

Re: leds on RB133/c with R52

Posted: Tue Sep 18, 2007 8:18 pm
by cpresto
I'm trying with an RB512A (500r5 series), but no beep is generated by RB, despite the fact that "test-audio" command works.
Please find here below details
[admin@MikroTik] interface wireless> info print
0 interface-type=Atheros AR5413
chip-info="mac:0xa/0x5, phy:0x61, a5:0x63, a2:0x0, eeprom:0x5003"
pci-info="00:04.0" capabilities=tx-power-control,ack-timeout-control,
virtual-ap,alignment-mode,noise-floor-
control,scanning,burst-support,nstreme,
sniffing,compression,power-channel
default-periodic-calibration=enabled
supported-bands=5ghz,5ghz-10mhz,5ghz-5mhz
....
....
[admin@MikroTik] interface wireless align> print
frame-size: 300
active-mode: yes
receive-all: no
audio-monitor: 00:00:00:00:00:00
filter-mac: 00:00:00:00:00:00
ssid-all: no
frames-per-second: 25
audio-min: -100
audio-max: -20

[admin@MikroTik] interface wireless align> monitor wlan1
Flags: A - access-point
ADDRESS SSID RXQ AVG-RXQ LAST-RX TXQ LAST-TX CORRECT
Device is connected, but it seems that no align packets are received.
If I put in into "alignment-mode only", connection with its AP (Mikrotik) is lost... :?

Any idea?

Re: leds on RB133/c with R52

Posted: Tue Sep 18, 2007 9:09 pm
by cpresto
Script
#Beep related with SNR
:global if-snr [ /interface wireless registration-table get [/interface wireless registration-table find] signal-to-noise ]
  :if (($if-snr > 0) && ($if-snr <= 15 )) do={:beep length=5s frequency=100}
  :if (($if-snr > 15) && ($if-snr <= 25 )) do={:beep length=5s frequency=150}
  :if (($if-snr > 25) && ($if-snr <= 35 )) do={:beep length=5s frequency=200}
  :if ($if-snr > 35 ) do={:beep length=5s frequency=250}
works fine, so there is something related to "alignment-only" mode that is not working properly.... may be because I'm using XR5 miniPCI?

Rgds