Yet Another Blog

March 2, 2015

Connecting OnePlus One to GoPro wifi

Filed under: Android, gadgets — Tags: , , , , , , , , — guilleml @ 11:31 am

When I tried to connect my OnePlus One to my GoPro Hero 2 Wifi Bacpac I had a problem, the phone did keep waiting for dhcp to get al ip address so wifi connection didn’t pass “establishing connection” step.

What I did was connect to the phone via adb:

$adb shell

Once I had a terminal I searched in the log messages from dhcpcd to see what was happening:

$logcat -d | grep dhc

What I saw was:

I/dhcpcd ( 4957): version 5.5.6 starting
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
I/dhcpcd ( 4957): wlan0: broadcasting for a lease
I/dhcpcd ( 4957): wlan0: offered 10.5.5.109 from 10.5.5.9
W/dhcpcd ( 4957): wlan0: NAK: via 10.5.5.9
E/dhcpcd ( 4957): timed out
D/NetUtils( 772): dhcp_do_request failed : wlan0 (new)

I was receiving an ip but it wasn’t being set correctly, so I set a static IP in wifi configuration, as the image shows. I used the ip address the gopro was broadcasting 10.5.5.109.

Screenshot_2015-03-02-12-25-18

After that, the phone connects fine to the gopro and gopro app works 100% fine.

Blog at WordPress.com.