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.
No comments yet! Start the discussion at forum.golioth.io