Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect MAC address #3

Open
Vic-s opened this issue Jan 3, 2023 · 4 comments
Open

Incorrect MAC address #3

Vic-s opened this issue Jan 3, 2023 · 4 comments

Comments

@Vic-s
Copy link

Vic-s commented Jan 3, 2023

Maybe it is a KEF bug, but if I query the MAC address it is different from what I get when reaching over the network.
The last 2 bytes differ.
Python

from pykefcontrol.kef_connector import KefConnector
my_speaker = KefConnector("192.168.2.190")
my_speaker.mac_address
'84:17:15:15:YY:ZZ'

Or browser
http://192.168.2.190/api/getData?path=settings:/system/primaryMacAddress&roles=value
[
{
"type": "string_",
"string_": "84:17:15:15:YY:ZZ"
}
]

But from the terminal

ping 192.168.2.190
<...>
arp -a
(192.168.2.190) at 84:17:15:15:WW:XX [ether] on eno1

This is also reported by the fing app on my smartphone

Anyone else experiencing this?

@Vic-s
Copy link
Author

Vic-s commented Jan 3, 2023

Ok I found the MAC returned is for the physical interface while I am using the wireless interface.
This makes sense.
See:
http:///api/getData?path=network:info&roles=value

@mjbrands
Copy link

mjbrands commented Mar 12, 2023

I see the same thing on my LSX 2 speakers (firmware LSXII_V1453), but it is not just the API returning the wrong data; the web page (/index.fcgi) shows the wrong MAC address as well.

So to be clear: both the API and the index.fcgi return the MAC of the Ethernet port, regardless of whether LAN or WiFi is being used.

For the API you could imagine that the LAN interface is simply always referred to as 'primary', but the index.fcgi shows a bunch of WiFi related settings (such as SSID, BSSID and Encryption) but then shows the LAN MAC instead of the WiFi one.

I (attempted) to create a bug report for KEF - probably it will end up in some marketing mailbox, where it will not neatly fit into one of the available categories and get discarded.

@N0ciple
Copy link
Owner

N0ciple commented Mar 12, 2023

@Vic-s and @mjbrands,

Thank you for bringing up this issue! As I primarily use my LS50W2 via Ethernet, I wasn't aware of this behavior. While there might be a straightforward method to identify the wireless interface MAC address from the wired MAC address, I haven't yet searched how to determine the active interface.

Please inform me if this issue is crucial for you and I will have a look. On the contrary, at the moment, I am not planning to invest time in debugging this.

@mjbrands
Copy link

mjbrands commented Mar 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants