Two Tone Detect on a Pi3 using UbuntuMATE

Status
Not open for further replies.

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,545
Location
Massachusetts
It took me a while but I seem to have gotten an image to run TTD (v68) well on Ubuntu-MATE on a Raspberry Pi3. Below is a link to a copy of the image. It is from a 16 gb SD card so you will need a card at least that big. Be ready for it to take an hour or more to download and then another hour or two possibly to image your card.

The UbuntuMATE image closely resembles the Windows version of TTD. There are icons on the desktop for TTD and for the Tones Editor. If you are familiar with the Windows version or follow Andy's Windows set up instructions (TwoToneDetect) you shouldn't have much trouble with it. This image version automatically loads TTD at boot up so will self recover after a power failure. It also supports .amr attachments.

The image also contains Windows Remote Desktop to facilitate remoting in without monitor or keyboard.

1. Download the compressed image to your computer.

2. Extract the .img file and image your SD card using Win32 Disk Imager, Etcher (etcher.io) or your choice of imaging software.

3.Put the freshly imaged card into your Pi3.

4. Connect up an HDMI monitor, a usb sound card, an ethernet cable, usb keyboard/mouse, and then power up the pi.

5. The monitor should boot to the MATE desktop with Pulse Audio Volume Control and Two Tone Detect running. Be patient, there will be a few seconds where the monitor is completely blank. There is also a 20 second delay on the launch of TTD to allow Pulse to get loaded. Give it a minute or so and it should completely load up.

6. click on the Recording tab in Pulse Audio Volume Control and make sure that it is coming from the USB Audio device, not either of the monitors.

7. use the Edit Configuration button on the TTD window to enter your email credentials, etc.

8. use the Tones Editor icon on the desktop to launch the tones editor to put in your tone sets.

9. After making changes, use the Exit button in the TTD window to exit the program and then the desktop TTD icon to relaunch with the changes.


Good luck.


The link:

https://drive.google.com/open?id=0B9sLdBjMInCVdEpBMlZPMWxoczg
 

N0UJT

Member
Joined
Aug 1, 2013
Messages
16
Location
Omaha, NE
Cool, thanks for putting this out there. For some reason Pulseaudio is giving me fits on the Pi 3 and Raspbian. I'll download this and see how it works.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,545
Location
Massachusetts
It took me a while but I seem to have gotten an image to run TTD (v68) well on Ubuntu-MATE on a Raspberry Pi3. Below is a link to a copy of the image. It is from a 16 gb SD card so you will need a card at least that big. Be ready for it to take an hour or more to download and then another hour or two possibly to image your card

One omission: username is ubuntu. Password is ttd-pi

It will launch without using the passwords but if you get into making any command line changes, you may need them.
 

damonzane

Member
Joined
Dec 20, 2011
Messages
4
Location
Alden, NY
Hello DC31. This image is very nice. I have been running the Mate version for a bit now since you pointed me in that direction and am loving it. Maybe it is just me but this image seems to run smoother. I like to run TTD in a remote session more for convenience of access than anything. Nothing shows local. Is there a way to launch TTD into a specific session (remote session) or better yet, can I log into the local session via remote? The later would be ideal. That way, it would not matter how I accessed it. Just wondering.

Thanks in advance as always.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,545
Location
Massachusetts
Hello DC31. This image is very nice. I have been running the Mate version for a bit now since you pointed me in that direction and am loving it. Maybe it is just me but this image seems to run smoother. I like to run TTD in a remote session more for convenience of access than anything. Nothing shows local. Is there a way to launch TTD into a specific session (remote session) or better yet, can I log into the local session via remote? The later would be ideal. That way, it would not matter how I accessed it. Just wondering.

Thanks in advance as always.

You might be able to log into the local session using VNC. I haven't tried it.
 

burhead1

Member
Joined
Sep 22, 2013
Messages
10
Location
Coldwater
Set this up last night, was able to add darkice and have it boot at startup. recording and sound is good how ever on the test page tonight it send out a email and text to the first station and did the same again for the last two. So i know i just confused u all LOL. I do the alerts for 3 stations, when the tone came for the first station it sent out the page, but when the tones came out for the second and third station it emailed and text to all the recipients of the first station. Any ideas??
I am now on a pi3 b cheap usb sound card with powered usb hub.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,545
Location
Massachusetts
Set this up last night, was able to add darkice and have it boot at startup. recording and sound is good how ever on the test page tonight it send out a email and text to the first station and did the same again for the last two. So i know i just confused u all LOL. I do the alerts for 3 stations, when the tone came for the first station it sent out the page, but when the tones came out for the second and third station it emailed and text to all the recipients of the first station. Any ideas??
I am now on a pi3 b cheap usb sound card with powered usb hub.

Can you post the logfile showing the dispatches that you are referencing? Are any of the same tones used in the second two tone sets?

You may also need to tighten up your tone tolerance setting in the config file.
 

ahaas

Member
Joined
Apr 16, 2011
Messages
20
Thanks for doing this. Haven't touched Linux in a good ten years and you gave me a great head start. Already have TTD and Darkice up and running.

I can't seem to get darkice to run at boot though. All I need to do it execute the command padsp darkice (no superuser or anything special) but I can't seem to get it to go using the Startup Applications menu in Control Panel. Any suggestions?

Thanks!
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,545
Location
Massachusetts
Thanks for doing this. Haven't touched Linux in a good ten years and you gave me a great head start. Already have TTD and Darkice up and running.

I can't seem to get darkice to run at boot though. All I need to do it execute the command padsp darkice (no superuser or anything special) but I can't seem to get it to go using the Startup Applications menu in Control Panel. Any suggestions?

Thanks!

I struggled with autostart also, i remember. It has been several months since i touched this setup and i don't remember the details now, but it sounds like you are on the right track.

I have two "production" pi's, each running TTD and darkice. Both are old original model B units. They run so well that i don't dare change or upgrade!
 

lte5000

Member
Joined
Jan 23, 2011
Messages
10
Thank you!

Just wanted to say *thanks* for posting this image, DC31!
Have it running for a few days down on my new RPi 3.

FWIW, at first when I set it up, the audio would stop working/TTD would freeze intermittently.
I ran the Ubuntu Software Updater, and ever since it has been working pretty much flawlessly.
 

truckie27

Member
Joined
Dec 1, 2010
Messages
49
Location
Metropolis, IL
I noticed that after loading the image file and booting my pi that it's running TTD v67. What should the audio input device and audio output device be set on from the TTD window? Input I have default and pulse to choose from and output I have bcm2835 alsa, sysdefault, pulse, default.. Any other changes to be made in pulse audio other that setting the recording to USB?
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,545
Location
Massachusetts
I noticed that after loading the image file and booting my pi that it's running TTD v67. What should the audio input device and audio output device be set on from the TTD window? Input I have default and pulse to choose from and output I have bcm2835 alsa, sysdefault, pulse, default.. Any other changes to be made in pulse audio other that setting the recording to USB?

Set the input to pulse, you aren't really outputting anything, unless you are trying to use playback during record.

Recording from usb and you should have it.

Adjust the pulse audio volume and the squelch slider so that you see "No audio" when there is no radio traffic and a freq number when there is traffic.
 

truckie27

Member
Joined
Dec 1, 2010
Messages
49
Location
Metropolis, IL
I set everything up as directed... I changed my scanner feed to a constant audio source (weather) and I didn't notice any change in the freq on the TTD window... Even had a call in the middle of the night that didn't get captured.... Is there a log file that shows what was happening at that time.. Or could something else be wrong?
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,545
Location
Massachusetts
Logs are in the /logfiles directory.

Open pulse audio volume control. Click on the Recording tab and make sure that you are feeding from the usb sound card. You may also need to adjust this volume slider up. Adjust the sqelch slider in the TTD window, too.
 

truckie27

Member
Joined
Dec 1, 2010
Messages
49
Location
Metropolis, IL
Did you write the Ubuntu image dc31? If so how can I use the mp3 file to verify that I'm getting audio into TTD?

Sent from my Nexus 6P using Tapatalk
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,545
Location
Massachusetts
Did you write the Ubuntu image dc31? If so how can I use the mp3 file to verify that I'm getting audio into TTD?

Sent from my Nexus 6P using Tapatalk

If it is recording an mp3 with audio that you can hear then you are getting audio into TTD.

I hardly "wrote" that image. I was more like I downloaded the UbuntuMate OS, installed Andy's TTD program for linux, grabbed it by the neck and choked it until it ran...
 

truckie27

Member
Joined
Dec 1, 2010
Messages
49
Location
Metropolis, IL
I got it to recognize and send tones using my phone and a program called Ted tones out. I've tried both a mono and a stereo cable. I took the scanner I was using on a Windows based TTD set up and the cable it worked with. When I use that cable TTD on the pi hangs on 301.0 MHz. When I put the stereo cable from the scanner to the pi..I get nothing at all. Now what? Sorry to all for being a P.I.T.A. on this.
6dba7e183b4296b8c79d7165c9d5b0de.jpg


Sent from my Nexus 6P using Tapatalk
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,545
Location
Massachusetts
I got it to recognize and send tones using my phone and a program called Ted tones out. I've tried both a mono and a stereo cable. I took the scanner I was using on a Windows based TTD set up and the cable it worked with. When I use that cable TTD on the pi hangs on 301.0 MHz. When I put the stereo cable from the scanner to the pi..I get nothing at all. Now what? Sorry to all for being a P.I.T.A. on this.
6dba7e183b4296b8c79d7165c9d5b0de.jpg


Sent from my Nexus 6P using Tapatalk

That sounds like possibly a ground loop isolation problem or something associated with the power supply.

301 hz= the fifth harmonic of 60 hz possibly. Try changing power supplies or better yet try running the pi off a battery pack. Also try getting the pi to hang on 301 then adjust the squelch up until it disappears.
 

truckie27

Member
Joined
Dec 1, 2010
Messages
49
Location
Metropolis, IL
That sounds like possibly a ground loop isolation problem or something associated with the power supply.

301 hz= the fifth harmonic of 60 hz possibly. Try changing power supplies or better yet try running the pi off a battery pack. Also try getting the pi to hang on 301 then adjust the squelch up until it disappears.
I was thinking it had to do with the scanner... That 301 goes away when I unplug the scanner from the sound card.

Sent from my Nexus 6P using Tapatalk
 

truckie27

Member
Joined
Dec 1, 2010
Messages
49
Location
Metropolis, IL
I was thinking it had to do with the scanner... That 301 goes away when I unplug the scanner from the sound card.

Sent from my Nexus 6P using Tapatalk
I finally got it going and recording... Thanks everyone for all your help. Now I'm just working on remoting into the pi.... And I've noticed on boot up in seeing a message of failed to load kernel modules.... Is that common?

Sent from my Nexus 6P using Tapatalk
 
Status
Not open for further replies.
Top