ubuntu-location-service  ..
An aggregating location service providing positioning and geocoding capabilities to applications.
/build/location-service-3.0.0+ubports1~16.04.1+0~20210627214011.2~1.gbp17a964/doc/debugging.md
Go to the documentation of this file.
1 # Debugging
2 
3 Location not working? Here's how to debug.
4 
5 ## Layers
6 
7 Test in OSMTouch (QML app using Qt API) before testing in webapps or
8 webbrowser app. Different results? File a bug where it doesn't
9 work. Same result of no location? Next step.
10 
11 ## Check that stack works with dummy provider
12 
13 Edit /etc/init/ubuntu-location-provider.override to start
14 location-serviced with just the dummy provider; this should
15 work. Doesn't work? File a bug against location-service. Works? Reset
16 config to defaults and try the next thing.
17 
18 ## location-service debug
19 
20 Collect some debug data by editing /etc/init/ubuntu-location-service.override
21 and changing the start sequence to add some env vars:
22 
23  export GLOG_v=200
24 
25 before the exec. Reboot, and start some app. You should have some log
26 files under /var/log/upstart/ubuntu-location-service.log to attach to a bug
27 report; e.g. a working log looks like this:
28 
29  WARNING: Logging before InitGoogleLogging() is written to STDERR
30  I1105 16:30:10.221474 1620 provider.cpp:568] StartPositionUpdates
31  I1105 16:30:10.224901 1620 provider.cpp:122] Successfully started position updates.
32  I1105 16:30:10.228739 1620 provider.cpp:596] StartVelocityUpdates
33  I1105 16:30:13.046851 1621 provider.cpp:83] Received location: Position(lat: Coordinate(12.34 deg), lon: Coordinate(12.34 deg), alt: Coordinate(nan m), hor.acc.: 1430 m, ver.acc.: nan m)
34 
35 No position there? check connectivity API works by running:
36 
37  cd /tmp
38  wget http://people.ubuntu.com/~lool/connectivity
39  GLOG_v=200 GLOG_logtostderr=1 ./connectivity
40 
41 you should see something like:
42 
43  I1105 16:47:26.431466 11140 cached_radio_cell.cpp:160] (mcc: 123, mnc: 2, lac: 1234, id: 123456, asu: 1)
44  I1105 16:47:26.533818 11140 connectivity.cpp:47] Is wifi enabled: true
45  I1105 16:47:26.533963 11140 connectivity.cpp:48] Is wifi hw enabled: true
46  I1105 16:47:26.534010 11140 connectivity.cpp:49] Is wwan enabled: true
47  I1105 16:47:26.534050 11140 connectivity.cpp:50] Is wwan hw enabled: true
48  I1105 16:47:26.534442 11140 connectivity.cpp:122] umts(mcc: 123, mnc: 2, lac: 1234, id: 123456, asu: 1)
49  I1105 16:47:26.534633 11140 connectivity.cpp:155] (bssid: 12:12:12:12:12:12, ssid: xyz, last seen: 1415224046, mode: Mode::infrastructure, frequency: 2442, strength: 63)
50  I1105 16:47:26.534828 11140 connectivity.cpp:155] (bssid: 12:12:12:12:12:12, ssid: boing, last seen: 1415224046, mode: Mode::infrastructure, frequency: 2467, strength: 57)
51 
52 Also, please attach output of /usr/share/ofono/scripts/list-modems > list-modems-output.txt
53 Please note that the command might take ~1 minute to complete.
54 
55 TODO: document dbus-monitor / d-feet capturing of client / system traffic with snooping config.
56 
57