<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Invalid values on GPS unit]]></title><description><![CDATA[<p dir="auto">Hello, I am looking for some help here.</p>
<p dir="auto">I am using M5Stack Core 2 AWS - my problem is basicly no data recived form GPS unit conected on port C (13,14). For now i get only invalid values on port monitor and also by displaying on stack screen.  I tried to use Arduino for programming this unit. Really i have no idea how to solve this problem - tryed many times.</p>
<p dir="auto">Thanks for any help in this topic</p>
]]></description><link>https://community.m5stack.com/topic/3759/invalid-values-on-gps-unit</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 00:09:34 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3759.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Nov 2021 19:43:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Invalid values on GPS unit on Sat, 20 Nov 2021 14:29:54 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/oktawianito" aria-label="Profile: oktawianito">@<bdi>oktawianito</bdi></a></p>
<p dir="auto">good to hear. Thank you for reporting back. I appreciate it.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/15533</link><guid isPermaLink="true">https://community.m5stack.com/post/15533</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 20 Nov 2021 14:29:54 GMT</pubDate></item><item><title><![CDATA[Reply to Invalid values on GPS unit on Sat, 20 Nov 2021 12:23:19 GMT]]></title><description><![CDATA[<p dir="auto">M5Stack Core2 and GPS Module (my solution with UIFlow)</p>
<p dir="auto">I'm using a stackable GPS unit with external antenna.  Under UIFLow I've configured it to TX=14 and RX=13 and its working.</p>
<p dir="auto">In order to get decimal return values for location data, which I  need to transport into a MQTT publisher protocol, I wrote a conversion function in a “blockly” execute statement   interpreted as MicroPython. Yes, yet missing some support for Altitude. Ideas for improvement of the logic are welcome.</p>
<p dir="auto">Hope this is helpful (see the code below):</p>
<pre><code># GPS location conversion 
# convert into decimal
def conversion(inp):
    minus = False
    parts = inp.split('.')
    ddmm = parts[0]
    ss = parts[1]
    last_char = ss[-1]
    if (last_char == 'W') or (last_char == 'S'):
        minus = True
        # remove last character 
        ss = ss[:-1]
    last_two_char = ddmm[-2:]
    mm = last_two_char
    if len(ddmm) == 3:
        dd = ddmm[:1]
    if len(ddmm) == 4:
        dd = ddmm[:2]        
    if len(ddmm) == 5:
        dd = ddmm[:3]
    if minus:  
        dd = int(dd) * -1  
    minf = float(mm + '.' + ss)
    secsmm = minf / 60
    # case South, or West invert 
    if minus: 
        deci = float(dd - secsmm)
    else:
        deci = float(dd + secsmm)
    
    return deci
</code></pre>
]]></description><link>https://community.m5stack.com/post/15529</link><guid isPermaLink="true">https://community.m5stack.com/post/15529</guid><dc:creator><![CDATA[falbriard]]></dc:creator><pubDate>Sat, 20 Nov 2021 12:23:19 GMT</pubDate></item><item><title><![CDATA[Reply to Invalid values on GPS unit on Sat, 20 Nov 2021 12:13:07 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a></p>
<p dir="auto">Thanks for your tips. After using them everything works correctly ;)</p>
]]></description><link>https://community.m5stack.com/post/15528</link><guid isPermaLink="true">https://community.m5stack.com/post/15528</guid><dc:creator><![CDATA[oktawianito]]></dc:creator><pubDate>Sat, 20 Nov 2021 12:13:07 GMT</pubDate></item><item><title><![CDATA[Reply to Invalid values on GPS unit on Fri, 19 Nov 2021 20:53:12 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/oktawianito" aria-label="Profile: oktawianito">@<bdi>oktawianito</bdi></a></p>
<p dir="auto">I think the M5Core2 <a href="https://github.com/m5stack/M5Core2/blob/master/examples/Unit/GPS_AT6558/FullExample/FullExample.ino" target="_blank" rel="noopener noreferrer nofollow ugc">example</a> for the GPS unit has not been fully adapted from M5Stack to M5Core2. It seems that by default HardwareSerial for ESP32 uses GPIO16 and GPIO17 but as you already mentioned on M5Core2 GPIO13 and GPIO14 should be used.<br />
Try changing this line:</p>
<pre><code>ss.begin(GPSBaud);
</code></pre>
<p dir="auto">to</p>
<pre><code>ss.begin(GPSBaud, SERIAL_8N1, 13, 14);
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/15525</link><guid isPermaLink="true">https://community.m5stack.com/post/15525</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 19 Nov 2021 20:53:12 GMT</pubDate></item></channel></rss>