Hi there,
It looks like you are using the wrong AT application for what you are trying to do.
The simple_at application is designed to demonstrate hardcoded at commands one at a time and then shutdown. This application does not offer the ability to accept UART messages and run them, it is simply a demo program that runs and then sits idle until a reset.
The at_client application found in the ncs repository is an AT application that you can manually enter AT commands via the USB-UART bridge using the LTE Link Monitor for nRF Connect. If you flash that application to your device, you can enter all the commands you have tried to send in the image above.
Hi,
I tried at_client application also. All AT commands are running. Except CMGS. It shows error. I have to send sms using Nordic nrf9160dk. How can I do that. Please help me with it.
Hi, I can't see where in your code you're sending the AT+CNUM command, nor can I see this from LTE Link Monitor. Please attach your complete code and the complete logfile from running the code on the DK.
Are you connecting with LTE-M or NB-IoT? Have you confirmed that Bouygues supports and has deployed SMS functionality?
Best regards,
Heidi
Hello,
When I was using Bouygues, it was showing error for AT+CNUM command. Now I am using Free sim card. It's not showing error. But when I run the code, LTE monitor stops at ***** Booting Zephyr OS v1.14.99-ncs2 *****. Nothing happens after this. I have attached the screenshot for code.
Sequence for AT command is:
"AT+CPIN=1234",
"AT+CFUN?",
"AT+CFUN=1",
"AT+CFUN?",
"AT+CNUM"
"AT+CEREG?",
"AT+CNMI=3,2,0,1",
"AT+CMGS=17\r07913396050096F511000B913367398624F30000AA03E8721E\x1A",
Am I using AT commands correctly or there is some mistake?
A screenshot of part of your code doesn't help me much. Please attach the .c file so I can reproduce your error.
Jagruti said:Am I using AT commands correctly or there is some mistake?
It looks like you're using the correct AT commands.
Thank you. From the +CNUM documentation:
An ERROR response is returned if MSISDN is not available on SIM card or if SIM card is not initialized.
So the MSISDN is probably not available on the Boyugues SIM card.
Again, have you confirmed that the network you are on supports SMS?
Have you made sure the prj.conf file enables the correct configs with regard to what network you're on?
Are you on NB-IoT or LTE-M?
Please attach your full working directory including the prj.conf file and CMakeLists.txt file.
Thank you. From the +CNUM documentation:
An ERROR response is returned if MSISDN is not available on SIM card or if SIM card is not initialized.
So the MSISDN is probably not available on the Boyugues SIM card.
Again, have you confirmed that the network you are on supports SMS?
Have you made sure the prj.conf file enables the correct configs with regard to what network you're on?
Are you on NB-IoT or LTE-M?
Please attach your full working directory including the prj.conf file and CMakeLists.txt file.
Hello,
I changed the prj.conf file and used Orange Sim Card as Free sim was not working. Now I am able to send the sms.
Thank you for the help.
Hi,
Now I want to send gps coordinates via sms. I am working on gps program. How can I do that? Is there any program available?
Thanks
Hi, I see you've already made a new ticket with this new issue. Please wait for a response there. Since you solved the issue related to this ticket, I will close this case.