Langstone update with Diagnostics.

Forum for discussion about the Langstone Microwave Transceiver that shares some features with the Portsdown. Wiki: https://wiki.microwavers.org.uk/Langstone_Project
Post Reply
g4eml
Posts: 305
Joined: Thu Apr 26, 2018 9:36 am

Langstone update with Diagnostics.

Post by g4eml » Sun Oct 11, 2020 9:13 pm

I have just uploaded an update to the Langstone project.
This improves the error handling during start-up and also includes some new diagnostic programs for testing the Pluto connection, Sound device, and I/O hardware.
See https://wiki.microwavers.org.uk/Langsto ... iagnostics for a description of the new diagnostic programs.

If you are not experiencing any problems with your current Langstone then there is probably no need to update, the basic Langstone code has not changed.

As usual to update:-

SSH into the Pi
Langstone/stop
Langstone/update
Langstone/run

Colin G4EML

g4eml
Posts: 305
Joined: Thu Apr 26, 2018 9:36 am

Re: Langstone update with Diagnostics.

Post by g4eml » Thu Oct 15, 2020 10:18 pm

I have made a change to the new Langstone Diagnostics.

'Sound_Test' has been deleted and replaced with 'set_sound'

This new script will list all suitable sound devices and allow you to select the one you want Langstone to use.
The Lang_TX.py and Lang_RX.py files will automatically be modified to use the selected driver.

You will only need to use this script if you are not using the recommended USB sound card.

The script excludes the Raspberry Pi Headphone socket because this does not support a microphone. Therefore normally only the one driver for your USB sound card will be shown. If you have more than one sound card then it is up to you to identify the correct one.

Only the hardware level drivers starting with hw: are listed. If your sound device requires the use of the plughw: software level driver then you will still need to edit the .py files manually.

Colin G4EML

radiogareth
Posts: 557
Joined: Wed Jan 06, 2016 9:46 am

Re: Langstone update with Diagnostics.

Post by radiogareth » Fri Oct 16, 2020 10:51 am

Would I be correct to assume that running Langstone update from the Portsdown menu will achieve the same thing?
Thanks
Gareth

g4eml
Posts: 305
Joined: Thu Apr 26, 2018 9:36 am

Re: Langstone update with Diagnostics.

Post by g4eml » Fri Oct 16, 2020 11:11 am

Yes, I think the Portsdown update re-clones the entire Langstone project in the same way.

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

Re: Langstone update with Diagnostics.

Post by G8GKQ » Fri Oct 16, 2020 11:23 am

Yes, it does. It backs up the old config file to /home/pi/rpidatv/scripts/configs/Langstone.conf, but does not restore it.

Dave

g4eml
Posts: 305
Joined: Thu Apr 26, 2018 9:36 am

Re: Langstone update with Diagnostics.

Post by g4eml » Fri Oct 16, 2020 1:01 pm

That’s the only difference then, the Langstone update saves and restores the config file.

g3yjr
Posts: 21
Joined: Sat May 23, 2020 1:37 pm

Re: Langstone update with Diagnostics.

Post by g3yjr » Sat Oct 17, 2020 4:08 pm

I updated the 16-Oct Langstone release via putty and I found I had to re-run set_sound in order to re-edit the Lang_RX.py and Lang_TX.py files to accommodate my non-standard audio dongle.

Would an update from Portsdown still require this?

Graham

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

Re: Langstone update with Diagnostics.

Post by G8GKQ » Sat Oct 17, 2020 4:18 pm

Yes

The Portsdown-triggered Langstone update does almost exactly the same as the Langstone putty-triggered update. The only difference is that it does not retain the user's config file, because Portsdown does not know if the format needs to be changed during the update (and the pure Langstone update does).

Any changes that you make to enable your non-standard hardware in the Portsdown code will also be over-written by Portsdown updates. It is for this reason that I do not recommend non-standard hardware.

Dave

g4eml
Posts: 305
Joined: Thu Apr 26, 2018 9:36 am

Re: Langstone update with Diagnostics.

Post by g4eml » Sat Oct 17, 2020 5:45 pm

As Dave says any local changes to any of the files will be lost with either method of updating. That is because the update copies the config file to a safe place, completely deletes the Langstone folder and then re-clones it from the latest GitHub version. That keeps the update simple and ensures all the files are up to date.

Regarding the config file, I always try make any new Langstone version compatible with older config files so it should be safe to restore the backed up version.

Colin.

g3yjr
Posts: 21
Joined: Sat May 23, 2020 1:37 pm

Re: Langstone update with Diagnostics.

Post by g3yjr » Sat Oct 17, 2020 7:32 pm

OK Dave & Colin, thanks for the info.

Graham

Post Reply

Return to “The Langstone Microwave Transceiver”