This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sending SMS using at_client example

Should it be possible to send SMS with the at_client example, and is there any special requirements to do so?

This is the AT commands setup procedure I've used:

AT+CFUN=1
OK
AT+CPIN="1234"
OK
AT+CNUM
+CNUM: ,"+47123456789",145
OK
AT+CEREG?
+CEREG: 0,5,"0AF1","02055515",7
OK
AT+CNMI=3,2,0,1
OK

After this I can receieve SMS. But if I try to send one, the following happens:

AT+CMGS=17<CR>0691746435990511000A91742904694700000B04F4F29C0E<SUB>
ERROR

It looks like I get the ERROR as soon as the carriage return is sent

AT+CMGS=17<CR>
ERROR
Parents
  • Hi!,

    I'm following your steps, but it seems simple_at doesn't boot correctly. First I erase all, then program secure_boot, then simple_at. But it stops when showing "***** Booting Zephyr OS v1.13.99-ncs2 *****", and it doesn't show the first printk from app_socket_start.

    Any help?

    Thanks!

  • Hi all!

    We are trying to send SMS with the nrf9160 DK, without success.

    Thank you @skyfex for your clear explanations. Unfortunately, using SIM cards other than iBasis seems to prevent the firmware from booting (we got the same behavior that @Diego Garcia with only the "Booting Zephyr OS" printk showing when using SIM cards other than the iBasis one).

    @skyfex could you share which SIM card you used for your successful SMS test?

    @Diego Garcia could you in the end manage to send SMS? If yes, could you share how you did it?

    Thank you very much for your help!

    Best,

    Étienne

Reply
  • Hi all!

    We are trying to send SMS with the nrf9160 DK, without success.

    Thank you @skyfex for your clear explanations. Unfortunately, using SIM cards other than iBasis seems to prevent the firmware from booting (we got the same behavior that @Diego Garcia with only the "Booting Zephyr OS" printk showing when using SIM cards other than the iBasis one).

    @skyfex could you share which SIM card you used for your successful SMS test?

    @Diego Garcia could you in the end manage to send SMS? If yes, could you share how you did it?

    Thank you very much for your help!

    Best,

    Étienne

Children
  • Hi! Has probably nothing to do with the SMS problem, but could you explain what  "using SIM cards other than iBasis seems to prevent the firmware from booting" mean? I am also using my own sim card  (with NB-IoT firmware), and the boot process itself is working. My problem is that the registration process is not working reliably. Meaning that it seems to work after I flashed the application for time and then never again.

  • Hi Dominik! Thank you for your answer!

    The behavior we saw is the following one:

    - Booting simple_at with the iBasis sim card inserted in the DK works fine (= we see the secure boot trace + the application printk as expected)

    - Booting simple_at (or else) with our own sim cards inserted (we tried two different ones, Orange & SFR french operators) only shows the secure boot traces, and nothing else after the "Booting Zephyr OS" printk. The firmware seems then stuck.

    It seems like our sim cards are not "allowed" to be used with the nrf9160 DK.

    Best,

    Étienne

  • Etienne, 
    Does you SIM card have a PIN-code? My impression is that in the default configuration the OS will not boot if it's configured to work with a PIN-less SIM card, but the inserted card has a PIN-code. 

    It's possible to configure it to not attempt to connect to the network before booting, and in that case a SIM card with PIN-code is OK. You just have to send the right AT commands to enter the PIN-code as my example illustrated. I haven't tried to get networking up and running with PIN-code.

    The configuration is in prj.conf
    I don't remember which one. Maybe someone could find the documentation of this configuration file and link to it here.

    I think you can disable the PIN-code on your SIM card from any phone as well.


    — Audun

  • One more thing, you may have to check if your network supports LTE-M

Related