TwoToneDetect New TwoToneDetect in the works - Python based

ffryan76

Member
Feed Provider
Joined
Nov 28, 2004
Messages
175
Location
South central, In
I am new to this program, just got it installed I generated a long tone to test the system it was triggered and then tried to send, it but generated the following problem can anyone help. Thanks

Waiting for Silence Long Tone Page 11:07:36 on 02/18/16
Done recording Long Tone Page 11:07:38 on 02/18/16
done writing WAV Long Tone Page 11:07:38 on 02/18/16
done converting to MP3 Long Tone Page 11:07:38 on 02/18/16
done converting to AMR Long Tone Page 11:07:38 on 02/18/16
Traceback (most recent call last):
File "<string>", line 587, in mail
IOError: [Errno 2] No such file or directory: './audio/Long_Tone_Page_2016_02_18
_11_07_07.amr'
Email not sent on attempt 1trying again in five seconds for Long Tone Page Page
Received at 11:07:07 on 02/18/16
Traceback (most recent call last):
File "<string>", line 587, in mail
IOError: [Errno 2] No such file or directory: './audio/Long_Tone_Page_2016_02_18
_11_07_07.amr'
Email not sent on attempt 2trying again in five seconds for Long Tone Page Page
Received at 11:07:07 on 02/18/16
Traceback (most recent call last):
File "<string>", line 587, in mail
IOError: [Errno 2] No such file or directory: './audio/Long_Tone_Page_2016_02_18
_11_07_07.amr'
Email not sent on attempt 3trying again in five seconds for Long Tone Page Page
Received at 11:07:07 on 02/18/16
max retries exceeded, failed to send email
Traceback (most recent call last):
File "<string>", line 1079, in alert
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process: './audio/Long_Tone_Page_2016_02_18_11_07_07.wav'
AJ,
I think this is a email log in error. If you are using gmail, you will need to use a application password. Search your gmail help section for that.
 

slingshot202

Member
Feed Provider
Joined
Sep 10, 2008
Messages
681
Location
New Jersey
Ok. Got it all set up. Let's see what happens (provided they remember the 6pm test).


CJ
Sent from my iPhone using Tapatalk
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
I am new to this program, just got it installed I generated a long tone to test the system it was triggered and then tried to send, it but generated the following problem can anyone help. Thanks

Waiting for Silence Long Tone Page 11:07:36 on 02/18/16
Done recording Long Tone Page 11:07:38 on 02/18/16
done writing WAV Long Tone Page 11:07:38 on 02/18/16
done converting to MP3 Long Tone Page 11:07:38 on 02/18/16
done converting to AMR Long Tone Page 11:07:38 on 02/18/16
Traceback (most recent call last):
File "<string>", line 587, in mail
IOError: [Errno 2] No such file or directory: './audio/Long_Tone_Page_2016_02_18
_11_07_07.amr'
Email not sent on attempt 1trying again in five seconds for Long Tone Page Page
Received at 11:07:07 on 02/18/16
Traceback (most recent call last):
File "<string>", line 587, in mail
IOError: [Errno 2] No such file or directory: './audio/Long_Tone_Page_2016_02_18
_11_07_07.amr'
Email not sent on attempt 2trying again in five seconds for Long Tone Page Page
Received at 11:07:07 on 02/18/16
Traceback (most recent call last):
File "<string>", line 587, in mail
IOError: [Errno 2] No such file or directory: './audio/Long_Tone_Page_2016_02_18
_11_07_07.amr'
Email not sent on attempt 3trying again in five seconds for Long Tone Page Page
Received at 11:07:07 on 02/18/16
max retries exceeded, failed to send email
Traceback (most recent call last):
File "<string>", line 1079, in alert
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process: './audio/Long_Tone_Page_2016_02_18_11_07_07.wav'

This looks like it may be a file permissions problem. Make sure you have the TTD folder in a location on the computer that you have full read/write access to. For example, don't put it in the "Program Files" folder...instead, try running it from your desktop and see if that works.

Andy
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,567
Location
Massachusetts
For everyone else's reference, here is what slingshot and I worked out:

The tone sets that TTD is hearing are 1462/1231 and 1462/1247. Yes, the Btones are real close. Your tone tolerance is currently set at 2% (.02). 2% of 1247 is 24.8 and of 1231 is 24.6. So TTD is looking for something in the range of 1247 +/- 24 for one and 1231 +/- 24 for the other. So anything in the range of 1223-1271 will decode for 1247 and in the range of 1207-1255 will decode for 1231.

You have the problem because these two ranges overlap causing both tones to decode. Change your tone_tolerance parameter in the config.cfg file to 0.5% (.005) and the ranges will be 1241-1253 for 1247 and 1225-1237 for 1231. Since these don’t overlap it should work. You will just need to make sure that all your tone specs in tones.cfg are spot on as you aren’t allowing much leeway. Especially if you have any low frequency tones. Half a percent of 300 is only 1.5 so if you were looking for a 300 tone your range would only be 298-302.

CORRECTION: The issue is not that the two ranges overlap but that each range is wide enough to include the spec for the second tone. For example at 2% the range for 1231 is 1207-1255. That range includes 1247. So, in reality a 1% tolerance would work. That would make the ranges 1219-1243 and 1235-1259.

I apologize for the confusion.
 

ajjohnson

Newbie
Joined
Feb 18, 2016
Messages
4
Twotonedetect not finding audio file

I am very new to this program
I did tighten the tone tolerance as suggested it did not work, by the way I am only using the long tone to trigger the system for testing I will be using the two tone setup from the dispatch center I have been able to get both ways to trip the recorder and place an audio file in the audio directory then after it goes through three try's for each email it deletes the audio file.
I am not sure what is going on but it looks like the error below is it is not finding the audio file or it is a problem in my email set up someone please help
I am looking forward to getting this program working for the guys.

Traceback (most recent call last):
File "<string>", line 587, in mail
IOError: [Errno 2] No such file or directory: './audio/Long_Tone_Page_2016_02_19
_11_57_49.mp3'
Email not sent on attempt 1trying again in five seconds for Long Tone Page page
received at 11:57:49 on 02/19/16
Traceback (most recent call last):
File "<string>", line 587, in mail
IOError: [Errno 2] No such file or directory: './audio/Long_Tone_Page_2016_02_19
_11_57_49.mp3'
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
Hello all,
I downloaded the software last night and set it up. I thought I had it right. It shows the page was received but it was never sent out.....any clues or tips as to what to do so I can start getting them?
-Brian
 

ffryan76

Member
Feed Provider
Joined
Nov 28, 2004
Messages
175
Location
South central, In
Hello all,
I downloaded the software last night and set it up. I thought I had it right. It shows the page was received but it was never sent out.....any clues or tips as to what to do so I can start getting them?
-Brian
Please post your log file. Make sure to remove sensitive information.
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
FFRyan76, this is everything from time it was received to last attempt to send

56 EMS Tone Set Found
delay timer 56 EMS 05:54:30 on 02/20/16
618.0 228.791526052
0
delay done 56 EMS 05:54:30 on 02/20/16
waiting for audio 56 EMS 05:54:30 on 02/20/16
threshold value: 64.0
mono
613.0 203.432576573
threshold exceeded
recording audio 56 EMS 05:54:30 on 02/20/16
iterations: 450
801.0 272.304359313
1500.0 300.178806831
1500.0 328.828569543
1500.0 308.839160823
1500.0 294.335476417
1500.0 310.990091895
1500.0 301.862430188
1500.0 282.095573441
801.0 278.956436736
801.0 276.36593496
801.0 277.815554377
1494.0 134.911651184
1645.0 534.335314665
2156.0 53.4008565594
747.0 67.4680362949
2043.0 31.7376060543
564.0 113.187222003
709.0 107.955334855
1833.0 118.162293645
747.0 54.4222407177
693.0 148.906380407
527.0 49.5244096207
1258.0 247.381474397
704.0 85.8848176299
527.0 39.353872629
1209.0 226.96238131
2925.0 82.9293861514
543.0 48.9548209592
1317.0 32.0880720484
1086.0 120.135340149
532.0 104.628186034
1021.0 117.659697369
1193.0 55.4723963861
564.0 116.764321368
532.0 85.0165778549
1822.0 97.7173757807
1215.0 37.0345709132
1177.0 106.248812659
505.0 109.46261339
1177.0 120.883111687
1166.0 47.6874101824
1145.0 131.495394196
629.0 128.355636995
2667.0 76.1112881412
1172.0 169.951286269
532.0 111.539143179
521.0 29.020284172
1640.0 121.412768738
1140.0 103.292717541
516.0 74.2508567667
527.0 85.6400435834
1188.0 55.3821143203
478.0 41.9961548482
489.0 36.4954091215
1317.0 41.1378485375
2565.0 47.1783117331
2038.0 148.061031145
2769.0 32.2065121168
575.0 70.7079919595
1785.0 63.6886820955
1860.0 169.951286269
763.0 115.970288354
1720.0 169.89972888
1774.0 151.714101533
1204.0 225.341353187
1677.0 92.406528404
505.0 47.3921590855
623.0 45.6311381927
1537.0 73.8746907538
392.0 69.585788401
553.0 66.0796219344
1027.0 86.9824339423
1166.0 87.4987391414
1166.0 70.865975226
602.0 24.9376849579
537.0 121.1281942
527.0 43.6888840061
2936.0 46.274467008
527.0 73.8996698854
1150.0 163.944478335
494.0 81.6547983247
1150.0 73.9199399744
1478.0 56.4187515125
1113.0 233.141416517
1602.0 65.5336235512
656.0 165.088793864
2430.0 50.2825636785
1177.0 132.034185402
559.0 113.770076866
543.0 31.345714574
1634.0 166.648635422
1016.0 139.639971706
500.0 16.9044172034
1317.0 37.2404085522
715.0 158.972570937
1199.0 11.3955808592
1494.0 160.310145946
1274.0 68.0621772817
1914.0 610.577850161
1742.0 197.921547114
1747.0 360.896554959
1398.0 254.707206936
908.0 240.904835642
908.0 244.042205178
908.0 250.999864023
908.0 300.00957372
908.0 150.676697079
908.0 243.952284646
908.0 231.755670611
908.0 266.101379783
908.0 213.568386582
908.0 518.489471622
908.0 389.152666496
1070.0 500.77027032
1457.0 337.171987683
930.0 210.531116054
1220.0 221.577078999
1355.0 155.511445635
Waiting for Silence 56 EMS 05:55:12 on 02/20/16
1962.0 128.447304038
2172.0 180.839855906
1962.0 111.475513046
1339.0 166.052183722
1962.0 200.56963263
1962.0 144.349190387
1876.0 172.891141958
1962.0 208.924189289
1607.0 160.99991278
1962.0 161.55731324
1962.0 156.624561415
1962.0 122.638532701
2097.0 114.897891298
1758.0 254.78420834
1295.0 212.895613322
1925.0 103.949157879
1871.0 131.089177076
1962.0 137.817448143
1607.0 330.584100557
1086.0 398.966882235
2516.0 141.734011013
1871.0 168.934825142
2070.0 196.492366335
1441.0 175.549502702
1876.0 123.527609104
1828.0 188.146234176
1457.0 277.746918089
1892.0 113.63804594
1731.0 158.995779335
1602.0 254.952356752
1252.0 390.136069671
1753.0 302.99589633
1607.0 199.290003633
1710.0 320.449934736
1489.0 443.46151925
919.0 333.927708211
1672.0 222.819369838
2936.0 182.497486198
2817.0 184.847607646
2807.0 349.08092776
1150.0 219.354530607
1080.0 211.368429374
1408.0 286.432800533
1016.0 204.039786852
1957.0 110.755277087
1876.0 195.056239771
946.0 216.116683761
1844.0 206.411052944
1618.0 409.050211989
1183.0 361.490177397
1183.0 212.575045249
1183.0 244.706934036
1156.0 221.856485888
1145.0 274.409163487
1962.0 174.558007391
1629.0 278.943532186
1962.0 200.993912068
1962.0 396.382901091
1747.0 348.314745518
1704.0 288.019213619
586.0 52.566944219
586.0 28.1845714114
715.0 85.3956608262
812.0 30.3531921845
1849.0 51.185130043
752.0 89.3253101423
677.0 27.527693213
1188.0 89.0615386976
500.0 65.7077018876
1355.0 105.36706982
871.0 152.085211496
812.0 55.0253175044
1070.0 39.1365540513
1027.0 74.995083815
1005.0 42.4798108375
1161.0 83.3573749958
483.0 64.7338671742
838.0 96.9609791976
537.0 62.2227312989
527.0 70.9953460116
543.0 76.2490078504
1607.0 66.0982974637
1295.0 104.928938463
1150.0 131.334344729
1123.0 94.8612498636
1161.0 99.8479087708
1118.0 108.925876818
1607.0 40.9030394876
457.0 62.4879247782
618.0 78.3956264841
806.0 29.998033526
1177.0 66.6646104252
548.0 65.6917364187
688.0 63.0459155556
1301.0 87.0755886839
505.0 74.4256030964
527.0 40.4184378336
1828.0 70.5413680764
473.0 96.4055565708
467.0 53.876504202
785.0 87.2892875822
715.0 22.9978943217
935.0 72.5879338842
494.0 61.4199115948
1473.0 75.9555601761
1505.0 32.8033271513
1199.0 68.9767427901
1140.0 71.6288314793
1919.0 19.3370134208
1188.0 72.4184565969
1591.0 54.1002029421
Done recording 56 EMS 05:55:59 on 02/20/16
done writing WAV 56 EMS 05:55:59 on 02/20/16
done converting to MP3 56 EMS 05:56:00 on 02/20/16
done converting to AMR 56 EMS 05:56:01 on 02/20/16
2995.0 45.1454674156
Traceback (most recent call last):
File "<string>", line 606, in mail
File "smtplib.py", line 724, in sendmail
SMTPSenderRefused: (501, 'Syntax error in arguments', 'sussexcountypaging')
Email not sent on attempt 1trying again in five seconds for 56 EMS page received at 05:54:29 on 02/20/16
Traceback (most recent call last):
File "<string>", line 606, in mail
File "smtplib.py", line 724, in sendmail
SMTPSenderRefused: (501, 'Syntax error in arguments', 'sussexcountypaging')
Email not sent on attempt 2trying again in five seconds for 56 EMS page received at 05:54:29 on 02/20/16
Traceback (most recent call last):
File "<string>", line 606, in mail
File "smtplib.py", line 724, in sendmail
SMTPSenderRefused: (501, 'Syntax error in arguments', 'sussexcountypaging')
Email not sent on attempt 3trying again in five seconds for 56 EMS page received at 05:54:29 on 02/20/16
max retries exceeded, failed to send email
Traceback (most recent call last):
File "<string>", line 606, in mail
File "smtplib.py", line 724, in sendmail
SMTPSenderRefused: (501, 'Syntax error in arguments', 'sussexcountypaging')
Email not sent on attempt 1trying again in five seconds for 56 EMS Page Received at 05:54:29 on 02/20/16
Traceback (most recent call last):
File "<string>", line 606, in mail
File "smtplib.py", line 724, in sendmail
SMTPSenderRefused: (501, 'Syntax error in arguments', 'sussexcountypaging')
Email not sent on attempt 2trying again in five seconds for 56 EMS Page Received at 05:54:29 on 02/20/16
Traceback (most recent call last):
File "<string>", line 606, in mail
File "smtplib.py", line 724, in sendmail
SMTPSenderRefused: (501, 'Syntax error in arguments', 'sussexcountypaging')
Email not sent on attempt 3trying again in five seconds for 56 EMS Page Received at 05:54:29 on 02/20/16
max retries exceeded, failed to send email
 

ajjohnson

Newbie
Joined
Feb 18, 2016
Messages
4
fixed audio

I am still working with the program but the fix for my problem was to change the ffmpeg file I had downloaded the 64 bit file and it would not let the program see the audio file. it is working for now thanks for all your help
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
Traceback (most recent call last):
File "<string>", line 606, in mail
File "smtplib.py", line 724, in sendmail
SMTPSenderRefused: (501, 'Syntax error in arguments', 'sussexcountypaging')
Email not sent on attempt 3trying again in five seconds for 56 EMS Page Received at 05:54:29 on 02/20/16
max retries exceeded, failed to send email

This seems like it may be an issue with the email address. If your email userID is sussexcountypaging, you'll want to put sussexcountypaging@emailprovider.whatever in the Email "From" Address field. Also make sure all email addresses that you're sending to are correct.

Andy
 

ajjohnson

Newbie
Joined
Feb 18, 2016
Messages
4
I found the problem it was that I downloaded the 64 bit ver of ffmpeg not the 32 bit thanks for everyone's help
 

BigRedBox80

Member
Feed Provider
Joined
Apr 23, 2015
Messages
170
I'm trying to send tone messages to Verizon phones but keep getting this message. How can I fix this? See attached image.
 

Attachments

  • smtp.png
    smtp.png
    13.1 KB · Views: 414

slingshot202

Member
Feed Provider
Joined
Sep 10, 2008
Messages
681
Location
New Jersey
I'm trying to send tone messages to Verizon phones but keep getting this message. How can I fix this? See attached image.

I am not sure where you are getting that snapshot, however, this is a problem with the configuration for your email within TTD and not the service provider.
 

BigRedBox80

Member
Feed Provider
Joined
Apr 23, 2015
Messages
170
I am not sure where you are getting that snapshot, however, this is a problem with the configuration for your email within TTD and not the service provider.

I get this message after I try to send test emails. Regular email works fine but not the text ones, I get this pop-up.
 

briansmall

Member
Joined
May 28, 2015
Messages
4
Audio filename

Is there any way to pass the audio file name created in the "post_email_command" command or another way programmatically to get the audio (page) file that was created and emailed out? I'm trying to build a web interface/API to the data so I can pull it into different apps.

thanks,

Brian
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,567
Location
Massachusetts
Is there any way to pass the audio file name created in the "post_email_command" command or another way programmatically to get the audio (page) file that was created and emailed out? I'm trying to build a web interface/API to the data so I can pull it into different apps.

thanks,

Brian

Brian,

Do a quick search of this thread for [mp3] to find some posts regarding what you are thinking of. In particular, here is a post of interest:

http://forums.radioreference.com/st...etect-works-python-based-116.html#post2166298

I hope that helps. I use these arguments for python commands in linux so I can't be much other help on the Windows side.

Jim
 

cobraultra

Member
Feed Provider
Joined
Feb 2, 2010
Messages
68
Location
Pittsburgh, PA
Is there any way to pass the audio file name created in the "post_email_command" command or another way programmatically to get the audio (page) file that was created and emailed out? I'm trying to build a web interface/API to the data so I can pull it into different apps.

thanks,

Brian



Brian, hope this helps .bat file ran at the end of recording..

cd C:\TTD_South\audio\ -------- Audio save location

copy PA03104*.mp3 t:\pa03104\ -------- im copying mp3 for archive


FOR /F %%G IN ('DIR PA03104*.mp3 /B') DO SET filename=%%~nxG ------- this looks for the MP3 and gets just the "name.mp3"


I am then passing "filename" variable into a SQLCMD command
 

Westernbound

Member
Joined
Aug 11, 2014
Messages
35
Location
Dickens TX
Remote Tones.cfg

Andy,

I am currently running TTD for 4 fire departments and 2 EMS departments. All 6 department are contained in 1 tones.cfg file which I have remotely hosted. Fire chiefs and directors can log into their departments tones and add or remove members. The fire chiefs or EMS directors can call me at anytime and ask for an Admin message to be sent to their department so I keep TTD on my laptop so I can send a message from anywhere. But for me to send a message for them I have to run TwoToneDetect68.exe so the program will pull the updated remote tones file. Since I do not have anything plugged into the audio port I have to click my way through several error message before the program closes. Then I can run the TonesEditor8b.exe and send the Admin message.

How hard would it be in a future update to make it so that when you run the TonesEditor, that it would also pull the remotely hosted tones file?

Marvin
 

Attachments

  • Error Messages.jpg
    Error Messages.jpg
    66 KB · Views: 325

ryolsen8

Active Member
Feed Provider
Joined
May 1, 2011
Messages
518
Location
BEE07
Andy,

I am currently running TTD for 4 fire departments and 2 EMS departments. All 6 department are contained in 1 tones.cfg file which I have remotely hosted. Fire chiefs and directors can log into their departments tones and add or remove members. The fire chiefs or EMS directors can call me at anytime and ask for an Admin message to be sent to their department so I keep TTD on my laptop so I can send a message from anywhere. But for me to send a message for them I have to run TwoToneDetect68.exe so the program will pull the updated remote tones file. Since I do not have anything plugged into the audio port I have to click my way through several error message before the program closes. Then I can run the TonesEditor8b.exe and send the Admin message.

How hard would it be in a future update to make it so that when you run the TonesEditor, that it would also pull the remotely hosted tones file?

Marvin

How is it that you are sending an 'Admin Message' to the various departments? That would be nice to be able to do on my end.
 
Top