Community discussions

MikroTik App
 
pdeline
just joined
Topic Author
Posts: 11
Joined: Thu Sep 09, 2010 5:14 am

Access to noise-floor and overall-tx-ccq using API

Thu Dec 30, 2010 5:20 pm

Is there a way to access these values using the API? I am using the Java version if that matters.
I'm working with RouterOS versions 3.30 thru 5.0rc3.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Access to noise-floor and overall-tx-ccq using API

Thu Dec 30, 2010 11:34 pm

I use my own Java send and read routines, but this worked for me:
send("/interface/wireless/registration-table/print",true);
the 'true' indicates end-of-command (zero byte sent).

ADD: If you want only those parameters, then use ".proplist". Couldn't find "noise floor", but with signal strength and signal-to-noise...
send("/interface/wireless/registration-table/print",false);
send("=.proplist=tx-ccq,signal-strength,signal-to-noise",true);
 
pdeline
just joined
Topic Author
Posts: 11
Joined: Thu Sep 09, 2010 5:14 am

Re: Access to noise-floor and overall-tx-ccq using API

Fri Dec 31, 2010 5:12 am

Thanks for the quick response.

I don't think the registration-table contains the values I'm looking for. I'm interested in the Overall Tx CCQ and Noise Floor as displayed in Winbox on the Status tab for a wireless interface.

If I ssh in to the device I can see the values when I execute the following:
/interface wireless monitor 0

Any ideas on how I can get this info using the API?
 
pdeline
just joined
Topic Author
Posts: 11
Joined: Thu Sep 09, 2010 5:14 am

Re: Access to noise-floor and overall-tx-ccq using API

Fri Dec 31, 2010 6:51 am

I found the answer:
/interface/wireless/monitor
=.id=*2
=once=

!re
=status=connected-to-ess
=band=5ghz-10mhz
=frequency=5180
=wireless-protocol=802.11
=tx-rate=18.0Mbps
=rx-rate=3.0Mbps
=ssid=MikroTik
=bssid=00:15:6D:54:6E:43
=radio-name=00156D546E43
=signal-strength=-84
=tx-signal-strength=-81
=noise-floor=-105
=signal-to-noise=21
=tx-ccq=70
=rx-ccq=55
=p-throughput=10844
=overall-tx-ccq=70
=authenticated-clients=1
=current-distance=3
=wds-link=true
=nstreme=false
=framing-mode=none
=routeros-version=3.30
=802.1x-port-enabled=true
=compression=false
=current-tx-powers=6Mbps:17(17/17),9Mbps:17(17/17),12Mbps:17(17/17),18Mbps:17(17/17),24Mbps:17(17/17),36Mbps:17(17/17),48Mbps:16(16/16),54Mbps:14(14/14)
=notify-external-fdb=false
!done