# Software based Caller ID project- Problem with getting caller ID signal

Nowadays, I am trying to make a Caller ID project without using Caller ID ICs. Firstly, I have done a lot of research in Google to get information of phone lines and their electrical properties.

I have found and done:

1. In my country Caller ID data is FSK modulated. And the name of the standard is Bell 202. In this standard there are two different frequency which are 1200 and 2200. As you know these frequecies are using to digitalize the data(1 and 0).
2. Secondly, I write a C# program that demodulates any arbitrary FSK modulated signal. This program uses the Goertzel Algorithm and it fits like a glove for DTMF decoding and FSK demodulation. Basically, its output gives you the dominant frequecy in your reference frequecies(1200 and 2200 in our case) for your input signal.

Here are some screenshots from code and output result.

Input:

Output:

I will add the running code here later. The file link I have added the end of the page may not seen a non-dangerous file for some people like me:)

I think the first part of project done. But the real problem comes with second part for me. I do not have enough practical electronic skills and measurement tools(ossiloscope, common components etc.) to get phone line signal into computer. I look google and see that phone line has very high voltage -48Vrms to -52Vrms. I want to make a circuit that get the digitalized phone line signal to send it to the computer in the place of my arbitrary input. I found some application notes in Caller ID ICs datasheets and there are some circuitry and I think some of them is very appropriate for me. In this point I need to get some assistance to realize this circuit and project.

Here are some circuit that I think it is proper for my project.

What is the output of the circuit in the red rectangle? Is it an appropriate signal for an MCU like Arduino or a for a PC?

What about that circuit? According to this paper. RX signal is 1.2V DC biased and 400mv p-p signal and it propably carries our data we want, right?

PS:I am adding the link of the code and screenshots for people intersted in.

http://www.filedropper.com/goertzelalgorithm

• There is not a single reference to Caller ID in that TI document, you are just assuming it is fit for your specific purpose. You'll have to search for the Caller ID spec's in other documentation, not in a random application note that happens to use FSK modulation. But it needs to be said that I like your research efforts, it is a good way to learn things like this even if there is a chance that they may not work first time. – jippie Aug 5 '15 at 16:54
• Hi jippie. Thanks for your support. I will be sharing all the process done. Have a nice day – Ebubekir Çağrı Şen Aug 5 '15 at 16:56
• Also I think the 1.2VDC bias is for specifically for a 3V3 microcontroller as the MSP series. YMMV with other inputs. – jippie Aug 5 '15 at 16:57

It's an old thread but in case you are still working on this, or anyone else is interested, there are 2 examples of completed Software based PSTN Telephone Caller ID projects here: https://forum.arduino.cc/index.php?topic=528459.0 or https://forum.arduino.cc/index.php?topic=490392.0 Both use a software AFSK demodulator to interpret the CLIP information which is send with the ring burst and include a schematic diagram and all software. One also even handles spam calls.

• This answer is the solution for the project. I gave up after trying many things. Now cannot wait to try them. Thanks for your answer. – Ebubekir Çağrı Şen Feb 20 '18 at 12:52

Two of the line look like they will carry the signal that you're after, the ones that connect to the topr-right corner of the IC with the series resistor and capacitor, but you cannot/shouldn't connect them straight to you PC without:

• knowing the expected signal levels of the signal you are interested in, the inputs must happily accept the signal levels;
• protect the input against ring voltage, which can be up to several 100's volts peak to peak;
• protect against overvoltage as a result of eg. lightning in the neighbourhood;
• an insulation transformer for galvanic separation of the phone line/PC. (You can often find those in old modems or telephone sets.

I suggest that while you are testing and proving your software and hardware you avoid the real telephone line with its high voltage issues. Use your computer sound card as the source for the DTMF tones and hook up to the stereo jack. Use this web page http://onlinetonegenerator.com/dtmf.html to generate the tones for you to prove that your design works. Once you have made progress with that you can look again at the caller ID on the real phone line.

• Caller ID doesn't use DTMF, it uses a modulated digital signal that is sent in between rings. – Ignacio Vazquez-Abrams Aug 5 '15 at 15:37
• Correct! we need fsk modulated signal and I can do it basically to change frequency of sin wave according to data. Now it is time to get phone line signal and make the code run on it. Thanks for suggest anyway. – Ebubekir Çağrı Şen Aug 5 '15 at 15:43