Portsdown Stretch 2019 Software

Discussion about this major DATV Project. See https://wiki.batc.org.uk/The_Portsdown_Transmitter
g0mjw
Posts: 2346
Joined: Sat Sep 20, 2014 9:15 am

Re: Portsdown Stretch 2019 Software

Post by g0mjw » Thu Feb 21, 2019 5:58 pm

I removed my shutdown button. Now there is an option on the screen the only time you would need it is when the PI has crashed, and then it doesn't work.

Mike

G8GKQ
Site Admin
Posts: 2807
Joined: Sun Mar 22, 2009 1:21 pm

Re: Portsdown Stretch 2019 Software

Post by G8GKQ » Sat Feb 23, 2019 11:02 pm

Tom

I have rechecked this function on my test rig and it seems to work as expected.

Can you check from the command line whether the process pi-sdn is running?

Can you shutdown from the button on Menu 2?

Does the state of the "SD Button Enabled/disabled" change when you select it?

Is there a possibility that you night have damaged that input pin (static?) on your RPi?

Dave

dl6rcg
Posts: 19
Joined: Fri Dec 07, 2018 8:55 am

Re: Portsdown Stretch 2019 Software

Post by dl6rcg » Sun Feb 24, 2019 9:09 pm

Hi Dave,

to your questions:

How can I check this from command line if pi-sdn is running?

Yes, I can shutdown from button in Menu 2.

Yes, the state is changing when I select it. From disabeld to enabeld immediately, from enabeld to disabeld I have to reboot.

I don't know, I am very careful when I touch electronics, my workplace is ESD protected...

73 Tom

G8GKQ
Site Admin
Posts: 2807
Joined: Sun Mar 22, 2009 1:21 pm

Re: Portsdown Stretch 2019 Software

Post by G8GKQ » Sun Feb 24, 2019 9:28 pm

Hi Tom

To check whether pi-sdn is running, you would need to log in by ssh (details here: https://wiki.batc.org.uk/Console_mode) and then go to the shutdown menu, Exit to Linux, and then type:

Code: Select all

pgrep pi-sdn
If it returns a number, pi-sdn is running. If it simply gives you another prompt, then it isn't running.

Dave

dl6rcg
Posts: 19
Joined: Fri Dec 07, 2018 8:55 am

Re: Portsdown Stretch 2019 Software

Post by dl6rcg » Mon Feb 25, 2019 4:26 pm

Hi Dave,

thanks for the info. You must know I am not a Linux expert ;)

I only get back a prompt and not a number. So pi-sdn is not running.
What should I do now?

73 de Tom

G8GKQ
Site Admin
Posts: 2807
Joined: Sun Mar 22, 2009 1:21 pm

Re: Portsdown Stretch 2019 Software

Post by G8GKQ » Mon Feb 25, 2019 10:38 pm

Hi Tom

Please could you enable the button (from Menu 3, System Config) and then go to the command line again. This time, type:

Code: Select all

cat .pi-sdn
and tell me the response.

Dave

dl6rcg
Posts: 19
Joined: Fri Dec 07, 2018 8:55 am

Re: Portsdown Stretch 2019 Software

Post by dl6rcg » Tue Feb 26, 2019 6:51 pm

Hi Dave,

this is the response of my Raspi:

pi@raspberrypi:~ $ cat .pi-sdn
## called by .bashrc at log-on to enable hardware button shutdown
## If this file is in ~, then hardware button shutdown is enabled

sudo /home/pi/pi-sdn 3 2 > /dev/null 2>&1 &

##


73 de Tom

G8GKQ
Site Admin
Posts: 2807
Joined: Sun Mar 22, 2009 1:21 pm

Re: Portsdown Stretch 2019 Software

Post by G8GKQ » Fri Mar 01, 2019 8:39 pm

Hi Tom

What response do you get if you run this command:

Code: Select all

sudo /home/pi/pi-sdn 3 2
It may be that the pi-sdn file is not present on your system. Failing that, I suggest you test the GPIO pin with another program.

Dave

dl6rcg
Posts: 19
Joined: Fri Dec 07, 2018 8:55 am

Re: Portsdown Stretch 2019 Software

Post by dl6rcg » Sat Mar 02, 2019 10:51 am

Hi Dave,

the response is:
sh: 1: /home/pi/rpidatv/scripts/shutdown_script.sh: Permission denied

... and the led is on.

73 de Tom, DL6RCG

G8GKQ
Site Admin
Posts: 2807
Joined: Sun Mar 22, 2009 1:21 pm

Re: Portsdown Stretch 2019 Software

Post by G8GKQ » Sat Mar 02, 2019 6:50 pm

Hi Tom

That shouldn't happen, and I worry what else might be wrong. However, you can cure that specific problem by entering:

Code: Select all

chmod +x /home/pi/rpidatv/scripts/shutdown_script.sh
Let me know how that goes.

Dave

Post Reply

Return to “The Portsdown Digital ATV System”