nRF9160, Cellular positioning in multi-cell mode

We use nRF9160 DK (with Serial LTE Modem 1.9.1).
We tried to use cellular positioning in multi-cell mode, but the type in the answer was always "0" (#XCELLPOS: 0,32.705838,35.174798,1005).
What do we do incorrectly?
Expected result: #XCELLPOS: 1,32.705838,35.174798,1005

I attached logs with AT command sequence:

022-09-13T10:47:07.963Z DEBUG modem >> AT+CFUN?
2022-09-13T10:47:07.984Z DEBUG modem << +CFUN: 0
2022-09-13T10:47:07.988Z DEBUG modem << 
2022-09-13T10:47:07.990Z DEBUG modem << OK
2022-09-13T10:47:17.790Z DEBUG modem >> AT%XSYSTEMMODE=1,0,0,0
2022-09-13T10:47:17.805Z DEBUG modem << OK
2022-09-13T10:47:24.280Z DEBUG modem >> AT+CFUN=1
2022-09-13T10:47:24.323Z DEBUG modem << OK
2022-09-13T10:47:30.271Z DEBUG modem >> AT#XNRFCLOUD=1
2022-09-13T10:47:30.276Z DEBUG modem << OK
2022-09-13T10:47:34.586Z DEBUG modem << #XNRFCLOUD: 1,0
2022-09-13T10:47:39.547Z DEBUG modem >> AT#XCELLPOS=1
2022-09-13T10:47:39.553Z DEBUG modem << OK
2022-09-13T10:47:40.411Z DEBUG modem << #XCELLPOS: 0,32.705834,35.174803,1008
2022-09-13T10:47:46.051Z DEBUG modem >> AT%NCELLMEAS
2022-09-13T10:47:46.065Z DEBUG modem << OK
2022-09-13T10:47:46.071Z DEBUG modem << %NCELLMEAS: 0,"001B6A02","42503","1D6B",32,1800,214,64,10,42204,39970
2022-09-13T10:47:52.956Z DEBUG modem >> AT#XCELLPOS=2
2022-09-13T10:47:52.960Z DEBUG modem << OK
2022-09-13T10:47:54.135Z DEBUG modem << #XCELLPOS: 0,32.705838,35.174798,1005
2022-09-13T10:48:21.372Z INFO Modem port is opened
2022-09-13T10:48:21.375Z DEBUG modem >> AT+CFUN?
2022-09-13T10:48:21.385Z DEBUG modem << +CFUN: 0
2022-09-13T10:48:21.388Z DEBUG modem << 
2022-09-13T10:48:21.389Z DEBUG modem << OK
2022-09-13T10:48:31.383Z DEBUG modem >> AT%XSYSTEMMODE=1,0,0,0
2022-09-13T10:48:31.397Z DEBUG modem << OK
2022-09-13T10:48:37.952Z DEBUG modem >> AT+CFUN=1
2022-09-13T10:48:37.994Z DEBUG modem << OK
2022-09-13T10:48:44.839Z DEBUG modem >> AT#XNRFCLOUD=1
2022-09-13T10:48:44.844Z DEBUG modem << OK
2022-09-13T10:48:49.470Z DEBUG modem << #XNRFCLOUD: 1,0
2022-09-13T10:48:54.663Z DEBUG modem >> AT%NCELLMEAS
2022-09-13T10:48:54.671Z DEBUG modem << OK
2022-09-13T10:48:54.678Z DEBUG modem << %NCELLMEAS: 0,"001B6A02","42503","1D6B",36,1800,214,64,9,40507,39873
2022-09-13T10:49:03.895Z DEBUG modem >> AT#XCELLPOS=2
2022-09-13T10:49:03.900Z DEBUG modem << OK
2022-09-13T10:49:04.690Z DEBUG modem << #XCELLPOS: 0,32.705838,35.174798,1005




  • Hi Stas,

    Here is my test log. It seems your device did not detect other neighbour cells. It only shows the cell station you connect with.

    2022-09-14T12:19:00.241Z DEBUG modem >> AT#XNRFCLOUD=1
    2022-09-14T12:19:00.246Z DEBUG modem << OK
    2022-09-14T12:19:04.405Z DEBUG modem << #XNRFCLOUD: 1,0
    2022-09-14T12:19:09.229Z DEBUG modem >> AT#XCELLPOS=1
    2022-09-14T12:19:09.234Z DEBUG modem << OK
    2022-09-14T12:19:09.960Z DEBUG modem << #XCELLPOS: 0,59.918939,10.685860,881
    2022-09-14T12:19:23.686Z DEBUG modem >> AT#XCELLPOS=2
    2022-09-14T12:19:23.693Z DEBUG modem << OK
    2022-09-14T12:19:23.695Z DEBUG modem << #XCELLPOS: 
    2022-09-14T12:19:24.153Z DEBUG modem << %CESQ: 61,3,14,2
    2022-09-14T12:19:36.690Z DEBUG modem << %CESQ: 255,0,255,0
    2022-09-14T12:22:07.233Z DEBUG modem >> AT%NCELLMEAS
    2022-09-14T12:22:07.276Z DEBUG modem << OK
    2022-09-14T12:22:07.363Z DEBUG modem << %CESQ: 61,3,13,1
    2022-09-14T12:22:08.020Z DEBUG modem << %NCELLMEAS: 0,"031B4300","24201","7789",65535,6400,34,61,16,203399,6400,310,60,13,0,300,210,43,16,24,300,211,42,15,24,1450,346,52,16,33,0
    2022-09-14T12:22:08.021Z DEBUG modem << %CESQ: 255,0,255,0
    2022-09-14T12:22:31.223Z DEBUG modem >> AT#XCELLPOS=2
    2022-09-14T12:22:31.229Z DEBUG modem << OK
    2022-09-14T12:22:32.324Z DEBUG modem << %CESQ: 60,3,15,2
    2022-09-14T12:22:33.871Z DEBUG modem << #XCELLPOS: 1,59.919113,10.687236,125
    2022-09-14T12:22:34.426Z DEBUG modem << %CESQ: 63,3,20,2

    Best regards,

    Charlie

  • Hi. I have a nRF9160 dev kit. I want to use XCELLPOS to know to location.

    I use the application firmware nrf9160dk_serial_lte_modem_2023-03-02_8f26142b.hex.

    But I always got the error at AT#XNRFCLOUD=1 and AT#XCELLPOS=1

    The response is: ERROR

    I also attached the log. 

    Thank you very much.

    Log Cellular positioning method.docx

  • Hi Duoc,

    According to Connect to nRF Cloud, you must first provision the device to nRF Cloud, using the UUID from the modem firmware as device ID.

    1. Using AT#XUUID to get UUID.

    2. Login to nRF Cloud and prvision device with this UUID, see update the nRF Cloud certificate.

    Then try again to see if the nRF Cloud connect can be built.

    Best regard,

    Charlie

Related