Radio, railways, stuff...

M0RVB

Shack networking

It's surprising just how many things one gathers that need Ethernet. Having just made an NTP server out of a Raspberry Pi that took the last port in my 8+2 port PoE switch I needed more ports. The switch is a Netgear GS110TP, 8 Ethernet ports and up to two SFP modules for interlinking. So I have added a second GS110TP linked to the original one via a short fibre lead and two SFP transceivers. The house now has 4 Ethernet switches, all Netgear, making 48 Ethernet ports in total but not all in use, plus 3 wifi access points, Netgear again and all PoE powered. Actually I could have settled for a non-PoE switch as the additional one but this one came cheap, and new in box. All the switches and access points do SNMP too, centrally monitored using MRTG. Why? Because they can!

Continue reading...
M0RVB

A GPS based Raspberry Pi Stratum 1 NTP server

I decided to make my own Stratum 1 NTP server for the home. No, I don’t need the accuracy, but localising stuff like that is always interesting. So, I recently purchased an Uputronics GPS HAT from Pi Hut which is marked Raspberry Pi GPS+RTC Rev 6.4. It arrived next day along with some other bits. I also got another PoE HAT and already had a Pi 4. Raspbian installed on an SD card – this time I remembered to first set it up to work via ssh – and the Pi booted ok with the GPS board flashing it’s ‘time pulse’ LED once per second. I followed instructions on the web, in particular from the two websites shown at the bottom of this post. Initial setting up of the Pi involves the use of raspi-config to stop the serial port login shell but leaving the port enabled, and disabling serial getty and bluetooth. At this point, doing cat /dev/ttyAMA0 should return data from the GPS receiver but all I got was garbled characters. More on that later. The next step was to enable PPS support which involves modifications to /boot/config.txt and a module adding to /etc/modules, plus downloading pps-tools. Running sudo ppstest /dev/pps0 looked ok but again, more on that later. Next was to install gpsd and modifying /etc/default/gpsd plus setting it up to run at boot time. After a reboot running sudo service gpsd status returned valid information. The gpsd-clients package was installed which includes gpsmon. Running gpsmon showed that all was not well. It generated a few lines but nothing that meant any sense. I then returned to sudo ppstest /dev/pps0 and noticed this time that all it was giving was timeouts. I may well have missed this in my haste earlier as it reports ok, but then gives timeouts. An, unfortunately not recorded web page suggested adding arm_64bit=0 to /boot/config.txt and after rebooting sudo ppstest /dev/pps0 now produced a valid line, once per second. Ok. Retracing my steps I ran gpsmon again to take a closer look and noticed that in the few lines it managed to display was the entry ‘”bps”:9600’. That was the lightbulb moment. The GPS board defaults to 115200. Stopping gpsd and running minicom -b 115200 -o -D /dev/ttyAMA0 produced valid GPS data. Modifying /etc/default/gpsd to set the baud rate to 115200 (GPSD_OPTIONS=“-n -s 115200”) fixed the issue. But, gpsmon still does not produce all the output that I had expected, in particular it does not populate the time and date fields. Running cgps does show valid information and suggests that all is well and there is something I am missing regarding gpsmon. At the end of the day it all appears to be working fine. The next package installed was chrony. This all went to plan and running chronyc and its sources and sourcestats options showed valid data after the system had settled down for a couple of minutes after boot. The final leg of this journey was to set up various…

Continue reading...
M0RVB

SDRconnect and RSPdx

I now have an RSPdx which arrived today and connected it in the loft to a discone which was already there. I changed the o/s on my Pi 4 that runs an ADS-B receiver to the 64-bit flavour, reinstalled FR24feeder and installed SDRconnect. Running it as a server it communicates very nicely with SDRconnect on the Mac Mini. It will be interesting to watch this software as it develops. One this was clear… the discone is useless! While I realise it is little use at HF it is pretty deaf thereafter. So I have moved the RSPdx down to the shack so it can be plugged into ‘proper’ antennas. It is currently pulling in 20m. Of course, my HF antenna is on a tuner so I need to tune it via one of the HF rigs and then swap leads to plug the SDR in, but that is not much of an issue because it is all done via the BNC patch panel. I also had it looking at 2m via the white stick in the loft. My old RSP2 is destined to go into the garage with a couple of VLF antennas as it is far too electrically noisy in the house for that. More on that if I ever get round to it…

Continue reading...