• Support
  • Do I need Linux to work withnRF9160?

I build the “https” app, pristine, activate the blue LED manually, and load it with CMD, newtmgr, and VSC. “Zephyr Tools: Load via Bootloader” says “Error: NMP timeout.”

It stops forever at “cloud: Looking up www.mysite.com”

Where can I find some help? say the program stall at the instruction “err = getaddrinfo(CONFIG_CLOUD_HOSTNAME, NULL, &hints, &res);” 

I added some “LOG_INF(”#1″), “LOG_INF(”#2″) etc. in several lines, but failed to print it.

The last thing to do is buy a HDD to install Linux. I have spent 3 months now trying to make it work.

This is terminal  output:
[00:00:00.457,336] .[0m<inf> cloud: Certificate match.[0m
[00:00:07.006,988] .[0m<inf> cloud: Publish path: www.mysite.com/path/file.[0m
[00:00:07.016,296] .[0m<inf> cloud: Payload: {“do_something”:true}.[0m
[00:00:07.022,766] .[0m<inf> cloud: Looking up www.mysite.com.[0m

Any hint?

    jaredwolff
    Yes, it has a legitimate and functional SIM card inserted.

    The board is a SparkFun nRF9160 Thing Plus, and I always use the “-ns” version in VSC.

    In January, I used the online date and time app, and it worked every time. With that app, I can confirm that my SIM card works and that LTE bands are operational.

    Thanks for your time and help!

      Digisol Where can I find some help? say the program stall at the instruction “err = getaddrinfo(CONFIG_CLOUD_HOSTNAME, NULL, &hints, &res);”

      A few things here are required:

      1. Hostname needs to be legitimate. It’s doing a DNS lookup and will return an error if you’re using a bogus domain.
      2. You need to have an active LTE connection (modem is powered on and connected to a tower)

      Hope that helps!

      I have a website and can submit post messages. I tested it again tonight with the VSC Thunder addon, and it still works perfectly. I can receive the information supplied.

      I have a valid SIM card, and when I use an app to get the internet date and time, it always works.

      I purchased a new HDD and installed Debian 12. I installed VSC with your webpage as a guide. I just finished building and programming the “https” app, which performs the same thing as Windows: nothing!

      *** Booting Zephyr OS build v3.3.99-ncs1-2 ***
      [00:00:00.253,814] .[0m<inf> main: HTTPS Sample. Board: Sparkfun_thing_plus_nrf9160.[0m
      [00:00:00.447,052] .[0m<inf> cloud: Certificate match.[0m

      This output comes from an unaltered program; shouldn’t it work?

      Yes, I use the “_ns” version of Sparkfun, plus, but it doesn’t show up.
      Thats all, what’s next?

      There are no books, no online resources, and no method to learn. I’m desperate!

      Any hints would be much appreciated!

      @Digisol

      You don’t need a hard drive to install linux. The tools work on Windows as you’ve clearly shown above.

      For this sample you need to:

      1. Modify your prj.conf
      CONFIG_CLOUD_HOSTNAME="yourhostname.com"
      CONFIG_CLOUD_PUBLISH_PATH="/api/v1/yourpath"
      1. The sample does publish a bogus payload:
      {
      "do_something":"true"
      }

      You will have to modify the cJSON code (in cloud_publish in cloud.c) to accommodate a different payload.

      1. Please provide a full log of the application on boot. Please also confirm you have an antenna connected to the correct port. Please share a picture of your setup for review.

      Yes, it has a legitimate and functional SIM card inserted.

      Can you please share what service you’re using? Do they support CAT-M1? Did you activate your IMEI with the service?

        Terms and Conditions | Privacy Policy