TwoToneDetect New TwoToneDetect in the works - Python based

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,618
Location
Massachusetts
I'm still trying to work out some bugs with v59 related to delayed recording, but that shouldn't be related to the A-B A-B scenario. In the mean time, v58 should also handle that scenario if you set the Btonelength up correctly. Any chance you could send me a recording and a copy of your tones.cfg?

Andy

andy, running v59 on the pi. When i send in a test tone from my iphone output jack (cable from output jack to line in on sound card) it almost invariably does a delayed recording. It misses maybe 3-5 seconds up front even with recording delay set to zero. If i run the scanner feed in through the cable it starts recording right away. Are you still having difficulty replicating this problem? I seem to be able to make it do this on demand if i can help. I have tone sets and test messages saved as .mp3 files on my phone and just play them in. It may be an audio level thing as the iphone output is lower than the scanner.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,307
Ok now I have myself confused. In tones config do I want BTone length to be .3 or 3?

Set it to the actual length of the B tone (or just a hair shorter) for v58. Usually that's 3 seconds.

Andy
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,307
andy, running v59 on the pi. When i send in a test tone from my iphone output jack (cable from output jack to line in on sound card) it almost invariably does a delayed recording. It misses maybe 3-5 seconds up front even with recording delay set to zero. If i run the scanner feed in through the cable it starts recording right away. Are you still having difficulty replicating this problem? I seem to be able to make it do this on demand if i can help. I have tone sets and test messages saved as .mp3 files on my phone and just play them in. It may be an audio level thing as the iphone output is lower than the scanner.

Actually the Pi version hasn't had the recording delay issues, which has led me to believe that the GUI may have something to do with it. If you're seeing that with the Pi version, that concerns me. Try running LevelMeter on the Pi and playback your mp3 file from the phone and see how those levels relate to your audio_threshold parameter.

Andy
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,618
Location
Massachusetts
Actually the Pi version hasn't had the recording delay issues, which has led me to believe that the GUI may have something to do with it. If you're seeing that with the Pi version, that concerns me. Try running LevelMeter on the Pi and playback your mp3 file from the phone and see how those levels relate to your audio_threshold parameter.

Andy

I will do that. I am traveling for a few days so it will be later this week.
 

davidVT

Member
Feed Provider
Joined
Aug 29, 2010
Messages
138
Location
Washington County,Vermont
Heading down the path to load the PI version on a standard Ubuntu box as a test. I will provide feedback if the delay is observed. Any pointers that might help with a smooth install?

I am still running 57 on the 'production' windows box so I believe I need to bring that up to 59 so my on config files will match between Linux and windows versions. Please confirm.

It is nothing for my 'nix boxes to run a year without a reboot. I hope to see that reliability supporting my TTD responders.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,618
Location
Massachusetts
Heading down the path to load the PI version on a standard Ubuntu box as a test. I will provide feedback if the delay is observed. Any pointers that might help with a smooth install?

I am still running 57 on the 'production' windows box so I believe I need to bring that up to 59 so my on config files will match between Linux and windows versions. Please confirm.

It is nothing for my 'nix boxes to run a year without a reboot. I hope to see that reliability supporting my TTD responders.

Dave, i wouldn't touch the v57 setup yet. Copy the v57 tones.cfg to the new v59 and then make the necessary changes (Atonelength, Btone length, etc.). For testing purposes i stripped out all the other optional stuff.

As for setup, in Levelmeter, it seems to bounce around some between 2 and 3 for the pulse input. When initially booted up mine seems to.land on 2 but then changes to 3. Run LevelMeter twice and use the second value.
 

davidVT

Member
Feed Provider
Joined
Aug 29, 2010
Messages
138
Location
Washington County,Vermont
Thank you for the suggestions on the linux version.

My wish would be to find the Linux version successful and then to have a web GUI so the linux box could be headless when I put that into production.
Yes I can use Vnc style access but a web GUI could be more efficient and might even work across windows and Linux for a common development path?? Not unlike what you can see on the software routers like smoothwall, ipfire, etc.
I am getting ahead of myself as I need to see it work in Linux for me first.
Andy keep up the good work!
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,307
We need a donate button...

It wouldn't help get new features out any more quickly :D

Seriously though, if you want to donate, find a fire department that could benefit from this and get them set up with it. That's how you can donate. (and add them to the user map, it feeds my ego :lol: )

Sorry for the lack of new releases recently, I have a list of things I'd like to implement but I'm trying to get these v59 record delay issues worked out before I add anything new. It's taking longer to fix than normal since I can't reproduce it. I've gotten a ton of help from a forum member who's been doing a lot of bug testing for me. I think we have an idea of what's causing the problem, now just need to find a fix. Not sure when I'll get some time to dig into it...I'm not able to devote as much time to this as I'd like these days.

Andy
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,618
Location
Massachusetts
along these lines, andy, i have saved the image that my pi runs on. I think that we could almost make that a cheap "out of he box" solution for some. The compressed image is about 1 mb. Someone could purchase a pi, usb sound card, etc. and could be up and running in short order once they install the image on the card. This takes a lot of the Linux manipulations out of it. Then they edit the config.cfg and tones.cfg. Another of my projects is to figure out how to make it grab the audio from a radioreference feed rather than from a scanner. Again, it is all about time...
 

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
561
Location
Texarkana, Arkansas
It wouldn't help get new features out any more quickly :D

Seriously though, if you want to donate, find a fire department that could benefit from this and get them set up with it. That's how you can donate. (and add them to the user map, it feeds my ego :lol: )
Andy

I already added mine, so that should help you out :)
 

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
561
Location
Texarkana, Arkansas
Andy

After you get that figured out, to add to your enormous list, what about adding Call-Em-All? I used perl a couple years ago and when a critical server would go down the on call person would get a call.

Since those people decided they couldn't use their BB notifications correctly, they started getting phone calls :)

Call-Em-All already has a Python API
https://www.call-em-all.com/dev/python-example.aspx
 

N1EO

Member
Joined
Aug 6, 2011
Messages
14
Location
Center Harbor,NH
Andy,

V59a Update

My problem ( our discussion on pg 66) were the program stops interacting with the sound card, I have after reading some of your posts about USB sound cards switched over to one from the internal card which has worked with all previous versions. Running on the USB V59a has worked flawlessly for 2 wks now.

Thank you,
Ed
 

smittyj77

Member
Joined
Sep 30, 2004
Messages
145
Location
Brockville
Andy,

Testing v59a and used the GUI for tones configuration. Tones went off tonight and I was running debug , did not see anything in debug for some reason, but the two tone detect window said page recieved and showed times, showed wav email sent text email sent and email sent etc.

It never recorded any audio, checked the audio folder and was empty, and no emails or text messages were actually sent.

Switched back to v56 for now.

Also another question some people say that they get the pages sent to them 4 times im not sure why this is happening, when our tones go off its a tone b tone then a tone b tone again then the voice

Thanks
 

ffryan76

Member
Feed Provider
Joined
Nov 28, 2004
Messages
175
Location
South central, In
Andy,
I would totally donate. My fire department loves this program. My chief actually smiled when he got the first page. I am helping some others (fire departments) implement this program.
I would donate for some other php programs as well. ;)
Learning that stuff is difficult. Lol.
 

ffryan76

Member
Feed Provider
Joined
Nov 28, 2004
Messages
175
Location
South central, In
Andy,

Also another question some people say that they get the pages sent to them 4 times im not sure why this is happening, when our tones go off its a tone b tone then a tone b tone again then the voice

Thanks

You might set a delay of 8 seconds after the first tones are detected. This may help stop sending the pages more than once. I totally dislike having tones sent twice. To me it's a waste of time.
I am sure some others have better advice than I. I am just getting the hang of this program myself.
Our dispatch is so poor, they never dispatch the same way ever. It's frustrating to get this program set right.
 

KLH

Member
Feed Provider
Joined
Dec 10, 2005
Messages
353
Location
Indiana
along these lines, andy, i have saved the image that my pi runs on. I think that we could almost make that a cheap "out of he box" solution for some. The compressed image is about 1 mb. Someone could purchase a pi, usb sound card, etc. and could be up and running in short order once they install the image on the card. This takes a lot of the Linux manipulations out of it. Then they edit the config.cfg and tones.cfg. Another of my projects is to figure out how to make it grab the audio from a radioreference feed rather than from a scanner. Again, it is all about time...

That would be awesome!
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,307
Andy,

Testing v59a and used the GUI for tones configuration. Tones went off tonight and I was running debug , did not see anything in debug for some reason, but the two tone detect window said page recieved and showed times, showed wav email sent text email sent and email sent etc.

It never recorded any audio, checked the audio folder and was empty, and no emails or text messages were actually sent.

Switched back to v56 for now.

Also another question some people say that they get the pages sent to them 4 times im not sure why this is happening, when our tones go off its a tone b tone then a tone b tone again then the voice

Thanks

Do you have ffmpeg.exe in the v59a folder? It deletes the WAV file after converting to mp3/amr, but if it can't do the conversion those files won't be there but it will still delete the WAV file.

Andy
 

ffryan76

Member
Feed Provider
Joined
Nov 28, 2004
Messages
175
Location
South central, In
Do you have ffmpeg.exe in the v59a folder? It deletes the WAV file after converting to mp3/amr, but if it can't do the conversion those files won't be there but it will still delete the WAV file.

Andy

Andy,
I am running v59a and it is storing the audio in a "audio " folder but not deleting them. Is that normal?
 
Top