<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: High cpu using NmeaLocationDataSource in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/high-cpu-using-nmealocationdatasource/m-p/1179548#M11048</link>
    <description>&lt;P&gt;I used the pattern in the api reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/api-reference/api/uwp/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Location.NmeaLocationDataSource.FromStreamCreator.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/uwp/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Location.NmeaLocationDataSource.FromStreamCreator.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; port = &lt;SPAN class=""&gt;new&lt;/SPAN&gt; System.IO.Ports.SerialPort(&lt;SPAN class=""&gt;"COM7"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;9600&lt;/SPAN&gt;);
NmeaLocationDataSource serialPortDatasource = NmeaLocationDataSource.FromStreamCreator(
    onStart: &lt;SPAN class=""&gt;(&lt;SPAN class=""&gt;ds&lt;/SPAN&gt;) =&amp;gt;&lt;/SPAN&gt;
    {
        port.Open();
        &lt;SPAN class=""&gt;return&lt;/SPAN&gt; Task.FromResult(port.BaseStream);
    },
    &lt;SPAN class=""&gt;onStop&lt;/SPAN&gt;: &lt;SPAN class=""&gt;(&lt;SPAN class=""&gt;ds&lt;/SPAN&gt;) =&amp;gt;&lt;/SPAN&gt;
    {
        port.Close();
        &lt;SPAN class=""&gt;return&lt;/SPAN&gt; Task.CompletedTask;
    }
);&lt;/PRE&gt;</description>
    <pubDate>Thu, 02 Jun 2022 17:42:19 GMT</pubDate>
    <dc:creator>Moer</dc:creator>
    <dc:date>2022-06-02T17:42:19Z</dc:date>
    <item>
      <title>High cpu using NmeaLocationDataSource</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/high-cpu-using-nmealocationdatasource/m-p/1179343#M11045</link>
      <description>&lt;P&gt;UWP, Esri.ArcGISRuntime 100.14.0&lt;/P&gt;&lt;P&gt;Having problem with high cpu usage when using NmeaLocationDataSource with FromStreamCreator on UWP. Can't use FromSerialPort because it's a virtual com port and UWP won't allow that.&lt;/P&gt;&lt;P&gt;When getting gps data from com port it's using 20-50% cpu.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Ping&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1052"&gt;@dotMorten_esri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 07:03:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/high-cpu-using-nmealocationdatasource/m-p/1179343#M11045</guid>
      <dc:creator>Moer</dc:creator>
      <dc:date>2022-06-02T07:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: High cpu using NmeaLocationDataSource</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/high-cpu-using-nmealocationdatasource/m-p/1179520#M11047</link>
      <description>&lt;P&gt;How did you implement the stream? I've seen issues where the read on the stream isn't blocking and could cause this&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 16:23:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/high-cpu-using-nmealocationdatasource/m-p/1179520#M11047</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2022-06-02T16:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: High cpu using NmeaLocationDataSource</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/high-cpu-using-nmealocationdatasource/m-p/1179548#M11048</link>
      <description>&lt;P&gt;I used the pattern in the api reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/api-reference/api/uwp/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Location.NmeaLocationDataSource.FromStreamCreator.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/uwp/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Location.NmeaLocationDataSource.FromStreamCreator.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; port = &lt;SPAN class=""&gt;new&lt;/SPAN&gt; System.IO.Ports.SerialPort(&lt;SPAN class=""&gt;"COM7"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;9600&lt;/SPAN&gt;);
NmeaLocationDataSource serialPortDatasource = NmeaLocationDataSource.FromStreamCreator(
    onStart: &lt;SPAN class=""&gt;(&lt;SPAN class=""&gt;ds&lt;/SPAN&gt;) =&amp;gt;&lt;/SPAN&gt;
    {
        port.Open();
        &lt;SPAN class=""&gt;return&lt;/SPAN&gt; Task.FromResult(port.BaseStream);
    },
    &lt;SPAN class=""&gt;onStop&lt;/SPAN&gt;: &lt;SPAN class=""&gt;(&lt;SPAN class=""&gt;ds&lt;/SPAN&gt;) =&amp;gt;&lt;/SPAN&gt;
    {
        port.Close();
        &lt;SPAN class=""&gt;return&lt;/SPAN&gt; Task.CompletedTask;
    }
);&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jun 2022 17:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/high-cpu-using-nmealocationdatasource/m-p/1179548#M11048</guid>
      <dc:creator>Moer</dc:creator>
      <dc:date>2022-06-02T17:42:19Z</dc:date>
    </item>
  </channel>
</rss>

