Bizzare issue with MMDVM Hat harmonics and 5GHz WiFi
Posted: Wed Oct 04, 2023 9:48 pm
Hi all,
I just wanted to post here to share something quite strange I've encountered. And if this post may be helpful if anyone else is experiencing something similar or strange behaviour that they cannot get to the bottom of.
For ages I've had a strange problem with some of my Raspberry Pi MMDVM based hotspots, I have 5 hotspots and 2 out of those 5 often misbehave.
This week I'd had enough and decided to investigate, as I was using the hotspots a lot as I host a XLX server and I recently installed a pair of DvStick3003's and needed to give the transcoding a good workout with multiple different modes.
I re-imaged both hotspots and swapped out the PSU's but the issue remained.
What kept happening was on one hotspot that I was using for DMR I'd constantly get a "Not linked" then "Linking to" message after every other transmission, or I would lose access to the Pi-Star webpage momentarily and eventually it would come back or I would have to reboot the hotspot. On the other that I use for YSF I would get the same issue with the webpage and sometimes I'd get network packet loss.
After a bit of testing with swapping the Pi's out and swapping some MMDVM Hats over I opened a terminal and ran a continuous ping on every Hotspot here and noticed the following:
The first problematic hotspot is a Raspberry Pi Model 3A+, this has a MMDVM Dual HS Hat and is configured for DMR.
When I key up a DMR Radio I could see a lot of packet loss on each ping, then when the radio was receiving and the hotspot transmitting the same thing would happen again, on some occasions I would get a few "Request timed out", this absolutely coincided with the loss of the Pi-Star webpage and it dropping any links. As this is a duplex hotspot it is TX/RX'ing when I transmit in to it.
I then tried the second problematic hotspot which is again a Raspberry Pi Model 3A+ but has simplex MMDVM HS Hat, I connected to the YSF parrot and transmitted in to it, the ping was perfect with no loss. Then as soon at the parrot came back to me I started experiencing severe packet loss and a lot of "Request timed out"
I tried the same test on the other 3 hotspots, those are 2x Raspberry Pi Zero W's and 1x Raspberry Pi Zero 2 W.
No packet loss or any "Request timed out messages"
I swapped all the MMDVM hats around and the problem would stay with both of the Raspberry Pi Model 3A+ devices.
I did some more testing and discovered that the difference between all the hotspots was the fact that both of those 3A+ Pi's were connected over 5GHz. This problem was happening with every single MMDVM Hat I own (I have 3 different types) on any of the 3A+'s that was using the 5GHz WiFi band. Doing some further testing I noticed the issue was much worse on 434.000MHz than 438.800MHz.
Now what I don't know yet is, is this problem unique to the Raspberry Pi Model 3A+, I do have a Pi4 here that I will test them with this week, is it unique to specific WiFi channels. In this instance one of my 5GHz channels is Chan 52 5.256MHz which is very close to the 12th harmonic of 434MHz and my network also uses Channels 128 or 108, I have a mesh system in both the house and an outbuilding which is my workshop. On the particular day that I'm experiencing issues the hotspots just happened to be on Chan 52. Not every day do I experience these problems, I re-imaged both hotspots a few weeks ago and I did not encounter any problems for a while, which makes me think they were on a different 5GHz channel and the days where only the duplex hotspot is misbehaving the 5Ghz channel in use must be a harmonic of 438.800MHz.
I need to do some further testing to see if it is only the Pi Model 3A+ that is affected by this as the WiFi logic on those is directly next to the GPIO port and directly underneath the SMA connectors on a MMDVM Hat. I will also go through the frequencies on the MMDVM board and see what frequencies are harmonics of WiFi channels on the 5GHz band. Unfortunately none of my spectrum analyzers or communications test sets go up to the 5GHz range. I will do this test with a Pi4 however and report back.
I need to look in to a way of disabling 5GHz on my Hotspots, it may be possible to add a list of specific 2.4GHz channels/frequencies to the wpa supplicant file, but I don't know if that works on Pi-Star. It would be really useful if there was an option in Pi-Star to disable 5GHz WiFi.
I am unable to change WiFi channels or give an individual SSID to 2.4GHz and 5GHz WiFi bands on my MESH system.
I can put it in to 2.4GHz only mode, but that has a 10 minute timeout. So I need to find a way of disabling 5GHz on the hotspots themselves.
I would be really interested to hear if anyone else has encountered something similar.
I just wanted to post here to share something quite strange I've encountered. And if this post may be helpful if anyone else is experiencing something similar or strange behaviour that they cannot get to the bottom of.
For ages I've had a strange problem with some of my Raspberry Pi MMDVM based hotspots, I have 5 hotspots and 2 out of those 5 often misbehave.
This week I'd had enough and decided to investigate, as I was using the hotspots a lot as I host a XLX server and I recently installed a pair of DvStick3003's and needed to give the transcoding a good workout with multiple different modes.
I re-imaged both hotspots and swapped out the PSU's but the issue remained.
What kept happening was on one hotspot that I was using for DMR I'd constantly get a "Not linked" then "Linking to" message after every other transmission, or I would lose access to the Pi-Star webpage momentarily and eventually it would come back or I would have to reboot the hotspot. On the other that I use for YSF I would get the same issue with the webpage and sometimes I'd get network packet loss.
After a bit of testing with swapping the Pi's out and swapping some MMDVM Hats over I opened a terminal and ran a continuous ping on every Hotspot here and noticed the following:
The first problematic hotspot is a Raspberry Pi Model 3A+, this has a MMDVM Dual HS Hat and is configured for DMR.
When I key up a DMR Radio I could see a lot of packet loss on each ping, then when the radio was receiving and the hotspot transmitting the same thing would happen again, on some occasions I would get a few "Request timed out", this absolutely coincided with the loss of the Pi-Star webpage and it dropping any links. As this is a duplex hotspot it is TX/RX'ing when I transmit in to it.
I then tried the second problematic hotspot which is again a Raspberry Pi Model 3A+ but has simplex MMDVM HS Hat, I connected to the YSF parrot and transmitted in to it, the ping was perfect with no loss. Then as soon at the parrot came back to me I started experiencing severe packet loss and a lot of "Request timed out"
I tried the same test on the other 3 hotspots, those are 2x Raspberry Pi Zero W's and 1x Raspberry Pi Zero 2 W.
No packet loss or any "Request timed out messages"
I swapped all the MMDVM hats around and the problem would stay with both of the Raspberry Pi Model 3A+ devices.
I did some more testing and discovered that the difference between all the hotspots was the fact that both of those 3A+ Pi's were connected over 5GHz. This problem was happening with every single MMDVM Hat I own (I have 3 different types) on any of the 3A+'s that was using the 5GHz WiFi band. Doing some further testing I noticed the issue was much worse on 434.000MHz than 438.800MHz.
Now what I don't know yet is, is this problem unique to the Raspberry Pi Model 3A+, I do have a Pi4 here that I will test them with this week, is it unique to specific WiFi channels. In this instance one of my 5GHz channels is Chan 52 5.256MHz which is very close to the 12th harmonic of 434MHz and my network also uses Channels 128 or 108, I have a mesh system in both the house and an outbuilding which is my workshop. On the particular day that I'm experiencing issues the hotspots just happened to be on Chan 52. Not every day do I experience these problems, I re-imaged both hotspots a few weeks ago and I did not encounter any problems for a while, which makes me think they were on a different 5GHz channel and the days where only the duplex hotspot is misbehaving the 5Ghz channel in use must be a harmonic of 438.800MHz.
I need to do some further testing to see if it is only the Pi Model 3A+ that is affected by this as the WiFi logic on those is directly next to the GPIO port and directly underneath the SMA connectors on a MMDVM Hat. I will also go through the frequencies on the MMDVM board and see what frequencies are harmonics of WiFi channels on the 5GHz band. Unfortunately none of my spectrum analyzers or communications test sets go up to the 5GHz range. I will do this test with a Pi4 however and report back.
I need to look in to a way of disabling 5GHz on my Hotspots, it may be possible to add a list of specific 2.4GHz channels/frequencies to the wpa supplicant file, but I don't know if that works on Pi-Star. It would be really useful if there was an option in Pi-Star to disable 5GHz WiFi.
I am unable to change WiFi channels or give an individual SSID to 2.4GHz and 5GHz WiFi bands on my MESH system.
I can put it in to 2.4GHz only mode, but that has a 10 minute timeout. So I need to find a way of disabling 5GHz on the hotspots themselves.
I would be really interested to hear if anyone else has encountered something similar.