markjfine / nrsc5-dui

An enhanced, user-friendly version of nrsc5-gui that is not heavily dependent upon Python processing for audio generation.
GNU General Public License v3.0
139 stars 9 forks source link

Syntax Warnings after upgrading to Ubuntu 24.04 #40

Open ferrellsl opened 2 months ago

ferrellsl commented 2 months ago

I just upgraded from Ubuntu 22 to 24.04. I've updated all my python dependencies and nrsc5-dui runs, but with the following syntax warnings. Everything appears to function properly in spite of the warnings with the exception of the db signal gain, it remains at 0.0 all the time.

/home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:286: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Station name: (.)$"), # 0 match station name /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:287: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Station location: (-?[\d]+.[\d]+) (-?[\d]+.[\d]+), ([\d]+)m$"), # 1 match station location /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:288: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Slogan: (.)$"), # 2 match station slogan /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:289: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Audio bit rate: (.) kbps$"), # 3 match audio bit rate /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:290: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Title: (.)$"), # 4 match title /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:291: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Artist: (.)$"), # 5 match artist /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:292: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Album: (.)$"), # 6 match album /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:293: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} LOT file: port=([\d]+) lot=([\d]+) name=(..(?:jpg|jpeg|png|txt)) size=([\d]+) mime=([\w]+) .$"), # 7 match file (album art, maps, weather info) /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:294: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} MER: (-?[\d]+.[\d]+) dB (lower), (-?[\d]+.[\d]+) dB (upper)$"), # 8 match MER /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:295: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} BER: (0.[\d]+), avg: (0.[\d]+), min: (0.[\d]+), max: (0.[\d]+)$"), # 9 match BER /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:296: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Best gain: (.) dB,.$"), # 10 match gain /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:297: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} SIG Service: type=(.) number=(.) name=(.)$"), # 11 match stream /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:298: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} .Data component:. id=([\d]+). port=([\d]+). service_data_type=([\d]+) .$"), # 12 match port (and data_servicetype) /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:299: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} XHDR: (.) ([0-9A-Fa-f]{8}) (.)$"), # 13 match xhdr tag /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:300: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Unique file identifier: PPC;07; ([\S]+).$"), # 14 match unique file id /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:301: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Genre: (.)$"), # 15 match genre /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:302: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Message: (.)$"), # 16 match message /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:303: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Alert: (.)$"), # 17 match alert /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:304: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} .Audio component:. id=([\d]+). port=([\d]+). type=([\d]+) .$"), # 18 match port (and type) /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:305: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Synchronized$"), # 19 synchronized /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:306: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Lost synchronization$"), # 20 lost synch /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:307: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Lost device$"), # 21 lost device /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:308: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Open device failed.$"), # 22 No device /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:309: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Stream data: port=([\d]+). mime=([\w]+) size=([\d]+)$"), # 23 Navteq/HERE stream info /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:310: SyntaxWarning: invalid escape sequence '\:' re.compile("^[0-9\:]{8,8} Packet data: port=([\d]+).* mime=([\w]+) size=([\d]+)$") # 24 Navteq/HERE packet info /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:1110: SyntaxWarning: invalid escape sequence '\d' r = re.compile("^([\d]+).$") /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:1228: SyntaxWarning: invalid escape sequence '\d' r = re.compile("^[\d]+TMT.([1-3])([1-3])([\d]{4})([\d]{2})([\d]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})_([0-9A-Fa-f]{4})..$") # match file name /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:1295: SyntaxWarning: invalid escape sequence '\d' r = re.compile("^[\d]+DWRO(.).*([\d]{4})([\d]{2})([\d]{2})([\d]{2})([\d]{2})([0-9A-Fa-f]+)..$") # match file name /home/steve/Desktop/nrsc5-dui/./nrsc5-dui.py:1379: SyntaxWarning: invalid escape sequence '(' r = re.compile("^Coordinates=.((-?[\d]+.[\d]+),(-?[\d]+.[\d]+)).((-?[\d]+.[\d]+),(-?[\d]+.[\d]+)).$") Using Pillow v10.2.0

markjfine commented 2 months ago

Accidentally noticed the same on Fedora as well as my Mac on Sonoma 14.5. Think it means that it was expecting the ':' in the regex to be escaped. The [\d] seems odd - maybe it doesn't like it in brackets anymore. Everything seemed to be working correctly regardless of the warnings so I put it on the back burner. Didn't notice the signal gain issue. I'll try to get to it soon.

markjfine commented 2 months ago

Decided to look at it now, and am sorry I did. Apparently does not like escape characters in regex strings at all anymore. That certainly puts a crimp in things. #fml

markjfine commented 2 months ago

Ok... updated nrsc5-dui.py to fix the warnings and automatic gain display (admittedly a coding brainfart).

That said, some of the warnings involved the weather and traffic displays. Unfortunately it appears the rf amp connected to the antenna on the roof has died and can no longer reliably receive any of the stations that provide this info. So I haven't been able to test to see if it works correctly. If you're able to test it for me I'd greatly appreciate it.

ferrellsl commented 2 months ago

All the warnings are now gone. Everything works, including the weather and traffics maps with the exception of the rf gain. It still reads 0.00db

markjfine commented 2 months ago

Hmm... It's possible that's actually the best that Automatic gain chosen. It may do that for really good signals. Does it stay that way for every station you tune to? Try a distant station and see if it changes.

Before, it wasn't detecting that status line because I inadvertently had it look for the time at the start of it, presumably (in my mind) to be consistent with the other recompile lines. There is no timecode in that status line, therefore the amount was always defaulting to zero. I removed that part of it and shows for me now.

ferrellsl commented 2 months ago

I tried 4 different stations and they all report 0.00dB. Under settings I also manually entered a known working gain for several stations and instead of 0.0dB showing on the bottom, the gain display disappears completely. I realize that's probably not a bug, but by design, as it doesn't make much sense to display the gain if you hard code a known value for it under nrsc5-dui's settings. This isn't a huge deal for me so don't put a lot of time into troubleshooting this as I'm very happy with nrsc5-dui as it is.

markjfine commented 2 months ago

Actually, I did find an issue with the gain display... another coding brainfart where for some stupid reason I was reading it from the status and dividing it by ten.šŸ¤·šŸ»ā€ā™‚ļø One of those things at my age you start asking 'what the hell was I thinking'.

Regardless, Just pushed another fix for that. In your case, it may be possible that something was borking anything less than ten, and displaying it as zero.

The omission when it's not automatic was intended, but I started questioning why I did that as well. It's one of those things that you don't think about when you're doing it but a few years later seems like a better idea... Like, if there's a station location (coordinates) and I'm already parsing it, why aren't I displaying it somewhere? Or, if I really want to add more bloat: Show it's location on a mini-map with it's relative distance to your listening location...

ferrellsl commented 2 months ago

I think I may have found the problem. Using the latest build of NRSC5, the gain isn't being echoed to the console when tuning to a frequency. Here's some output when running from the command line and the word "Gain" isn't reported anywhere in the stream. I'm assuming that NRSC5-DUI gets the gain value from this output instead of from an API call.

$ nrsc5 93.3 0

Found Rafael Micro R820T tuner Exact sample rate is: 1488375.071248 Hz [R82XX] PLL not locked! Allocating 8 zero-copy buffers 11:03:32 Synchronized 11:03:32 Station name: KDKB-FM 11:03:32 Station name: KDKB-FM 11:03:32 Slogan: Alt AZ 93.3 11:03:33 Station name: KDKB-FM 11:03:33 Slogan: Alt AZ 93.3 11:03:33 Station location: 33.333496, -112.062256, 3808m 11:03:33 Station name: KDKB-FM 11:03:33 Slogan: Alt AZ 93.3 11:03:33 Station location: 33.333496, -112.062256, 736m 11:03:34 MER: 6.5 dB (lower), 5.2 dB (upper) 11:03:34 BER: 0.010448, avg: 0.010448, min: 0.010448, max: 0.010448 11:03:34 Station name: KDKB-FM 11:03:34 Slogan: Alt AZ 93.3 11:03:34 Station location: 33.333496, -112.062256, 3552m 11:03:34 Station name: KDKB-FM 11:03:34 Slogan: Alt AZ 93.3 11:03:34 Station location: 33.333496, -112.062256, 3344m 11:03:35 Station name: KDKB-FM 11:03:35 Slogan: Alt AZ 93.3 11:03:35 Station location: 33.333496, -112.062256, 3600m 11:03:35 Station name: KDKB-FM 11:03:35 Slogan: Alt AZ 93.3 11:03:35 Station location: 33.333496, -112.062256, 3808m 11:03:35 MER: 5.4 dB (lower), 6.4 dB (upper) 11:03:35 BER: 0.003722, avg: 0.007085, min: 0.003722, max: 0.010448 11:03:35 Title: Possum Kingdom 11:03:35 Artist: Toadies 11:03:35 XHDR: 0 BE4B7536 1003 11:03:35 Title: Possum Kingdom 11:03:35 Artist: Toadies 11:03:35 XHDR: 0 BE4B7536 1003 11:03:35 Audio bit rate: 63.6 kbps 11:03:36 Station name: KDKB-FM 11:03:36 Slogan: Alt AZ 93.3 11:03:36 Station location: 33.333496, -112.062256, 3824m 11:03:37 MER: 10.5 dB (lower), 9.7 dB (upper) 11:03:37 BER: 0.000016, avg: 0.004729, min: 0.000016, max: 0.010448 11:03:37 Title: Possum Kingdom 11:03:37 Artist: Toadies 11:03:37 XHDR: 0 BE4B7536 1003 11:03:37 Audio bit rate: 62.2 kbps 11:03:37 Station name: KDKB-FM 11:03:37 Slogan: Alt AZ 93.3 11:03:37 Station location: 33.333496, -112.062256, 3664m 11:03:38 Station name: KDKB-FM 11:03:38 Slogan: Alt AZ 93.3 11:03:38 Station location: 33.333496, -112.062256, 3408m 11:03:38 MER: 10.4 dB (lower), 10.0 dB (upper) 11:03:38 BER: 0.000011, avg: 0.003549, min: 0.000011, max: 0.010448 11:03:38 Title: Possum Kingdom 11:03:38 Artist: Toadies 11:03:38 XHDR: 0 BE4B7536 1003 11:03:38 Title: Possum Kingdom 11:03:38 Artist: Toadies 11:03:38 XHDR: 0 BE4B7536 1003 11:03:38 Audio bit rate: 62.4 kbps 11:03:38 Station name: KDKB-FM 11:03:38 Slogan: Alt AZ 93.3 11:03:38 Station location: 33.333496, -112.062256, 2896m 11:03:39 Station name: KDKB-FM 11:03:39 Slogan: Alt AZ 93.3 11:03:39 Station location: 33.333496, -112.062256, 2880m 11:03:39 Station name: KDKB-FM 11:03:39 Slogan: Alt AZ 93.3 11:03:39 Station location: 33.333496, -112.062256, 3648m 11:03:40 Station name: KDKB-FM 11:03:40 Slogan: Alt AZ 93.3 11:03:40 Station location: 33.333496, -112.062256, 3728m 11:03:40 MER: 7.5 dB (lower), 7.6 dB (upper) 11:03:40 BER: 0.007071, avg: 0.004254, min: 0.000011, max: 0.010448 11:03:40 Title: Possum Kingdom 11:03:40 Artist: Toadies 11:03:40 XHDR: 0 BE4B7536 1003 11:03:40 Title: Possum Kingdom 11:03:40 Artist: Toadies 11:03:40 XHDR: 0 BE4B7536 1003 11:03:40 Audio bit rate: 63.8 kbps 11:03:40 Station name: KDKB-FM 11:03:40 Slogan: Alt AZ 93.3 11:03:40 Station location: 33.333496, -112.062256, 3680m 11:03:41 Station name: KDKB-FM 11:03:41 Slogan: Alt AZ 93.3 11:03:41 Station location: 33.333496, -112.062256, 2912m 11:03:41 Station name: KDKB-FM 11:03:41 Slogan: Alt AZ 93.3 11:03:41 Station location: 33.333496, -112.062256, 2976m 11:03:41 MER: 10.0 dB (lower), 9.6 dB (upper) 11:03:41 BER: 0.001672, avg: 0.003823, min: 0.000011, max: 0.010448 11:03:41 SIG Service: type=audio number=1 name=Alt AZ 93.3 11:03:41 Audio component: id=0 port=0000 type=5 mime=4DC66C5A 11:03:41 Data component: id=1 port=0407 service_data_type=265 type=3 mime=BE4B7536 11:03:41 Data component: id=3 port=0411 service_data_type=265 type=3 mime=D9C72536 11:03:41 SIG Service: type=audio number=2 name=Oldies 92.7 11:03:41 Audio component: id=0 port=0001 type=11 mime=4DC66C5A 11:03:41 Data component: id=1 port=0408 service_data_type=265 type=3 mime=BE4B7536 11:03:41 Data component: id=3 port=0412 service_data_type=265 type=3 mime=D9C72536 11:03:41 Title: Possum Kingdom 11:03:41 Artist: Toadies 11:03:41 XHDR: 0 BE4B7536 1003 11:03:41 Audio bit rate: 62.0 kbps 11:03:41 Station name: KDKB-FM 11:03:41 Slogan: Alt AZ 93.3 11:03:41 Station location: 33.333496, -112.062256, 2208m 11:03:42 Station name: KDKB-FM 11:03:42 Slogan: Alt AZ 93.3 11:03:42 Station location: 33.333496, -112.062256, 2080m 11:03:42 Station name: KDKB-FM 11:03:42 Slogan: Alt AZ 93.3 11:03:42 Station location: 33.333496, -112.062256, 3616m 11:03:42 Station name: KDKB-FM 11:03:42 Slogan: Alt AZ 93.3 11:03:42 Station location: 33.333496, -112.062256, 3600m 11:03:42 MER: 10.2 dB (lower), 9.9 dB (upper) 11:03:42 BER: 0.000011, avg: 0.003279, min: 0.000011, max: 0.010448 11:03:42 Title: Possum Kingdom 11:03:42 Artist: Toadies 11:03:42 XHDR: 0 BE4B7536 1003 11:03:42 Title: Possum Kingdom 11:03:42 Artist: Toadies 11:03:42 XHDR: 0 BE4B7536 1003 11:03:42 Audio bit rate: 62.4 kbps 11:03:43 Station name: KDKB-FM 11:03:43 Slogan: Alt AZ 93.3 11:03:43 Station location: 33.333496, -112.062256, 3776m 11:03:44 Station name: KDKB-FM 11:03:44 Slogan: Alt AZ 93.3 11:03:44 Station location: 33.333496, -112.062256, 3680m 11:03:44 MER: 6.5 dB (lower), 4.1 dB (upper) 11:03:44 BER: 0.005328, avg: 0.003535, min: 0.000011, max: 0.010448 11:03:44 Title: Possum Kingdom 11:03:44 Artist: Toadies 11:03:44 XHDR: 0 BE4B7536 1003 11:03:44 Audio bit rate: 62.9 kbps 11:03:44 Station name: KDKB-FM 11:03:44 Slogan: Alt AZ 93.3 11:03:44 Station location: 33.333496, -112.062256, 3168m 11:03:45 Station name: KDKB-FM 11:03:45 Slogan: Alt AZ 93.3 11:03:45 Station location: 33.333496, -112.062256, 3280m 11:03:45 Station name: KDKB-FM 11:03:45 Slogan: Alt AZ 93.3 11:03:45 Station location: 33.333496, -112.062256, 2256m 11:03:45 Station name: KDKB-FM 11:03:45 Slogan: Alt AZ 93.3 11:03:45 Station location: 33.333496, -112.062256, 2224m 11:03:45 MER: 9.9 dB (lower), 9.2 dB (upper) 11:03:45 BER: 0.003992, avg: 0.003586, min: 0.000011, max: 0.010448 11:03:45 Title: Possum Kingdom 11:03:45 Artist: Toadies 11:03:45 XHDR: 0 BE4B7536 1003 11:03:45 Title: Possum Kingdom 11:03:45 Artist: Toadies 11:03:45 XHDR: 0 BE4B7536 1003 11:03:45 Audio bit rate: 62.6 kbps 11:03:46 Station name: KDKB-FM 11:03:46 Slogan: Alt AZ 93.3 11:03:46 Station location: 33.333496, -112.062256, 3760m 11:03:46 Station name: KDKB-FM 11:03:46 Slogan: Alt AZ 93.3 11:03:46 Station location: 33.333496, -112.062256, 3808m 11:03:47 Station name: KDKB-FM 11:03:47 Slogan: Alt AZ 93.3 11:03:47 Station location: 33.333496, -112.062256, 3744m 11:03:47 MER: 9.7 dB (lower), 9.4 dB (upper) 11:03:47 BER: 0.006272, avg: 0.003854, min: 0.000011, max: 0.010448 11:03:47 Title: Possum Kingdom 11:03:47 Artist: Toadies 11:03:47 XHDR: 0 BE4B7536 1003 11:03:47 Audio bit rate: 63.2 kbps 11:03:47 Station name: KDKB-FM 11:03:47 Slogan: Alt AZ 93.3 11:03:47 Station location: 33.333496, -112.062256, 672m 11:03:48 Station name: KDKB-FM 11:03:48 Slogan: Alt AZ 93.3 11:03:48 Station location: 33.333496, -112.062256, 624m 11:03:48 Station name: KDKB-FM 11:03:48 Slogan: Alt AZ 93.3 11:03:48 Station location: 33.333496, -112.062256, 3440m 11:03:48 Station name: KDKB-FM 11:03:48 Slogan: Alt AZ 93.3 11:03:48 Station location: 33.333496, -112.062256, 3408m 11:03:48 MER: 10.0 dB (lower), 9.6 dB (upper) 11:03:48 BER: 0.003596, avg: 0.003831, min: 0.000011, max: 0.010448 11:03:48 Title: Possum Kingdom 11:03:48 Artist: Toadies 11:03:48 XHDR: 0 BE4B7536 1003 11:03:48 Title: Possum Kingdom 11:03:48 Artist: Toadies 11:03:48 XHDR: 0 BE4B7536 1003 11:03:48 Audio bit rate: 62.1 kbps 11:03:49 Station name: KDKB-FM 11:03:49 Slogan: Alt AZ 93.3 11:03:49 Station location: 33.333496, -112.062256, 1872m 11:03:49 Station name: KDKB-FM 11:03:49 Slogan: Alt AZ 93.3 11:03:49 Station location: 33.333496, -112.062256, 2016m 11:03:49 Station name: KDKB-FM 11:03:49 Slogan: Alt AZ 93.3 11:03:49 Station location: 33.333496, -112.062256, 1504m 11:03:50 Station name: KDKB-FM 11:03:50 Slogan: Alt AZ 93.3 11:03:50 Station location: 33.333496, -112.062256, 1424m 11:03:50 MER: 8.2 dB (lower), 8.0 dB (upper) 11:03:50 BER: 0.005897, avg: 0.004003, min: 0.000011, max: 0.010448 11:03:50 Title: Possum Kingdom 11:03:50 Artist: Toadies 11:03:50 XHDR: 0 BE4B7536 1003 11:03:50 Audio bit rate: 62.7 kbps 11:03:50 Station name: KDKB-FM 11:03:50 Slogan: Alt AZ 93.3 11:03:50 Station location: 33.333496, -112.062256, 3728m 11:03:51 Station name: KDKB-FM 11:03:51 Slogan: Alt AZ 93.3 11:03:51 Station location: 33.333496, -112.062256, 3616m 11:03:51 Station name: KDKB-FM 11:03:51 Slogan: Alt AZ 93.3 11:03:51 Station location: 33.333496, -112.062256, 3648m 11:03:51 MER: 9.7 dB (lower), 9.3 dB (upper) 11:03:51 BER: 0.003738, avg: 0.003983, min: 0.000011, max: 0.010448 11:03:51 Title: Possum Kingdom 11:03:51 Artist: Toadies 11:03:51 XHDR: 0 BE4B7536 1003 11:03:51 Title: Possum Kingdom 11:03:51 Artist: Toadies 11:03:51 XHDR: 0 BE4B7536 1003 11:03:51 Audio bit rate: 62.7 kbps 11:03:52 Station name: KDKB-FM 11:03:52 Slogan: Alt AZ 93.3 11:03:52 Station location: 33.333496, -112.062256, 3136m 11:03:52 Station name: KDKB-FM 11:03:52 Slogan: Alt AZ 93.3 11:03:52 Station location: 33.333496, -112.062256, 3152m 11:03:52 Station name: KDKB-FM 11:03:52 Slogan: Alt AZ 93.3 11:03:52 Station location: 33.333496, -112.062256, 3408m 11:03:53 Station name: KDKB-FM 11:03:53 Slogan: Alt AZ 93.3 11:03:53 Station location: 33.333496, -112.062256, 3568m 11:03:53 MER: 10.2 dB (lower), 9.7 dB (upper) 11:03:53 BER: 0.000216, avg: 0.003714, min: 0.000011, max: 0.010448 11:03:53 Title: Possum Kingdom 11:03:53 Artist: Toadies 11:03:53 XHDR: 0 BE4B7536 1003 11:03:53 Title: Possum Kingdom 11:03:53 Artist: Toadies 11:03:53 XHDR: 0 BE4B7536 1003 11:03:53 Audio bit rate: 62.7 kbps 11:03:53 Station name: KDKB-FM 11:03:53 Slogan: Alt AZ 93.3 11:03:53 Station location: 33.333496, -112.062256, 3824m 11:03:54 Station name: KDKB-FM 11:03:54 Slogan: Alt AZ 93.3 11:03:54 Station location: 33.333496, -112.062256, 3744m

markjfine commented 2 months ago

Hmmm. The build from Clayton's origin master using the default debug level is reporting it.

markjfine commented 2 months ago

Here's the output:

Found Rafael Micro R820T tuner
Exact sample rate is: 1488375.071248 Hz
[R82XX] PLL not locked!
Gain: 0.0 dB, CNR: 6.2 dB
Gain: 0.9 dB, CNR: 9.2 dB
Gain: 1.4 dB, CNR: 10.2 dB
Gain: 2.7 dB, CNR: 13.9 dB
Gain: 3.7 dB, CNR: 15.6 dB
Gain: 7.7 dB, CNR: 17.9 dB
Gain: 8.7 dB, CNR: 19.4 dB
Gain: 12.5 dB, CNR: 20.7 dB
Gain: 14.4 dB, CNR: 22.0 dB
Gain: 15.7 dB, CNR: 22.2 dB
Gain: 16.6 dB, CNR: 24.1 dB
Gain: 19.7 dB, CNR: 25.2 dB
Gain: 20.7 dB, CNR: 24.4 dB
Gain: 22.9 dB, CNR: 26.0 dB
Gain: 25.4 dB, CNR: 26.1 dB
Gain: 28.0 dB, CNR: 26.1 dB
Gain: 29.7 dB, CNR: 21.9 dB
Gain: 32.8 dB, CNR: 14.2 dB
Gain: 33.8 dB, CNR: 10.9 dB
Gain: 36.4 dB, CNR: 10.3 dB
Gain: 37.2 dB, CNR: 12.9 dB
Gain: 38.6 dB, CNR: 13.1 dB
Gain: 40.2 dB, CNR: 8.5 dB
Gain: 42.1 dB, CNR: 8.0 dB
Gain: 43.4 dB, CNR: 8.5 dB
Gain: 43.9 dB, CNR: 8.6 dB
Gain: 44.5 dB, CNR: 8.8 dB
Gain: 48.0 dB, CNR: 9.9 dB
Gain: 49.6 dB, CNR: 10.3 dB
Best gain: 28.0 dB, CNR: 26.1 dB
CFO: -363.372803 Hz
Block @ 15
Block @ 0
14:23:26 Synchronized
Primary service mode: 11
14:23:26 Country: US, FCC facility ID: 21636
14:23:26 Station name: WWWT
14:23:26 Country: US, FCC facility ID: 21636
14:23:26 Station name: WWWT
14:23:26 Audio program 0: public, type: None, sound experience 0
14:23:26 Data service: public, type: Emergency, MIME type 444
14:23:26 Country: US, FCC facility ID: 21636
14:23:26 Station name: WWWT
14:23:26 Slogan: HD1 
14:23:26 Audio program 0: public, type: None, sound experience 0
14:23:26 Data service: public, type: Emergency, MIME type 444
14:23:26 Country: US, FCC facility ID: 21636
14:23:26 Station name: WWWT
14:23:26 Slogan: HD1 
14:23:26 Audio program 0: public, type: None, sound experience 0
14:23:26 Audio program 1: public, type: None, sound experience 0
14:23:26 Audio program 2: public, type: None, sound experience 0
14:23:26 Data service: public, type: Emergency, MIME type 444
14:23:27 Country: US, FCC facility ID: 21636
14:23:27 Station name: WWWT
14:23:27 Slogan: HD1 
ferrellsl commented 2 months ago

I just cloned and built the binary from his repo and this is what I get. Still no gain value reported. And my version number: $ nrsc5 -v nrsc5 revision 73527d8

$ nrsc5 93.3 0 Found Rafael Micro R820T tuner Exact sample rate is: 1488375.071248 Hz [R82XX] PLL not locked! Allocating 8 zero-copy buffers 11:20:52 Synchronized 11:20:52 Station name: KDKB-FM 11:20:53 Station name: KDKB-FM 11:20:53 Slogan: Alt AZ 93.3 11:20:53 Station name: KDKB-FM 11:20:53 Slogan: Alt AZ 93.3 11:20:53 Station location: 33.333496, -112.062256, 2192m 11:20:53 Station name: KDKB-FM 11:20:53 Slogan: Alt AZ 93.3 11:20:53 Station location: 33.333496, -112.062256, 3728m 11:20:54 Station name: KDKB-FM 11:20:54 Slogan: Alt AZ 93.3 11:20:54 Station location: 33.333496, -112.062256, 3600m 11:20:54 MER: 8.0 dB (lower), 5.2 dB (upper) 11:20:54 BER: 0.006521, avg: 0.006521, min: 0.006521, max: 0.006521 11:20:54 Station name: KDKB-FM 11:20:54 Slogan: Alt AZ 93.3 11:20:54 Station location: 33.333496, -112.062256, 16m 11:20:55 Station name: KDKB-FM 11:20:55 Slogan: Alt AZ 93.3 11:20:55 Station location: 33.333496, -112.062256, 144m 11:20:55 Station name: KDKB-FM 11:20:55 Slogan: Alt AZ 93.3 11:20:55 Station location: 33.333496, -112.062256, 3728m 11:20:55 Station name: KDKB-FM 11:20:55 Slogan: Alt AZ 93.3 11:20:55 Station location: 33.333496, -112.062256, 3776m 11:20:55 MER: 10.2 dB (lower), 10.1 dB (upper) 11:20:55 BER: 0.000000, avg: 0.003260, min: 0.000000, max: 0.006521 11:20:55 Title: Creep 11:20:55 Artist: Stone Temple Pilots 11:20:55 XHDR: 0 BE4B7536 1003 11:20:55 Title: Creep 11:20:55 Artist: Stone Temple Pilots 11:20:55 XHDR: 0 BE4B7536 1003 11:20:55 Audio bit rate: 62.9 kbps 11:20:56 Station name: KDKB-FM 11:20:56 Slogan: Alt AZ 93.3 11:20:56 Station location: 33.333496, -112.062256, 960m 11:20:56 Station name: KDKB-FM 11:20:56 Slogan: Alt AZ 93.3 11:20:56 Station location: 33.333496, -112.062256, 896m 11:20:56 Station name: KDKB-FM 11:20:56 Slogan: Alt AZ 93.3 11:20:56 Station location: 33.333496, -112.062256, 384m 11:20:57 Station name: KDKB-FM 11:20:57 Slogan: Alt AZ 93.3 11:20:57 Station location: 33.333496, -112.062256, 352m 11:20:57 MER: 9.8 dB (lower), 9.8 dB (upper) 11:20:57 BER: 0.002028, avg: 0.002850, min: 0.000000, max: 0.006521 11:20:57 Title: Creep 11:20:57 Artist: Stone Temple Pilots 11:20:57 XHDR: 0 BE4B7536 1003 11:20:57 Audio bit rate: 62.1 kbps 11:20:57 Station name: KDKB-FM 11:20:57 Slogan: Alt AZ 93.3 11:20:57 Station location: 33.333496, -112.062256, 3168m 11:20:58 Station name: KDKB-FM 11:20:58 Slogan: Alt AZ 93.3 11:20:58 Station location: 33.333496, -112.062256, 3120m 11:20:58 Station name: KDKB-FM 11:20:58 Slogan: Alt AZ 93.3 11:20:58 Station location: 33.333496, -112.062256, 1840m

markjfine commented 2 months ago

Lol... good thing bash history is better than my memory. I built it with level 1... cmake -DLIBRARY_DEBUG_LEVEL=1 -DBUILD_DOC=ON ..

ferrellsl commented 2 months ago

Lol... good thing bash history is better than my memory. I built it with level 1... cmake -DLIBRARY_DEBUG_LEVEL=1 -DBUILD_DOC=ON ..

That was it! Thanks for the fix!

markjfine commented 2 months ago

No prob. I'm off to take my Prevagen... šŸ˜‚