Continue to Site

# [SOLVED]at commande with pic18f252 and ccs picc

Status
Not open for further replies.

#### benlas28

##### Newbie
Hi every body;
could you please help me with the following at command with sim800l gsm module and pic18f252.
i have an audio file loaded in the sim800l module.and i try to play it with the commande:
AT+CREC=4,"C:\User\ad.amr",0,90,0
when i do that with the sim800l connected to my pc through an usb adapter and with putty as terminal, it works good and i can hear the audio on a speaker connected to SP+ and SP- outputs available on the sim800l module.but when i try to do this with pic18f252 connected with the sim800l module it doesent work: i have tried the following commande:
printf("AT+CREC=4,"C:\User\ad.amr,0,90,0"\r");but i get error in pic c compiler((ccs))
i have also tried this command: printf("AT+CREC=4,""C:\User\ad.amr,0,90,0""\r") i get no error in compiler, but but i get no sound on the speaker, and the same result with this command:
printf("AT+CREC=4,C:\User\ad.amr,0,90,0\r")
could you please help me to find a solution and many thanks

#### andre_luis

##### Super Moderator
Staff member
Code:
printf("AT+CREC=4,C:\User\ad.amr,0,90,0\r")

Review escape characters needed whenever using the prinft() function.
At a glance, at least each backslash (\) should be preceded by another one (\\).

#### benlas28

##### Newbie
thank you very much andre_teprom for your help,it's very kind of you .
you were right, i did what you told me and it's working good.
printf("AT+CREC=4,""C:\\User\\ad.amr"",0,90,0\r"); this command is working good

Status
Not open for further replies.