case about ncs v2.5.0 serial_lte_modem add a user command AT#XPTGPS=1,2,3,4,5,6,7 connect nRF Cloud failed

Hi,

1. I added an at instruction to the example serial_lte_modem to connect to the nRF Cloud but it always fails. What can I do?

2. The code is as follows:

7077.serial_lte_modem_ag3352.zip

3. Connection logs are as follows:

00> [00:00:00.253,906] <err> spi_nor: Device id 00 00 00 does not match config c2 28 17
00> *** Booting nRF Connect SDK v2.5.0 ***
00> [00:00:00.485,137] <inf> nrf_modem_lib_trace: Trace thread ready
00> [00:00:00.492,706] <inf> nrf_modem_lib_trace: Trace level override: 2
00> [00:00:00.495,727] <inf> slm: lib_modem init: 0
00> [00:00:00.496,215] <inf> slm: Serial LTE Modem
00> [00:00:00.504,058] <inf> slm_uart_handler: UART baud: 115200 d/p/s-bits: 3/0/1 HWFC: 1
00> [00:00:00.504,150] <inf> slm_at_host: at_host init done
00> [00:14:10.991,790] <inf> slm_at_ag3352: err = -22
00>
00> [00:14:10.991,821] <inf> slm_at_ag3352: param_count = 8
00>
00> [00:14:10.991,851] <inf> slm_at_ag3352: cmd1 = 1
00>
00> [00:14:10.991,851] <inf> slm_at_ag3352: cmd2 = 3
00>
00> [00:14:10.991,882] <inf> slm_at_ag3352: cmd3 =
00>
00> [00:14:10.998,443] <inf> slm_at_ag3352: activated = 0
00>
00> [00:14:10.998,474] <inf> slm_at_ag3352: ret = -77
00>
00> AT+CFUN?
00> +CFUN: 0
00>
00> OK
00>
00> AT+CFUN=4
00> OK
00>
00> AT%%XSYSTEMMODE=0,1,0,0
00> OK
00>
00> AT%%XSYSTEMMODE?
00> %XSYSTEMMODE: 0,1,0,0
00>
00> OK
00>
00> AT%%XICCID
00> ERROR
00>
00> AT+CFUN=1
00> OK
00>
00> AT+CESQ
00> +CESQ: 99,99,255,255,20,60
00>
00> OK
00>
00> AT+CGDCONT?
00> +CGDCONT: 0,"IPV4V6","CMIOT","10.133.40.185 2409:8D80:9101:476F:0001:0002:59D6:9BE8",AT#XNRFCLOUD=1
00> ERROR
00>
00> AT#XNRFCLOUD?
00>
00>
00> ERROR
00>
00> AT#XNRFCLOUD?
00>
00>
00> ERROR
00>
00> AT#XNRFCLOUD?
00>
00>
00> ERROR
00>
00> AT#XNRFCLOUD?
00>
00>
00> ERROR
00>
00> AT#XNRFCLOUD?
00>
00>
00> ERROR
00>
00> AT#XNRFCLOUD?
00>
00>
00> ERROR
00>
00> AT#XNRFCLOUD?
00>
00>
00> ERROR
00>
00> AT#XNRFCLOUD?
00>
00>
00> ERROR
00>
00> AT#XNRFCLOUD?
00>
00>
00> ERROR
00>
00> AT#XNRFCLOUD?
00>
00>
00> ERROR
00>
00> [00:15:56.080,871] <inf> slm_at_ag3352: LTE activated
00>
00> [00:15:56.080,902] <inf> slm_at_ag3352: cfun_mode = 1

4.In addition, the device automatically restarts at the end of the log. How can I solve the restart problem?

5. Based on the example serial_lte_modem_, the following modifications are made:
(1) Set the network mode to NB
(2) Added an AT trigger instruction    AT#XPTGPS=1,2,3,4,5,6,7

6.Test board: PCA10090 1.0.0   sdk:NCS V2.5.0

7.Send instructions AT#XNRFCLOUD=1 in the LTE Link Monitor
You can connect to the nRF Cloud

Need to pay attention to the file and location

Thank you for all your assistance.
Kind regards,
Peter.Min

Parents
  • Hello, 

    My apologies for the delayed answer. 

    First off all, have you provisioned/onboarded your device to nRF Cloud? Are you able to connect to nRF Cloud using the default Serial LTE Modem?

    From the logs there are a couple of errors from src\peter\slm_at_ag3352.c, I assume. Have you verified that the issue is not in with this custom code?

    4.In addition, the device automatically restarts at the end of the log. How can I solve the restart problem?

    Do you have any indication to what causes this issue?

    Will look into this and get back to you with an answer within today or tomorrow.

    Kind regards,
    Øyvind

Reply
  • Hello, 

    My apologies for the delayed answer. 

    First off all, have you provisioned/onboarded your device to nRF Cloud? Are you able to connect to nRF Cloud using the default Serial LTE Modem?

    From the logs there are a couple of errors from src\peter\slm_at_ag3352.c, I assume. Have you verified that the issue is not in with this custom code?

    4.In addition, the device automatically restarts at the end of the log. How can I solve the restart problem?

    Do you have any indication to what causes this issue?

    Will look into this and get back to you with an answer within today or tomorrow.

    Kind regards,
    Øyvind

Children
Related