2024-07-22 05:15 AM
hi
i successfully connecting wifi on STM32mp157f-DK2 board through IPhone but the when i pass the command
"# ping google.com " then it show temporary failure in name resolution , and also dhcp command not found why this is happen. please reach me out As soon as possible
Solved! Go to Solution.
2024-07-24 05:49 AM
Hi, just tested on STM32MP157x-DK2 with the https://wiki.st.com/stm32mpu/wiki/How_to_setup_a_WLAN_connection#Automatic_WiFi_configuration_at_start_up
(only section 3 to be followed).
No issue to ping google.com (using Android phone as hotspot)
Tested after sync + reboot and also after a complete power down. No issue, connection is still automatic and working.
root@stm32mp1:~# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:9D:6B:87:40:FB
inet addr:192.168.43.202 Bcast:192.168.43.255 Mask:255.255.255.0
inet6 addr: fe80::29d:6bff:fe87:40fb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4837 (4.7 KiB) TX bytes:10701 (10.4 KiB)
root@stm32mp1:~# cat /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={
psk=b73eb99d9bb4e249def63d24177ca0d51ae9baa96306e0aeed87c063cf44b4e8
}
root@stm32mp1:~# iw wlan0 link
Connected to 4e:6a:f7:b4:f5:e4 (on wlan0)
SSID: xxxxxxx
freq: 2437
RX: 6726 bytes (35 packets)
TX: 12767 bytes (73 packets)
signal: -30 dBm
rx bitrate: 1.0 MBit/s
tx bitrate: 24.0 MBit/s
bss flags: short-preamble short-slot-time
dtim period: 2
beacon int: 100
root@stm32mp1:~# ping google.com
PING google.com (216.58.213.78) 56(84) bytes of data.
64 bytes from lhr25s01-in-f78.1e100.net (216.58.213.78): icmp_seq=1 ttl=113 time=59.6 ms
Did you have anything to share like above to see some error messages ?
Is timedatectl show synchronized data/time ?
On my side, the "temporary failure in name resolution" appear when I shutdown the wifi hotspot on the phone (so, you are likely not really connected to your iPhone hotspot).
Maybe start again the setup from a fresh Starter Package of Ecosystem v5.1.0
Regards
2024-07-22 07:53 AM
this might be due to some security on the phone or the board date/time not aligned (as there is no RTC battery on the board).
Regards.
2024-07-22 08:16 AM
@asadullah4571 wrote:connecting wifi ... through IPhone
You mean using the iPhone as a "hotspot"?
Does this work with any other devices?
ie, as @PatrickF suggested, how do you know it's not just an issue with the iPhone?
2024-07-24 01:07 AM
yes you are right, there is no RTC connection,
but my IPhone hostpot is connected but i need to find the ip address but there is no ip found(IPV4), only i can see the IPV6, and why dhclient command not found. i have to do manually add the ip address and default gatway.
and the second question why it is not connected automatic once i add the SSID and Password. only iphone is connected i tryied with Android but not connected
2024-07-24 01:09 AM
yes i am using iphone as a hotspot
No i tried many time with different different Android phone and also router but not connected i am facing this issue still now
2024-07-24 01:49 AM
Hi,
did you use this wiki page ?
https://wiki.st.com/stm32mpu/index.php?title=How_to_setup_a_WLAN_connection&sfr=stm32mpu
Did you removed any Ethernet cable on the board (might conflict).
Regards.
2024-07-24 02:24 AM
@asadullah4571 wrote:i tried many time with different different Android phone and also router
I meant can any other devices connect successfully through your iPhone hotspot?
In other words, are you sure that the problem isn't (partly, at least) in your iPhone hotspot?
2024-07-24 02:31 AM
yes, i already see the Automatic wifi connection i do that, my iphone hotspot connection is connected but i am triying to use $ping goole.com it will show the tempory unavailable not connected ,
and 1st manually i have to connect the iphone not automatic
2024-07-24 02:39 AM
yes other devices can connect iphone hotspot easily
i am facing the issue after connecting wifi form iPhone hotspot so but ip address i have to add manually why and $ dhclient wlan0 it will show the dhclient not found why??
2024-07-24 05:49 AM
Hi, just tested on STM32MP157x-DK2 with the https://wiki.st.com/stm32mpu/wiki/How_to_setup_a_WLAN_connection#Automatic_WiFi_configuration_at_start_up
(only section 3 to be followed).
No issue to ping google.com (using Android phone as hotspot)
Tested after sync + reboot and also after a complete power down. No issue, connection is still automatic and working.
root@stm32mp1:~# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:9D:6B:87:40:FB
inet addr:192.168.43.202 Bcast:192.168.43.255 Mask:255.255.255.0
inet6 addr: fe80::29d:6bff:fe87:40fb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4837 (4.7 KiB) TX bytes:10701 (10.4 KiB)
root@stm32mp1:~# cat /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={
psk=b73eb99d9bb4e249def63d24177ca0d51ae9baa96306e0aeed87c063cf44b4e8
}
root@stm32mp1:~# iw wlan0 link
Connected to 4e:6a:f7:b4:f5:e4 (on wlan0)
SSID: xxxxxxx
freq: 2437
RX: 6726 bytes (35 packets)
TX: 12767 bytes (73 packets)
signal: -30 dBm
rx bitrate: 1.0 MBit/s
tx bitrate: 24.0 MBit/s
bss flags: short-preamble short-slot-time
dtim period: 2
beacon int: 100
root@stm32mp1:~# ping google.com
PING google.com (216.58.213.78) 56(84) bytes of data.
64 bytes from lhr25s01-in-f78.1e100.net (216.58.213.78): icmp_seq=1 ttl=113 time=59.6 ms
Did you have anything to share like above to see some error messages ?
Is timedatectl show synchronized data/time ?
On my side, the "temporary failure in name resolution" appear when I shutdown the wifi hotspot on the phone (so, you are likely not really connected to your iPhone hotspot).
Maybe start again the setup from a fresh Starter Package of Ecosystem v5.1.0
Regards