Raspberry Pi
Specifications:
Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz
1GB, 2GB or 4GB LPDDR4-3200 SDRAM (depending on model). Ours are the 4GB model
2.4 GHz and 5.0 GHz IEEE 802.11ac wireless, Bluetooth 5.0, BLE
Gigabit Ethernet
2 USB 3.0 ports; 2 USB 2.0 ports.
Raspberry Pi standard 40 pin GPIO headerÂ
2 Ă— micro-HDMI ports (up to 4kp60 supported)
2-lane MIPI DSI display port
2-lane MIPI CSI camera port
4-pole stereo audio and composite video port
H.265 (4kp60 decode), H264 (1080p60 decode, 1080p30 encode)
OpenGL ES 3.0 graphics
Micro-SD card slot for loading operating system and data storage
5V DC via USB-C connector (minimum 3A*)
5V DC via GPIO header (minimum 3A*)
Power over Ethernet (PoE) enabled (requires separate PoE HAT)
Operating temperature: 0 – 50 degrees C ambient
Pi setup
keyboard, hostname, username/password & wifi network
When you are starting up for the first time you need to set up a bunch of things. To keep things consistent please use this set up
Select the US keyboard option
Username: comp<Pi number> (eg: I am using Pi 16 so the username is comp16
Password: comp<Pi number>
The network to connect to is HVHS_COMP
Password: RaspberryPi@hvhs2023
Post 1st boot
Note: In the below text, a dollar sign ($) indicates the start of a command, do not type the dollar sign, only what comes after.
We prefix the commands below with sudo  to give us extra permissions but only whilst executing the command.
Check the OS-Release file: $ cat /etc/os-release
Update the packages: $ sudo apt update && sudo apt upgrade
Install the stress-test package:Â $ sudo apt install stress
NOTE: ONLY DO THIS IF YOU WERE NOT INITIALLY ASKED TO CONNECT TO A WIFI NETWORK; Edit network config: Â Â $Â
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Network commands
hostname -I # display the Pi's ip address
iwconfig # lets see what WiFi we're connected to
ifconfig # show all network interfaces
ip addr # show IPv4 address
ip route # show IPv4 gateway & routes
ssh
sh allows us to use your laptop to control the Pi using the laptops monitor, keyboard & mouse.
ssh is already active on the school laptops.
But you need to activate it on you Pi using the config menu to do this:
sudo raspi-config
Commands
change the directory you are residing in:Â cd
list the contents of a directory:Â ls -lsa
make a directory:Â mkdir
Permission issues
Browser Issues
The default browser for the Pi is Chromium.
Chromium by default uses the search engine; duckduckgo.
If duckduckgo does not work, you can alter your browser settings to use another search engine - like Google. Just click the browsers settings options.
htop
Network monitoring
We used the Ruckus wifi router when setting up our Pis as it has connection to the internet.
However, Will use the Huawei router for our testing as:
The Ruckus router is used by students in B14 - so its not a fair test
The Huawei router has both 2.4Ghz & 5Ghz bands.
2.4Ghz band ssid = RaspberryPi, 5Ghz band ssid = Raspberry_5Ghz wifi password is raspberry
IMCP
traceroute is used to display the physical routing path between 2 internet devices communicating with each other. It maps out the journey from one router to another - sometimes called a hop. Using traceroute to diagnose network problems can help administrators locate the source of a network delay.
ping is a simpler traceroute. It sends out pings -- also referred to as echo request message -- and the measures the amount of time it takes the message to reach its destination and return the source. These replies are called echo reply messages. Pings are useful for gathering latency information about a specific device. Unlike traceroute, ping does not provide a picture map of the routing layout.
nmon
sudo apt update
sudo apt upgrade
sudo apt install nmon
iperf3
sudo apt update
sudo apt upgrade
sudo apt install iperf3
Click NO to auto start the server
Our network
Rough layout of components
Performance specifications of components
Note 1: Actual speeds depend heavily on how you are reading the data. For example; when reading data from a disk, speeds are far higher when you are reading adjacent blocks of data as opposed to reading the same amount of data if it is spread throughout a disk. However they do give an indication of relative speeds of the components.
Note 2: Device seeds are given MB/s or Mega Bytes per second, whilst network speeds are given as Mb/s or Mega bits per second. You can convert Mb/s into MB/s by dividing by the Mb/s value by 8 (computers use 8-bits per byte)
SD Card
default card speed = 12.5MB/s
high speed card = 25MB/s
ultra high speed card = 80MB/s
USB3
4.8GB/s
PI 4 wifi
114Mb/s ==> 14MB/s
PI 4 eth0
943Mb/s ==> 117MB/s
Huawei router
5Ghz; upto 1300Mb/s ==> 162.5 MB/s
2.4Ghz; upto 300Mb/s ==> 37.5MB/s