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 API, as well as how to gather WiFi scan results and cell tower information.
Golioth Location remains in private access; customers on the Teams or Enterprise tiers can request access using this form.
Firmware Update Improvements
We’ve made several changes to improve the robustness of the firmware update module against error conditions and corner cases. In the last release, we introduced resumable downloads into the OTA service. Now, the firmware update module leverages that capability to automatically resume interrupted downloads, instead of restarting them. This will improve performance and resource usage in degraded network conditions. We’ve also added automatic retries (with backoff) to firmware update downloads to further protect against issues during updates. We’ve improved how the SDK responds to new OTA releases that roll out while a device is already downloading a previous release. And finally, we’ve made the reporting of OTA states more robust, making the recently launched OTA event log even more useful in the Golioth Console.
Updated Platform Support
We’re committed to the cross-platform nature of our SDK. We’ve updated our support for ESP-IDF to v5.4 and ModusToolbox to v3.3.
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:
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 meanswest
is already initialized in/opt/nordic/ncs/v2.9.0
, andwest
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 existingwest
based project by placing the golioth entry first in the file: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