TwoToneDetect New TwoToneDetect in the works - Python based

rgeldart

Member
Joined
Mar 13, 2015
Messages
15
Location
Truro, Nova Scotia
I was running the original version 74. I've upgraded to 74f and will see what happens. I didn't upgrade before because I am of the mindset of if it ain't broke, don't fix it, especially for a production box that's being used by multiple departments. I'm going to let the new version run for a few days and see what happens! Thank you!

On another somewhat related question with 74f, was there anything changed regarding the audio input levels for that version? l noticed that my input levels as detected by the 74f version seem louder than those captured with version 74? Not a big deal, I turned down the pulse audio input level to compensate but found it interesting nonetheless.
Hi folks,

so I've been running TTD 74f for a few days now and most of my problems have resolved. However, I've been having an issue with our large stack tone page test. The last couple nights, TTD seems to get hung up and error out. Can anyone tell me what the following error signifies? ValueError : list.remove(x) It towards the bottom of this log snipped from the stack tone.

PS, the state I found TTD in tonight, i couldn't bring up the web interface but it the app appeared to still be running. I restarted my instance and now have a working webGUI

Code:
Done recording BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
./audio/BHFB_Paging_Group_-_60476fa0de1f8f3ccc3fc611_2023_11_10_17_48_08.wav
done writing WAV BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
done converting to MP3 BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
done converting to AMR BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
going to try to copy files now
entry
['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c']using prealert_id to send audio

entryusing prealert_id to send audio

['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9']
RETURNING AND REMOVING STUFF HERE at 1699652931.831183
alert_list_local:  [['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c'], ['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9']]
Traceback (most recent call last):
  File "TwoToneDetect74f.py", line 2260, in alert
ValueError: list.remove(x): x not in list
alert_list:  [[['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c'], ['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9'], ['NRFB Paging Group - 61226c6d0bf5e59632b41bd1', 1699652897.2176318, '654ea523f44fdc84373c85ea'], ['OBFB Paging Group - 605115a55a85d8db142c1e52', 1699652901.6502237, '654ea525dd0f730b6e93f2c6'], ['SRFB Paging Group - 6238c68f28d5049c9e5a6de1', 1699652905.9661674, '654ea52a0e8d64743e36f0ce'], ['VKFB Paging Group - 60072de870f29c81dc4666ab', 1699652910.4621181, '654ea52e80f934f0892ea31e']]]
 

Attachments

  • log_2023-11-10_00_02_02_377362.txt
    194.3 KB · Views: 6
Last edited:

pete133

Member
Feed Provider
Joined
Nov 13, 2006
Messages
11
Hi, I have been using ttd ver 71 for 2 of my departments for a few years now. I am using proton mail to send them . As of a few weeks ago the texts have stopped going through on all carriers . My email sent box shows the audio files being sent . Anyone else having issues?
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
Hi folks,

so I've been running TTD 74f for a few days now and most of my problems have resolved. However, I've been having an issue with our large stack tone page test. The last couple nights, TTD seems to get hung up and error out. Can anyone tell me what the following error signifies? ValueError : list.remove(x) It towards the bottom of this log snipped from the stack tone.

PS, the state I found TTD in tonight, i couldn't bring up the web interface but it the app appeared to still be running. I restarted my instance and now have a working webGUI

Code:
Done recording BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
./audio/BHFB_Paging_Group_-_60476fa0de1f8f3ccc3fc611_2023_11_10_17_48_08.wav
done writing WAV BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
done converting to MP3 BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
done converting to AMR BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
going to try to copy files now
entry
['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c']using prealert_id to send audio

entryusing prealert_id to send audio

['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9']
RETURNING AND REMOVING STUFF HERE at 1699652931.831183
alert_list_local:  [['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c'], ['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9']]
Traceback (most recent call last):
  File "TwoToneDetect74f.py", line 2260, in alert
ValueError: list.remove(x): x not in list
alert_list:  [[['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c'], ['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9'], ['NRFB Paging Group - 61226c6d0bf5e59632b41bd1', 1699652897.2176318, '654ea523f44fdc84373c85ea'], ['OBFB Paging Group - 605115a55a85d8db142c1e52', 1699652901.6502237, '654ea525dd0f730b6e93f2c6'], ['SRFB Paging Group - 6238c68f28d5049c9e5a6de1', 1699652905.9661674, '654ea52a0e8d64743e36f0ce'], ['VKFB Paging Group - 60072de870f29c81dc4666ab', 1699652910.4621181, '654ea52e80f934f0892ea31e']]]
Sorry for the delay, I just saw this. I'll take a look at the log file and see what I can come up with. I may reach out to you via DM for more info. If you have an audio recording of the full stacked page that causes this problem, that might also be helpful.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
Hi folks,

so I've been running TTD 74f for a few days now and most of my problems have resolved. However, I've been having an issue with our large stack tone page test. The last couple nights, TTD seems to get hung up and error out. Can anyone tell me what the following error signifies? ValueError : list.remove(x) It towards the bottom of this log snipped from the stack tone.

PS, the state I found TTD in tonight, i couldn't bring up the web interface but it the app appeared to still be running. I restarted my instance and now have a working webGUI

Code:
Done recording BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
./audio/BHFB_Paging_Group_-_60476fa0de1f8f3ccc3fc611_2023_11_10_17_48_08.wav
done writing WAV BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
done converting to MP3 BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
done converting to AMR BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
going to try to copy files now
entry
['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c']using prealert_id to send audio

entryusing prealert_id to send audio

['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9']
RETURNING AND REMOVING STUFF HERE at 1699652931.831183
alert_list_local:  [['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c'], ['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9']]
Traceback (most recent call last):
  File "TwoToneDetect74f.py", line 2260, in alert
ValueError: list.remove(x): x not in list
alert_list:  [[['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c'], ['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9'], ['NRFB Paging Group - 61226c6d0bf5e59632b41bd1', 1699652897.2176318, '654ea523f44fdc84373c85ea'], ['OBFB Paging Group - 605115a55a85d8db142c1e52', 1699652901.6502237, '654ea525dd0f730b6e93f2c6'], ['SRFB Paging Group - 6238c68f28d5049c9e5a6de1', 1699652905.9661674, '654ea52a0e8d64743e36f0ce'], ['VKFB Paging Group - 60072de870f29c81dc4666ab', 1699652910.4621181, '654ea52e80f934f0892ea31e']]]
It looks like this log file was created after TTD had already been running for awhile. Could you send me all of the prior log files from when TTD was first started?
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
Hi folks,

so I've been running TTD 74f for a few days now and most of my problems have resolved. However, I've been having an issue with our large stack tone page test. The last couple nights, TTD seems to get hung up and error out. Can anyone tell me what the following error signifies? ValueError : list.remove(x) It towards the bottom of this log snipped from the stack tone.

PS, the state I found TTD in tonight, i couldn't bring up the web interface but it the app appeared to still be running. I restarted my instance and now have a working webGUI

Code:
Done recording BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
./audio/BHFB_Paging_Group_-_60476fa0de1f8f3ccc3fc611_2023_11_10_17_48_08.wav
done writing WAV BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
done converting to MP3 BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
done converting to AMR BHFB Paging Group - 60476fa0de1f8f3ccc3fc611 17:48:51 on 11/10/23
going to try to copy files now
entry
['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c']using prealert_id to send audio

entryusing prealert_id to send audio

['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9']
RETURNING AND REMOVING STUFF HERE at 1699652931.831183
alert_list_local:  [['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c'], ['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9']]
Traceback (most recent call last):
  File "TwoToneDetect74f.py", line 2260, in alert
ValueError: list.remove(x): x not in list
alert_list:  [[['BHFB Paging Group - 60476fa0de1f8f3ccc3fc611', 1699652888.4275641, '654ea51880f934f0892ea31c'], ['DFB Paging Group - 622f73435f3e4f26ff4a503b', 1699652892.9036481, '654ea51dba65b0bef7b8c8c9'], ['NRFB Paging Group - 61226c6d0bf5e59632b41bd1', 1699652897.2176318, '654ea523f44fdc84373c85ea'], ['OBFB Paging Group - 605115a55a85d8db142c1e52', 1699652901.6502237, '654ea525dd0f730b6e93f2c6'], ['SRFB Paging Group - 6238c68f28d5049c9e5a6de1', 1699652905.9661674, '654ea52a0e8d64743e36f0ce'], ['VKFB Paging Group - 60072de870f29c81dc4666ab', 1699652910.4621181, '654ea52e80f934f0892ea31e']]]
I think I see the issue. I believe it may be having issues with the stacked tones because (as best I can tell) your minimum record time is really short...about 5 seconds if I'm interpreting correctly. The tones in the stack are about 6 seconds apart, and that interval being longer than the minimum recording time is causing some issues in the stacked tone logic. As a temporary fix, I'd suggest increasing your minimum record time to 10 seconds or more and see if that resolves things. I'll look into a more robust fix for a future release. Please let me know what your results are.

Also, not directly related to the issue here but just as an FYI:
I see that in at least one case there is a tone set in a stacked set that isn't being detected by TTD, presumably because it's one you don't care about. For example at the end of the stacked tone that includes BHFB,DFB,NRFB,OBFB,SRFB, and VKFB there is a 855/553 that goes undetected. In this case since it's at the end of the stacked page it's not a big deal, but if that were to have been in the middle of the stack it can result in detection of two separate stacks instead of one and a bunch of paging tones in the recorded audio. It can be beneficial to include all possible tones that could be included in a stack in your TTD configuration, even if you don't have anyone receiving alerts for them, as it'll improved stacked tone handling if TTD is able to detect and act on all tone sets in the stack. Even if you don't know what agency those tones are for, you can always add then in TTD with a name like "855_553_unknown" or something just to facilitate detection and handling in stacked sets.
 

rgeldart

Member
Joined
Mar 13, 2015
Messages
15
Location
Truro, Nova Scotia
I think I see the issue. I believe it may be having issues with the stacked tones because (as best I can tell) your minimum record time is really short...about 5 seconds if I'm interpreting correctly. The tones in the stack are about 6 seconds apart, and that interval being longer than the minimum recording time is causing some issues in the stacked tone logic. As a temporary fix, I'd suggest increasing your minimum record time to 10 seconds or more and see if that resolves things. I'll look into a more robust fix for a future release. Please let me know what your results are.

Also, not directly related to the issue here but just as an FYI:
I see that in at least one case there is a tone set in a stacked set that isn't being detected by TTD, presumably because it's one you don't care about. For example at the end of the stacked tone that includes BHFB,DFB,NRFB,OBFB,SRFB, and VKFB there is a 855/553 that goes undetected. In this case since it's at the end of the stacked page it's not a big deal, but if that were to have been in the middle of the stack it can result in detection of two separate stacks instead of one and a bunch of paging tones in the recorded audio. It can be beneficial to include all possible tones that could be included in a stack in your TTD configuration, even if you don't have anyone receiving alerts for them, as it'll improved stacked tone handling if TTD is able to detect and act on all tone sets in the stack. Even if you don't know what agency those tones are for, you can always add then in TTD with a name like "855_553_unknown" or something just to facilitate detection and handling in stacked sets.
Hi, I"m going to reach out and DM you directly. I just saw this myself so sorry for the delay in responding
 

slingshot202

Member
Feed Provider
Joined
Sep 10, 2008
Messages
681
Location
New Jersey
Are there directions how to set up Pushover on a Windows PC? As all mention, I have major issues with the cell carriers too. TMobile and ATT are a no go for the most part and the problem is, as I run my own server, when the start flooding and re-transmitting it is slowing down my Verizon ones as well. I have begun switching over to pushover on Pi and someone helped me there, but is it possible to set up pushover on WIndows and how can it be achieved if it can be done. Thanks.
 

Forts

Mentor
Database Admin
Joined
Dec 19, 2002
Messages
6,876
Location
Ontario, Canada
If you search back for Pushover in this forum you should find something. I know I posted a few things when I set it up a couple years back.
 

Forts

Mentor
Database Admin
Joined
Dec 19, 2002
Messages
6,876
Location
Ontario, Canada
Does anyone have a graceful way of killing and restarting TTD say, daily? I've been running 71C for quite a while now (because I need Pushover) and just recently I've found that the app either shuts down on it's own or goes into lala land. When I (or one of my members) notices we aren't getting alerts anymore I have to go into task manage, kill the current process and restart it. Would be nice if this could be scheduled to happen automatically at midnight or something like that. Any suggestions?
 

AFD103

Member
Premium Subscriber
Joined
Nov 17, 2020
Messages
33
Does anyone have a graceful way of killing and restarting TTD say, daily? I've been running 71C for quite a while now (because I need Pushover) and just recently I've found that the app either shuts down on it's own or goes into lala land. When I (or one of my members) notices we aren't getting alerts anymore I have to go into task manage, kill the current process and restart it. Would be nice if this could be scheduled to happen automatically at midnight or something like that. Any suggestions?
What platform? X or Windows?

What about writing a script to just restart your device at a regular interval? Mechanisms exist to do that in both platforms - CRON jobs on X and Tasks on Windows
 

Forts

Mentor
Database Admin
Joined
Dec 19, 2002
Messages
6,876
Location
Ontario, Canada
Sorry, Windows.

I would just schedule a reboot of the machine, but I have other applications running on there that I don't want to disturb if I can help it.
 

slingshot202

Member
Feed Provider
Joined
Sep 10, 2008
Messages
681
Location
New Jersey
If anyone is using Windows with pushover, any idea if the FTP failing would keep the alert going? I do not see any other error than the FTP (of course tested good once but then I changed the directory) the alerts had not been programmed at the initial time of an upload.

FTP UPLOAD STARTS HERE
RETURNING AND REMOVING STUFF HERE
[]
360.3292682926829 6284 1701990065.3634596
Traceback (most recent call last):
File "TwoToneDetect73f.py", line 1193, in uploadFTP
File "ftplib.py", line 504, in storbinary
ftplib.error_perm: 553 Can't open that file: No such file or directory
365.7073170731707 4582 1701990065.5423262
510.9146341463415 31389 1701990065.7324572

I have corrected the directory error, but of my three alerts none triggered.
 

slingshot202

Member
Feed Provider
Joined
Sep 10, 2008
Messages
681
Location
New Jersey
OK, I think I may have it - I failed to copy the entire command powershell "C: (forgot power shell). Now the question is, do the quotations stay or go?
 

AFD103

Member
Premium Subscriber
Joined
Nov 17, 2020
Messages
33
Sorry, Windows.

I would just schedule a reboot of the machine, but I have other applications running on there that I don't want to disturb if I can help it.
Gotcha.
How are you with batch scripting? You should be able to write a simple script with 'taskkill /IM' (the /IM flag tells it to look for the image/executable name) and then to restart it. Should be pretty straightforward.
 

Forts

Mentor
Database Admin
Joined
Dec 19, 2002
Messages
6,876
Location
Ontario, Canada
I just have a shortcut to TTD in the Windows startup folder. As I mentioned I'm trying to avoid rebooting the machine as it's also running SDRTrunk, rdioscanner, etc etc as well.

I'll look into using taskkill, thanks for the suggestion!
 

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
554
Location
Texarkana, Arkansas
Code:
upload_file_prefix =

Is there a variable substitution for this? I cannot find it in the PDF. My primary and backup config files have different URLs, but it seems to be a limitation when sharing the tones.cfg file.
 

KC1IMD

Member
Feed Provider
Joined
Feb 6, 2007
Messages
183
Location
Connecticut
Hi all,
Andy all my email-to-texts are being rejected by all 4 major carriers. It started January 6. They are sent back with the following error: ERROR CODE :552 - 5.2.0 Message contains bare LF and is violating 822.bis section 2.3. I've tried sending using zohomail and outlook. I called Zoho and they said it is being rejected by the carrier. I am using version 73m from IAR. Any ideas? Thank you.
 
Last edited:
Top