IOT-MCU / ESP-12S-A9-A9G-GPRS-Node-v1.0

63 stars 27 forks source link

DTMF in A9G Ai thinker #25

Open Nadjib6 opened 1 year ago

Nadjib6 commented 1 year ago

I am working on an electronic project where I am using A9G module from Ai thinker, I want to use the DTMF option of this module, the problem that I couldn't find any information or AT commands about it in the technical documentation. I used this AT command to activate the DMTF in A9G: a9g.println("AT+DDET=1"); while(a9g.available()){ buff = a9g.read(); Serial.println(buff); if(int index = buff.indexOf("+DTMF:") > -1 ) { index = buff.indexOf(":"); dtmf_cmd = buff.substring(index+1, buff.length()); dtmf_cmd.trim(); Serial.println("dtmf_cmd: "+dtmf_cmd); doAction(); }
} but it doesn't work for me, so if there is someone has already worked on this project.