dreemurrs-embedded / Pine64-Arch

:penguin: Arch Linux ARM for your PinePhone/Pro and PineTab/2
684 stars 105 forks source link

GPS not works #105

Open juanantoniomosquera opened 3 years ago

juanantoniomosquera commented 3 years ago

Hello,

I try GPS and... not works.

I try: image

And: image

But... with data mobile and gps "enabled" not geolocalization.

Thanks.

Lin-Admin commented 3 years ago

With latest system updates 5.10.6-2-danctnix, gps does not deliver any location information: `mmcli -m any --location-get

3GPP | operator code: 228 | operator name: 3 | location area code: FFFE | tracking area code: BB84 | cell id: 002BD002 `

juanantoniomosquera commented 3 years ago

with last update... location-get works... but.. without wifi enable... not works gps.

Lin-Admin commented 3 years ago

@juanantoniomosquera: With my phone it makes no difference whether wifi is on or off: GPS looks dead...

abysso2 commented 3 years ago

With latest system updates 5.10.6-2-danctnix, gps does not deliver any location information: `mmcli -m any --location-get

3GPP | operator code: 228 | operator name: 3 | location area code: FFFE | tracking area code: BB84 | cell id: 002BD002 `

Hi there, what is the expected ouptput to prove the location services?

I get the following output:

root@pinephone:~# mmcli -m any --location-status

Location | capabilities: 3gpp-lac-ci, gps-raw, gps-nmea, agps-msa, agps-msb | enabled: 3gpp-lac-ci | signals: no

root@pinephone:~# mmcli -m any --location-get

3GPP | operator code: 262 | operator name: 1 | location area code: FFFE | tracking area code: 35E9 | cell id: 01959104

Location | capabilities: 3gpp-lac-ci, gps-raw, gps-nmea, agps-msa, agps-msb | enabled: 3gpp-lac-ci | signals: no

root@pinephone:~# mmcli -m any --location-set-enable-signal successfully setup location gathering

root@pinephone:~# mmcli -m any --location-status

Location | capabilities: 3gpp-lac-ci, gps-raw, gps-nmea, agps-msa, agps-msb | enabled: 3gpp-lac-ci | signals: yes

Turning on signals makes no difference:

root@pinephone:~# mmcli -m any --location-get

3GPP | operator code: 262 | operator name: 1 | location area code: FFFE | tracking area code: 35E9 | cell id: 01959104

Afterwards:

root@pinephone:~# sudo mmcli -m any --location-enable-gps-nmea successfully setup location gathering

root@pinephone:~# mmcli -m any --location-status

Location | capabilities: 3gpp-lac-ci, gps-raw, gps-nmea, agps-msa, agps-msb | enabled: 3gpp-lac-ci, gps-nmea | signals: yes

GPS | refresh rate: 30 seconds

root@pinephone:~# mmcli -m any --location-get

3GPP | operator code: 262 | operator name: 1 | location area code: FFFE | tracking area code: 35E9 | cell id: 01959104

GPS | nmea: $GPGSA,A,1,,,,,,,,,,,,,,,,32 | $GPRMC,,V,,,,,,,,,,N53 | $GPVTG,,T,,M,,N,,K,N2C | $GPGGA,,,,,,0,,,,,,,,66

But no success, the navigation map and gnome-weather can not find the gps service :-(

juanantoniomosquera commented 3 years ago

image

But not works, gnome maps says "Enable ubication" but i dont know.

Lin-Admin commented 3 years ago

`GPS | nmea: $GPGSA,A,1,,,,,,,,,,,,,,,,32

  | $GPRMC,,V,,,,,,,,,,N53

  | $GPVTG,,T,,M,,N,,K,N*2C

  | $GPGGA,,,,,,0,,,,,,,,*66`

Above output proves that the GPS does not detect any satellites. For a location fix you need at least 4, but below 6 the accuracy will not be good.

juanantoniomosquera commented 3 years ago

NOW

image

But... gnome maps not works.

jackghg commented 3 years ago

I think that the phone antenna is real bad!

abysso2 commented 3 years ago

@Danct12 : Any idea how to solve this? Smartphone without GPS is not thaaaaat good as a daily driver ...

jackghg commented 3 years ago

A possible reason could be that the antenna is bent around the edge! But idk how to move the antenna (that is a sticker) to test... without breaking everything.

abysso2 commented 3 years ago

Switched to latest mobian and tested - gps works there ...

jackghg commented 3 years ago

really ? how long to get the position (without internet) ?

abysso2 commented 3 years ago

Less than 30 Seconds to get the signal, but the (in the beginnig) BAD accuracy increases within 5 minutes ...

jsarkari01 commented 2 years ago

I can get location to work in GNOME maps app however that is a full desktop app and it runs off the page in portrait so better in landscape. However the location button in notifications is always off ie you cannot toggle on or off their.

hamblingreen1 commented 1 year ago

location is functional via Mepo maps on sxmo.

AgentSmith0 commented 9 months ago

Somehow, it is only possible to get the GPS position (real precise position, not IP based or through GSM) when being connected to the internet. @Danct12 Do you have any idea how to get GPS work properly on PPP?

AgentSmith0 commented 9 months ago

Nevermind, GPS works fine when manually enabling the modem and GPS via mmcli. Also geoclue needs to be manually started to get position data in Pure Maps.