Can you post a logfile?I've got a couple of versions 73L running on Pi 4's that even though I can see it seeing the correct tone sets, the program isn't triggering the correct emails or recognizing that the tones have come through. Any idea what might be going on?
Can you post a logfile?
There's an issue in the tones.cfg file, it looks like there's a comma used in a tone frequency that should be a period.Here you go. I'd appreciate any help. I haven't run in this and I can't figure it out.
should be1472,9
1472.9
Traceback (most recent call last):
File "TwoToneDetect73l.py", line 1077, in readtones
File "configparser.py", line 823, in getfloat
ValueError: could not convert string to float: '1472,9'
The error message "ValueError: could not convert string to float: '1472,9'" indicates to me that you got a comma rather than a decimal in one of your tone sets. Check your Tones.cfg file or the Tones Editor. In fact, check them all.Here you go. I'd appreciate any help. I haven't run in this and I can't figure it out.
There's an issue in the tones.cfg file, it looks like there's a comma used in a tone frequency that should be a period. should be
Code:Traceback (most recent call last): File "TwoToneDetect73l.py", line 1077, in readtones File "configparser.py", line 823, in getfloat ValueError: could not convert string to float: '1472,9'
Ah the joys of the RasPi audio system. It sounds like whatever caused the crash may have also messed up something with pulseaudio or the audio device index numbers. I've had some Pis that get really wonky and change the device index numbers after the program starts, etc. I've never been able to get it to be a consistent enough of a problem to track it down or figure out a solution.Ok guys, this one has me stumped. I have a pi4 running two instances of v73l, one for IaR and one for non-IaR subscribers. About 2 AM on Mar 1 both went down (I received alerts based on the heartbeat signal.). By the time that I got to them TTD had done its daily restart. And appeared to be running fine. The 2 AM logfile shows nothing unusual, just no more audio samples. This pi receives audio from a Motorola 1550 and usb sound card. This has been an excellent arrangement for months. Now the pi is receiving no audio from the 1550. The sound card checks out, the radio shows that it is receiving signal, but nothing. Everything is aligned properly in pavucontrol But the volume bar shows no response.
That is part one. Now for part two. I had formerly used an sdr stick and rtlsdr_airband on this unit so I switched back. Now I am getting good audio to the pi as shown by the level meters in both pavucontrol and in TTD. The audio is streaming out from the unit just fine. TTD is hearing and decoding tone sets just fine. The problem now is that the audio files recorded and saved to the /audio folder contain only dead air, no message. If I watch the TTD GUI as it is decoding, the level meter shows that it is hearing the entire message.
521.670731707317 1877 1646163019.6703393
984.1829268292682 5924 1646163019.9100096
989.560975609756 6107 1646163019.965544
989.560975609756 6146 1646163020.2112544
989.560975609756 6196 1646163020.4813201
989.560975609756 6033 1646163020.5413547
989.560975609756 6018 1646163020.7908616
1597.280487804878 6041 1646163021.0320282
1597.280487804878 4409 1646163021.0916421
1597.280487804878 4416 1646163021.331378
1597.280487804878 4473 1646163021.572378
1597.280487804878 4391 1646163021.635169
1597.280487804878 4380 1646163021.9012482
FD_Fire Tone Set Found
starting new alert at 1646163021.9505754
[[['Tone13', 'FD_Fire', 1646163021.9101553, 0]]]
1597.280487804878 4393 1646163021.9651604
delay timer FD_Fire 14:30:22 on 03/01/22
0.0
-0.09600377082824707
1646163022.0067284
1646163021.9101553
delay done FD_Fire 14:30:22 on 03/01/22
waiting for audio FD_Fire 14:30:22 on 03/01/22
threshold value: 2.0705298476827547
threshold exceeded
recording audio FD_Fire 14:30:22 on 03/01/22
iterations: 269
1597.280487804878 4419 1646163022.2296302
1597.280487804878 4470 1646163022.46955
1597.280487804878 4453 1646163022.526872
1597.280487804878 4491 1646163022.7615538
1597.280487804878 4452 1646163022.990901
1597.280487804878 4424 1646163023.2603679
1597.280487804878 4448 1646163023.3217509
1597.280487804878 4377 1646163023.5911298
1597.280487804878 4409 1646163023.6520965
1597.280487804878 4426 1646163023.912432
521.670731707317 1868 1646163024.1608968
521.670731707317 1840 1646163024.223025
521.670731707317 1868 1646163024.4908967
521.670731707317 1879 1646163024.7307794
521.670731707317 3487 1646163024.7908247
925.0243902439024 803 1646163025.0219126
263.5243902439024 11368 1646163025.2807171
247.390243902439 2295 1646163026.6008527
344.1951219512195 1953 1646163026.661866
973.4268292682926 1955 1646163026.9292505
462.5121951219512 3403 1646163026.9856513
424.8658536585366 3805 1646163027.2292466
1242.3292682926829 4543 1646163027.449617
.
.
.
989.560975609756 2079 1646163039.7406282
1979.121951219512 2163 1646163039.9810858
527.0487804878048 3325 1646163040.0410478
279.6585365853659 11753 1646163040.311018
Waiting for Silence FD_Fire 14:30:47 on 03/01/22
247.390243902439 2221 1646163066.225921
521.670731707317 1898 1646163066.4698067
.
.
.
677.6341463414634 5527 1646163080.341136
521.670731707317 1873 1646163080.6104321
435.6219512195122 6276 1646163080.6720915
462.5121951219512 2737 1646163080.9382718
424.8658536585366 4232 1646163081.2110188
430.2439024390244 4877 1646163081.2750878
763.6829268292682 5587 1646163081.540037
344.1951219512195 3362 1646163081.5996227
311.9268292682927 11343 1646163081.834717
290.4146341463415 11174 1646163082.0757668
Done recording FD_Fire 14:31:42 on 03/01/22
./audio/FD_Fire_2022_03_01_14_30_21.wav
done writing WAV FD_Fire 14:31:43 on 03/01/22
done converting to MP3 FD_Fire 14:31:43 on 03/01/22
done converting to AMR FD_Fire 14:31:44 on 03/01/22
RETURNING AND REMOVING STUFF HERE at 1646163134.9514759
[]
Adding FD_Fire back to detection list after 60.0 second delay
258.1463414634146 2295 1646163509.7104864
349.5731707317073 1947 1646163509.7709627
my recording length is set for 25 sec and release time is 1. The blank audio files are all about 26 sec long.
any ideas?
STARTING IMPORTS
DONE IMPORTING
Version: TwoToneDetect73j_debug
ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
FFMPEG FOUND
using audio device from config.cfg
Successfully retrieved local tone info at 08:25:19 on 03/05/22
tone config has changed & will now be updated
no alerts active - updating tone config at 1646490319.2216818
{2: 'Microsoft Sound Mapper - Output', 4: 'Digital Audio (S/PDIF) (High De'}
Microsoft Sound Mapper - Output
279.6585365853659 100 1646490467.9283822
419.4878048780488 102 1646490557.651888
290.4146341463415 817 1646491437.9767182
311.9268292682927 103 1646491480.5237513
419.4878048780488 99 1646491899.214095
371.0853658536585 100 1646491945.2840557
301.1707317073171 121 1646492572.9635236
371.0853658536585 137 1646492573.1480882
1037.9634146341464 138 1646492573.3484251
532.4268292682926 192 1646492573.5330327
484.0243902439024 194 1646492582.619824
484.0243902439024 203 1646492582.8040264
537.8048780487804 116 1646492582.9885979
1312.2439024390244 147 1646492729.934557
962.670731707317 156 1646492730.1186733
1602.658536585366 110 1646492730.2972963
1253.0853658536585 141 1646492730.4818633
516.2926829268292 148 1646492730.6816902
661.5 158 1646492730.8663905
1398.2926829268292 132 1646492731.0509582
1193.9268292682927 139 1646492731.2361689
1403.6707317073171 123 1646492731.4212925
1392.9146341463415 116 1646492731.599848
548.560975609756 167 1646492733.0865026
527.0487804878048 174 1646492733.286776
650.7439024390244 177 1646492733.4709961
596.9634146341464 156 1646492733.63952
263.5243902439024 205 1646492736.2551045
Successfully retrieved local tone info at 09:25:19 on 03/05/22
tone config is unchanged
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.py", line 926, in _bootstrap_inner
File "threading.py", line 870, in run
File "pystray\_base.py", line 186, in setup_handler
File "TwoToneDetect73j.py", line 2542, in setup
File "TwoToneDetect73j.py", line 2464, in start
File "TwoToneDetect73j.py", line 140, in delete_old_files
PermissionError: [WinError 5] Access is denied: './logfiles\\heartbeat (2021_03_12 20_09_39 UTC).log'
I had a setup that was working for the most part. But due to the way Windows Home does updates and encourages signing in with a Microsoft account all the time, it was causing the system to not work after regular restarts. So, I fresh installed Windows with a Professional license, now the system is Windows 10 Pro. But I'm not able to get it to work regularly.
If I'm sitting there watching the system, and have my dispatch do a test page, it's all good. But when I leave, and I assume the computer / program does things, it stops working. I come back to the computer and TwoTone is frozen. The blue Audio Level bar isn't moving, and if I hit anything like Edit Tone or Edit Config it just says loading. I ran the debug version and I've included the Command Prompt info.
I have the power settings set so that it does not go to sleep or hibernate. Windows Edge is my default browser, but I was having the issue when I was using Chrome as the default browser too. I had 73g in the previous setup, and tried it on the new system. I then downloaded l, then now j. Any help would be appreciated. I've used this for years with only occasional problems, and on multiple systems. Whatever I'm missing HAS to be something simple I've dealt with before. Or else Windows and TwoTone are conspiring to just mess with me and make me look like an idiot to my organization lol
Thank you for any help anyone can give.
Code:STARTING IMPORTS DONE IMPORTING Version: TwoToneDetect73j_debug ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 6.3.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.101 / 57. 56.101 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 / 54. 1.100 FFMPEG FOUND using audio device from config.cfg Successfully retrieved local tone info at 08:25:19 on 03/05/22 tone config has changed & will now be updated no alerts active - updating tone config at 1646490319.2216818 {2: 'Microsoft Sound Mapper - Output', 4: 'Digital Audio (S/PDIF) (High De'} Microsoft Sound Mapper - Output 279.6585365853659 100 1646490467.9283822 419.4878048780488 102 1646490557.651888 290.4146341463415 817 1646491437.9767182 311.9268292682927 103 1646491480.5237513 419.4878048780488 99 1646491899.214095 371.0853658536585 100 1646491945.2840557 301.1707317073171 121 1646492572.9635236 371.0853658536585 137 1646492573.1480882 1037.9634146341464 138 1646492573.3484251 532.4268292682926 192 1646492573.5330327 484.0243902439024 194 1646492582.619824 484.0243902439024 203 1646492582.8040264 537.8048780487804 116 1646492582.9885979 1312.2439024390244 147 1646492729.934557 962.670731707317 156 1646492730.1186733 1602.658536585366 110 1646492730.2972963 1253.0853658536585 141 1646492730.4818633 516.2926829268292 148 1646492730.6816902 661.5 158 1646492730.8663905 1398.2926829268292 132 1646492731.0509582 1193.9268292682927 139 1646492731.2361689 1403.6707317073171 123 1646492731.4212925 1392.9146341463415 116 1646492731.599848 548.560975609756 167 1646492733.0865026 527.0487804878048 174 1646492733.286776 650.7439024390244 177 1646492733.4709961 596.9634146341464 156 1646492733.63952 263.5243902439024 205 1646492736.2551045 Successfully retrieved local tone info at 09:25:19 on 03/05/22 tone config is unchanged Exception in thread Thread-1: Traceback (most recent call last): File "threading.py", line 926, in _bootstrap_inner File "threading.py", line 870, in run File "pystray\_base.py", line 186, in setup_handler File "TwoToneDetect73j.py", line 2542, in setup File "TwoToneDetect73j.py", line 2464, in start File "TwoToneDetect73j.py", line 140, in delete_old_files PermissionError: [WinError 5] Access is denied: './logfiles\\heartbeat (2021_03_12 20_09_39 UTC).log'
I was having some issues with FTP uploading that stopped working abruptly. It seems that my known_hosts file is blank and I am not sure what I would have done that caused this to occur. There is no key error in the log file as I had seen in the past so I replaced the entry in known_hosts file and will monitor.
Wish list would be for increased logging for FTP. There is minimal logging except for FTP was started, but if it doesn't work you don't know it is was a login error, path error, permissions error, etc.