← Back to team overview

ubuntu-phone team mailing list archive

Re: possible regression con OTA-10 && GPS

 

El día Friday, April 08, 2016 a las 07:53:58AM +0200, Vic G escribió:

> Hi Matthias!
> 
> Please follow this steps provided by Marco Costales to (try)get location:
> 
> 1. Reboot 
> device<https://myapps.developer.ubuntu.com/site_media/appmedia/2016/03/z_1_1.png>
> 
> 2. Make sure GPS is enabled in:
> https://myapps.developer.ubuntu.com/site_media/appmedia/2016/03/x.png
> https://myapps.developer.ubuntu.com/site_media/appmedia/2016/03/y.png
> https://myapps.developer.ubuntu.com/site_media/appmedia/2016/03/z_1.png
> 
> Sensor status enabled here:
> https://myapps.developer.ubuntu.com/site_media/appmedia/2016/03/z_1_1.png
> ...

Hi Vic,

Thanks for your feedback; of course I set everythink like above,
following my own tutorial in:

https://gurucubano.gitbooks.io/bq-aquaris-e-4-5-ubuntu-phone/content/en//chapter5.html

:-)

with one small change: I set GPS only mode.

Today morning I went to debug it to nail it down in my BQ E4.5, see
below; and magic (or as always: when a problem sees that you are willing
to nail it down), the problem went away; SensoStatus and uNav work fine,
even in door at the moment.

I will check later the other Ubuntu device I own, you know :-)

Thanks

	matthias


phablet@ubuntu-phablet:~$ sudo dmesg | grep GPS | more
[sudo] password for phablet: 
[    9.281690] [GPS-MOD-INIT][I]do_gps_drv_init:start to do gps driver init 
[    9.281709] mtk_stp_GPS_chrdev driver(major 191) installed.
[    9.281722] [GPS-MOD-INIT][I]do_gps_drv_init:finish gps driver init, i_ret:0
[    9.778454] [WMT-PLAT][I]wmt_plat_dump_pin_conf:GPS_SYNC(not defined)
[    9.778462] [WMT-PLAT][I]wmt_plat_dump_pin_conf:GPS_LNA(GPIO-2147483601)
[   12.750654] [WMT-PLAT][I]wmt_plat_dump_pin_conf:GPS_SYNC(not defined)
[   12.750666] [WMT-PLAT][I]wmt_plat_dump_pin_conf:GPS_LNA(GPIO-2147483601)


phablet@ubuntu-phablet:~$ ubuntu-location-serviced-cli --bus system --get --property does_satellite_based_positioning
Location service does satellite based positioning.
Attempted to unregister path (path[0] = com path[1] = ubuntu) which isn't registered
phablet@ubuntu-phablet:~$ ubuntu-location-serviced-cli --bus system --get --property does_report_wifi_and_cell_ids
Location service does not report cell and wifi ids.
Attempted to unregister path (path[0] = com path[1] = ubuntu) which isn't registered
phablet@ubuntu-phablet:~$ ubuntu-location-serviced-cli --bus system --get --property visible_space_vehicles
Visible space vehicles:
Attempted to unregister path (path[0] = com path[1] = ubuntu) which isn't registered

now started SensorStatus

phablet@ubuntu-phablet:~$ sudo dmesg | grep GPS | more
...
[  487.390633] GPS_open: major 191 minor 0 (pid 6303)
[  487.411027] [WMT-CTRL][I]wmt_ctrl_gps_sync_set:ctrl GPS_SYNC(4)
[  487.411050] [WMT-FUNC][I]wmt_func_gps_pre_ctrl:ctrl GPS_SYNC_SET(0) ok 
[  487.411478] [WMT-FUNC][I]wmt_func_gps_pre_ctrl:set reg for GPS_SYNC function okay by chip ic_pin_ctrl
[  487.411513] [WMT-CTRL][I]wmt_ctrl_gps_lna_set:ctrl GPS_LNA(2)
[  487.413463] [GPS] GPS_open: WMT turn on GPS OK!
[  487.413550] GPS_ioctl(): cmd (7)
[  487.413568] [GPS] GPS_unlocked_ioctl: <6>GPS_ioctl(): low power flag (0)
[  487.424450] GPS_ioctl(): cmd (21505)
[  487.424468] [GPS] GPS_unlocked_ioctl: <6>GPS_ioctl(): unknown cmd (21505)
[  487.424704] GPS_ioctl(): cmd (21506)
[  487.424718] [GPS] GPS_unlocked_ioctl: <6>GPS_ioctl(): unknown cmd (21506)
[  487.424728] GPS_ioctl(): cmd (21515)
[  487.424736] [GPS] GPS_unlocked_ioctl: <6>GPS_ioctl(): unknown cmd (21515)
[  487.425603] GPS_ioctl(): cmd (21505)
[  487.425628] [GPS] GPS_unlocked_ioctl: <6>GPS_ioctl(): unknown cmd (21505)
[  487.425639] GPS_ioctl(): cmd (21506)

pid 6303 (from line [  487.390633]:

phablet@ubuntu-phablet:~$ ps ax | fgrep 6303
 6303 ?        Sl     0:00 libmnlp 13 16 0


got fix


phablet@ubuntu-phablet:~$ ubuntu-location-serviced-cli --bus system --get --property visible_space_vehicles
Visible space vehicles:
	(type: gps, prn: 1, snr: 0, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 5 deg, elevation: 158 deg)
	(type: gps, prn: 2, snr: 21, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 17 deg, elevation: 317 deg)
	(type: gps, prn: 3, snr: 0, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 43 deg, elevation: 103 deg)
	(type: gps, prn: 6, snr: 17, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 54 deg, elevation: 284 deg)
	(type: gps, prn: 7, snr: 0, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 16 deg, elevation: 180 deg)
	(type: gps, prn: 9, snr: 0, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 68 deg, elevation: 242 deg)
	(type: gps, prn: 16, snr: 0, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 2 deg, elevation: 91 deg)
	(type: gps, prn: 17, snr: 17, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 8 deg, elevation: 230 deg)
	(type: gps, prn: 19, snr: 16, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 19 deg, elevation: 254 deg)
	(type: gps, prn: 22, snr: 0, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 9 deg, elevation: 108 deg)
	(type: gps, prn: 23, snr: 14, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 77 deg, elevation: 61 deg)
	(type: gps, prn: 26, snr: 0, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 8 deg, elevation: 65 deg)
	(type: gps, prn: 31, snr: 0, has_almanac_data: 0, has_ephimeris_data: 0, used_in_fix: 0, azimuth: 4 deg, elevation: 29 deg)
Attempted to unregister path (path[0] = com path[1] = ubuntu) which isn't registered

and uNav works fine

-- 
Matthias Apitz, ✉ guru@xxxxxxxxxxx, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045


Follow ups

References