[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



  • 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



  • @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



  • @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.



  • @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



  • I bought a GPS unit recently, and have the same problem.
    I found a simple solution. No need to cut any wires; that's for the Module, not the Unit.

    • Unplug the GPS unit from Port C.
    • Stat the M5Stack FIRE.
    • Plug the GPS Unit back into Port C.

    Without unplugging the GPS unit I experience 100% failures.
    With unplugging before power-up: 100% success.

    The unit is a beauty when working! Acquires 10 satellites in seconds, indoors!
    The power-up sequence is definitely a drawback, but not a deal breaker.
    I wonder if it could be solved with a capacitor or some other simple augmentation?



  • @vkichline Could you share the code?



  • @liemph; I'd be happy to share my code, but all the GPS-related parts can be found in the product examples here:
    https://github.com/m5stack/M5Stack/tree/master/examples/Unit/GPS_AT6558
    The example is pretty complete, but unreadable.

    The project I'm working on is more display oriented, and most of the code is a nascent control class I'm playing around with for solving general display problems. You're welcome to take what you like from it:
    https://github.com/vkichline/GPSTest

    I plan to pursue the display controls in another project, so I won't be updating this one.



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

    @liemph; I'd be happy to share my code, but all the GPS-related parts can be found in the product examples here:
    https://github.com/m5stack/M5Stack/tree/master/examples/Unit/GPS_AT6558
    The example is pretty complete, but unreadable.

    The project I'm working on is more display oriented, and most of the code is a nascent control class I'm playing around with for solving general display problems. You're welcome to take what you like from it:
    https://github.com/vkichline/GPSTest

    I plan to pursue the display controls in another project, so I won't be updating this one.

    Thanks a lot.



  • Hi
    work with M5 stack Fire,
    the problem is the sensibility, this interface without external antenna is frequent to have disconnection or louse signal inside my home.
    corresponding of the price.