TwoToneDetect New TwoToneDetect in the works - Python based

bmarchand

Newbie
Joined
Oct 20, 2014
Messages
8
Kill the program and make a backup. Make another backup just because.
Extract v70 in the directory.
Copy the cfg files from the backup to the v70 folder
Open TTD , go to edit config, save, and exit.
Open tones editor, save, and exit.
Then run TTD as normal.


Sent from my SM-G930V using Tapatalk

THANK YOU!
 

aaknitt

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

I am having the same problem with V70 that I had in V69. TTD will not open on every execution of the program file. Tonight it took 3 tries on my Win7 machine for TTD to start, 5 tries on my Win10 machine. On the Win7 machine, the program dies right after the 2nd instance of TTD appears in task manager, but before it pulls my remotely hosted tones file and it does not create an entry in the log file.
Marvin

Try this one and let me know if it behaves any differently:

http://www.twotonedetect.net/downloads/TwoToneDetect70a_debug.exe

Andy
 

Westernbound

Member
Joined
Aug 11, 2014
Messages
35
Location
Dickens TX
Try this one and let me know if it behaves any differently:

http://www.twotonedetect.net/downloads/TwoToneDetect70a_debug.exe

Andy

Andy,

I have tested this several times on several different days on my Win7 computer, both the v-70 and v-70a debug files work the same, they both will open the program every time they are executed. It is only the program file that does not run every time. When this happened with the last version you created a "69a alternate build" that fixed the issue.

That post is at
https://forums.radioreference.com/2708769-post3414.html

I created a batch file to run the command line that jhsands posted, it is more reliable to run it and open TTD but even it does not open the program every time. At this point I am thinking about formatting the hard drive and reloading windows.

I started running TTD on this computer at V-65, I did not start seeing this issue on this computer until V-69 came out and it was fixed in the 69a alternate build.

When I ran the debug versions I did notice that the debug version doss window would sit at the blinking cursor for 10 to 15 seconds and then the first thing it would do is clear the redundant file. Could this be a problem with my redundant.cfg file that the program can not handle sometimes even though the redundant part of the program seems to be working fine after the program runs successfully?

Marvin
 

BigRedBox80

Member
Feed Provider
Joined
Apr 23, 2015
Messages
170
Anyone else having problems with TTD not showing detected tones? I've got 3 instances running on one machine and only 1 of the 3 shows logs.

All 3 are running version 69a.
 

Attachments

  • 56184126022018.jpg
    56184126022018.jpg
    38 KB · Views: 261

k1jak

Member
Feed Provider
Joined
Sep 22, 2017
Messages
25
Location
Westport Island, ME
I am not new to Linux, I have been been admining Unix servers since the 90's and for the last 10+ managing a RHEL shop with > 300 servers.

I am new to Raspberry PI, the package managment is a bit different but everything else is very straightforward.

I am attempting to replace an old Two Tones setup that a consultant setup for our department. (Well before I joined the department).

I picked up a Raspberry PI 3 and a USB sound adaptor. I am planning on replacing the old Windows PC with the Raspberry PI.

pi@raspberrypi3:~/TTD $ cat /etc/debian_version
8.0

I THINK that I have all of the packages that are needed to be installed.

I ran into an issue with ffmpeg:
pi@raspberrypi3:~/TTD $ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ffmpeg' has no installation candidate

For that I just download and compiled a version and symlinked into into the TTD dir:
pi@raspberrypi3:~/TTD $ ls -lsa
total 99464
4 drwxr-xr-x 2 pi pi 4096 Feb 27 11:41 .
4 drwxr-xr-x 10 pi pi 4096 Feb 27 21:49 ..
15864 -rwxr-xr-x 1 pi pi 16242128 Dec 31 21:16 LevelMeter
16800 -rwxr-xr-x 1 pi pi 17202736 Dec 31 21:14 TonesEditor9a
17312 -rwxr-xr-x 1 pi pi 17724132 Dec 18 03:50 TwoToneDetect70
49472 -rw-r--r-- 1 pi pi 50658410 Feb 27 05:31 TwoToneDetect70.tgz
4 -rw-r--r-- 1 pi pi 2432 Jan 18 2017 config.cfg
0 lrwxrwxrwx 1 pi pi 21 Feb 27 11:41 ffmpeg -> /usr/local/bin/ffmpeg
4 -rw-r--r-- 1 pi pi 2196 Jan 15 2017 tones.cfg


I may still have a codec issue later as apt-get also didn't find this package:
sudo apt-get install libavcodec-extra57

Any any case I am running into what should be a basic issue that don't see an easy fix for:
pi@raspberrypi3:~/TTD $ ./TwoToneDetect70
Traceback (most recent call last):
File "TwoToneDetect70.py", line 14, in <module>
File "/tmp/pip-build-YarybJ/pyinstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
File "lib-tk/Tkinter.py", line 42, in <module>
ImportError: /tmp/_MEIHG8d4N/libX11.so.6: undefined symbol: xcb_poll_for_reply64, please install the python-tk package
[4827] Failed to execute script TwoToneDetect70




pi@raspberrypi3:~/TTD $ sudo apt-get install python-tk
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-tk is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


I have attempted to remove python-tk along with python3-tk and reinstall incase it was corrupt without any luck. (I think that TTD is a phython2 application but I wanted to cover my bases with the phython3 version too).


When I run this;


pi@raspberrypi3:~ $ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
>>> Tkinter.Tk()
<Tkinter.Tk instance at 0x76a63328>
>>>

A window displays on my laptop showing the python-tk should be working.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
I am not new to Linux, I have been been admining Unix servers since the 90's and for the last 10+ managing a RHEL shop with > 300 servers.

I am new to Raspberry PI, the package managment is a bit different but everything else is very straightforward.

I am attempting to replace an old Two Tones setup that a consultant setup for our department. (Well before I joined the department).

I picked up a Raspberry PI 3 and a USB sound adaptor. I am planning on replacing the old Windows PC with the Raspberry PI.

pi@raspberrypi3:~/TTD $ cat /etc/debian_version
8.0

I THINK that I have all of the packages that are needed to be installed.

I ran into an issue with ffmpeg:
pi@raspberrypi3:~/TTD $ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ffmpeg' has no installation candidate

For that I just download and compiled a version and symlinked into into the TTD dir:
pi@raspberrypi3:~/TTD $ ls -lsa
total 99464
4 drwxr-xr-x 2 pi pi 4096 Feb 27 11:41 .
4 drwxr-xr-x 10 pi pi 4096 Feb 27 21:49 ..
15864 -rwxr-xr-x 1 pi pi 16242128 Dec 31 21:16 LevelMeter
16800 -rwxr-xr-x 1 pi pi 17202736 Dec 31 21:14 TonesEditor9a
17312 -rwxr-xr-x 1 pi pi 17724132 Dec 18 03:50 TwoToneDetect70
49472 -rw-r--r-- 1 pi pi 50658410 Feb 27 05:31 TwoToneDetect70.tgz
4 -rw-r--r-- 1 pi pi 2432 Jan 18 2017 config.cfg
0 lrwxrwxrwx 1 pi pi 21 Feb 27 11:41 ffmpeg -> /usr/local/bin/ffmpeg
4 -rw-r--r-- 1 pi pi 2196 Jan 15 2017 tones.cfg


I may still have a codec issue later as apt-get also didn't find this package:
sudo apt-get install libavcodec-extra57

Any any case I am running into what should be a basic issue that don't see an easy fix for:
pi@raspberrypi3:~/TTD $ ./TwoToneDetect70
Traceback (most recent call last):
File "TwoToneDetect70.py", line 14, in <module>
File "/tmp/pip-build-YarybJ/pyinstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
File "lib-tk/Tkinter.py", line 42, in <module>
ImportError: /tmp/_MEIHG8d4N/libX11.so.6: undefined symbol: xcb_poll_for_reply64, please install the python-tk package
[4827] Failed to execute script TwoToneDetect70




pi@raspberrypi3:~/TTD $ sudo apt-get install python-tk
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-tk is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


I have attempted to remove python-tk along with python3-tk and reinstall incase it was corrupt without any luck. (I think that TTD is a phython2 application but I wanted to cover my bases with the phython3 version too).


When I run this;


pi@raspberrypi3:~ $ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
>>> Tkinter.Tk()
<Tkinter.Tk instance at 0x76a63328>
>>>

A window displays on my laptop showing the python-tk should be working.

A couple thoughts:

1. Have you tried following the raspberry pi instructions on Andy’s twotonedetect.net website? There is now an installer available that should take care of most, if not all, dependencies.

2. There is a separate thread on this forum for running TTD on a pi. Have you looked there for some guidance?

3. The debian version on my pi3 is 9.1. At some point they included ffmpeg with the debian distribution but I don’t recall when that was.

4. If you are still having trouble, send me a PM and I will see if I can find my list of installation commands.

5. I think if you start with a fresh Raspbian Stretch image and follow Andy’s instructions, you should have little trouble.

Good luck

Jim
 

k1jak

Member
Feed Provider
Joined
Sep 22, 2017
Messages
25
Location
Westport Island, ME
A couple thoughts:

1. Have you tried following the raspberry pi instructions on Andy’s twotonedetect.net website? There is now an installer available that should take care of most, if not all, dependencies.

2. There is a separate thread on this forum for running TTD on a pi. Have you looked there for some guidance?

3. The debian version on my pi3 is 9.1. At some point they included ffmpeg with the debian distribution but I don’t recall when that was.

4. If you are still having trouble, send me a PM and I will see if I can find my list of installation commands.

5. I think if you start with a fresh Raspbian Stretch image and follow Andy’s instructions, you should have little trouble.

Good luck

Jim

Jim,
Thanks for the reply.

I will start from scratch, I was attempting to follow these directions:
TwoToneDetect on a Raspberry Pi | TwoToneDetect

I skipped the Raspbian section as I had already installed it on a SD card back in Oct. (I purchased the Raspberry Pi3 and a few PI Zero W's for a project and now I am donating the PI3 to the Fire department).

I will start if from scratch with the Raspbian stretch with desktop (When this is done and working I will see if I can run it at run level 3).

If I have problems I will look for the PI thread and attempt to move my updates to that thread.

I really like the project but wish that the python code was available for review. I am very happy that it runs on Linux and isn't just a Windows application

I do have to thank the creator of the application for making it available and hopefully it can be moved back to the GPL license in the future.
 

k1jak

Member
Feed Provider
Joined
Sep 22, 2017
Messages
25
Location
Westport Island, ME
A couple thoughts:

1. Have you tried following the raspberry pi instructions on Andy’s twotonedetect.net website? There is now an installer available that should take care of most, if not all, dependencies.

2. There is a separate thread on this forum for running TTD on a pi. Have you looked there for some guidance?

3. The debian version on my pi3 is 9.1. At some point they included ffmpeg with the debian distribution but I don’t recall when that was.

4. If you are still having trouble, send me a PM and I will see if I can find my list of installation commands.

5. I think if you start with a fresh Raspbian Stretch image and follow Andy’s instructions, you should have little trouble.

Good luck

Jim

Jim,
Thanks for the help, I started from scratch and I was able to make it past the issue.

It's working as documented on
cat /etc/debian_version
9.1

Next I will have to connect it to a radio and test it out.

Thanks again -Jason
 

genedarrell

Newbie
Premium Subscriber
Joined
Jul 5, 2012
Messages
2
Location
McPherson, KS
twotone69a

I have had this working on my computer for months. I am needing to change it to my other computer. I have it loaded with FFMPEG. Just like the old computer. The detect opens and listens. It hears the page but never opens ffmpeg. Any thoughts


clip from log file:
EMS Page Tone Set Found
Traceback (most recent call last):
File "TwoToneDetect69a.py", line 673, in alert
File "site-packages\pyaudio.py", line 747, in open
1150.0 18579.6101114
IOError: [Errno Unanticipated host error] -9999
delay timer EMS Page 22:26:07 on 03/06/18
Traceback (most recent call last):
File "TwoToneDetect69a.py", line 759, in alert
UnboundLocalError: local variable 'recordstream' referenced before assignment
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
I have had this working on my computer for months. I am needing to change it to my other computer. I have it loaded with FFMPEG. Just like the old computer. The detect opens and listens. It hears the page but never opens ffmpeg. Any thoughts


clip from log file:
EMS Page Tone Set Found
Traceback (most recent call last):
File "TwoToneDetect69a.py", line 673, in alert
File "site-packages\pyaudio.py", line 747, in open
1150.0 18579.6101114
IOError: [Errno Unanticipated host error] -9999
delay timer EMS Page 22:26:07 on 03/06/18
Traceback (most recent call last):
File "TwoToneDetect69a.py", line 759, in alert
UnboundLocalError: local variable 'recordstream' referenced before assignment

Looks like it's not playing nice with the sound card. Do you have a USB sound card you can try?

Andy
 

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
557
Location
Texarkana, Arkansas
I have had this working on my computer for months. I am needing to change it to my other computer. I have it loaded with FFMPEG. Just like the old computer. The detect opens and listens. It hears the page but never opens ffmpeg. Any thoughts


clip from log file:
EMS Page Tone Set Found
Traceback (most recent call last):
File "TwoToneDetect69a.py", line 673, in alert
File "site-packages\pyaudio.py", line 747, in open
1150.0 18579.6101114
IOError: [Errno Unanticipated host error] -9999
delay timer EMS Page 22:26:07 on 03/06/18
Traceback (most recent call last):
File "TwoToneDetect69a.py", line 759, in alert
UnboundLocalError: local variable 'recordstream' referenced before assignment
Are you using the correct version of ffmpeg? XP vs 7+ 32 or 64 bit? It matters.

Sent from my S7 using Tapatalk.
 
Top