From 8298e4e0042cedd69e6d7354c4fb9a4a3371108b Mon Sep 17 00:00:00 2001 From: Adam Patridge Date: Sat, 24 Feb 2024 15:04:59 -0700 Subject: [PATCH 1/3] Fix variable name mismatch --- docs/Meadow/Meadow.OS/Cellular/index.md | 37 +++++++++++++------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/docs/Meadow/Meadow.OS/Cellular/index.md b/docs/Meadow/Meadow.OS/Cellular/index.md index 05cafa264..f452b5e3a 100644 --- a/docs/Meadow/Meadow.OS/Cellular/index.md +++ b/docs/Meadow/Meadow.OS/Cellular/index.md @@ -222,7 +222,7 @@ It's important to note that the `Csq` property returns a cached value obtained f ```csharp var cell = Device.NetworkAdapters.Primary(); -double csq = cellAdapter.GetSignalQuality(); +double csq = cell.GetSignalQuality(); Console.WriteLine("Cell Signal Quality: " + csq); ``` @@ -237,28 +237,29 @@ using Meadow.Foundation.Sensors.Location.Gnss; using Meadow.Peripherals.Sensors.Location.Gnss; using Meadow.Foundation.Sensors.Gnss; ... - void ProcessGnssPosition(object sender, IGnssResult location) - { - Resolver.Log.Info("*********************************************"); - Resolver.Log.Info(location.ToString()); - Resolver.Log.Info("*********************************************"); - } +void ProcessGnssPosition(object sender, IGnssResult location) +{ + Resolver.Log.Info("*********************************************"); + Resolver.Log.Info(location.ToString()); + Resolver.Log.Info("*********************************************"); +} ... - IGnssResult[] resultTypes = new IGnssResult[] - { - new GnssPositionInfo(), - new ActiveSatellites(), - new CourseOverGround(), - new SatellitesInView(new Satellite[0]) - }; +IGnssResult[] resultTypes = new IGnssResult[] +{ + new GnssPositionInfo(), + new ActiveSatellites(), + new CourseOverGround(), + new SatellitesInView(new Satellite[0]) +}; - ICellNetworkAdapter cell = networkAdapter as ICellNetworkAdapter; +ICellNetworkAdapter cell = networkAdapter as ICellNetworkAdapter; - var bg95M3 = new Bg95M3(cellAdapter, TimeSpan.FromMinutes(30), resultTypes); +var bg95M3 = new Bg95M3(cellAdapter, TimeSpan.FromMinutes(30), resultTypes); - bg95M3.GnssDataReceived += ProcessGnssPosition; +bg95M3.GnssDataReceived += ProcessGnssPosition; - bg95M3.StartUpdating(); +bg95M3.StartUpdating(); +... ``` For a more comprehensive example, you can refer to the [BG95-M3 GNSS sample](https://github.com/WildernessLabs/Meadow.Foundation/blob/develop/Source/Meadow.Foundation.Peripherals/Sensors.Gnss.Bg95M3/Samples/Bg95M3_Sample/MeadowApp.cs) available in the Meadow.Foundation repository. From a7dc47d337b1f54d58e073d2aea6dcd5d5b8074e Mon Sep 17 00:00:00 2001 From: Jorge Ramirez Date: Tue, 27 Feb 2024 15:29:21 -0800 Subject: [PATCH 2/3] Add 1.9.0 Release notes --- docs/Meadow/Release_Notes/v1/index.md | 55 +++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/docs/Meadow/Release_Notes/v1/index.md b/docs/Meadow/Release_Notes/v1/index.md index 8c1f63872..255eb6029 100644 --- a/docs/Meadow/Release_Notes/v1/index.md +++ b/docs/Meadow/Release_Notes/v1/index.md @@ -5,6 +5,61 @@ title: Meadow v1.* Releases subtitle: Release Notes --- +## v1.9.0 + +Another big update for Meadow! We’ve added SPI DMA which reduces CPU load when communicating with SPI devices and can lead to a 30% increase in drawing performance with SPI displays! + +We’re also shipping a big stability improvement by improving how the OS manages and switches between threads. + +Note - starting with v1.9.0.0 and CLI v2.0, you’ll need to create a free Meadow account to download new versions of the Meadow OS. + +### Meadow.OS + +* .NET threads are now using the round-robin OS scheduler. This should better match traditional .NET execution behavior and resolve issues of apps “livelocking” because of a tight loop preventing progress under the First-In, First-Out (FIFO) scheduler. +* SPI DMA has been enabled for all SPI data transfers. Use of it should be transparent, providing approximately 3x throughput speed for SPI peripheral devices. +* Changes to the threading on the coprocessor were made, resulting in greater stability for network requests +* Several low-level fixes & improvements + +### Meadow.Core + +* Support has been added for F7 multi-platform targeting. One app assembly can now contain IApp instances for multiple F7 hardware targets. (add link to docs) +* `IPixelDisplayProvider` interface added for Meadow.Desktop platforms +* SensorService now auto-registers any `ISleepAwarePeripherals` it knows about +* Improvements to Core interrupt handling in F7 platforms +* Interrupts events changed from containing a DateTime to a system tick (for performance reasons) +* OtA Downloads now report progress via an event +* Added “reason” to network disconnection events on F7 platforms +* Added preliminary support for Raspberry Pi 5 + +### Meadow.Foundation + +* FT232H/FTDI Driver refactored to support multiple devices at one time and to use the same driver (FT2xxx) for all modes +* Improved partial update logic in MicroGraphics and TftSpi display drivers +* BME688 gas resistance fix +* SCD40 events fix + +#### Breaking changes + +* Renamed `IGraphicsDisplay` to `IPixelDisplay` and moved to `Meadow.Contracts` and changed namespace to `Meadow.Displays ` +* Moved `IPixelBuffer` to `Meadow.Contracts` and namespace changed to `Meadow.Displays` + +### Meadow.Cloud + +* Bug fix for Azure Event Grid data serialization +* For over-the-air updates, we exposed a new event, `OnUpdateProgress` that is triggered periodically showing the update’s download progress expressed in bytes. + +### Meadow.Desktop + +* We have added support for `Meadow.Desktop` as a target. This allows a single app to target Windows, Mac or desktop Linux with auto-platform detection and simulated `IPixelDisplay`. + +### IoT Accelerators + +* Our GNSS Tracker got a big update with its v2 hardware iteration (which is packed with more sensors than its predecessor), including a revamped demo application displaying accurate atmospheric sensor data along with battery and solar input voltage. + +### Meadow.Tooling + +* CLI v2.0 has shipped! This is a massive rework of the command line tool used to communicate with Meadow devices and manage firmware. Note, with this new release, you will need to create a free Meadow account and sign in before downloading firmware updates. + ## v1.8.0 ### Meadow.OS & Meadow.Core From 2c89e8316afde893c6dc23e67a777d227a1ed01a Mon Sep 17 00:00:00 2001 From: Jorge Ramirez Date: Tue, 27 Feb 2024 15:35:04 -0800 Subject: [PATCH 3/3] Add links --- docs/Meadow/Release_Notes/v1/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Meadow/Release_Notes/v1/index.md b/docs/Meadow/Release_Notes/v1/index.md index 255eb6029..2f77aa946 100644 --- a/docs/Meadow/Release_Notes/v1/index.md +++ b/docs/Meadow/Release_Notes/v1/index.md @@ -11,7 +11,7 @@ Another big update for Meadow! We’ve added SPI DMA which reduces CPU load when We’re also shipping a big stability improvement by improving how the OS manages and switches between threads. -Note - starting with v1.9.0.0 and CLI v2.0, you’ll need to create a free Meadow account to download new versions of the Meadow OS. +Note - starting with v1.9.0.0 and CLI v2.0, you’ll need to [create a free Wilderness Labs account](https://identity.wildernesslabs.co/signin/register) to download new versions of the Meadow OS. ### Meadow.OS @@ -58,7 +58,7 @@ Note - starting with v1.9.0.0 and CLI v2.0, you’ll need to create a free Meado ### Meadow.Tooling -* CLI v2.0 has shipped! This is a massive rework of the command line tool used to communicate with Meadow devices and manage firmware. Note, with this new release, you will need to create a free Meadow account and sign in before downloading firmware updates. +* [CLI v2.0](https://developer.wildernesslabs.co/Meadow/Meadow_Tools/Meadow_CLI/) has shipped! This is a massive rework of the command line tool used to communicate with Meadow devices and manage firmware. Note, with this new release, you will need to [create a free Wilderness Labs account](https://identity.wildernesslabs.co/signin/register) and sign in before downloading firmware updates. ## v1.8.0