This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Send/Receive SMS asset tracker v2

Hi there

We managed to send/receive SMS on the nRF91Dk using the asset_tracker_v1 example, which contains the at_client. 

However, with the asset_tracker_v2 we never get the at command indicating SMS message received. (+CMT). 

Setup that worked with asset tracker v1: 

AT+CNUM

AT+CNMI=3.2.0.1

Sending an SMS to the number provided by CNUM: 

Is there any additional setup required for asset_tracker_v2? 

Same sim card, same dev kit. 

Kind regards

Dan

Parents
  • However, this is caused by the AT host library being disabled by default in asset_tracker_v2, so it won't process AT commands sent to it. It can be enabled like this:


    CONFIG_UART_INTERRUPT_DRIVEN=y
    CONFIG_AT_HOST_LIBRARY=y


    Depending on the content of the SMS AT command you send and the configuration of the line termination characters on the PC side, you may also need to set CONFIG_CR_LF_TERMINATION=y or CONFIG_LF_TERMINATION=y (By default CR termination is used to work with most PC applications, but this may cause issues with SMS commands, as CR also is used as a control character within the command when adding a payload to it).

Reply
  • However, this is caused by the AT host library being disabled by default in asset_tracker_v2, so it won't process AT commands sent to it. It can be enabled like this:


    CONFIG_UART_INTERRUPT_DRIVEN=y
    CONFIG_AT_HOST_LIBRARY=y


    Depending on the content of the SMS AT command you send and the configuration of the line termination characters on the PC side, you may also need to set CONFIG_CR_LF_TERMINATION=y or CONFIG_LF_TERMINATION=y (By default CR termination is used to work with most PC applications, but this may cause issues with SMS commands, as CR also is used as a control character within the command when adding a payload to it).

Children
Related