Adrianotiger / phoneDTMF

Detect DTMF without external devices
26 stars 6 forks source link

Question about phoneDTMF with ESP32 and POTS project from 2019 #1

Open Virgus opened 1 year ago

Virgus commented 1 year ago

Hello Adriano, this is not an issue related to this repo, but I've read this old comment of yours on Arduino forum and I'm really interested in what you did at that time. I just ordered one of the latest boards suggested in the link you provided (hoping the custom firmware will still work properly) and I wonder if you have shared somewhere that old project which uses this phoneDTMF library I suppose. Did you swap the 8081 mcu with one ESP32 on that board ? Or created a new custom PCB from fvollmer's schematics ? Cheers, Virgus

Adrianotiger commented 1 year ago

Hi Virgus! The ESP32 is so powerful, I made my own PCB. So I am able also to integrate a TTS library and answer to some inputs.

I can send you the link to the easyeda project, but it is not finished. Just to see how to connect the phone line to the esp. if you want.

I don't know where you got the link to the ordered PCB. So I don't know how it works...

Adriano

Edit: here the link: https://u.easyeda.com/tiger54/caller-id-master-tiger54

The PCB need to be cut, as I made a small box with a 3d printer. So, it is better if you just give a look to the scheme. Probably it is similar to the scheme from your PCB. On my scheme there is also a speaker, 2 status leds and a 5 to 3.3V converter. It should also answer automatically, but I never tested it.

Virgus commented 1 year ago

Hello Adriano, what a great job ! You're making me dream of resurrecting an updated version of my old X10 DTMF controller !

I've been stuck with an home automation setup where the router froze and had to ask a friend to go there and reboot everything. If I had a DTMF controller I would be able to reboot routers, PCs or whatever. So I was looking for some DTMF controlled relay boards and came to your old comment. The one I just ordered is the new version of the YC-KZ02DN described in your old link. The schematic cannot be the same (they removed the 1:1 audio transformer) but maybe the custom firmware is still OK.

Besides the YC-KZ02DN your project is much more promising ! My old TDXE6626+ had a pre-recorded voice (it was english luckily, with a chinese accent) answering the phone and asking which device I wanted to switch or just ask for its status. It was simple and very useful. At that time I controlled hot water, heating and something else. Nowadays X10 protocol is outdated but I wish one day I'll be able to reproduce it. With a custom device you could control onboard relays but also RF devices or even IOTs that might be unaccessible from the internet.

In these days I feel people is getting too optimistic about technology. An old landline phone (or even a voLTE 4G modem/router) would be a wonderful backup to every setup: you need just a phone and the numeric codes to activate this or that !

Two questions pop to my mind:

Many thanks for sharing all this, hope I'll have some time to dig into this more in the next months...

Virginio

Adrianotiger commented 1 year ago

Hi Virgus! I will made some picture of my small box, ok? My project was to make crazy that stupid people from call centers.

The ESP32 was able to get the phone number over the HT9032D IC. Once it got the phone number, the ESP32 sent it over the web, where I had a webpage. On this webpage, there was a lot of unwanted phone numbers: http://phonespam.ch/ There was also a whitelist.

Then, the ESP will display the phone number to the OLED display and the webpage will send a notification to an app (I created an Android App) so that I was able to see the caller also on my phone at work.

If it was a call center, the ESP will hook the phone and play the audio from the WT588D IC. There are space for 10-20 predefined audios. I was thinking something like: “hello”, “what?”, “sorry, what you mean”, “are you sure?”, “I can’t hear what you say”… This sentence randomly.

On the evening, I would play a sound like: “we are already sleeping, but press 1 to wake us up”. And the ESP can then play a sound over a speaker.

There is a TTS project on the web. It should work on the ESP, but at the end my phone company added a call center filter and now I don’t get any unwanted call anymore 😝

On easyeda, you can see the 3d model of my pcb. I made a single PCB with 3 small PCB inside (just to pay less on easyeda).

Now, I use it practically just to see what time it is, since the ESP is always connected to the web.

But the entire project is really personal (with app, personal database and webpage).

Adriano

From: Virgus @.> Sent: Mittwoch, 27. Juli 2022 17:21 To: Adrianotiger/phoneDTMF @.> Cc: Adriano @.>; Comment @.> Subject: Re: [Adrianotiger/phoneDTMF] Question about phoneDTMF with ESP32 and POTS project from 2019 (Issue #1)

Hello Adriano, what a great job ! You're making me dream of resurrecting an updated version of my old X10 DTMF controllerhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdetail.en.china.cn%2Fprovide%2Fp104214505.html&data=05%7C01%7C%7C8ce9c255a49243dccea808da6fe3a233%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637945320708143963%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=takIi5E9AM69gjC5tCgO6XleQ4Z5kf4j55%2F3x0Qa%2BEM%3D&reserved=0 !

I've been stuck with an home automation setup where the router froze and had to ask a friend to go there and reboot everything. If I had a DTMF controller I would be able to reboot routers, PCs or whatever. So I was looking for some DTMF controlled relay boards and came to your old comment. The one I just ordered is the new version of the YC-KZ02DN described in your old link. The schematic cannot be the same (they removed the 1:1 audio transformer) but maybe the custom firmware is still OK.

Besides the YC-KZ02DN your project is much more promising ! My old TDXE6626+ had a pre-recorded voice (it was english luckily, with a chinese accent) answering the phone and asking which device I wanted to switch or just ask for its status. It was simple and very useful. At that time I controlled hot water, heating and something else. Nowadays X10 protocol is outdated but I wish one day I'll be able to reproduce it. With a custom device you could control onboard relays but also RF devices or even IOTs that might be unaccessible from the internet.

In these days I feel people is getting too optimistic about technology. An old landline phone (or even a voLTE 4G modem/router) would be a wonderful backup to every setup: you need just a phone and the numeric codes to activate this or that !

Two questions pop to my mind:

Many thanks for sharing all this, hope I'll have some time to dig into this more in the next months...

Virginio

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAdrianotiger%2FphoneDTMF%2Fissues%2F1%23issuecomment-1196900520&data=05%7C01%7C%7C8ce9c255a49243dccea808da6fe3a233%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637945320708143963%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=AA8RHX27oeCV8LtbBXNpGe5u2f7%2BbRoDNbLWvMI5P8U%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABYICFYAE2RC3XXYI3HK7DDVWFHWLANCNFSM54WSYOPA&data=05%7C01%7C%7C8ce9c255a49243dccea808da6fe3a233%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637945320708143963%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tvpZ9MTId0P%2BdPQOUIrrwWJxL0ZoaPtCooljXc6gAEE%3D&reserved=0. You are receiving this because you commented.Message ID: @.**@.>>

Adrianotiger commented 1 year ago

Here some pictures: IMG20220727185931 IMG20220727185951 IMG20220727190006

Virgus commented 1 year ago

Thanks for all these extra interesting details, you really made me laugh thinking about the old prank of the sheperd from sardinia ! There are other episodes of these pranks but this one is the most famous. ...did you forsee a recording option to listen back to these "conversations" ? ;-D

Thanks also for the pictures. I wish I'll have the time to dig further in this: it would be nice to reproduce part of what you did and tweak it towards the use I described previously.

In the event that the YC-KZ02DN won't work as expected may I bother you for some more questions ? I'd ask your permission to send you eventually an email to one the addresses I found here on github...

Thanks again and take care, Virginio

Adrianotiger commented 1 year ago

Ma certo! :D

If you found an email, write me. I don't know how much I can help you, as I stopped working on it some time ago.

The ESP is not able to record the conversations I think. Maybe you can connect a recorder with SD card.