<?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: Bluetooth GPS PositionSource in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/bluetooth-gps-positionsource/m-p/702341#M3572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to keep replying to my own post. The initial run showed two COM ports (4 and 5) and after that it continues to choose COM4, which doesn't work because it says the device is already open. When I attempt to read the COM data using a terminal emulator (Tera Term), I get nothing from COM4, but a NMEA stream from COM5. So it may be that all I need to know is how to&amp;nbsp;tell the plugin&amp;nbsp;to use COM5. How do I specify a COM port with the&amp;nbsp;SerialPortNmea plugin?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2019 17:20:15 GMT</pubDate>
    <dc:creator>ChristopherSwingley</dc:creator>
    <dc:date>2019-02-14T17:20:15Z</dc:date>
    <item>
      <title>Bluetooth GPS PositionSource</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bluetooth-gps-positionsource/m-p/702339#M3570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get GPS position information on a Windows 10 laptop using a Bluetooth GPS. I'm using the following QML:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;MapView &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; mapView
    anchors&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fill&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; parent
    &lt;SPAN class="comment token"&gt;// set focus to enable keyboard navigation&lt;/SPAN&gt;
    focus&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;

    Map &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        BasemapTopographic &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

    locationDisplay &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        positionSource&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; PositionSource &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; positionSource
            name&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SerialPortNmea"&lt;/SPAN&gt;
            preferredPositioningMethods&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; PositionSource&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SatellitePositioningMethods

            updateInterval&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;// 1 second&lt;/SPAN&gt;
            active&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;

            onPositionChanged&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; coord &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; positionSource&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;position&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;coordinate&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Coordinate:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; coord&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;longitude&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; coord&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;latitude&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;// compass: Compass {&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;//     id: compass&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;// }&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After pairing the GPS with the laptop, when I run the program in Qt Creator I see the following Application Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;class QGeoPositionInfoSource *__cdecl PositionInfoSourceFactory::positionInfoSource(class QObject *) QDeclarativePositionSource(0x17768f05b20)&lt;BR /&gt;portName "COM4"&lt;BR /&gt;description "Standard Serial over Bluetooth link"&lt;BR /&gt;manufacturer "Microsoft"&lt;BR /&gt;systemLocation "\\\\.\\COM4"&lt;BR /&gt;portName "COM5"&lt;BR /&gt;description "Standard Serial over Bluetooth link"&lt;BR /&gt;manufacturer "Microsoft"&lt;BR /&gt;systemLocation "\\\\.\\COM5"&lt;BR /&gt;QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl("&lt;A href="https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json" target="_blank"&gt;https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json&lt;/A&gt;")&lt;BR /&gt;void __cdecl SerialPortNmeaPositionInfoSource::startUpdates(void) false "" "The system cannot find the path specified."&lt;BR /&gt;int __cdecl main(int,char *[]) QQuickApplicationWindow_QML_99(0x177687fcfc0)&lt;BR /&gt;void __cdecl SerialPortNmeaPositionInfoSource::startUpdates(void) false "" "The system cannot find the path specified."&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems as though the COM ports are showing up (when the GPS wasn't paired those messages weren't appearing in the log), but I'm not sure what path it cannot find, nor how to give it a path so it can use the NMEA stream from the GPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me set up my app to get locations from this device?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Qt 5.12.1, Visual Studio 2017, ArcGIS Runtime for Windows (x86_64) Version 100.4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bluetooth-gps-positionsource/m-p/702339#M3570</guid>
      <dc:creator>ChristopherSwingley</dc:creator>
      <dc:date>2021-12-12T05:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Bluetooth GPS PositionSource</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bluetooth-gps-positionsource/m-p/702340#M3571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a follow-up, now whenever I run the application from within Qt Creator I get a different error:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;void __cdecl SerialPortNmeaPositionInfoSource::startUpdates(void) "COM4" 4800&lt;/P&gt;&lt;P&gt;int __cdecl main(int,char *[]) QQuickApplicationWindow_WML_99(0x20d78a6ca80)&lt;/P&gt;&lt;P&gt;void __cdecl SerialPortNmeaPositionInfoSource::startUpdates(void) false "COM4" "Device is already open"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This message persists even after disconnecting the Bluetooth GPS and restarting Qt Creator and the app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 16:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bluetooth-gps-positionsource/m-p/702340#M3571</guid>
      <dc:creator>ChristopherSwingley</dc:creator>
      <dc:date>2019-02-14T16:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bluetooth GPS PositionSource</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bluetooth-gps-positionsource/m-p/702341#M3572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to keep replying to my own post. The initial run showed two COM ports (4 and 5) and after that it continues to choose COM4, which doesn't work because it says the device is already open. When I attempt to read the COM data using a terminal emulator (Tera Term), I get nothing from COM4, but a NMEA stream from COM5. So it may be that all I need to know is how to&amp;nbsp;tell the plugin&amp;nbsp;to use COM5. How do I specify a COM port with the&amp;nbsp;SerialPortNmea plugin?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 17:20:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bluetooth-gps-positionsource/m-p/702341#M3572</guid>
      <dc:creator>ChristopherSwingley</dc:creator>
      <dc:date>2019-02-14T17:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bluetooth GPS PositionSource</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bluetooth-gps-positionsource/m-p/702342#M3573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For future reference in case no one replies on how to set a COM port via software, one "fix" is to use the Windows 10 device manager to reconfigure the COM ports on your computer such that the proper device and port happens to be at COM4 (or whatever port Qt/ArcGIS is trying to talk to). I don't know how stable this is, but I managed to get both a Bluetooth GPS and a USB GPS device working by doing this and it has persisted through at least one system reboot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 23:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bluetooth-gps-positionsource/m-p/702342#M3573</guid>
      <dc:creator>ChristopherSwingley</dc:creator>
      <dc:date>2019-02-14T23:36:12Z</dc:date>
    </item>
  </channel>
</rss>

