ollo69 / ha_asuswrt_custom

AsusWrt Custom HA integration
Apache License 2.0
7 stars 0 forks source link

Strange value for Asuswrt Devices Connected #4

Open erkr opened 1 year ago

erkr commented 1 year ago

Hi,

When I use AsusWrt with one of my access points (RTN-66U's, running a merlin LTS fork 3.0.0.4.374.43_33E7j9527), the number of devices as reported by the sensor Asuswrt Devices Connected doesn't make any sense. It reports 14, while there is just one device connected to the local WiFi:

SSID: Home-xxxx
RSSI: NA          SNR: NA       Noise: -90 dBm  Channel: 11
BSSID: 54:A0:50:DA:E7:F0    Capability: ESS ShortSlot 
HT Capable
    Extension channel: none
    Chanspec: 2.4GHz Channel Width 20MHz (0x100b)
Mode:   AP Only

Stations  (flags: P=Powersave Mode, S=Short GI, T=STBC, A=Associated, U=Auth, G=Guest)
------------------------------------------------------------------------------------------
MAC               IP Address        RSSI    Rx/Tx Rate   Connected   Flags
00:04:20:EB:C0:AA                  -56dBm     ??/72 Mbps  298:31:12   AU

SSID: Home-xxxx
RSSI: NA          SNR: NA       Noise: -84 dBm  Channel: 100l
BSSID: 54:A0:50:DA:E7:F4    Capability: ESS 
HT Capable
    Extension channel: 102
    Chanspec: 5GHz Channel Width 40MHz (0xd866)
Mode:   AP Only

Stations  (flags: P=Powersave Mode, S=Short GI, T=STBC, A=Associated, U=Auth, G=Guest)
------------------------------------------------------------------------------------------
MAC               IP Address        RSSI    Rx/Tx Rate   Connected   Flags

And ca 85 clients are seen on the network of the WAN port (all connected via other AP's): image That number 85 is not the actual number of connected devices. According my fritz box router, ca 25 devices are currently connected.

I guess, in AP mode, only the devices on the local WiFi should count ?! The reported number of 14 is totally fuzzy for me.

Best Eric

ollo69 commented 1 year ago

This is a very old firmware version. Maintain library for all firmware including very old as this it is quite impossible. Is not possible for you to upgrade to more recent version from here?

erkr commented 1 year ago

I will give it a go this weekend if you believe that helps 👍

erkr commented 1 year ago

@ollo69 I checked the link you provided. These Merlin 380 based versions are no option. Reason is that the 374 based versions are the last version where ASUS allows free power settings for WIFI via the CLI interface. That is why I'm on a LTS fork. Updates in that LTS fork probably won't functionally extend what I currently have. Only bug and security fixes are provided.

ollo69 commented 1 year ago

Understand your point, but as I said before I cannot maintain communication library compatibility for any firmware version.

erkr commented 1 year ago

Understood as well, but please note the 374 based versions are used by many owners, because of the power control limitations in the consecutive versions

ollo69 commented 1 year ago

Do you have a link where I can download 374 version for AC68U?

erkr commented 1 year ago

You find the downloads for the supported routers over here: https://www.snbforums.com/threads/fork-asuswrt-merlin-374-lts-overview.67510/ That includes the AC68U 👍

ollo69 commented 1 year ago

Hope that my version match with one of the supported version, is the oldest Asus Router that I have. I will make some test as soon as I will have some available time, I will report in this thread my progress.

erkr commented 1 year ago

@ollo69 If your router currently is on a newer 38x version, the asus restoration tool is required to downgrade back to 374 based versions

ollo69 commented 1 year ago

I installed 374 version on my old AC68U. Unfortunately in this firmware HTTP API are not present, so is only possible to use SSH / Telnet protocol implemented by aioasuswrt.

erkr commented 1 year ago

Thanks for trying the 374 version!!! I don't mind using SSH / telnet. But is that related to the invalid device count? While playing with multiple AP's configured, I noted that the device trackers listed per AP don't reflect the devices that are connected via WiFi. It's some random subset of most wired devices on the LAN. My intention was to use the device tracker of the AP's to do some device localisation. I guess that it's not going to fly. Best Eric

ollo69 commented 1 year ago

Yes, but this will require to work on library aioasuswrt, and in last period code owner of that library is not really active. For this reason I check if would be possible to manage this with http protocol that use different library managed by me. You could try to open an issue on aioasuswrt and see if somebody will take this in charge.

erkr commented 1 year ago

Yes I will do that 👍

Update: https://github.com/kennedyshead/aioasuswrt/issues/87

erkr commented 1 year ago

That library project seems kind of dead indeed :-(