SDK 1.8.0 The AT#XAGPS=1,1 command doesn't working

Hello, I am using board nRF9160-dk (sdk 1.8.0).
I need to get geolocation data using AGPS, for this I use the following sequence of AT commands:

AT%XSYSTEMMODE=1,0,1,0
AT%XMAGPIO=1,0,0,1,1,1574,1577
AT%XCOEX0
AT+CEREG=5
AT+CPSMS=1
AT+CFUN=1
AT#XNRFCLOUD=1
AT#XAGPS=1,1

But always on the command AT#XAGPS=1,1 I get the answer "ERROR".
What's my mistake? And why just "AT#XGPS=1,1" works correctly.


Parents
  • Hello, 

    The #XAGPS command runs the GNSS together with the nRF Cloud A-GPS service. This requires access to nRF Cloud through the LTE network for receiving A-GPS data.

    Have you connected to nRF Cloud?

    Kind regards,
    Øyvind

  • Hello,
    To connect to the cloud service, use the command: AT#XNRFCLOUD=1.
    In response we get:

    << OK
    << #XNRFCLOUD: {"desired":{"pairing":{"state":"paired","topics":{"d2c":"prod/669fbe44-b8e6-41e1-b298-6afb63e45691/m/d/nrf-352656108600480/d2c","c2d":"prod/669fbe44-b8e6-41e1-b298-6afb63e45691/m/d/nrf-352656108600480/c2d"}},"nrfcloud_mqtt_topic_prefix":"prod/669fbe44-b8e6-41e1-b298-6afb63e45691/"},"config":{"GPS":{"enable":false}}}
    << #XNRFCLOUD: 1,0

  • Hello, 
    I've just tested on my side. Are you using the precompiled firmware?

    In the pjr.conf of the Serial LTE Modem, you will need to enable AGPS (disabled by default). 

    # nRF Cloud based location services
    CONFIG_SLM_AGPS=y

    Note that the SLM uses RTT to print the Application log, which you can access via Segger J-Link RTT Viewer.

    # Segger RTT
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_RTT_CONSOLE=y
    CONFIG_UART_CONSOLE=n
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=n

    Kind regards,
    Øyvind

Reply
  • Hello, 
    I've just tested on my side. Are you using the precompiled firmware?

    In the pjr.conf of the Serial LTE Modem, you will need to enable AGPS (disabled by default). 

    # nRF Cloud based location services
    CONFIG_SLM_AGPS=y

    Note that the SLM uses RTT to print the Application log, which you can access via Segger J-Link RTT Viewer.

    # Segger RTT
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_RTT_CONSOLE=y
    CONFIG_UART_CONSOLE=n
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=n

    Kind regards,
    Øyvind

Children
No Data
Related