Motorola Quantar – New Built-In AllStar Controller

Our original AllStar link controller used a 1u rack mount mini-server utilizing a dual core Atom CPU and a SSD. It was running the Acid Linux distro based on CentOS. The radio interface was a DMK Engineering URI. Also mounted in the rack was a pull out LCD monitor keyboard mouse. It worked OK for several years, but Acid/CentOS 5.xx is getting long in the tooth, with no current support.

We experimented with Raspberry Pi based controllers starting with the Pi2. The audio was a sometimes a little choppy compared to the Atom CPU. With the advent of quad-core Pi’s that problem went away completely. For quite awhile, we ran a Pi3B+ in a 3D printed case sitting on top on the Quantar card cage along with the URI and cables. It worked, but wasted rack space and the Pi ran pretty hot.

Looking at the 70cm Quantar one day, it was realized there was a nice place to put an AllStar controller behind the blank filler plate between the receiver and system control module. In the 800/900 MHz machines this slot is often occupied by a high-stability frequency reference. Occasionally, a secondary receiver is installed in the space for special applications. In the 450 repeater we have, it’s empty.

We had been evaluating some of the new CM4 compute modules from the Raspberry Pi Foundation mounted on their CM4-I/O board. This setup has several advantages when building a repeater controller. One problem with the standard Pi is the fact that you need access to 3 of the 4 sides of the board for connections and SD card. It becomes an unwieldy porcupine making it difficult to neatly mount in a rack case, particularly if you need external connections to the I/O. A nice thing about the CM4-I/O board is all the connectors including the microSD, are on the back edge.

The CM4 modules snap on to the I/O board in a parallel fashion using 2 low profile 100 pin PCB-PCB connectors. This is big change from the older compute module 3’s that plugged in using an edge connector like a memory DIMM. The CM4’s are available in many models with varying amounts of DRAM, with/without WiFi/Bluetooth, and eMMC flash storage. They all share the same form factor and are interchangeable and therefore upgradeable. The CPU of the CM4 is a faster quad-core@ 1.5GHz BCM2711 vs the 1.2 GHz SOC of the regular Pi4. There is one downside of the official Raspi Foundation CM4/IO board arrangement. Much of the available bus bandwidth is channeled to the single lane PCIe expansion slot present, this eliminates the USB 3.x connections as compared to the Pi4. In this application it does not matter. The URI, and all the other AllStar radio interfaces so far are USB 2.0 only, AFAIK. The sample rates used for ROIP audio simply does not require USB 3. There are other third party CM4 I/O boards available that lose the PCIe slot and offer the bandwidth to USB 3.x connections. But again, not needed here.

WaveShare makes a very nice all-metal case that fits the I/O board with the installed CM4 module. It has a CPU fan to cool the processor and is inexpensive. Ideal for this application. The added RF shielding is also welcome. The Waveshare CM4 version of an IO board (not used in this project) is shown mounted in their case in the photo below. The small green solder mask PCB is the CM4 compute module. This particular CM4 variant has the Wifi/Bluetooth module as well as eMMC onboard.

If USB 3 is really needed, this I/O board has it instead of PCIe. There are more and more versions of these CM4 I/O boards becoming available. The Raspberry Pi Foundation has made the design open source along with the PCB files. Custom spins of the board can be made pretty quickly.

To build our new controller, we started with a blank Quantar cover plate from eBay, some 0.062 aluminum sheet, aluminum angle, and scrap plexiglass. A 1GB CM4 module with 8GB of eMMC flash and no WiFi was selected, and AllStar installed on the eMMC drive. The CM4 module was mounted on the CM4-I/O board which in turn was installed in the WaveShare case. A few 5/8 holes were punched in the side of the WaveShare cover for added air flow, and a bracket was fabricated to hold the URI to the top of the case. There is just enough clearance inside the repeater for the URI to be stacked on the WaveShare enclosure when it’s mounted to the aluminum plate.

Mechanically, the aluminum plate is cut to just under 8.25 inches high and mounted to the blank cover plate with 1/8 x 1/2 aluminum angle. The assembly slides into the card cage just like an official Moto module. A 40mm cooling fan with a finger guard is mounted in the cover plate. A small Plexi window with a cutout was installed to allow observation of the LED’s on the I/O module and URI. The WaveShare case and URI are positioned so their LED’s face forward. The URI to repeater, cat5 Ethernet, and DC power cables pass out through an opening in the rear of the card cage. The CM4-I/O board has a build-in switching regulator to allow 12 volt operation. We are using a fairly reliable PhiHong brand 2.5A 12V cord lump supply for controller power. The I/O board can also be setup to do POE if desired. As an aside. we have found over the years that these AC switching adapters are NOT all created equal. Many, many are unsafe, unreliable garbage with terrible components, poor performance and bad construction. Failure rates typically are very high, even after just a few months of use, and some pose real safety/fire hazards. Higher quality units are made by I.T.E., Meanwell, PhiHong, Delta, Panasonic, Sony and a few others. They cost more, but are worth it in the long run.

This setup works great, looks neat, and saves a rack space or two. 14 volt DC is available from the 100W Quantar, and could easily power the controller. But in our application, we have a APC 8 port IP power switch in the rack, and wanted be be able to power down or reboot the Pi separately from the repeater. The CM4 runs nice and cool in it’s new home.

The Pi is normally is powered 24/7, but since this is a backyard repeater, an cron job controls a 40A rated SSR that is driven by a CM4 GPIO pin to turn off and on the Quantar’s AC power at midnight and at 07:00 respectively. These times can be easily overridden with out of band control using Zoiper on a cell phone. The Asterisk AllStar installation also has a SIP connection over the LAN to another Asterisk box that runs a VOIP phone system at the QTH. A dial plan has been configured to allow any house phone to dial into the repeater controller and send AllStar commands including a streaming mode that allows monitoring of system audio and PTT for TX. So a QSO can be held using the phone handset and it’s DTMF pad.

Dave, K7DMK

Building a GPS Referenced NTP Server Part 3

Selecting a GPS receiver for use as a NTP server reference involves some trade offs. It can be a deep rabbit hole with seemingly no bottom if you just start studying spec sheets.

I believe the first step is define the role of the server and needed vs desired accuracy on your real network. My goal was 1 millisecond time with sub 500 microsecond jitter / wander. Remember that network traffic and congestion in network devices like switches can have impacts greater than instability of the time source. So some extended ping testing under varying network conditions can be helpful to get an idea of network induced error. Looking at standard deviation of ping time is one good indication of problems to be solved before proceeding.

Assuming your goals are relatively modest like mine and the network checks out OK, the next step is finding a suitable GPS receiver.

A few things we are looking for here are: Standard NMEA 183 output, 1 PPS output pulse and serial rather than USB interface. Provision for an external antenna is a great feature and may be a requirement depending on the situation. Although a USB interface may sound good, because of the way communication is achieved by asynchronous polling of the host device, a lot of uncorrectable variability occurs compared to old-fashioned RS232 serial, even at low baud rates like 4800. I haven’t actually evaluated USB and what this means from a practical standpoint, however. The PFSense document on NTP does not recommend USB.

GPS receivers can be divided into two broad classes with some crossover. Most receivers are position/navigation optimized devices. But there are those that are designed specifically for timing applications. Navigational units need to deal with triangulation from multiple sats at different elevations and also with motion. Their algorithms have location parameters as their priority which slightly degrades timing accuracy. Timing GPS receivers are different. They can go into a “position hold” mode at previously established coordinates and even look at just one satellite to achieve very low jitter on the 1 pps pulse. The internal circuits including the clock oscillator and those that process the pulse are also optimized so that 10-15 nanosecond specs are typical of this class. About 10 to 100 times better than your average navigation GPS. These are probably overkill for a home lab though. They tend to be expensive ‘niche” devices. Another class of receivers from the innovative U-Blox people have part numbers that end in “T” like 5T 0r 6T. The T stands for timing, and they are a hybrid design that combine good positional performance, but can go into position hold and behave as very accurate timing receivers. They use an internal TCXO rather than a regular crystal oscillator for better hold-over stability.

Thus far, I have evaluated three receivers and compared their relative NTP performance on PFSense. One was already in stock and the other two were purchased.

The first RX was a CSI Mini-Max, a marine oriented unit with WAAS and differential GPS capability, but no pps output. The second was a Garmin GPS18x-LVC, a hockey-puck style OEM 12 ch receiver with a built-in patch antenna, WAAS, and PPS pulse output. The third was an inexpensive U-Blox 6M module modified to generate PPS from it’s blinking LED and it’s 3.3V logic i/o converted to RS232 by way of a Max3232.

All performed well enough in a home lab, for all but the most critical applications. That said, the addition of the 1 pps pulse makes a significant improvement. See the graph below. It shows the Garmin unit running without the PPS signal line connected in the first portion, and the effect of connecting the PPS line toward the mid-portion of the graph. Jitter, wander and dispersion all decrease dramatically.

Adding PPS to NMEA Data Stream

The Garmin 18x is a very good performer. It had adequate sensitivity to pick up 8-10 sats indoors. A real achievement with the foil-backed insulation in the ceiling. It’s also very convenient to use. It has standard RS232 serial output, and just needs 5V at about 60 mA; that can be robbed from a nearby USB port. I have it sitting on the top of my 6ft rack staring up towards the roof. It also has a handy magnet on the bottom to hold it to ferrous metal.

Garmin GPS18x-LVC
Garmin 18x NTP Performance over 1 hour

Finally, the little U-Blox 6M also worked very well. Maybe just a bit more jitter at times than the Garmin, but still well within my design goals. Again, this was indoors. It was eventually assembled in a 3D printed PETG case that can be mounted outdoors with a 20M length of shielded Cat5 cable carrying both the serial data and 5v power. A modified RJ45 to DB9 adapter inserts the power at the computer end of the cable. The base has screw holes to fasten to a flat surface. The UBlox people have a very nice piece of software (Windows only) called U-Center that allow many, many different parameters to be changed and saved to flash in these modules. I merely set the baud rate, turned on the PPS LED and set it’s duty cycle, but there are a lot more options to explore here. I might have missed something really good…

Neo 6M Stats
Mini Water Tower with UBlox 6M inside
Cat5 to DB9 data and power

Next NTP experiments may be using a Raspberry Pi4. I also have a U-Blox LEA-5T based surplus timing board coming on a slow boat from China (literally) It’s a GPS/GNSS module optimized for timing applications. It has the fixed position mode available and can use a single satellite. Should be interesting to compare and program with U-Center. More fun to come.

Dave, K7DMK

Building a GPS Referenced NTP Server Part 2

The kernel used in Linux and BSD operating systems has historically derived it’s timing accuracy from an oscillator, normally an inexpensive crystal oscillator present on the system board. From this oscillator, all the system clocks needed for the CPU and various buses are generated. In addition, most computers have a real time clock chip (RTC) powered by a battery that keeps time in non-volatile ram. This clock is often synchronized with NTP and OS time as a start-up process. Early NTP clocks concentrated efforts solely on providing more accurate and stable system oscillators.

More recently, many Unix-like kernels have included a mechanism for disciplining it’s timing by an outside reference. Most modern implementations of Linux and BSD have this feature. This allows very fine adjustment of kernel timing and subsequent time keeping without having to make hardware modifications to the system board. The NTP server software, likewise has an internal timing module generally based on a modeled PLL oscillator, that allows external references of both NMEA time data and precise 1 pps time pulses to be applied. The combination of kernel disciplining and external references for NTP allow very accurate time information to be served.

PPS Correction

Two interesting software distributions that can used to create Swiss-army knife network appliances for firewalls/UTM’s, routers and VPN gateways are PFSence and OPNSense. Both have the ability to provide a highly accurate NTP time server when locked to an external reference, in addition to many other network tasks. So in this case, a dedicated computer is not needed exclusively for a NTP server.

In the first experiment, an existing installation of PFSense currently acting as a firewall and VPN gateway was modified to add an accurate, low latency NTP server to the LAN. The PFSense software is running on a small rack mount SuperMicro mini-server with a dual core D525 Atom CPU. It’s an ideal machine for this purpose since it has an unused serial port and requires less than 25 watts of power to operate. It’s LAN side is already connected to the network by a Gigabit NIC. The NTP server will be setup to allow time requests on the LAN port only.

In part 3, we will discuss the considerations of selecting an appropriate GPS external reference, and the kind of results one might expect with various classes of GPS receivers.

Dave, K7DMK

Building a GPS Referenced NTP Server Part 1

NTP is an old, but still very useful time transfer protocol. The mechanism uses NTP client software on a host computer that “asks” for time info, and a NTP server somewhere out on the network that sends out the current time and date in a specific format. “Out on the network ” usually means the Internet. Usually port 123 is used. There are many existing public NTP servers on the Internet and many are incorporated into open pools like pool.ntp.org that permit a generic url to be specified rather than a particular IP address.

So why build a NTP server and put it on your local network? If very accurate time is needed for your application, such as scientific experiments, time stamps in synced databases or radio systems, etc, a local time server can be very useful. Because of the variable latency of WAN based servers, really accurate time is hard to achieve via the Internet . The actual network time delay accessing a Internet server has some compensation in the protocol, but it’s the unpredictable jitter (phase noise being a model) and wander (random noise) due to the vulgarities of the Internet, that is not correctable.

Time servers are described by their “Stratum level” determined by their source of time reference, and also how far they are removed from the primary reference. A Stratum 1 NTP server gets it’s time from a so called primary time reference called a Stratum 0 (zero) source. So by definition, there is no Stratum zero NTP server, since the clock does not connect directly to a network. Twenty years ago, building a Stratum 1 NTP server meant using something like a very expensive cesium clock, or perhaps one based on a rubidium oscillator. Today, GPS can provide that reference with comparable specs, but as usual, the devil is in the details. More on that later.

Another time server that connects to the Stratum 1 time server to get it’s time to forward, becomes a Stratum 2 server by this convention. Still another NTP server that connects to the second server would become a Stratum 3 server. Each time you are farther removed from the primary time source, the Stratum level goes up. The accuracy and uncertainty gets worse each time because of the expected jitter in the network connection between them is accumulating.

Not long ago, establishing a true Stratum 1 time server on one’s network was an expensive proposition. Today we have several relatively inexpensive options to choose from.

We will be exploring a couple of these options over the next few weeks.

Dave, K7DMK

Repeater Battery and Environment Monitoring

Little projects have a habit of growing into more complicated endeavors. As mentioned in a previous post, it was thought that a simple remote monitoring system for the backup battery and repeater environmental conditions would be a useful addition.

It was decided that battery voltage, DC supply voltage, battery temperature and ambient (cabinet) temperature would adequate. A small DAQ hung off the Pi3B+ being used as the AllStar controller with 10-12 bits resolution should do the job.

A little research revealed inexpensive ADS1115 4 channel I2C bus A/D converter boards that were available for less that ten dollars. These can operate on either a 3.3 or 5V single rail supply, require just two I2C connections to the Pi’s GPIO bus, and offer 16 bits (15 bits + sign bit in single-ended mode) of resolution. These boards were designed with the Arduino in mind, but they work just fine on the Pi as well. Sample code in both Python and C was available as a starting point for the software end. A couple of boards were ordered.

As far as temperature measurement, 3 terminal band-gap sensors like the LM35 and TMP series (TMP35,36.37) are easy use and require no calibration. They operate on a single 5V supply and output a voltage linearly proportional to temperature in degrees C. Several TMP37 sensors were purchased. These measure temps from 5C to 150C and output 20mv/degrees C. Just measure the output voltage and divide by 0.02 and you have the temperature in Centigrade degrees.

The ADS1115 has an internal programmable gain amplifier that allows scaling the input voltage range. This setting, along with the the supply voltage (5V or 3.3V) determines the full scale value (for a 32768 count) of the converter. It was decided to use a 5V supply and 0-4.096V full scale for the best noise immunity. A 10:1 input voltage divider built with a few precision resistors would allow 0-40V DC voltages to be monitored. Because the Pi I2C bus uses 3.3V logic levels and the ADS1115 is powered by 5V, a level translator is included in the design to insure compatibility without having to modify pull-up resistors.

A prototype was assembled in a die cast metal box for shielding. LC low pass filters were incorporated on each input using 0.5uH RF chokes and 470 pF ceramic caps to minimize RF ingress. Sample software was modified for some testing. It was set up for two voltage channels and two temp channels on the four inputs available with the 1115 ADC.

The two voltage channels worked great. The resistors in the voltage divider present a moderate 200K input resistance and were hand-selected within about a few tenths of a percent. The readings are formatted in the software for two decimal places as in “13.45”, and the measured voltage closely agreed with a 4-1/2 digit multimeter. A little UHF RF was sprinkled in the vicinity with a HT, and all was well. Voltage measurements: done.

The temperature channels were a different matter, however. It turns out the TMP37 sensors are exquisitely sensitive to RF. Thus began the long saga. I tried just about every RF trick in the book to tame these sensors. The manufacturers’ datasheet recommends a 0.1uF ceramic cap from Vcc to ground. In high noise environments they also suggest adding an additional 1-5uF tantalum cap in parallel. RF ingress at various frequencies vs noise is not specifically addressed in the datasheet. I tried those suggested caps, and several other bypass capacitor combinations with disappointing results. A 4 watt 70cm HT set to 1 watt on 446 MHz was used as the test transmitter. With the prototype sensor isolated on the bench, transmitting from 3 meters away would upset the reading by the equivalent of several degrees C. At closer range, the reading were less than plausible and clearly in error with ridiculous values. It was obvious the band-gap diode in the sensor made a dandy detector and was rectifying the RF and causing a DC offset. Back to the drawing board.. Round two explored shielding; this included installing the sensor in a closed-ended brass tube with a well shielded connecting cable wrapped in copper tape at the entrance of the tube. Better, but still not good enough. I have had radio receivers that were less sensitive to RF than these sensors!

Round three added UHF rated ferrite beads to the Vcc and output leads of the device . Slightly better still, but the repeater site is a very high RF environment and my confidence was low.

PLAN B: After some discussion, a friend suggested trying a 1 wire temperature sensor. I thought that they likely used a diode type sensor, and just have an internal A/D and 1 wire interface. Might have the same RF issues as the 3 wire sensors that are driving me crazy.

Two very nice 1 wire stainless steel temp probes with silicone wire leads were ordered from Jeff B. (Amazon) as a trial. The 1 wire GPIO kernel driver was loaded on the Pi and some new software coded. When the probes arrived, expectations were subdued, but the tests proceeded. Amazing. These things seem to ignore RF; even at close range. Even TX at 4W power from the HT at less than 1 meter distance was OK. Problem is most likely solved. A new hole for another jack was drilled in the die cast box to accommodate the new 1W temp probe. Luckily, there was a spare wire in the cable available to make the connection to GPIO #4 on the Pi.

Thanks to some ideas gleaned from a sample script written by WA3DSP, I was able to pipe the output from the compiled C binaries that read the voltage and temp data into the AllStar TTS voice synth. Some custom ulaw sound files were created that say things like “the battery voltage is”, “the battery temperature is” and a few others. Now, on demand, with a DTMF commands over AllStar, spoken battery voltage and temp, supply voltage, and ambient temperature readings can be executed.

Next step is to make a trip to the site and do the physical install. A longer connecting cable to the Pi’s GPIO bus was constructed to replace the short test cable. Plan is to mount the A/D box in the rear of the cabinet about 75 cm from the Pi. How long can you go with a I2C bus signal? Well I found a nice paper on that. It depends on the clock speed of the bus. The speed can vary; typically from 10K to 1M baud. At the default 100K speed, the main limiting factors are capacitance to ground and termination resistance. With the standard Pi hardware, a good rule of thumb is 500 pF max on the capacitance. I used 6 conductor foil shielded cable 75cm long. It measured an average of 180 pF from any conductor to the foil shield, and about 100 pF inter-conductor. So this length should be fine. I didn’t dig out the scope and look at rise and fall times yet, but if I2C errors are noticed the clock rate can easily be decreased with a config.txt argument. More clamp ferrites were added to the connecting cable to keep away evil spirits. BTW, If really long distances are needed, special I2C transceiver driver chips are available. They are used on both ends of the long interconnect.

EPILOG: As a final TMP37 temperature sensor experiment, a new (last!) configuration was tried. A small, fully shielded aluminum box was liberated from the junk box. A piece of proto PCB was used to mount the sensor along with more 0.5 uH LP/470 pF cap filters in the Vcc and output leads. Three bypass caps were installed close to the leads on the device, along with the ferrite beads. The sensor was taped to the bottom of the box with aluminum tape to thermally bond and electrically double-shield the device itself within the shielded enclosure. Finally, a double shielded 3.5mm plug to 3.5mm plug cable, again with a ferrite, was used to make the connection to the A/D box. Yes, it mostly works with RF. If one gets the HT antenna within about 25cm of the connecting cable, it starts to affect the reading slightly. But that’s a really strong field. I’m going to try this sensor for ambient temperature at the site and see how it works. It’s optional, and not a critical reading. If the TMP37 proves useless at the site, and the ambient temp parameter proves valuable, plan C will implement another 1 wire sensor for this reading as well.

Yet another interesting part that I may try for ambient measurements, which is inching it’s way to me on a slow boat from China (eBay), is the Bosch BME280 combination temp, barometric pressure and humidity sensor with I2C and SPI bus interfaces. We don’t really need the additional parameters, but why not? RF stability? Who knows. It’s in a tiny metal can, so maybe.. Update in a few months when they finally arrive.

As a point of reference, I had a package out for 84 days from China recently. Ordered on Feb 26, and arrived today 5/20. A lot of low priority freight that normally used air transport is being sent by sea due to the pandemic.

Dave, K7DMK

Prototype A/D Box
A/D with Pi3B and 1W Temp Probe

More on Elephants and Alligators

Many DMR radios have a hidden feature that allows a user to enter a “service menu” through a series of key presses that offers a few features helpful for troubleshooting and adjustments. Both Motorola XPR gen 1 and gen 2 series radios as well as Hytera HT’s and mobiles have this facility.

One of the functions present in this service menu is RSSI , or received signal strength indicator. This gives you a fairly accurate ( to be determined), way of measuring RX signal strength in dBm. A kind of a poor man’s measurement receiver. An alligator meter for a repeater transmitter, you might say.

As far as the elephant part of the equation, the live Brandmeister last heard list can display the measured RSSI value reported to their network by Hytera and Moto repeaters receivers. Sounds like an elephantometer to me.

So by monitoring the RSSI values from the rig and from the last heard simultaneously, what we have is a way to compare RX vs TX performance of a repeater from a particular location. We can use either a HT or mobile radio for the test, and evaluate the performance at a variety of remote TX power levels.

The accuracy of these RSS indications is somewhat unknown without additional measurement verification, but that’s pretty easy to do. Just put your rig into the service mode, display RSSI and feed in a calibrated signal generator, and see what it reads. Similarly, a measured DMR signal, from say a HT with an attenuator, connected directly to the repeater RX input will give a known RSSI value to be compared to the reading on the last heard. Ideally, a couple of power levels should be checked on both the subscriber radio and repeater.

Some initial trials on the new K7EVR machine look promising as being a valid measurement technique, but calibrated tests have not been performed yet. The results will be updated here, if significantly different. As an example, using a MD782G mobile radio programmed for low power (5W), a quarter-wave vertical antenna @ 4M AGL, and a distance of 11 KM (LOS), the RSSI values were within about 3 dB of each other, with the RSSI from the repeater TX being the better number. That seems to indicate the ears and mouth are about the right size for say a 10-15W mobile station.

More testing to be done, but interesting..

Dave, K7DMK

Repeater Tweaks

A recent trip to the repeater site was completed to take care of a few details after the initial install. The temporary low capacity backup battery was replaced with a proper one. A Deka Fahrenheit series 140 AH AGM battery was installed. Over a hundred pounds worth of battery is now connected to the Magnum Energy inverter-charger and should provide a minimum of 12 hours of 90/10 service down to 60%-70% depth of discharge.

A second task was to switch the DMR side of the system from Brandmeister master server 3102 to 3103. Ping testing showed about 10ms less latency to the CA based server. Packet loss has been minimal. The master server URL is a parameter that can’t be changed remotely with RDAC.

RF performance is still being evaluated in different parts of the East Valley, metro Phoenix, and beyond , but so far it looks very good. Because of mountains to the South of the site, coverage is compromised toward 180 degrees. This is predicted from modeling, and confirmed by a recent trip to Tucson. Coverage was also compared to other UHF repeaters at the same location, and was as expected. The goal was to have a solid signal in the East Valley including Mesa, Gilbert, Chandler, Tempe, Scottsdale and the Eastern half of Phoenix. This appears to have been largely achieved, but testing will continue. Mountains are both a blessing and a curse, depending on whether you are on the top or bottom, and on which side of them you find yourself. Because of our topography, shadowing of a few areas is inevitable. Commercial services like public safety employ multiple sites to minimize this problem.

Setting a balance between RX and TX range of a repeater is always a compromise. It depends on your target audience; are you looking for HT coverage or mobiles? Is it a 10W, 25W or 50W mobile? Etc, etc. I modeled using a 10W mobile with a unity gain antenna at 1.5M height on Radio Mobile to predict coverage. Not quite an HT, but not a 50W mobile station with a 6 dB colinear either. So anything more is gravy. Is it an Elephant or an Alligator? Not sure yet, but I might be able to make the ears a little larger; I have a 10 dB attenuator between the preamp output and RX input. Whether the extra gain would be helpful is questionable. No plans on adding a power amplifier though. 40W from the TX and 20W to the antenna should be enough RF for the desired coverage area.

Just a few items are left to be done. The most significant is a method of remote battery state monitoring. The charger in the Magnum Energy unit is fully automatic. It does bulk charging at 30A max and then switches to float. It would be nice though, to be able to check on the battery from time to time. The company does offer a way to read the SOC of the battery over IP, but it’s an expensive solution. An alternate way using the RasPi AllStar controller with an A/D converter will be implemented instead.

Dave, K7DMK

China 50 Ohm Loads

The Celwave dual stage isolator used for the new repeater was obtained at a local Hamfest sans it’s termination loads. So it really was a circulator at that point, and I needed some 50 ohm loads for this isolator application. My past experience with Chinese terminators of the low power variety has not been good. The ones I tested before, rated for 1W and 2 GHz, were pretty terrible at higher than VHF. Even at 145 MHz they only had about 15-20 dB RL depending on the sample. At anything over 500 MHz they were totally unusable unless you were trying to simulate a very poorly matched antenna.

With that in mind, I reluctantly ordered a 10W and 50W load from China for the isolator. I wasn’t expecting much. The price was cheap enough and I figured on replacing them with something better when decent ones could be found at a future swapmeet. The 10W load was about 13 dollars shipped and the 50 watt about 27. They arrived pretty quickly as China goes, and their external finish and quality seemed high. The question was how good of loads they were.

Surprising good..

10W China Load
50W China Load

Way better than I was expecting. 38 and 42 dB RL at 450 where they were going to live. The isolator was very happy. With the good antenna match at the site, they shouldn’t see a lot of action from the repeater TX reflected power, but will hopefully shunt the other guy’s RF to ground and keep it out of the transmitter.

50W China Load from eBay

Dave, K7DMK

Inexpensive High Performance Preamp

The Qorvo SPF5189Z based RF gain block modules being sold on Ebay for about 5 dollars shipped, offer an excellent value for building a low cost VHF or UHF preamp without sacrificing performance.

These are sold as a small double sided PCB with female SMA connectors installed. The bottom of the board is a continuous ground plane and the top side has a small tin plated shield over the RF circuitry. They require only a single +5 volt supply at about 100 milliamps for operation. The active device is the SPF5189Z which is a GaAs pHEMT low noise MMIC amplifier.

$5 Preamp module

The specs for this device are very impressive for it’s price point. We can thank the cell phone industry for high performance, high volume (cheap) parts like this. The MMIC is rated for gain from 50-4000 MHz. At 70cm the gain is about 20+ dB and at 450 MHz. the noise figure less than 0.5 dB. A quick summary of the SPF5189Z is below:

Qorvo SPZ5189Z

These specs are very similar to to the highly rated and more expensive PGA103+ amplifier MMIC from Minicircuits. It has been the part used in many high quality Ham preamps being sold today.

The down side of these modules is they are broad-band, untuned circuits, and require filtering and/or additional shielding in high RF environments.

The preamp employed on the new K7EVR repeater is build with one of these modules. It was mounted in a small Pomona size B diecast shielded box with robust M/F type N connectors installed. The SMA connectors were removed and short heavy gauge wire ran from the RF in/out on the PCB to the N center pins. These leads ended up being about 15mm long, and significantly degraded the input return loss of the preamp over 1 GHz.

Homebrew Preamp

As can be seen, RL is about 20 dB at 450, but gets worse from there. The bottom side of the board is grounded to the case and additional ground paths to the SMA shield points are provided. This is OK for 450 MHz; not OK much higher in frequency, with the added inductance. It was just luck that in this case, the minimum SWR was near the desired operating frequency. Clearly, a better remounting arrangement is needed for microwave frequencies.

Input filtering to the preamp used on the repeater is furnished by two series connected six inch diameter cavities that provide a 3 dB bandwidth of about 400 KHz. This also adds about 40 dB more TX isolation to the 110 dB notch provided by the duplexer. At these levels, shielding is everything in order to actually achieve isolation close to this magnitude. In this case, the preamp’s N connector screws directly to the output of the cavity filter, and the two cavities and RX interconnect are Superflex FSJ1. No RF adapters are used, and all N connectors are tightened with a wrench. BNC connectors here would be a compromise; most types provide only 70-80 dB of isolation at 500 MHz. This RF leakage is related to the poorer ground retention of the bayonet lock vs a screw thread. High quality silver N, TNC and gold SMA connectors can provide greater than 100 dB isolation at 500 MHz, if properly installed. That degree of isolation is rarely required, but the input of an unfiltered high gain preamp in a high RF environment is one such place.

DIN 7/16 connectors would be better still. They have the advantages of very low leakage/high isolation and exceptionally low PIM, but are expensive. There are a couple of very nice mini versions of the 50 ohm DIN connector that measures 4.1/9.5 and 4.3/10mm, also have great specs, are somewhat less expensive, and would be an excellent choice for this type of application.

2 cavity filter

In the current repeater configuration, the goal was to just supplement the excellent front-end of the Hytera repeater in a heavy RF milieu with enough gain to overcome the losses of the duplexer, RX cavities and feedline. So currently, a 10 dB type N attenuator is installed between the output of the preamp and the RX input of the repeater. With about 22 dB of preamp gain, this setup yields about 7-8 dB RX gain over the sum of incurred losses. The estimated overall system noise figure should be about 5.8 dB. Derived as 1.6 (feedline) + 2.0 (filter) + 1.2 (duplexer) + 0.5 (preamp) + 0.5 (Hytera RX). This calculation really brings home the NF advantages of a separate RX antenna with the preamp mounted very near the antenna. Unfortunately, this just isn’t practical at most radio sites.

In summary, I have found these preamp modules to be a great bargain. Their construction quality and performance is surprising good even at several times the price. Besides use as a preamp, they can be used for general purpose RF gain blocks over a wide frequency range.

Dave, K7DMK

New repeater is on the air

The new mixed-mode Hytera repeater went live at 15:00 on 2/1/20. As discussed previously, it is a DMR repeater on the Brandmeister network, and an AllStar analog FM repeater on ASL. It will be an interesting experimental platform.

Through some generous and gracious friends, and some help with frequency coordination, an excellent site for the repeater has been provided. The antenna is about 1200 feet above the average terrain of the metro Phoenix East Valley. Although the repeater output power is limited to about 40 watts, the anticipated coverage should be excellent.

The site has many other commercial and Amateur repeaters, but the receiver is well protected by a pair of large bandpass cavity filters in addition to the duplexer. The 2 dB loss of the filters plus about 1.6 dB in the feedline is compensated by a low noise preamp based on a SPF5189 MMIC. A dual stage isolator on the TX, and PD526 six cavity duplexer complete the RF setup. All interconnects are done with FSJ1 Superflex, with the exception of the new duplexer harness. There, the old original single shielded RG8 coax was replaced with Belden RG142u and high quality silver plated N connectors.

I was very fortunate to be allowed to use an abandoned DB408 antenna fed by LDF5 Heliax that was present at the site. Adding all losses, about 20W of RF is feeding the antenna.

DC power for the repeater is provided by a home brew N+1 redundant power supply using two 15V 25A Meanwell switchers and Schottky diode isolation. It’s a bit of a overkill; the repeater only draws about 8.5A on TX, but the supplies are PFC corrected and are efficient even at light loads. An external diode isolated DC input with a 5V 5A buck regulator module for the Pi is also provided, but not used in the present configuration. The RasPi used as the AllStar controller is presently powered by another 5V 3A Meanwell supply with a separate AC input, so both the repeater and Pi can be switched on and off independently by an 8 port APC IP power switch. Doing this with external DC power applied would require another way (relay or MOSFET switch) to interrupt the DC power to the repeater for remote reset. An additional DC filter board with an inductive/capacitive Pi configuration provides very clean 12V power to the preamp. A 5V linear regulator and more capacitive filtering is present in the shielded preamp case for 5V Vcc supply to the SPF5189Z.

The site has an emergency generator for AC backup which is augmented with a 600W Magnum Energy inverter-charger unit with it’s internal transfer relay, plus a deep cycle battery that together act as a UPS. This should hold things up until the generator comes on line. The overall system is very efficient compared to many repeater setups. Only about 130W of AC power is consumed during TX and about 30W on RX standby.

The gear is housed in an 18U freestanding fully enclosed steel rack cabinet with front and rear doors. This should provide a degree of additional shielding. Fans in the repeater, power supply, inverter-charger and cabinet will keep things at a reasonable temperature.

Some items that need to be fine-tuned are hang times for both the DMR and analog sides of the system, and auto-disconnect intervals for ASL connections. The RasPi that controls the AllStar functions can be SSHed into on a custom port for editing settings remotely. Additionally, Hytera RDAC is in place as needed to monitor forward power and VSWR, as well as change some, (but not all) codeplug parameters. Required out of band control is provided by Zoiper, a phone app that connects via IAX to the Asterisk AllStar controller. As as last ditch, the APC ip switch can be accessed to turn off and/or reset the Pi, or kill power to the repeater.

Dave K7DMK