Golioth Firmware SDK v0.17.0

Originally published at: Golioth Firmware SDK v0.17.0 - The Golioth Developer Blog

Yesterday, we released v0.17.0 of the Golioth Firmware SDK. This release introduces support for the Golioth Location service in the SDK. We’ve also improved the stability and robustness of FW updates, and added support for the latest versions of development platforms from our silicon partners. For the full set of changes in the release, see the changelog. Golioth Location Golioth Location is a network positioning service that allows devices to determine their location without the use of dedicated GNSS hardware, using nearby WiFi access points or cellular towers. The SDK now provides access to this service using the same simple C APIs that our users have come to expect from Golioth. Users first build a location request, then send it to Golioth and receive an approximate location. Building the location request starts by calling golioth_location_init(). Then, WiFi SSIDs and cell towers are added to the request using golioth_location_wifi_append() and golioth_location_cellular_append(), respectively. Location requests can contain either just WiFi SSIDs, just cell towers, or a combination of the two. When including both WiFi SSIDs and cell towers in the same location request, the user must add all of one type and then all of the other. After all of the network information is added, finish building the request by calling golioth_location_finish(). At this point, the user can send the request to Golioth using golioth_location_get_sync(). The response contains the approximate location and an accuracy estimate: struct golioth_location_rsp { /** Latitudinal position in nanodegrees (0 to ±180E9) / int64_t latitude; /* Longitudinal position in nanodegrees (0 to ±180E9) / int64_t longitude; /* Accuracy in meters */ int64_t accuracy; }; We have a new example for Zephyr that demonstrates the expected usage of this…

1 Like

Hello team Golioth,

I would appreciate it if the readme or the documentation could be updated for installing Golioth to the existing Zephyr West project and to Nordic’s nRF Connect SDK.

Currently, the installation steps for the above are hidden here golioth-firmware-sdk/examples /zephyr/. It would make life easier if this could be brought on the main SDK readme page.

In addition, currently, this givesan error in NCS:

west init -m https://github.com/golioth/golioth-firmware-sdk.git --mr v0.17.0 --mf west-ncs.yml
west update
cd modules/lib/golioth-firmware-sdk && git submodule update --init --recursive
FATAL ERROR: already initialized in /opt/nordic/ncs/v2.9.0, aborting.
Note:
    In your environment, ZEPHYR_BASE is set to:
    /opt/nordic/ncs/v2.9.0/zephyr

    This forces west to search for a workspace there.
    Try unsetting ZEPHYR_BASE and re-running this command.

and only updating the entry to the west.yml file and then calling west update works unless I am missing something here.

Thanks

Hey @rajeev,

Because the SDK supports multiple ports, including one for Zephyr RTOS, the decision was made to keep the main README uncluttered by placing the relevant documentation in the examples folder for each port. However, I agree that this approach makes it somewhat challenging to find within the repository.

The error you are experiencing is due to the west initialization conflict. The error means west is already initialized in /opt/nordic/ncs/v2.9.0, and west does not allow re-initializing in an already initialized workspace.
This means you cannot use the west init -m https://github.com/golioth/golioth-firmware-sdk.git --mr v0.17.0 --mf west-zephyr.yml command in an already initialized west directory.

In order to add the Firmware SDK to an existing Zephyr West project, add the following entry to the west.yml file of an existing west based project by placing the golioth entry first in the file:

# Golioth repository.
- name: golioth
  path: modules/lib/golioth-firmware-sdk
  revision: v0.17.0
  url: https://github.com/golioth/golioth-firmware-sdk.git
  submodules: true

and clone all repositories by running west update.

Thanks Marko for the feedback.
Yes, using the west project update method, I was able to install the SDK.

Cheers

1 Like