TwoToneDetect New TwoToneDetect in the works - Python based

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,555
Location
Massachusetts
Defibber,

All my experience with TTD on the Pi has been using Raspbian Wheezy. Not sure if some of your problems may be Jessie related? I also found it more difficult to set up on the Pi2 fir some reason but i don't remember the specifics now. Let me see if i can find a working pi2 image to send to you. All the errors that you are seeing, etc., i have never run into so i am not much help in sorting them out.

Jim
 

davidVT

Member
Feed Provider
Joined
Aug 29, 2010
Messages
138
Location
Washington County,Vermont
My experience with Pi2 was very pleasant.

I used my b+ running installation and simply did the updates to it.
My running system was based on an image downloaded long ago from DC31.

I used a script to tar.gz the working updated image to a USB stick and another to write the image to the small microSD card using another Linux Box.

After moving the sound hardware and new microSD to the new Pi2, it just worked. (And still works)

Don't give up. The end result is worth it!


Sent from my iPad using Tapatalk
 

Defibber

Member
Joined
Sep 30, 2011
Messages
19
Location
Kansas City, Mo
David and Jim,

Thanks for the updates. I am going to keep plugging away at it. I am getting ready to start 48 hours at two different departments, so I am packing the pi, and micro SD cards to if I get some downtime to tinker I will see what I can do. I may try Wheezy again. I just can't believe that I am not getting anything from the Two Tone Detect pi Image. Oh well.

Thanks!
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,555
Location
Massachusetts
I have started making a copy of the pi2 image for you. it will take a while so may not be ready until this afternoon or evening. Let's move this discussion over to the forum thread specific to the Raspberry Pi, http://forums.radioreference.com/st...nedetect-raspberry-pi-how-24.html#post2463681 so that we don't bore all the other Windows users. And keep the pi stuff is one spot.

I will let you know when I have checked the image to make sure that it works on a pi2 and has been uploaded where you can retrieve it.

Jim
 

KC1IMD

Member
Feed Provider
Joined
Feb 6, 2007
Messages
182
Location
Connecticut
Hi All
We have been noticing that the texts have been consistently arriving after about 60 minutes, across all carriers. I realize it all depends on network traffic etc, but 60 minutes is way too long. For 5 years it's always been 1.5-2 minutes. Any ideas?
Joe

Sent from my SM-T330NU using Tapatalk
 

KC1IMD

Member
Feed Provider
Joined
Feb 6, 2007
Messages
182
Location
Connecticut
Sorry a little background. Have been using v65c since it was issued. Have stayed with it because it has always worked well.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,555
Location
Massachusetts
I have started making a copy of the pi2 image for you. it will take a while so may not be ready until this afternoon or evening. Let's move this discussion over to the forum thread specific to the Raspberry Pi, http://forums.radioreference.com/st...nedetect-raspberry-pi-how-24.html#post2463681 so that we don't bore all the other Windows users. And keep the pi stuff is one spot.

I will let you know when I have checked the image to make sure that it works on a pi2 and has been uploaded where you can retrieve it.

Jim

See the Raspberry PI thread for a link to my image.
 

MikeOrlando02

Member
Joined
Oct 8, 2015
Messages
97
Stop recording when additional pages are received

Hello,

Just implemented TTD this weekend and it is AWESOME. We just received our first actual page and had an issue. In our system, dispatch always puts out two sets of pages. So the first recording contained the first and second page and the second recording contained just the second. Is there a way to configure so that when the second tone is received that the first recording stops and the second one would continue as it is now?

Often there is very minimal delay from dispatch between the end of the first page and the beginning of the second so I cannot set it to stop recording after so many seconds of no audio. Any suggestions?

Of course, I could increase the ignore_after delay and just ignore the second page, because the first recording gets the first and second page; however I was really hoping that the first page could be sent right away while the second one was still recording.

Thanks!
Mike
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,303
Hello,

Just implemented TTD this weekend and it is AWESOME. We just received our first actual page and had an issue. In our system, dispatch always puts out two sets of pages. So the first recording contained the first and second page and the second recording contained just the second. Is there a way to configure so that when the second tone is received that the first recording stops and the second one would continue as it is now?

Often there is very minimal delay from dispatch between the end of the first page and the beginning of the second so I cannot set it to stop recording after so many seconds of no audio. Any suggestions?

Of course, I could increase the ignore_after delay and just ignore the second page, because the first recording gets the first and second page; however I was really hoping that the first page could be sent right away while the second one was still recording.

Thanks!
Mike

Mike,

About the only thing you can do in this scenario is set the program to record for a fixed amount of time rather than having it look for silence before stopping.

You can also use the "Text Only Email Address" field to send a text as soon as the tone is detected to at least get the initial alert out a bit sooner. The audio file would then follow after the recording is complete.

Andy
 

MikeOrlando02

Member
Joined
Oct 8, 2015
Messages
97
Mike,

About the only thing you can do in this scenario is set the program to record for a fixed amount of time rather than having it look for silence before stopping.

You can also use the "Text Only Email Address" field to send a text as soon as the tone is detected to at least get the initial alert out a bit sooner. The audio file would then follow after the recording is complete.

Andy


Thanks for the reply. I was hoping there was an "alert command" that would terminate previous recordings stated by the same tone or another setting that I was just missing. I didn't want to do the fix amount of time as that would eventually cut off audio. The txt option may be the best for notification, unfortunately the content would be delayed regardless and you would then get four text for every call (txt + mms x 2 pages).
 

MikeOrlando02

Member
Joined
Oct 8, 2015
Messages
97
Post-Email Command: Automatic Audio MP3 Upload

Hello,

We had wanted to upload our MP3 audio that was recorded in TTD to our FTP server so I wrote a script/batch file and thought I would share for anyone else interested. This uses the free WinSCP FTP client.

The script will log in to your FTP server, uploads new files & deletes source upon upload, then cleans up FTP files older than X days. You can upload audio from a specific tone or all audio in the folder.

I have attached the "audioup.bat" file, please edit it with your information. We have placed this file right in the same folder as TwoToneDetect's EXE and then in tones.cfg added post_email_command = audioup.bat TONE_NAME.

You must download WinSCP FTP (https://winscp.net/eng/download.php) and place those EXE's in the same folder as audioup.bat. I used the portable version, last found at https://winscp.net/download/winscp575.zip.

Change the attached audioup.txt to audioup.bat after you make your changes.

Enjoy,
Mike
 

Attachments

  • audioup.txt
    1.2 KB · Views: 107

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,303
Thanks for the reply. I was hoping there was an "alert command" that would terminate previous recordings stated by the same tone or another setting that I was just missing. I didn't want to do the fix amount of time as that would eventually cut off audio. The txt option may be the best for notification, unfortunately the content would be delayed regardless and you would then get four text for every call (txt + mms x 2 pages).

You can use the Ignore After parameter to cut the number of texts in half...it will ignore the tone set that was detected for X seconds...so you'd get alerted for the first tone but not the second.

Andy
 

MikeOrlando02

Member
Joined
Oct 8, 2015
Messages
97
You can use the Ignore After parameter to cut the number of texts in half...it will ignore the tone set that was detected for X seconds...so you'd get alerted for the first tone but not the second.

Andy

Thanks for the guidance. I listened to some recordings and it seems like our average page is around 15 seconds with the shortest being 13 seconds. I am going to experiment with the config.cfg by brining record_seconds down to 13 and release_time down to 2 seconds. If I understand this correctly, I will get 13 seconds of guaranteed recording and if there is a two second or more gap between dispatch audio stopping and the second set of tones dropping the first recording should terminate and sent. Then they second will start.

Will observe for a week or so and see if that helps separate my pages, most of the time.
 

MikeOrlando02

Member
Joined
Oct 8, 2015
Messages
97
Send AMR Emails BCC / Prevent Reply-All

I am sending my AMR emails to the MMS email address of my user's. This of course is received on their phones as a MMS message. If someone replies to the text message it appears (at least on iPhones) to go to everyone. The messages are coming from a dedicated email address, but the phones must see all the addresses the message was sent to and is "reply-all" to everyone so a text from one period goes to all.

Is there anyway to send as BCC so this cannot happen?
 

MikeOrlando02

Member
Joined
Oct 8, 2015
Messages
97
I am sending my AMR emails to the MMS email address of my user's. This of course is received on their phones as a MMS message. If someone replies to the text message it appears (at least on iPhones) to go to everyone. The messages are coming from a dedicated email address, but the phones must see all the addresses the message was sent to and is "reply-all" to everyone so a text from one period goes to all.

Is there anyway to send as BCC so this cannot happen?

Think I may have found it.. JUST after I posted. in the config.cgf I see the line: BCC = 0 ;1 = email addresses will be BCC'ed (hidden from other recipients). 0 = recipients will see other recipients

I presume that will do the trick?
 

Defibber

Member
Joined
Sep 30, 2011
Messages
19
Location
Kansas City, Mo
Ok, So I got the Pi running at the Fire station, our City IT person set up our mail server to accept the email without authentication, somehow, we use Microsoft exchange, but every time we run it, I get the following "5.7.3 Authentication Unsuccessful". I have left it blank, I put in a junk email address, all without success. Any ideas?
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,303
Ok, So I got the Pi running at the Fire station, our City IT person set up our mail server to accept the email without authentication, somehow, we use Microsoft exchange, but every time we run it, I get the following "5.7.3 Authentication Unsuccessful". I have left it blank, I put in a junk email address, all without success. Any ideas?

Can you PM me the email server and port you're using, along with a copy/paste of the error you're getting?

Andy
 

iceman977th

Member
Feed Provider
Joined
Dec 25, 2009
Messages
389
Location
Catlettsburg, KY
Is anyone else having issues with sending to AT&T phones? We got our software back up and are running v67a, we moved all the contact over and use the software exclusively (versus forwarding lists via Exchange as we did before, for other reason)...my phone is on Verizon and is receiving everything without a problem, but it seems like none of our AT&T users are receiving them. I'm trying to find users on Sprint and other Verizon users to see if they are receiving them fine.

When I send e-mails from the same e-mail that we use (paging@#######.net) via webmail to the phones, the texts are received fine. I forwarded previous clips from my phone to the e-mail, and out to the other users (mainly the IT guy that I'm working with) and he receives them from webmail fine as well. It is showing the files as .wav though for some reason and not .mp3, even though I have the right ffmpeg installed. I'm just not sure why Admin emails and actual calls are not sending to AT&T users. BCC is enabled, settings are all fine.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,303
It is showing the files as .wav though for some reason and not .mp3, even though I have the right ffmpeg installed.

If it is sending WAV files instead of MP3, then something is not correct with ffmpeg, and that is very likely the cause of your problems.

Andy
 
Top