I am using an AX88U as the router and an AX58U as the Media Bridge - connected over the 5Ghz band.
You will have to change all the occurrences of “wl1_hwaddr” to “wl0_hwaddr” to get the information from the 2.4 Ghz radio. Change the “targetrate” to something like 1200000 and enable debug.
Run it a few times with targetrate real low (like 100) to make sure it’s getting correct information before you set it to a reasonable value. Should work!
Just wanted to follow up and say that the script works as intended - thanks again!
I modified it slightly to also log the RSSI. I set it to run every 15 minutes to try to pin down when the signal degrades and maybe figure out why that happens.
the signal degraded between 00:45 and 01:00. Then, I had the router reboot on a schedule at 05:00, which reset the connection. However, the signal dropped again between 06:45 and 7:00.
There are no relevant entries in the main router between those times, other than allowing the repeater to rejoin after rebooting at 05:00.
Any idea what could be causing this? The router and repeater were sitting next to each other all night, so I don't think it's an environmental factor. They are connected on 2.4GHz over 20MHz on a fixed channel with a static IP assigned by the main router.
At this point, I'm wondering if the AC68U hardware is simply failing. I've been running into issues with it when Merlin is installed as opposed to the stock firmware where I'm not able to log into it at all, whether from the web GUI or via SSH. Even when trying to set up the script, I had to factory reset it a couple of times, because after installing the scripts and rebooting, it would not allow me to even log in (web GUI would time out, and SSH would as well).
In any case, thanks again for your help, JGrana - I learned quite a bit from your script!
Jun 5 00:00:00 checkrate: Rate within bounds ( 216667 vs min 50000 ) last RSSI -64 average RSSI -61
Jun 5 00:15:00 checkrate: Rate within bounds ( 195000 vs min 50000 ) last RSSI -61 average RSSI -60
Jun 5 00:30:00 checkrate: Rate within bounds ( 192500 vs min 50000 ) last RSSI -60 average RSSI -59
Jun 5 00:45:00 checkrate: Rate within bounds ( 173250 vs min 50000 ) last RSSI -60 average RSSI -60
Jun 5 01:00:00 checkrate: Rate within bounds ( 58500 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 01:15:00 checkrate: Rate within bounds ( 65000 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 01:30:00 checkrate: Rate within bounds ( 65000 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 01:45:00 checkrate: Rate within bounds ( 78000 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 02:00:00 checkrate: Rate within bounds ( 86500 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 02:15:00 checkrate: Rate within bounds ( 78000 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 02:30:00 checkrate: Rate within bounds ( 65000 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 02:45:00 checkrate: Rate within bounds ( 65000 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 03:00:00 checkrate: Rate within bounds ( 96111 vs min 50000 ) last RSSI -99 average RSSI -101
Jun 5 03:15:00 checkrate: Rate within bounds ( 86500 vs min 50000 ) last RSSI -99 average RSSI -101
Jun 5 03:30:00 checkrate: Rate within bounds ( 65000 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 03:45:00 checkrate: Rate within bounds ( 86500 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 04:00:00 checkrate: Rate within bounds ( 65000 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 04:15:00 checkrate: Rate within bounds ( 86500 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 04:30:00 checkrate: Rate within bounds ( 65000 vs min 50000 ) last RSSI -99 average RSSI -102
Jun 5 04:45:00 checkrate: Rate within bounds ( 96111 vs min 50000 ) last RSSI -99 average RSSI -101
Jun 5 05:00:00 reboot_scheduler: [timecheck] The system is going down for reboot
[... reboot entries...]
Jun 5 06:30:00 checkrate: Rate within bounds ( 195000 vs min 50000 ) last RSSI -61 average RSSI -60
Jun 5 06:45:00 checkrate: Rate within bounds ( 216667 vs min 50000 ) last RSSI -61 average RSSI -60
Jun 5 07:00:00 checkrate: Rate within bounds ( 96111 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 07:15:00 checkrate: Rate within bounds ( 65000 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 07:30:00 checkrate: Rate within bounds ( 86500 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 07:45:00 checkrate: Rate within bounds ( 86500 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 08:00:00 checkrate: Rate within bounds ( 78000 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 08:15:00 checkrate: Rate within bounds ( 86500 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 08:30:00 checkrate: Rate within bounds ( 86667 vs min 50000 ) last RSSI 0 average RSSI 0
Jun 5 08:45:00 checkrate: Rate within bounds ( 65000 vs min 50000 ) last RSSI -99 average RSSI -113
Jun 5 09:00:00 checkrate: Rate within bounds ( 65000 vs min 50000 ) last RSSI -99 average RSSI -101
Jun 5 09:15:00 checkrate: Rate within bounds ( 96111 vs min 50000 ) last RSSI -99 average RSSI -101