-
Notifications
You must be signed in to change notification settings - Fork 37
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
Robot not publishing its hostname on 2008 #29
Comments
How should the robot announce itself on the network ? |
I guess in the older firmware version something like avahi was installed to setup its own hostname via mDNS. |
I'll think about how to fix it. |
It's most likely a busybox limit. |
You could try running wireshark to listen for mDNS broadcasts |
It's not exactly an easy way. |
mdns work is implemented through miio_client. |
I am running firmware version 2020 on a Roborock S5 and it does not seem to include the hostname in the DHCP request, which results in my DNS server not being updated and thus not being able to resolve the hostname. |
Maybe it's fixed. |
I just re-flashed my robot with the current master and the custom hostname is set and reachable after some minutes. So this issue is fixed. Thanks for the deep look into it @zvldz. I would say we wait for one more verification and close the issue afterwards. |
Hm, seems that after the daily reboot the hostname got lost. Just tested it and the name don't get resolved anymore. |
It works for me even after reboot. |
Hm, rebooted the robot manually and it works fine. I will report back tomorrow again. |
For me, the hostname is included in the DHCP requests, but only for a couple of minutes after boot. After that, the robot makes DHCP requests without the hostname. |
Worked for me until midnight with manual testing. This morning its gone again. Seems that something is overwriting the wifi_start script. |
You can check the contents of the file to make sure. |
I will make some research this evening |
|
So I checked the startup script and its untouched, sry for not checking first. First Variant:
Second variant:
The requests are identical before and after reboot. Just after the reboot the hostname is working fine. Whats a little odd for me: There is no hostname included in the requests. For comparison when I look at the mdns request for my printer:
|
Since the last comment I noticed that sometimes the robot is randomly available after a reboot and sometimes its only reachable via IP. |
I'm out of ideas for now. |
Just noticed that the robot doesn't announces its hostname in the network on the 2008 firmware.
I can confirm that the script
custom_hostname.sh
sets the hostname correctly on the system. After that, I'm lost 😅I guess that a system package is missing on the newer firmware.
The text was updated successfully, but these errors were encountered: