I've been trying to connect to my Raspberry Pi running Android Things to wifi but to no avail.
I've followed this guide to connect to Wifi. I had connected my Pi via ethernet port to get the IP address and then was able to connect via adb connect Android.Local. But when starting the WifiSetupService via the below command
adb shell am startservice \
-n com.google.wifisetup/.WifiSetupService \
-a WifiSetupService.Connect \
-e ssid <Network_SSID> \
-e passphrase <Network_Passcode>
and then getting the logcat output via adb logcat -d | grep Wifi command, I get the below output:
12-28 17:27:19.761 1133 1133 D WifiSetupService: onStartCommand(Intent { act=WifiSetupService.Connect cmp=com.google.wifisetup/.WifiSetupService (has extras) }) 12-28 17:27:19.761 1133 1133 I WifiConfigurator: Connecting to network with SSID "winterfell" 12-28 17:27:19.764 408 1052 D WifiService: setWifiEnabled: true pid=1133, uid=10023 12-28 17:27:19.771 1133 1360 D WifiConfigurator: Updating existing network 0 12-28 17:27:19.845 408 1361 D WifiNetworkHistory: saving network history: "winterfell"WPA_PSK gw: null Network Selection-status: NETWORK_SELECTION_ENABLED ephemeral=false choice:null link:0 status:2 nid:0 hasEverConnected: false 12-28 17:27:19.845 408 1361 V WifiNetworkHistory: writeKnownNetworkHistory write config "winterfell"WPA_PSK 12-28 17:27:19.883 408 1362 D WifiNetworkHistory: saving network history: "winterfell"WPA_PSK gw: null Network Selection-status: NETWORK_SELECTION_ENABLED ephemeral=false choice:null link:0 status:2 nid:0 hasEverConnected: false 12-28 17:27:19.884 408 1362 V WifiNetworkHistory: writeKnownNetworkHistory write config "winterfell"WPA_PSK 12-28 17:27:19.884 408 457 I WifiConnectivityManager: forceConnectivityScan 12-28 17:27:19.886 408 457 E WifiScanner: listener cannot be found 12-28 17:27:49.884 1133 1360 E WifiConfigurator: Wifi failed to connect in 30000 ms
I don't know where I am missing or why Pi is unable to connect to Wifi. I have verified multiple times that I'm sending the correct passphrase to the shell am command.
Any help will be highly appreciated!
the
ssidfor-e ssid <Network_SSID> \is case sensitive :-)
Try
Winterfell