[Solved] GPS Unit (AT6558)



  • Hi folks

    I have written a small test program for my GPS unit:

    from m5stack import *
    from m5ui import *
    from uiflow import *
    import unit
    
    setScreenColor(0x222222)
    gps0 = unit.get(unit.GPS, unit.PORTA)
    
    Time = M5TextBox(25, 25, "Time", lcd.FONT_Default,0xFFFFFF, rotate=0)
    Latitude = M5TextBox(25, 50, "Latitude", lcd.FONT_Default,0xFFFFFF, rotate=0)
    Longitude = M5TextBox(25, 75, "Longitude", lcd.FONT_Default,0xFFFFFF, rotate=0)
    Numbers = M5TextBox(25, 100, "Numbers", lcd.FONT_Default,0xFFFFFF, rotate=0)
    Quality = M5TextBox(25, 125, "Quality", lcd.FONT_Default,0xFFFFFF, rotate=0)
    TimeValue = M5TextBox(125, 25, "TimeValue", lcd.FONT_Default,0xFFFFFF, rotate=0)
    LatitudeValue = M5TextBox(125, 50, "LatitudeValue", lcd.FONT_Default,0xFFFFFF, rotate=0)
    LongitudeValue = M5TextBox(125, 75, "LongitudeValue", lcd.FONT_Default,0xFFFFFF, rotate=0)
    NumbersValue = M5TextBox(125, 100, "NumbersValue", lcd.FONT_Default,0xFFFFFF, rotate=0)
    QualityValue = M5TextBox(125, 125, "QualityValue", lcd.FONT_Default,0xFFFFFF, rotate=0)
    
    @timerSch.event('timer1')
    def ttimer1():
      # global params
      TimeValue.setText(str(gps0.gps_time))
      LatitudeValue.setText(str(gps0.latitude))
      LongitudeValue.setText(str(gps0.longitude))
      NumbersValue.setText(str(gps0.satellite_num))
      QualityValue.setText(str(gps0.pos_quality))
      pass
    
    timerSch.run('timer1', 100, 0x00)
    

    I have tried it on PortC and on PortA with my M5Stack Fire.

    Unfortunately I don't get any data from the unit. Waited 15 Minutes outside.
    Quality = "NO signal"

    @m5stack : Maybe the manufacture has a solution?

    Could it be, that my unit is damage?
    Or do I something wrong?

    Best regards
    Thomas



  • @m5stickfreakler I had the same problem, but up to now, there is no solution or support from the M5Stack people. I used M5Stack Fire and Port C (UART) with UiFlow. If the M5Stack Fire were the problem, I hope somebody can check with other M5Stack cores (Grey or Black). If Port C were the problem, then changing the port may help. But your posting indicated that even if we change the port from C to A, still the GPS Unit is not working then either or both the product or UiFlow is not a good product. I hope there is an improvement in the future.

    https://forum.m5stack.com/topic/1798/issue-with-port-c-uart-of-m5stack-fire-finger-unit-ok-but-gps-no-good/2


  • M5Stack

    I haven't personally used the gps unit, but as I am aware it communicates via UART which means it should be connected to port C



  • @lukasmaximus said in GPS Unit (AT6558):

    I haven't personally used the gps unit, but as I am aware it communicates via UART which means it should be connected to port C

    It does not work on port C.
    In UIFlow you can switch between Port A, B, and C for the GPS-Unit, so it suggest that all three ports are possible to use.
    But it does not work, neither with A, B nor C.
    I have here M5Stack stuff for over thousand dollar and many, many items are not working well.
    So, I hope there is a solution to get working the GPS unit(s).



  • @M5StickFreakler what firmware are you running on your devices?
    I am checking through items at the moment and finding problems due to the switch to the mainstream micropython branch.



  • @ajb2k3 said in GPS Unit (AT6558):

    @M5StickFreakler what firmware are you running on your devices?
    I am checking through items at the moment and finding problems due to the switch to the mainstream micropython branch.

    Hi ajb2k3

    I have checked it with UIFLOW 1.0.9.1 and following firmwares

    • 1.2.3 --> not supported
    • 1.3.2 --> NOK
    • 1.4.4 --> NOK
    • 1.4.5 --> NOK
    • 1.4.5.1 --> NOK
    • 1.5.0 --> NOK
    • 1.5.1 --> NOK

    Nothing is working. I have tested it on 3 different M5Stack FIRE with 3 different GPS units.
    Each on all ports - nada

    It is very frustrating and time consumpting and costly. I think M5Stack should increase its quality standards. Here in Switzerland, we are used to the fact that products work what they promise and what we pay for.

    Best wished
    Thomas



  • Hint: if you use the forum search feature you can find threads like this that say the M5Stack Fire PSRAM conflicts with port C because they use the same GPIO 16 and 17, which is also the same ports the GPS units and modules use (see the GPS docs). The work around involves cutting a trace and rewiring.



  • @world101 said in GPS Unit (AT6558):

    Hint: if you use the forum search feature you can find threads like this that say the M5Stack Fire PSRAM conflicts with port C because they use the same GPIO 16 and 17, which is also the same ports the GPS units and modules use (see the GPS docs). The work around involves cutting a trace and rewiring.

    Thank you
    But I would like to get a solution from M5Stack withouth cutting wires in all my devices.
    M5Stack sell this GPS units to use 'em on M5Stack devices and does not provide any information that we have to modify the hardware to get running it.
    Also I do not use the GPS Modul, but I use the GPS Unit!

    @m5stack could you provide customers with any official information about the behavior?

    Best regards
    Thomas


  • M5Stack

    @m5stickfreakler actually , change use PortA is a great solution. the GPS Unit Cold start takes time, (maybe 3~5min). the signal quality very important , so had better use it in the house outside.



  • @m5stack said in GPS Unit (AT6558):

    start takes time, (maybe 3~5min). the signal quality very important , so had better use it in the house outside.

    Thank you very much.
    Unfortunately it does not work with any port as I have described above.
    I just receive Quality "NO signal". It can stay for hours outside, nothing changes.
    Cold start time is 35 seconds as you can see in technical details of m5stack.

    BUT HERE IS THE BEST:
    I received today 4 new GPS Units and now it works.
    My "old" two GPS units are not working.
    That was it. A lot of waited time


  • M5Stack

    @m5stickfreakler if the "old" GPS has problem, pls contact our store.



  • @m5stack said in [Solved] GPS Unit (AT6558):

    @m5stickfreakler if the "old" GPS has problem, pls contact our store.

    I bought a GPS Unit from Aliexpress and it seems old since I faced the same problem with @M5StickFreakler. What store should I contact for this issue?
    Just now I contacted the M5Store from the Aliexpress homepage.


  • M5Stack

    @liemph We have not updated the version of the GPS Unit. It may be that the GPS Unit you are using has some quality problems. Please contact the store where you purchased the product