TwoToneDetect New TwoToneDetect in the works - Python based

fvchief

Member
Joined
Oct 23, 2013
Messages
7
Location
Forest View, IL
I have used 2tone for a while now and its great, I have just added some new members and I have 2 Android s6 Galaxy users that get the text but can not play the audio? If I text them the message from my phone it works and if I send it from a different email server for example network solutions vs gmail it works, so the pattern that I have figured so far is it just wont play an audio file if sent from gmail??? Anyone have any ideas?
I have an S6 user that works fine with. Maybe consider a default app that they selected on their device? I've used Hangouts and Textra without any problems.

Sent from my Nexus 5 using Tapatalk
 

fvchief

Member
Joined
Oct 23, 2013
Messages
7
Location
Forest View, IL
I just tried messenger, Google the default SMS and MMS app, and it actually works much better than hang out.

Sent from my Nexus 5 using Tapatalk
 

james41

Member
Joined
Feb 14, 2014
Messages
11
Redundant Lock up

I'm having problems running the latest version in redundant mode. I have the latest software (v67a) on two computers with two different ISP's. Seems to work great if I don't have the redundant.cfg file in the TTD folder. When I do have the redundant.cfg file in the TTD folder it runs for about 10 - 30 minutes then locks up. I've got a screen shot of the debug screen that may help.
The debug log shows two tones I received that properly sent text message and Email before software locked up while at idle. The log file shows no errors.

I'm not sure where the C:\Users\Andy\Google Drive ***** path is coming from. I don't have such a path on my computer??

I'm wondering if this error is simply generated by my FTP request being blocked by the FTP host due to frequent (every two minutes) request.
I did notice I get almost the same error & program freeze if I unplug my Ethernet cable. I was surprised to see the program freeze up instead of continue checking until internet was back online.
 

Attachments

  • Debug_log.jpg
    Debug_log.jpg
    122.1 KB · Views: 311
  • config.txt
    1.3 KB · Views: 45
  • redundant.txt
    910 bytes · Views: 49
  • remote.txt
    102 bytes · Views: 34
  • tones.txt
    672 bytes · Views: 45
Last edited:

R_Rabbit10

Member
Joined
Mar 9, 2013
Messages
32
I'm having problems running the latest version in redundant mode. I have the latest software (v67a) on two computers with two different ISP's. Seems to work great if I don't have the redundant.cfg file in the TTD folder. When I do have the redundant.cfg file in the TTD folder it runs for about 10 - 30 minutes then locks up. I've got a screen shot of the debug screen that may help.
The debug log shows two tones I received that properly sent text message and Email before software locked up while at idle. The log file shows no errors.

I'm not sure where the C:\Users\Andy\Google Drive ***** path is coming from. I don't have such a path on my computer??

I'm wondering if this error is simply generated by my FTP request being blocked by the FTP host due to frequent (every two minutes) request.
I did notice I get almost the same error & program freeze if I unplug my Ethernet cable. I was surprised to see the program freeze up instead of continue checking until internet was back online.
I am having the same issue. Still no fix for it.

Check this post and the posts following my initial question on the next two pages. This post states the offered solution does not work. A few posts and suggestions later, Andy offers this post. As of today this issue persists with the random hangups and no new version has been presented...
 

james41

Member
Joined
Feb 14, 2014
Messages
11
I am having the same issue. Still no fix for it.

Check this post and the posts following my initial question on the next two pages. This post states the offered solution does not work. A few posts and suggestions later, Andy offers this post. As of today this issue persists with the random hangups and no new version has been presented...


I had read most of that and was hoping I missed the fix. I was going to run a small batch file to restart TTD when the log file contained the word "Andy" but it doesn't write to the log file until after the program is stopped :(
I guess the best thing for now is to run on two computers and get two text each time we tone out. I guess that's really not a big deal.
I love what Andy is doing with ALL of this, and this will be over the top when the next update comes out. I'm very excited to get a text message when one of my computers go offline, much better than checking on them once a day.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,303
I had read most of that and was hoping I missed the fix. I was going to run a small batch file to restart TTD when the log file contained the word "Andy" but it doesn't write to the log file until after the program is stopped :(
I guess the best thing for now is to run on two computers and get two text each time we tone out. I guess that's really not a big deal.
I love what Andy is doing with ALL of this, and this will be over the top when the next update comes out. I'm very excited to get a text message when one of my computers go offline, much better than checking on them once a day.

Here is a completely untested debug version to try that adds a 10 second timeout to the FTP connection. Let me know what it does for you.

Andy
 

james41

Member
Joined
Feb 14, 2014
Messages
11
Here is a completely untested debug version to try that adds a 10 second timeout to the FTP connection. Let me know what it does for you.

Andy

Andy, Sorry for the delay I was out of town. I tested the debug version and it appears we are on the right track but still have some bugs. I program in labview so I'm perfectly happy with helping to debug.

Attached are three screen shots of the debug screen. As you can see I started the program at 5:58 A.M. It connected to my FTP a few times then at 6:06 I unplugged my Ethernet cable to disconnect from the internet and plugged the Ethernet back in at 6:10. At 6:22 I gave up on it trying to re-establish an FTP connection and I sent a test tone to see if it was locked up. It DID detect the tone (second attachment) and send out the email.
My third attachment is at 6:45. As you can see it never tried to connect to the FTP. I would think you would want it to time out and try the FTP again.

After typing this response I checked the software again @ 7:15 A.M. and noticed the program is not responding. So it has completely locked up.

The last thing in the log file was at 6:22 "Waiting for silence PFD_Tone 06:22:31 on 0"
 

Attachments

  • first start.jpg
    first start.jpg
    177.4 KB · Views: 285
  • tone detected.jpg
    tone detected.jpg
    90.7 KB · Views: 272
  • After tone.jpg
    After tone.jpg
    161.4 KB · Views: 341
Last edited:

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,303
Andy, Sorry for the delay I was out of town. I tested the debug version and it appears we are on the right track but still have some bugs. I program in labview so I'm perfectly happy with helping to debug.

Attached are three screen shots of the debug screen. As you can see I started the program at 5:58 A.M. It connected to my FTP a few times then at 6:06 I unplugged my Ethernet cable to disconnect from the internet and plugged the Ethernet back in at 6:10. At 6:22 I gave up on it trying to re-establish an FTP connection and I sent a test tone to see if it was locked up. It DID detect the tone (second attachment) and send out the email.
My third attachment is at 6:45. As you can see it never tried to connect to the FTP. I would think you would want it to time out and try the FTP again.

After typing this response I checked the software again @ 7:15 A.M. and noticed the program is not responding. So it has completely locked up.

The last thing in the log file was at 6:22 "Waiting for silence PFD_Tone 06:22:31 on 0"

New test version to try here. I forgot to add the 10 second timeout in a few spots in the first one I posted. I think this may result in some error messages in the debug log but hopefully prevent freezing up, we'll see.
 

james41

Member
Joined
Feb 14, 2014
Messages
11
New test version to try here. I forgot to add the 10 second timeout in a few spots in the first one I posted. I think this may result in some error messages in the debug log but hopefully prevent freezing up, we'll see.

Andy, This is what I done:
Downloaded latest update on my primary and secondary computers.
6:05 - launched the secondary TTD (runs on a computer at home). watched it check the redundant.cfg
6:07 - launched the primary TTD (on a computer at work). Watched it check the redundant.cfg
6:09 - Watched the primary check the redundant.cfg successfully.
6:10 - unplugged the Ethernet on my primary machine.
6:11 - when it tried to check the redundant.cfg I got the errors similar to before.
6:12 - plugged back in the Ethernet.
6:17 - Secondary TTD sent out email that Primary was down. <-- I love this idea!!
6:46 - got nothing on the debug screen since 6:11 so I broke the squelch to insure I wasn't locked up and it wasn't.
6:46 - Secondary TTD still working fine.
7:09 - broke squelch on primary and found it locked up. When I put mouse over the TTD screen it said (Not Responding). The log doesn't show anything at the time of lockup.
7:18 - Secondary TTD still working fine.
8:49 - Tone detected by Secondary (I closed the program on the Primary) after delay email was sent.
9:00 - Secondary TTD still working fine.

Obviously the "not responding" is a problem but I would have hoped it would have retried to connect to my FTP server 5 - 10 minutes after the failed attempt but it didn't. It appears to have locked up almost exactly on hour after the failed attempt to reach my FTP server.
Hope this help the debug process!!
 
Last edited:

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,303
Andy, This is what I done:
Downloaded latest update on my primary and secondary computers.
6:05 - launched the secondary TTD (runs on a computer at home). watched it check the redundant.cfg
6:07 - launched the primary TTD (on a computer at work). Watched it check the redundant.cfg
6:09 - Watched the primary check the redundant.cfg successfully.
6:10 - unplugged the Ethernet on my primary machine.
6:11 - when it tried to check the redundant.cfg I got the errors similar to before.
6:12 - plugged back in the Ethernet.
6:17 - Secondary TTD sent out email that Primary was down. <-- I love this idea!!
6:46 - got nothing on the debug screen since 6:11 so I broke the squelch to insure I wasn't locked up and it wasn't.
6:46 - Secondary TTD still working fine.
7:09 - broke squelch on primary and found it locked up. When I put mouse over the TTD screen it said (Not Responding). The log doesn't show anything at the time of lockup.
7:18 - Secondary TTD still working fine.
8:49 - Tone detected by Secondary (I closed the program on the Primary) after delay email was sent.
9:00 - Secondary TTD still working fine.

Obviously the "not responding" is a problem but I would have hoped it would have retried to connect to my FTP server 5 - 10 minutes after the failed attempt but it didn't. It appears to have locked up almost exactly on hour after the failed attempt to reach my FTP server.
Hope this help the debug process!!

Thanks for the detailed report. I'll see if I can reproduce, may take me some time to get to it though.

Andy
 

mattnelson26

Member
Joined
Mar 20, 2007
Messages
388
Location
Hopkins, Minnesota
two tone trouble

i have tried to load two tone and when tones come on i get this in the picture. dont know what i did.

thanks
 

Attachments

  • c04abd72895ef971842ed763269aa09e (1).png
    c04abd72895ef971842ed763269aa09e (1).png
    36.9 KB · Views: 261

jamesammons

Member
Joined
Sep 29, 2015
Messages
2
Email and Password not recognized.

When trying to send an admin email to myself i get prompted with this message. I am trying to get a test before the actual tones drop to see if they work properly. Also when I close out the program for the tone editor, it won't allow me to bring back up the other ones so i can edit who i want to send them too. Any ideas?
 

Attachments

  • help.jpg
    help.jpg
    37.2 KB · Views: 213

mattnelson26

Member
Joined
Mar 20, 2007
Messages
388
Location
Hopkins, Minnesota
trouble

ok figured out the first problem now i cant get it to send mail. i have attach the log file.

thanks,
matt
 

Attachments

  • log_2015-09-30_20_43_46_964000.txt
    24.8 KB · Views: 129

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,303
ok figured out the first problem now i cant get it to send mail. i have attach the log file.

thanks,
matt

The error in the log file indicates your gmail username or password is incorrect. Check your config info.

Andy
 

jamesammons

Member
Joined
Sep 29, 2015
Messages
2
Will not send email

For some reason, I can send the administrative email but it will not send me a audio email of my tones. I have everything configured correctly to my knowledge. I don't know what else to do. We had a page out today and it didn't send it out. Any ideas?
 

Defibber

Member
Joined
Sep 30, 2011
Messages
19
Location
Kansas City, Mo
installing Two tone detect on pi help

Ok, I have been trying to get this set up on a Raspberry Pi for my department. I tried the per-defined image, but I get a blank screen. So I am trying to follow the instructions on the site, but when I try to mkdir, I cannot create directory "pip"; Permission denied. I had tried before, and did sudo mkdir, but then I couldn't do anything with the folder without messing with making ownership changes. Do I have to make a new home/pip? or can I put in /home/pi/pip?

Thanks!
 

Defibber

Member
Joined
Sep 30, 2011
Messages
19
Location
Kansas City, Mo
Ok, I figured I would back up to the beginning, so have an idea of what I have done.

I have been trying for over several days to set up a static IP. Evidently, Raspbian-Jessie has different configurations than versions even a couple of months ago. I reloaded my original NOOBS install, and I was getting the same run around. I had been racking my brain following all of the different variations that I can find about configuring /etc/network/interfaces, and wpa-supplicant files. The pi, thought it was changed, but the router didn't show it changed. I couldn't ping it, and it wouldn't get on the internet. I finally found a post that says to modify /etc/dhcpcd.conf and it worked. SO then I was able to go onto below.


*Raspberry Pi 2 Model B (1GB)
*Raspbian - Jessie
*Followed the instructions listed on TwoToneDetect on a Raspberry Pi | TwoToneDetect
*I created: pip/pip-1.3.1
*I then followed the directions listed under the assumption (I know bad idea to assume) that all the directions from there on go into that folder.
*I was unable to get any results with "sudo apt-get install ffmpeg libavcodec-extra-53", it said they are no longer available at those locations. So I tried these: 1) it suggested to get libavcodec-extra-53 at "libac-tools (Something like that, it downloaded something). 1) for the ffmpeg I am following the instructions at Raspberry Pi Birdbox Camera - 8 It is going now, I am at the "make" command and it is running.


I have downloaded the TTD pi image again. I will load it onto a different microSD and give it another shot...... 3rd time's a charm, as a backup. But I would rather be able to build it, so I can get some more experience with Linux/pi.
 
Last edited:

Defibber

Member
Joined
Sep 30, 2011
Messages
19
Location
Kansas City, Mo
Pi Image

I just tried the Pi image again, there is no response from the screen, just says "No signal", the Ethernet just not show any active lights. I checked the router and it doesn't show anything with the ip of 192.168.1.120.

Any ideas?
 
Top