Debugging using command line

General support for the Pi-Star System
Post Reply
KK4CCB
Posts: 2
Joined: Tue Jan 31, 2023 4:05 pm

Debugging using command line

Post by KK4CCB »

To help resolve my lack of connectivity issue (pi-star dashboard won't come up) I have moved the mmdvm hat to a Pi3B connected up to screen, keyboard and can access the underlying linux distribution from the command line/shell.

Is there any step by step debugging/testing I can perform at this level to figure out why it aint working, eg what processes should I see when using ps aux - that kind of thing.
KN2TOD
Posts: 335
Joined: Sun Nov 11, 2018 6:36 pm

Re: Debugging using command line

Post by KN2TOD »

For starters, you can simply check the connection status:

Code: Select all

iwconfig
ifconfig
And check to see what IP and routing addresses are assigned:

Code: Select all

hostname -I
netstat -r
And then scan the logs for more info:

Code: Select all

grep -shie "wpa_supp\|dhcpcd\|wlan0\|ifup" {/var/log/syslog.1,/var/log/syslog}
and check available access points:

Code: Select all

wpa_cli scan -i wlan0
sleep 8
wpa_cli scan_results -i wlan0
Those will tell you what your HS is seeing and what issues it's having connecting; the messages as such aren't that clear or detailed enough, but you can figure out far into the process it's getting and then go from there.
Post Reply