Accessing a Wifi Network for the first time without Ethernet on a headless Raspberry Pi

0 votes
I purchased the raspberry Pi 3 recently, impressed with its WiFi option, and now, everyone tells me that connecting it to any wireless network for the first time requires you to be on an Ethernet connection. Seriously? Can someone please suggest a work-around? There must be a way!
Jul 18, 2018 in IoT (Internet of Things) by Bharani
• 4,550 points
56 views

1 answer to this question.

0 votes

Okay, without a visual interface and the Ethernet, the only work-around I could think of could be a bit of a hassle.


It could be done by connecting a USB to the TTL serial cable on the UART0 connector. (You could refer to a pinout diagram of the Pi to know which is which.) 

And, then type in these commands or instructions in your command line to get your Pi's IP address and connect to a WiFi network:

am startservice -n com.google.wifisetup/.WifiSetupService \
    -a WifiSetupService.Connect \
    -e ssid '<NETWORK_SSID>' -e passphrase '<NETWORK PASSPHRASE>'
ifconfig

Hehe, told you it's a hassle. :p

answered Jul 18, 2018 by nirvana
• 3,060 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

What is the time taken by a 200 byte message for transmission in a beacon-enabled network?

Now, data rates of IEEE 802.15.4 are ...READ MORE

answered Aug 23, 2018 in IoT (Internet of Things) by Upasana
• 8,550 points
55 views
0 votes
1 answer

Running two processes on Raspberry Pi at the same time

I see no reason why it shouldn't ...READ MORE

answered Aug 27, 2018 in IoT (Internet of Things) by DataKing99
• 8,130 points
53 views
0 votes
1 answer

Setting time on Raspberry Pi using just PowerShell

The Enter-PSSession is for interactive sessions, so ...READ MORE

answered Aug 10, 2018 in IoT (Internet of Things) by nirvana
• 3,060 points
74 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Restrict Android Internet usage to WiFi without Internet Access

You can check if wifi is connected ...READ MORE

answered Jul 17, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
163 views
0 votes
1 answer

Android AllJoyn: Connection with second machine gives error of BusAttachement

Why dont you create two Interfaces, one ...READ MORE

answered Jul 25, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
45 views
0 votes
1 answer

Connect Android Things based Raspberry Pi 3 to wifi network for the first time!

Hey, I think its alright!  Your Raspberry Pi ...READ MORE

answered Jul 18, 2018 in IoT (Internet of Things) by nirvana
• 3,060 points
225 views
0 votes
1 answer

Accessing Kinect data on the Raspberry Pi

Yes, you can. The Kinect has a ...READ MORE

answered Aug 14, 2018 in IoT (Internet of Things) by nirvana
• 3,060 points
327 views