I'm would like to use local Wi-Fi Hotspot with no Internet access to connect to multiple Android phones. The problem is, even though is a local network with only a few phones connected and no Internet connection, the phones are a few centimeters away from the hotspot, yet cummunication seems slow/unreliable.
Here are a couple of ping results from a computer to the phone IPs:
PING 192.168.0.100 (192.168.0.100): 56 data bytes
64 bytes from 192.168.0.100: icmp_seq=0 ttl=64 time=393.810 ms
64 bytes from 192.168.0.100: icmp_seq=1 ttl=64 time=158.493 ms
64 bytes from 192.168.0.100: icmp_seq=2 ttl=64 time=181.057 ms
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
64 bytes from 192.168.0.100: icmp_seq=4 ttl=64 time=1006.483 ms
64 bytes from 192.168.0.100: icmp_seq=5 ttl=64 time=37.513 ms
64 bytes from 192.168.0.100: icmp_seq=6 ttl=64 time=64.257 ms
64 bytes from 192.168.0.100: icmp_seq=7 ttl=64 time=93.225 ms
64 bytes from 192.168.0.100: icmp_seq=8 ttl=64 time=111.115 ms
64 bytes from 192.168.0.100: icmp_seq=9 ttl=64 time=139.826 ms
^C
--- 192.168.0.100 ping statistics ---
10 packets transmitted, 9 packets received, 10.0% packet loss
round-trip min/avg/max/stddev = 37.513/242.864/1006.483/286.991 ms
PING 192.168.0.101 (192.168.0.101): 56 data bytes
64 bytes from 192.168.0.101: icmp_seq=0 ttl=64 time=385.699 ms
64 bytes from 192.168.0.101: icmp_seq=1 ttl=64 time=203.539 ms
64 bytes from 192.168.0.101: icmp_seq=2 ttl=64 time=151.443 ms
64 bytes from 192.168.0.101: icmp_seq=3 ttl=64 time=232.699 ms
64 bytes from 192.168.0.101: icmp_seq=4 ttl=64 time=219.184 ms
64 bytes from 192.168.0.101: icmp_seq=5 ttl=64 time=262.831 ms
64 bytes from 192.168.0.101: icmp_seq=6 ttl=64 time=249.220 ms
64 bytes from 192.168.0.101: icmp_seq=7 ttl=64 time=266.070 ms
64 bytes from 192.168.0.101: icmp_seq=8 ttl=64 time=471.806 ms
64 bytes from 192.168.0.101: icmp_seq=9 ttl=64 time=114.990 ms
^C
--- 192.168.0.101 ping statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 114.990/255.748/471.806/99.526 ms
PING 192.168.0.103 (192.168.0.103): 56 data bytes
64 bytes from 192.168.0.103: icmp_seq=0 ttl=64 time=319.546 ms
64 bytes from 192.168.0.103: icmp_seq=1 ttl=64 time=137.394 ms
64 bytes from 192.168.0.103: icmp_seq=2 ttl=64 time=160.845 ms
64 bytes from 192.168.0.103: icmp_seq=3 ttl=64 time=184.010 ms
64 bytes from 192.168.0.103: icmp_seq=4 ttl=64 time=206.503 ms
64 bytes from 192.168.0.103: icmp_seq=5 ttl=64 time=24.546 ms
64 bytes from 192.168.0.103: icmp_seq=6 ttl=64 time=47.437 ms
64 bytes from 192.168.0.103: icmp_seq=7 ttl=64 time=69.973 ms
64 bytes from 192.168.0.103: icmp_seq=8 ttl=64 time=93.257 ms
64 bytes from 192.168.0.103: icmp_seq=9 ttl=64 time=730.538 ms
^C
--- 192.168.0.103 ping statistics ---
11 packets transmitted, 10 packets received, 9.1% packet loss
round-trip min/avg/max/stddev = 24.546/197.405/730.538/195.910 ms
I've used a macbook to ping with a D-Link DIR-505 set to Wi-Fi Hotspot to Xperia phones with the shipped Android OS 4.1.2.
I think the ping responses are slow and inconsistent. Has anyone else experienced this ? Why does this happen and how can this be fixed/improved ?
Update based on Sergey's input:
Pinging the computer from the phone doesn't look great:
And here's the output using adb shell
:
shell@android:/ $ ping -c 10 192.168.1.18
PING 192.168.1.18 (192.168.1.18) 56(84) bytes of data.
64 bytes from 192.168.1.18: icmp_seq=1 ttl=64 time=1012 ms
64 bytes from 192.168.1.18: icmp_seq=2 ttl=64 time=8.21 ms
64 bytes from 192.168.1.18: icmp_seq=3 ttl=64 time=184 ms
64 bytes from 192.168.1.18: icmp_seq=4 ttl=64 time=714 ms
64 bytes from 192.168.1.18: icmp_seq=5 ttl=64 time=635 ms
64 bytes from 192.168.1.18: icmp_seq=6 ttl=64 time=556 ms
64 bytes from 192.168.1.18: icmp_seq=7 ttl=64 time=171 ms
64 bytes from 192.168.1.18: icmp_seq=8 ttl=64 time=705 ms
64 bytes from 192.168.1.18: icmp_seq=9 ttl=64 time=622 ms
64 bytes from 192.168.1.18: icmp_seq=10 ttl=64 time=238 ms
--- 192.168.1.18 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9015ms
rtt min/avg/max/mdev = 8.210/484.855/1012.056/300.283 ms, pipe 2
This is a bit worrying. Also, the power saving scenario sounds plausible but not sure if it still applies in my case as I've got the Stay awake setting turned on and the above tests were done with the usb cable connected and powering the device.