RE: [Svxlink-devel] DTMF decoding problem
Brought to you by:
sm0svx
From: Roger B. <rog...@te...> - 2006-03-07 09:33:11
|
Thanks, I have already checked the source code and couldn't find any tuning except through the lines you listed. Before I did anything I wanted to check. I will also check an other sound card. It is not any on board but probably very old. I will let you know. Thanks Roger > -----Original Message----- > From: svx...@li... [mailto:svxlink-devel- > ad...@li...] On Behalf Of Tobias Blomberg > Sent: den 7 mars 2006 09:45 > To: svx...@li... > Subject: Re: [Svxlink-devel] DTMF decoding problem > > On Tuesday 07 March 2006 08:19, Roger Bille wrote: > > I have problem with decoding DTMF. For example I get 100% correct from > > some Yeasu handhelds but others for example Kenwood TH-D7 always fail (I > > have test more than one of these), some number are ok but other always > > fail. I have run the dtmf_plot and have an average level of 80-90%, I > have > > tried different level settings. On the graphs I see two things, first > the > > Yeasu are much cleaner and distinct detecting while Kenwood are widther > in > > the base. But the key thing is that all tested devices are identified > > slight lower frequency than expected, i.e. the yellow bar to the left of > > the appropriate red bar has higher value. This can for example be > related > > to the A/D conversion of the soundcard. Can I tune svxlink DTMF decoding > or > > is there anything else I should try? > > Sorry, there is no settings to tweak for DTMF decoding. > > As you say, it could be the sound card. If you have the possibility to try > another sound card it would be interresting. Notably, many on board (built > in > on the mother board) sound chips are evil. Especially on older computers. > > If you want to experiment a little, grab the source code and find the file > svxlink/svxlink/DtmfDecoder.cpp. In this file, the tones are defined: > > row[0] = new DtmfToneDetector(true, 0, 697); > row[1] = new DtmfToneDetector(true, 1, 770); > row[2] = new DtmfToneDetector(true, 2, 852); > row[3] = new DtmfToneDetector(true, 3, 941); > > col[0] = new DtmfToneDetector(false, 0, 1209); > col[1] = new DtmfToneDetector(false, 1, 1336); > col[2] = new DtmfToneDetector(false, 2, 1477); > col[3] = new DtmfToneDetector(false, 3, 1633); > > You could also try to modify svxlink/svxlink/ToneDetector.cpp. Find the > SAMPLING_RATE define. Change it and see what happens. It should of course > affect all tone detectors. Maybe this is the best approach instead of > modifying the DtmfDecorder fqs. > > Recompile and try it. The dtmf_plot application also use the same file so > that > should change too. Please report your results to the list. Maybe it's a > good > idea to have a configuration variable for the sampling rate. > > 73 de SM0SVX / Tobias > > > > > > > > > 73 de Roger/sm5nrk > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Svxlink-devel mailing list > Svx...@li... > https://lists.sourceforge.net/lists/listinfo/svxlink-devel |