Thingy 91 GNSS serial_lte_modem

Hello,

I flashed the precompiled hex file, found on the thingy91 product description (https://www.nordicsemi.com/Products/Development-hardware/Nordic-Thingy-91). Also the connectivity bridge is flashed.
With the NRF LTE link monitor, I got the LTE working. I can send & receive MQTT commands.

But when I want to get the GPS data, I don't get any location data. I followed this description: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/GNSS_AT_commands.html

Now I see that the LTE and the GPS shares the same antenna. Does this fimware support GNSS data? Do I have to set any extra configuration? (Thinking COEX or MAGPIO)
Or should this work out-of-the-box?

I tried going outside, but also without luck.

Regards,

Sibrecht

Parents Reply Children
  • Hi Sibrecht, I tested and made sure that Thingy:91 gets the GPS coordinates, altitude and speed. Please follow these steps that I went through:

    1) Go to 

    https://www.nordicsemi.com/Products/Development-hardware/Nordic-Thingy-91/Download?lang=en#infotabs

    and download both:

    a) Precompiled application and modem firmware (Latest version is: thingy91_fw_2022_12_08_188a1603.zip) - UNZIP this file 

    b) nRF9160 SiP modem firmware (mfw_nrf9160_1.3.4.zip) - DO NOT UNZIP this file

    2) Open the Programmer Tool from the nRF Connect for Desktop

    3) Put your Thingy:91 in MCUBoot mode (hold the SW3 -the pushbutton on the Thingy- while turning the device ON)

    4)Select the Thingy 91 device in the programmer tool

    5)Click on Add File and choose "mfw_nrf9160_1.3.4.zip" from the folder you downloaded it, click on Write, and confirm by 'write' once again in the pop up window and wait for the upload to complete , it'll take some time.

    6)Once the writing is complete, turn the device off from its switch. Set it into MCU Boot mode once again as in Step 3

    7)Choose your Thingy 91 device in the programmer tool once again

    8)Click on "clear files" if any files are selected in the "File memory layout" window

    9)Click on "add file" and choose "serial_lte_modem_2022-12-08_188a1603.hex" from "..\thingy91_fw_2022_12_08_188a1603\img_fota_dfu_hex" path (where you unzipped the file). Click on "write" and "write" once again in the pop up window and wait for the upload to complete , it'll take some time.

    10) Once the writing is complete, turn the device OFF and ON

    11) Open LTE Link Monitor from nRF Connect for desktop

    12) Select your device: Thingy 91

    13) a) send the following command : AT%XSYSTEMMODE=0,0,1,0 (you should receive OK response) and wait for 1 min

    b) send the following command:  AT%XCOEX0=1,1,1565,1586 (you should receive OK response) and wait for 1 min

    c) send the following command: AT+CFUN=31 (you should receive OK response) and wait for 1 min

    d) send the following command: AT#XGPS=1,1 (you should receive #XGPS: 1,1OK response) and wait for X mins without interrupting  (in my case it took 22 minutes to receive the first output - I recorded my screen through the process) You can wait more or less, I really don't know.

    where the fields in this output are:

    I'm also preparing this process as a video. I'll update the ticket with its URL as soon as I edit it.

    Let me know if this works for you.

    Regards

    Selim

  • Hi,

    Apart from LTE Link Monitor, for sending AT commands you could use Serial Terminal which is available from nRF Connect for Desktop. 

    Note that due to low antenna efficiency specified in this Errata, long time to get GPS fix is required with on-board antenna. Since receiving data from GPS location service does not work when you are inside, you should send initial AT commands using your PC and when GPS has started, you should move your Thingy91 outside where you would have clear view of the sky. Thingy91 device has Bluetooth connectivity option. The device is visible on your PC as USB device. You can access configuration settings file on Thingy91 by double-clicking USB Drive and opening Config.txt configuration file. You can enable BLE on Thingy using BLE_ENABLED option. 

    BLE_ENABLED=1


    After you have enabled BLE on Thingy91, you can start receiving GPS data on your phone using nRF Connect mobile application. When you connect to the Thingy91 using your phone application, you should choose Nordic UART service and enable notifications on Tx characteristic. From this point you should be able to receive location data from Thingy91 directly to your phone using Bluetooth.

    Best regards,
    Dejan

  • ThumbsupThank you for the reminder Dejan. I can also add to this comment by demonstrating the nRF Connect mobile application usage (the video shows environment sensor's output) but as you said, any output (printk, log) can be seen over NUS connection.

    https://youtu.be/V0ZCCq-vCSA

  • I also finished the video for GPS with Thingy:91  

    https://youtu.be/U6wf2U34XO8

    Regards

    Selim

  • Hello,

    I got it working by waiting a lot and with the bluetooth connection to my cell phone.
    It is really about putting the device outside, and have a lot of patient.

    Thank you for your excellent explanations.

    Regards,


    Sibrecht

Related