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 19, 2018 in IoT (Internet of Things) by Bharani
• 4,660 points
742 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 19, 2018 by nirvana
• 3,130 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 24, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
852 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 28, 2018 in IoT (Internet of Things) by DataKing99
• 8,250 points
1,980 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,130 points
946 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,280 points
1,731 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,280 points
692 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 19, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,133 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,130 points
3,281 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP