thuehn / RegMon

RegMon is a Atheros WiFi card register monitoring tool for Linux OpenWrt.
GNU General Public License v2.0
23 stars 8 forks source link

Help on RegMon output #12

Closed inamiitb closed 7 years ago

inamiitb commented 7 years ago

I have installed RegMon on LEDE on a MikroTik board (rb433). But how do I get the RegMon graphs on the Luci web interface? Right now, the RegMon graph page of Luci is like this: screenshot from 2017-11-10 23-24-48

and the Regmon config page is: screenshot from 2017-11-10 23-25-28

screenshot from 2017-11-10 23-25-51

ANy help is appreciated Regards Inam

inamiitb commented 7 years ago

Can anybody tell what is the minimum settings I need to set to get the default graphs in Regmon interface, as shown here: https://github.com/thuehn/RegMon#example-of-regmons-luci-web-interface-view Regards Inam

thuehn commented 7 years ago

Hi Inam,

From the web interface view you provided, I looks like you have successfully installed the luci-app but the regmon patches that need to be applayed to ath9k in order to get the regmon statistics are not applied. How did you applied the necessary regmon patches to your lede environment ? Greetings Thomas

thuehn commented 7 years ago

Assumed you have an Atheros ath9k based WiFi card in your router you need 2 RegMon patches copied into your LEDE /mac80211 environment in order to get RegMon working. Just copy those two patches: 9982-ath9k_RegMon.patch & 9983-ath9k_prevent_cycle_count.. from the RegMon/src folder into your /lede/package/kernel/mac80211/patches folder. Than recompile your image and flash it (a "make package/mac80211/clean && make" ensures you apply those new patches in the new image). To validate that RegMon is working on your router, you should see measurement data printed out by issuing a "cat /sys/kernel/debug/ieee80211/phy0/regmon/register_log" .. if this is an empty file, you the patches does not got applied properly in the image or you do not have a ath9k based WiFi card.

Greetings Thomas

inamiitb commented 7 years ago

Thank you Thomas for answering. Incidentally, after flashing LEDE, I came to know that I had to manually enable wireless, which is otherwise disabled by default. And that made RegMon work. I was wondering I had followed all your instructions (superbly written), then why it didn't work? Thanks and regards. Inam

thuehn commented 7 years ago

cool ... so you got it working at your side.

Than happy wifi monitoring & measurements of the mac activities.

GReetings from Berlin Thomas