01-14-2020, 01:54 PM
(01-13-2020, 11:25 AM)vikozo Wrote: Strange Strange
i can't install / run moode anymore also older version works not any more!
when it boot it boots in WIFI AP mode - do a scan select ssid add password change country - save do a reboot!
then it boots and fast i could ping the dhcp ip of the Pi!
As soon it is ready there - i loos the ping ip paket.
The Pi is back in AP Moode…
Check the config the ssid and correct password are there!
...
Hi, vinc.
I haven't looked at the networking part of the moOde codebase in a long time so I'm not going to speculate.
How about giving some more details---
First, check that this is happening with a default moOde installation, e.g., with no changes except for configuring the network interface. Assuming it does, then when it reboots after making this change, does it stay in WiFi client mode long enough for you to see the Web UI?
How do you ping the DHCP IP of the PI? By invoking "ping moode"? By default ping repeats at 1 second intervals. If you start pinging at the same time you reboot the player, you'll see a succession of "Host Unreachable" lines before it begins reporting successful pings. How many times does the ping succeed? Here's a snippet of the output when I ping a booting moOde player from a Linux laptop:
Code:
kreed@T520 ~ $ ping moodelr
PING moodeLR.fios-router.home (192.168.1.198) 56(84) bytes of data.
...lines with increasing icmp_seq numbers...
From 192.168.1.188 icmp_seq=42 Destination Host Unreachable
64 bytes from 192.168.1.198: icmp_seq=43 ttl=64 time=733 ms
64 bytes from 192.168.1.198: icmp_seq=44 ttl=64 time=34.0 ms
64 bytes from 192.168.1.198: icmp_seq=45 ttl=64 time=4.20 ms
...more lines until I kill the process with ^C...
When moOde reverts to AP mode, SSH back in and have a look at the logs. In /var/log/moode.log you'll see initial entries like the following as it connects in WiFi client mode (where I have not turned off "wait for eth0 address" in System Config):
Code:
20200114 072836 worker: -- Network
20200114 072836 worker: eth0 exists
20200114 072836 worker: eth0 wait 0 for IP address
20200114 072839 worker: eth0 wait 1 for IP address
20200114 072842 worker: eth0 wait 2 for IP address
20200114 072845 worker: eth0 wait 3 for IP address
20200114 072857 worker: eth0 wait 4 for IP address
20200114 072900 worker: eth0 address not assigned
20200114 072901 worker: wlan0 exists
20200114 072901 worker: wifi country (US)
20200114 072901 worker: wlan0 trying SSID (xxxxxxx)
20200114 072901 worker: IP addr (192.168.1.198)
20200114 072901 worker: Netmask (255.255.255.0)
20200114 072901 worker: Gateway (192.168.1.1)
20200114 072901 worker: Pri DNS (192.168.1.1)
20200114 072901 worker: Domain (yyyyyyy)
Do you see any later lines in moode.log relating to the network interface?
How about network-related entries in /var/log/syslog?
Regards,
Kent
PS - unmodified Raspbian does not include the hostapd code and is not configured to use it so it can't exhibit the same behavior.