Finding Another Better Networking Solution
Using a keyboard, mouse and monitor would be an easy method to get started along with an Ethernet cable. Using a monitor will be another problem where most of the monitors have VGA ports and your RasPi supports HDMI (I’m ignoring analogue output). Getting a HDMI-to-VGA converter cable is the solution here. Now you’ve 2 options to get connected to wired network,
- Connect to the Network Router using Ethernet cable.
- Direct Ethernet cable connection to your Laptop/Desktop. Learn how…
What if you want to connect through your Raspberry Pi’s Wi-Fi? Again, you’ve 2 options.
- Connect to the Network Wi-Fi.
- Connect to your Laptop (or Desktop with Wi-Fi) through a Hotspot of your Mobile phone/Tablet. Learn how…
Before getting into the process of doing all these let’s take a look at some scenarios below. I think this is the better way to deal with different kind of problems you may encounter.
Catching up with the Situation
As a Raspberry Pi user, you know well that there are accessories which you should have along with your favourite RPi board. Some of them are RJ45 LAN Cable, USB Cable, USB Hub, RCA Cables, HDMI Cable, HDMI-to-VGA Converter, 3.5mm Audio Cable, USB Wi-Fi Dongle, USB Bluetooth Dongle, USB-TTL Module (if you are into hardware), USB Power Adapter/Power Bank, Raspi Casing, Heat sink, Micro SD Card, USB Audio Dongle etc. I would recommend few things here for your networking support,
- USB Wi-Fi Dongle (if you do not have Raspberry Pi 3, Raspberry Pi Zero W or the built-in Wi-Fi doesn’t work)
- RJ45 LAN/Ethernet Cable
- HDMI-to-VGA Converter Cable
- USB-TTL Module (make sure it has 3.3V compatibility)
- A Network Port Switch (If you don’t have any network and you want to connect more than 1 Raspi with your computer)
These are listed to just remind you that, make sure you have a plan before you start working on your Institution’s network. Since your situation may differ from others, it’s not easy to stick with one solution for all. Find a suitable scenario from the below which best suits yours and go ahead with it. You can always try other alternatives if you fail in one solution. All connection methods are explained after the Scenario listing.
Scenario – 1
“I’ve a Raspberry Pi board without any Wi-Fi support, Monitor/TV or USB-TTL module.”
It’s a common scenario with basic setup in hand. You’ve 2 options,
Method 1: Connect to the Network Router using Ethernet cable. (Static or Dynamic IP)
Method 2: Establish a Direct Ethernet Connection with the Laptop and enable Internet Connection Sharing (ICS). Learn how…
Scenario – 2
“I’ve a Raspberry Pi board with Wi-Fi support, but no Monitor or TV and I want to connect to the Network through Wi-Fi; not Ethernet.”
What if you cannot connect to the Institution’s router using Ethernet cable or the Laptop and Raspberry Pi gets two different networks? If you failed miserably in getting the connection between the Laptop and Raspberry Pi using the Ethernet and you are sure that you can connect both of them through Wi-Fi, here are some alternative methods. The aim is to provide the Wi-Fi Network configuration setting to the Raspberry Pi. Find an appropriate method to establish an SSH session with Raspberry Pi and change Wi-Fi setting.
Method 1: Establish a Direct Ethernet Connection with the Laptop. Learn how…
Method 2: Use a USB-TTL Module to establish a Serial communication with the Raspberry Pi Learn how…
Scenario – 3
“I’ve a Raspberry Pi board with Wi-Fi support, Monitor with HDMI-to-VGA cable, but cannot connect to any Wi-Fi network.”
It’s straight forward if you’ve Monitor, Keyboard and Mouse. Below methods are applicable with or without Monitor setup. Decision is up to you.
Method 1: Connect to the Network Router using Ethernet cable. (Static or Dynamic IP)
Method 2: Establish a Direct Ethernet Connection with the Laptop. Learn how…
Method 3: Connect to your Laptop (or Desktop with Wi-Fi) through a Hotspot of your Mobile phone/Tablet. (You must update the Wi-Fi settings in the RPi before doing this). Learn how…
Scenario – 4
“I’ve a Raspberry Pi board with a Raspbian image created using Matlab Hardware Support Package Installer and I’ve a headphone with me.”
Your SSH session can be established using either Hostname/IP address or Serial Connection. The below methods assume you don’t have a Monitor setup. To get the IP address of the RPi, follow any of these methods.
Method 1: Use a USB-TTL Module (if you’ve one) to establish a Serial communication. Type ifconfig to get IP address. Learn how…
Method 2: Hear the IP address of Raspberry Pi using Headphone or any other Audio instrument. The Matlab Hardware Support Package Installer writes the Raspbian image with the eSpeak TTS engine preinstalled. An associated start up script allows the Raspberry Pi to speak out the IP address through the standard audio output.
Method 3: Find the IP address from Target Hardware Options settings in Simulink. Open any Raspberry Pi Simulink example and go to Tools -> Run on Target Hardware -> Options…
The Module Parameter Configuration windows will pop up. Note the IP address from Target Hardware Resources section.