I am working on a project and this is my objective - when something's detected, we make a call to a number and an audio should be played over the call alerting the user. I am not exactly sure how to achieve this with AT commands.
What I have tried:
- I first tried to transfer the file. Sucess. But I could not play it and test it since I don't have a speaker I could connect.
AT+FSCD=C: \\ Changing to C dir
AT+CFTRANRX="c:/r1.amr",255 \\ Transfer to r1.amr
-- hex of r1.amr --
- Make a call
ATD*\number\* \\ Making a call to the number;
AT+CDTAM=1 \\ Setting mode to 'Remote path'
AT+CCMXPLAY="c:/r1.amr",1,255 \\ Playing the audio file
ATH \\ Hang up call
My doubts: I am new to working with AT commands and GSM, so please clarify the below:
- I have no idea if I should be using the CDTAM at all. Saw that it was about TTS. But no success even if I try without it. (Also AT+CTTS=? returns ERROR so I guess my module doesn't have this functionality)
- What is the 'remote path' and 'local path' when playing a audio file?
- Is my sequence of commands right?
- What should be the right commands plus their sequence if I want to achieve my objective?
Any help on this would be appreciated.
References: