Community discussions

MikroTik App
 
User avatar
cpresto
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Tue Jul 18, 2006 3:12 pm

leds on RB133/c with R52

Sat Sep 15, 2007 1:49 pm

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
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: leds on RB133/c with R52

Mon Sep 17, 2007 4:08 pm

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.
 
User avatar
cpresto
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Tue Jul 18, 2006 3:12 pm

Re: leds on RB133/c with R52

Mon Sep 17, 2007 10:00 pm

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
 
User avatar
cpresto
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Tue Jul 18, 2006 3:12 pm

Re: leds on RB133/c with R52

Tue Sep 18, 2007 10:31 am

Probably this http://wiki.mikrotik.com/wiki/LED_Antenna_Alignment might be applied, changing "blink" with ":beep".
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: leds on RB133/c with R52

Tue Sep 18, 2007 3:58 pm

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
 
User avatar
cpresto
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Tue Jul 18, 2006 3:12 pm

Re: leds on RB133/c with R52

Tue Sep 18, 2007 4:50 pm

Thank you Sergejs,
is "alignment-only" supported for all HW on only for RB512?

Rgds
 
User avatar
cpresto
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Tue Jul 18, 2006 3:12 pm

Re: leds on RB133/c with R52

Tue Sep 18, 2007 8:18 pm

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?
 
User avatar
cpresto
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Tue Jul 18, 2006 3:12 pm

Re: leds on RB133/c with R52

Tue Sep 18, 2007 9:09 pm

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

Who is online

Users browsing this forum: No registered users and 41 guests