Hi, I wanted to use A-GPS with my nrf9160 sparkfun thing plus, however, I have been having trouble with the SUPL. I have shifted to using Golioth instead of the nrf cloud simply because I could not connect/had trouble using the nrf cloud. I have been able to connect to the Golioth cloud server and have even published logs to it, now I am wanting to use it to provide my device with A-GPS support.

In addition, I would like to use the GPS sample from the nfed that is on github, however, whenever I try to use it and set CONFIG_GNSS_SAMPLE_ASSISTANCE_NRF_CLOUD=y, I get the following error code:

c:\users\jsppr\onedrive\desktop\rvs\nrf\subsys\net\lib\nrf_cloud\include\nrf_cloud_codec_internal.h:27:10: fatal error: cJSON.h: No such file or directory
27 | #include “cJSON.h”

However, when I go to the file location, the cJSON is there so I am confused on why the compiler can’t find it. I am wondering if it might be due to folder structure, since I have to create folders for the supl folder to be put into?

My questions then are how do I fix the building issue? And secondly do I have to use the nrf cloud to get A-GPS? Or can I use Golioth?

    bellyached My questions then are how do I fix the building issue? And secondly do I have to use the nrf cloud to get A-GPS? Or can I use Golioth?

    1. Your error is likely due to not having CJSON enabled in your prj.conf
    CONFIG_CJSON=y
    1. Yes you can but they removed the (easy) samples in NCS to push you to use the cloud based solution. I did look at it a while back and there is a path to use SUPL only. Unfortunately I have not done it myself. You may want to checkout this sample as it does give you an option to use SUPL:

    nrf/samples/nrf9160/gnss

    (Link to 2.4.x version https://github.com/nrfconnect/sdk-nrf/tree/75adfe8909fbac1c2e0ede465448d1ce2821dfa9/samples/nrf9160/gnss)

      Thank you, I added the CONFIG_CJSON which caused a different build error now. It has something to do with the cmakelists:
      nfed/samples/gps/prj.conf:20: warning: attempt to assign the value ‘y’ to the undefined symbol CJSON
      error: Aborting due to Kconfig warnings
      CMakeLists.txt:9 (find_package)

      I will try using the gnss sample, I have looked at it some and I noticed that’s what the gps nfed sample imports. I will look into it some more, originally I tried running the gnss sample but ran into the CJSON error.

        Ahh it should be CONFIG_CJSON_LIB.

        CONFIG_CJSON_LIB=y

          I get the same error code with CONFIG_JCSON_LIB. Is there another one possibly? Or another library that I need to add?

            The cjson file that it is looking for seems to be apart of the iperf3 folder, I am assuming their is an CONFIG_IPERF3?

              Thank you, I will begin there and let you know if I have more questions.

              Terms and Conditions | Privacy Policy