TwoToneDetect Beta

Status
Not open for further replies.

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,323
Reaction score
116
I've put together a program for detecting two tone pages and upon detection, recording 30 seconds of audio and sending it to a specified email address as a .WAV file. I wrote this for my own use, but am making it available for others who might find it helpful. It's not very polished at this point, but it does what I need it to do. Requests for new features may or may not be acted on, depending on complexity and the time I have available.
TwoToneDetect-full;init:.jpg

Features include:
  • Audio frequency counter for finding tone frequencies with PC sound card
  • Decodes up to 5 two-tone pairs and 3 long tones
  • Upon detecting a valid tone set, records 30 seconds of audio and emails it to a specified address as a .wav file attachment
  • Provides limited serial port control of BCD396T and similar scanners to provide fire tone out functionality on multiple frequencies at the same time by skipping transmissions that are not valid tones

Installation is somewhat of a pain in the neck because of the large runtime engines that have to be downloaded in order to make the program run. I wrote it in LabView because that made it easy. I'm starting to play around with C# programming, and if I figure that out, I may make a version in that language that should be much easier to install.

Install instructions, basic instructions, and a rudimentary download are at http://radioetcetera.googlepages.com/twotoneprogram

Feedback through this thread is welcome.

Regards,

Andy
 
Last edited:

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,323
Reaction score
116
Setting multiple tone pairs is common for the local county dispatch. It would be nice that you could detect multiple agencies tones sent as part of a set. Between 'closest unit resonse', Mutual aid agreements, staff support, and dual responses, they seem to rarely send just a single tone pair.

Sorry folks, I know a lot of people have been asking for this, but I don't have any real line of sight to making it happen. It would essentially be an entirely new program from the ground up, and even then it wouldn't be easy, if it's even possible. At least in XP, only one process can have the sound card at a time, and the way the program is written, tone detection and recording are entirely separate events, so you can't do both at the same time. Vista is more flexible in that regard, but I'm not about to put something out that would only work in Vista. The only solution I can think of is to run multiple instances of the program for each tone set, but that also requires multiple sound cards. The program was written to somewhat mimic the operation of a pager, and pagers won't do what's being requested.

Andy
 

mst207

Member
Joined
Dec 21, 2008
Messages
7
Reaction score
0
Same question - looking for way to make audio accessible online

Hi there,

I'm looking for a way to either FTP the audio files up to a directory on the web somewhere, or alternatively to securely make my audio directory on my computer available on the Internet. Anyone tried this type of thing with any success?

Thanks!
 

Napsterbater

Member
Joined
Dec 2, 2007
Messages
57
Reaction score
0
Location
Milledgeville, GA
Have you thought about the other suggestion of mine.

Also I was wondering if you could add a option to the radio control to allow for normal scanning (not skip if no tone scanning as I believe its implemented) until a tone is received then hold on that channel till A. Record timer runs out or B. settable time limit, I run a scanner that broadcast to the internet so I need normal scanning function but because of that during the record I can get other unwanted traffic like if the dispatcher let the carrier drop before transmitting my scanner might start listing to another channels traffic and recording the instead.
 

plectron25

Member
Premium Subscriber
Joined
Feb 18, 2008
Messages
18
Reaction score
0
I'm looking for a way to either FTP the audio files up to a directory on the web somewhere, or alternatively to securely make my audio directory on my computer available on the Internet. Anyone tried this type of thing with any success?

I currently have TwoTone saving tone-out recordings to an IIS shared directory quite reliably. I also have ProScan saving the individual broadcast clips to the same directory. That lets me hear the surrounding fire/rescue activity that does not have tones associated.

Curiously, this is working fine for me with both programs using the same sound card, running Windows XP SP3. From what I read here it shouldn't work, but it does for me.

Question: the one annoyance with this is that the default sharing under IIS does not offer a "sort" option on the columns. Since the Two-Tone recordings look like this:
Fire_2009-02-01_09-15-26
and the ProScan recordings are formatted like this:
02-01-09 09-15-22 - VOX

when they are sorted alphabetically the related activities do not appear in sequence with the browsers I use.

Anyone have suggestions for a plug in for IIS that would allow for date/time sorting by clicking at the top of the column perhaps?

I am using Macintosh and cell phone clients in addition to PCs, so I think I need a solution at the server end.

I will say that Two-Tone and ProScan (running on the same machine, same sound card) make a great combination. I actually have four instances of ProScan running now, in addition to Two-Tone, all on one machine. This lets me record in various ways for listeners with different interests.
 
Last edited:

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,323
Reaction score
116
Version .22 Available

Just posted version .22 with the following new (but completely untested) features:

  • "Forced Scan" is now an option - when "Forced Scan" is selected, behavior is as before. When not selected, the program will not force the scanner to "scan" every .5 second. The scanner will stop as normal on busy channels. It will "Hold" the scanner when a valid tone set is detected until the recording is done, then start scanning again. Note that any time you are scanning (whether using "Forced Scan" or not), the probability of detecting pages is decreased.
  • Serial Output upon detection - allows you to specify a serial port to output a message upon detection of a tone set. The ASCII text in the "Description" field is the output. The DTR and RTS pins are also pulsed from -12V (normal state) to +12V for 1 second. This allows interfacing with external circuits to control relays, etc. if desired.

I think this will probably be the last release for the time being (except for bug fixes). There are some more things I'd like to do, but I've been getting a little tired of working on it lately. In particular, being able to detect stacked pages would be a big plus. However, to make that possible would require redoing the program pretty much from the ground up, and I don't have a good enough reason to justify the effort it would require. The software today does much more than I had originally planned, and much more than I need for my own use. Hopefully the features and capabilities it now has will allow people to interface it with other programs or hardware to make enhancements as needed.

Andy
 
Last edited:

plectron25

Member
Premium Subscriber
Joined
Feb 18, 2008
Messages
18
Reaction score
0
In particular, being able to detect stacked pages would be a big plus. However, to make that possible would require redoing the program pretty much from the ground up, and I don't have a good enough reason to justify the effort it would require. The software today does much more than I had originally planned, and much more than I need for my own use. Hopefully the features and capabilities it now has will allow people to interface it with other programs or hardware to make enhancements as needed.

I have found that I can readily run many instances of ProScan listening to the same audio card. Would it be possible to do something similar and run multiple Two-Tone instances and configure each to listen for certain tone pairs? Each instance would have to point to its own configuration file of course.

The software is great as it is, and I would like to add my thanks for your efforts.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,323
Reaction score
116
I have found that I can readily run many instances of ProScan listening to the same audio card. Would it be possible to do something similar and run multiple Two-Tone instances and configure each to listen for certain tone pairs? Each instance would have to point to its own configuration file of course.

Yep, that seems to work just fine, although I haven't tried it to know what happens when you have two instances running detecting different tones that get sent in the same stack. If both instances of the program are trying to email at the same time, I'm not sure if there is a conflict or not. Someone else on here has probably tried it and could give a definitive answer.

Andy
 

Napsterbater

Member
Joined
Dec 2, 2007
Messages
57
Reaction score
0
Location
Milledgeville, GA
Just FYI im getting an error from my event viewer

Source: .NET Runtime 2.0 Error
Event ID: 1000
"Faulting application twotonedetect.exe, version 0.22.0.3, stamp 46a69bca, faulting module waveio.dll, version 0.0.0.0, stamp 42f0f0ac, debug? 0, fault address 0x00002052."

Code:
Data: Bytes
0000: 41 00 70 00 70 00 6c 00   A.p.p.l.
0008: 69 00 63 00 61 00 74 00   i.c.a.t.
0010: 69 00 6f 00 6e 00 20 00   i.o.n. .
0018: 46 00 61 00 69 00 6c 00   F.a.i.l.
0020: 75 00 72 00 65 00 20 00   u.r.e. .
0028: 20 00 74 00 77 00 6f 00    .t.w.o.
0030: 74 00 6f 00 6e 00 65 00   t.o.n.e.
0038: 64 00 65 00 74 00 65 00   d.e.t.e.
0040: 63 00 74 00 2e 00 65 00   c.t...e.
0048: 78 00 65 00 20 00 30 00   x.e. .0.
0050: 2e 00 32 00 32 00 2e 00   ..2.2...
0058: 30 00 2e 00 33 00 20 00   0...3. .
0060: 34 00 36 00 61 00 36 00   4.6.a.6.
0068: 39 00 62 00 63 00 61 00   9.b.c.a.
0070: 20 00 69 00 6e 00 20 00    .i.n. .
0078: 77 00 61 00 76 00 65 00   w.a.v.e.
0080: 69 00 6f 00 2e 00 64 00   i.o...d.
0088: 6c 00 6c 00 20 00 30 00   l.l. .0.
0090: 2e 00 30 00 2e 00 30 00   ..0...0.
0098: 2e 00 30 00 20 00 34 00   ..0. .4.
00a0: 32 00 66 00 30 00 66 00   2.f.0.f.
00a8: 30 00 61 00 63 00 20 00   0.a.c. .
00b0: 66 00 44 00 65 00 62 00   f.D.e.b.
00b8: 75 00 67 00 20 00 30 00   u.g. .0.
00c0: 20 00 61 00 74 00 20 00    .a.t. .
00c8: 6f 00 66 00 66 00 73 00   o.f.f.s.
00d0: 65 00 74 00 20 00 30 00   e.t. .0.
00d8: 30 00 30 00 30 00 32 00   0.0.0.2.
00e0: 30 00 35 00 32 00 0d 00   0.5.2...
00e8: 0a 00                     ..
Code:
Data: Words
0000: 00700041 006c0070 00630069 00740061
0010: 006f0069 0020006e 00610046 006c0069
0020: 00720075 00200065 00740020 006f0077
0030: 006f0074 0065006e 00650064 00650074
0040: 00740063 0065002e 00650078 00300020
0050: 0032002e 002e0032 002e0030 00200033
0060: 00360034 00360061 00620039 00610063
0070: 00690020 0020006e 00610077 00650076
0080: 006f0069 0064002e 006c006c 00300020
0090: 0030002e 0030002e 0030002e 00340020
00a0: 00660032 00660030 00610030 00200063
00b0: 00440066 00620065 00670075 00300020
00c0: 00610020 00200074 0066006f 00730066
00d0: 00740065 00300020 00300030 00320030
00e0: 00350030 000d0032 000a

Twotonedetect is crashing without warring (just gone) and this is what show up, gonna try and reinstall Twotone .NET 2, Labview and VISA runtime engine.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,323
Reaction score
116
Just FYI im getting an error from my event viewer

Source: .NET Runtime 2.0 Error
Event ID: 1000
"Faulting application twotonedetect.exe, version 0.22.0.3, stamp 46a69bca, faulting module waveio.dll, version 0.0.0.0, stamp 42f0f0ac, debug? 0, fault address 0x00002052."


Twotonedetect is crashing without warring (just gone) and this is what show up, gonna try and reinstall Twotone .NET 2, Labview and VISA runtime engine.

Neato. This is with version .22? That's what I get for putting it out there without testing it at all. You may want to stick with .21 until I get a chance to test it.

Andy
 

Napsterbater

Member
Joined
Dec 2, 2007
Messages
57
Reaction score
0
Location
Milledgeville, GA
Neato. This is with version .22? That's what I get for putting it out there without testing it at all. You may want to stick with .21 until I get a chance to test it.

Andy

Well After Uninstalling .NET 2 and 3 then reinstalling them Plus reinstalling Labview and VISA runtime engine it seems to be working (probly just this stupid computer), so not sure what the problem was, also another suggestion (i know your gonna kill me =P) when you select the location for the tone.txt file it wipes it if already exist maybe theres a simple fix? no bigg deal if you remember to back it up but I would hate for someone to unknowingly wipe theres.

P.s thanks again for the programm.
 

KAZ7ED

Feed Provider
Joined
Nov 6, 2004
Messages
62
Reaction score
21
TwoToneDetect Menu

I have installed and ran both v.21 and v.22, but both installs do not display the menu's. The screen title "TwoToneDetect" is cut off about half way through - and everything above it (the menu and buttons). Any ideas?
 

dsheli

Member
Joined
Mar 11, 2006
Messages
38
Reaction score
0
Location
SouthEast
Right now the .mp3 files only play on a select few mobile devices. So I have left it with a .wav file, the only problem is that file is really large. Does anyone know of a .wav file compression software that I can put in the data folder similar to the way I put the lame.exe program in there to convert to mp3. I would just like to make is quicker for users to download files when on there mobile device. Also will this software be made open source?
David
 

dimab

Member
Joined
Dec 19, 2002
Messages
528
Reaction score
105
Location
CT
Right now the .mp3 files only play on a select few mobile devices. So I have left it with a .wav file, the only problem is that file is really large. Does anyone know of a .wav file compression software that I can put in the data folder similar to the way I put the lame.exe program in there to convert to mp3. I would just like to make is quicker for users to download files when on there mobile device. Also will this software be made open source?
David

WAV file format is a compressed file format, and without encoding it further (ie. mp3) it won't change the file size.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,323
Reaction score
116
The program is not set up to recognize any other compression programs in the same way that it recognizes the LAME.exe program. However, it does have the option to execute a command line program upon tone detection, and you may be able to make use of that capability to compress it in a different format. I've not done this, so I can't offer any support or pointers.

Andy
 
Status
Not open for further replies.
Top