GithubHelp home page GithubHelp logo

Comments (10)

carlosgonz0 avatar carlosgonz0 commented on August 20, 2024 1

GNSS worked again on firmodem v0.6.2 and went a bug fixed on gpsd too on Sailfish OS.
I closing this.

from pinephone_modem_sdk.

Biktorgj avatar Biktorgj commented on August 20, 2024

Any logs you can get?
There have been no changes with regards to GPS in a long time, and as far as I can see it reports location data through the port the same way it has always done (you can enable GPS with AT+QGPS=1 and then monitor the output of /dev/ttyUSB1 for NMEA messages)

from pinephone_modem_sdk.

nesnera avatar nesnera commented on August 20, 2024

Instead of version 0.5.0 I tried v0.5.1, but I had to go back to v0.4.2 immediately. In the situation (v0.4.2) where:

  • GNOME Maps location works

  • # mmcli -m any --location-get [1]
    --------------------------
      GPS  |               nmea: $GPGSA,A,3,01,08,10,14,21,27,,,,,,,1.2,0.9,0.8,1*26
           |                     $GNGNS,005524.00,4926.533828,N,01732.431995,E,AAN,11,0.9,295.0,43.0,,,V*60
           |                     $GPRMC,005524.00,A,4926.533828,N,01732.431995,E,0.0,73.2,040122,2.1,E,A,V*73
           |                     $GNGSA,A,3,,,,,,,,,,,,,1.2,0.9,0.8,3*31
           |                     $GPGSV,3,1,10,01,28,284,23,08,68,213,25,10,42,056,22,14,12,322,21,1*60
           |                     $GPGSV,3,2,10,21,58,291,23,24,01,037,16,27,43,163,22,03,01,229,,1*68
           |                     $GPGSV,3,3,10,23,09,053,,32,39,118,,1*68
           |                     $GLGSV,2,1,07,74,10,279,16,82,22,115,16,84,40,314,17,67,36,037,23,1*74
           |                     $GLGSV,2,2,07,68,69,127,20,69,27,187,,83,66,085,,1*4A
           |                     $GPVTG,73.2,T,71.1,M,0.0,N,0.0,K,A*22
           |                     $GPGGA,005524.00,4926.533828,N,01732.431995,E,1,06,0.9,295.0,M,43.0,M,,*66
    
  • $ echo at+qgpsgnmea=\"gsv\" | sudo atinout - /dev/EG25.AT - [2]
    +QGPSGNMEA: $GPGSV,3,1,10,01,29,284,27,08,67,212,25,10,41,056,21,14,12,322,25,1*6F
    +QGPSGNMEA: $GPGSV,3,2,10,21,58,292,27,27,42,163,22,03,02,229,,23,08,053,,1*66
    +QGPSGNMEA: $GPGSV,3,3,10,24,01,036,,32,40,116,,1*64
    
  • $ echo at+qgpsgnmea=\"gga\" | sudo atinout - /dev/EG25.AT -
    +QGPSGNMEA: $GPGGA,005644.00,4926.533926,N,01732.432013,E,1,06,0.9,295.2,M,43.0,M,,*6A
    

$ echo at+qgpsloc | sudo atinout - /dev/EG25.AT - reports +CME ERROR: 502, which, according to this description, it shouldn't. @carlosgonz0, how does it behave for you?

[1] Mobian wiki - location
[2] Quectel EG25-G GNSS Configuration and location tracking

from pinephone_modem_sdk.

Biktorgj avatar Biktorgj commented on August 20, 2024

@nesnera
I enabled location via mmcli but it seems to be working for me. Before running --location-get I had to run mmcli -m any --location-enable-gps-nmea , but after that I get NMEA data correctly. There should be no need to explicitly set the modes via QGPSNMEA, it's enabling them by default.

Just as a test, disable runtime suspend of the usb port:

  • Edit /usr/lib/udev/rules.d/80-modem-eg25.rules
  • On the line where "power" is set to "auto", replace "auto" with "on", then reboot. Is there any change in stability?

Unrelated, but while testing this I've seen the modem tends to crash if you suspend it for long enough with GPS on, so added that to my todo list

from pinephone_modem_sdk.

nesnera avatar nesnera commented on August 20, 2024

The # mmcli -m any --location-get works for me (as seen above) and I use them exactly the same way = I enable NMEA by # mmcli -m any --location-enable-gps-nmea first.
Surprisingly I can't say the same for # echo at+qgpsloc | sudo atinout - /dev/EG25.AT - You?

from pinephone_modem_sdk.

Biktorgj avatar Biktorgj commented on August 20, 2024

AT+QGPSLOC only works if you previously enabled GPS via AT+QGPS=1 and it has a fix on the satellites, do you see if it is reporting correct data in ttyUSB1?

Edit:

QGPSLOC doesn't seem to work for me in stock either (firmware 002):
AT+QGPS=1
OK
AT+QGPSLOC
+CME ERROR: 502

So I get the same results (that was with a fix).
Note we shouldn't be needing to do any of this as ModemManager should provide the location data and enable or disable GPS functionality as requested by the system, but I have no idea on how well does that work

from pinephone_modem_sdk.

nesnera avatar nesnera commented on August 20, 2024

I'm glad we have the same results, even if they don't match expectations. As far as practice goes, the browser positioning works. I have several routes recorded on PP using osmin as well.

from pinephone_modem_sdk.

carlosgonz0 avatar carlosgonz0 commented on August 20, 2024

OK i already testing firmodem 0.5.5 and it has same issues no more gnss detecting satellites on Sailfish OS. what happening?
on firmodem 0.4.2 was detecting satellites pretty fast, i not tested again going back for 0.4.2 to checking.

from pinephone_modem_sdk.

nesnera avatar nesnera commented on August 20, 2024

@carlosgonz0: I have also updated to v0.5.5 and I have no problem with satellite signal reception. Geolocation in the browser, GNOME Maps, osmin and the mmcli -m any --location-get command works as described above. | PP/Manjaro/Phosh-dev

from pinephone_modem_sdk.

carlosgonz0 avatar carlosgonz0 commented on August 20, 2024

Thank you @nesnera for your troubleshooting on this issue.
I am sorry @Biktorgj because i do not give you the log that you wanted i am too busy. Thank you @Biktorgj

from pinephone_modem_sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.