Hello,

Al Johnson wrote:
> On Sunday 23 August 2009, e.waelde wrote:
>> Hello,
>>
>> after my "install from scratch" (reported here:
>> http://lists.linuxtogo.org/pipermail/smartphones-userland/2009-August/00186
>> 1.html) I can't get anything useful from GPS. This used to work without a
>> problem, so I exclude a possible hardware problem at the moment).
>>
>> I did install the firmware update some time ago:
>> +CGMR: "GSM:
>> gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko11"
> 
> This has nothing to do with GPS.
ok.

> 
>> I decided to enable logging of frameworkd ...
>> Lots of lines like these:
>> 2009.08.23 13:08:30 ogpsd    DEBUG    Discarded data not UBX '\n$GPGSA,'
>> 2009.08.23 13:08:30 ogpsd    DEBUG    Discarded data not UBX
>> 'A,1,,,,,,,,,,,,,'
>> 2009.08.23 13:08:30 ogpsd    DEBUG    Discarded data not UBX '99.99,99'
>> 2009.08.23 13:08:30 ogpsd    DEBUG    Discarded data not UBX '.99,99.9'
>> 2009.08.23 13:08:30 ogpsd    DEBUG    Discarded data not UBX
>> '9*30\r\n$G'
> 
> Check further up the log to see where data stops arriving as UBX and starts 
> arriving as NMEA. My guess is you'll see the GPS crash and restart. This used 
> to be a problem when loading bad almanac and/or ephemeris data, but I thought 
> that was fixed long ago. You could try deleting the pickle file that holds 
> the 
> almanac and ephemeris.
> 

Lets see, sorry for being noisy:


$ grep -i gps frameworkd.log
...
# --- the gps system is turned on here 
-----------------------------------------------------------------
2009.08.23 13:08:26 ogspd.gpsdevice INFO     enabling
2009.08.23 13:08:26 ogpsd    DEBUG    (writing '1' to 
'/sys/bus/platform/devices/neo1973-pm-gps.0/pwron')
2009.08.23 13:08:26 ogpsd    DEBUG    (writing '1' to 
'/sys/bus/platform/devices/neo1973-pm-gps.0/power_on')
2009.08.23 13:08:26 ogpsd    WARNING  (could not write to 
'/sys/bus/platform/devices/neo1973-pm-gps.0/power_on': [Errno 2] No such file 
or directory: '/sys/bus/platform/devices/neo1973-pm-gps.0/power_on')
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type CFG-SBAS: 
{'usage': 7, 'scanmode': 0, 'mode': 1, 'maxsbas': 3}
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type CFG-PRT: []
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type CFG-MSG: 
{'MsgID': 3, 'Rate': 1, 'Class': 1}
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type CFG-MSG: 
{'MsgID': 2, 'Rate': 1, 'Class': 1}
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type CFG-MSG: 
{'MsgID': 18, 'Rate': 1, 'Class': 1}
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type CFG-MSG: 
{'MsgID': 33, 'Rate': 1, 'Class': 1}
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type CFG-MSG: 
{'MsgID': 4, 'Rate': 1, 'Class': 1}
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type CFG-MSG: 
{'MsgID': 48, 'Rate': 5, 'Class': 1}
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type CFG-MSG: 
{'MsgID': 0, 'Rate': 1, 'Class': 11}
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type CFG-MSG: 
{'MsgID': 1, 'Rate': 8, 'Class': 1}
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type CFG-MSG: 
{'MsgID': 48, 'Rate': 1, 'Class': 11}
2009.08.23 13:08:27 frameworkd.resource INFO     setting resource status for 
GPS from enabling to enabled
2009.08.23 13:08:27 frameworkd.resource DEBUG    sending delayed signal 
<function ConnectionStatusChanged at 0x5dd230>( (<ogpsd.om.GTA02Device at 
/org/freedesktop/Gypsy at 0x6291d0>, False) )
2009.08.23 13:08:27 ogspd.gpsdevice DEBUG    ConnectionStatusChanged False
2009.08.23 13:08:27 frameworkd.resource DEBUG    sending delayed signal 
<function ConnectionStatusChanged at 0x5dd230>( (<ogpsd.om.GTA02Device at 
/org/freedesktop/Gypsy at 0x6291d0>, True) )
2009.08.23 13:08:27 ogspd.gpsdevice DEBUG    ConnectionStatusChanged True
# --- this seems to be the boot message of the gps system 
------------------------------------------------
2009.08.23 13:08:27 ogpsd    DEBUG    Discarded data not UBX 
'Ai\x05\xb1,,,,00,00*48\n\n$GPRMC,,V,,,,,,,,,,N*53\n\n$GPVTG,,,,,,,,,N*30\n\x00$GPTXT,01,01,02,u-blox
 ag -
www.u-blox.com*50\r\n$GPTXT,01,01,02,ANTARIS ATR062x HW 
80040001*26\r\n$GPTXT,01,01,02,ROM CORE       5.00    Jan 09 2006 
12:00:00*76\r\n$GPTXT,01,01,02,LIC
1EBF-BD07-E83D-6BE1-0F7A*50\r\n$GPRMC,,V,,,,,,,,,,N*53\r\n$GPVTG,,,,,,,,,N*30\r\n$GPGGA,,,,,,0,00,99.99,,,,,,*48\r\n$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30\r\n$GPGSV,1,1,00*79\r\n$GPGLL,,,,,,V,N*64\r\n$GPZDA,,,,,00,00*48\r'
2009.08.23 13:08:27 ousaged  INFO     Enabled GPS in 0.8 seconds
2009.08.23 13:08:27 ogpsd    DEBUG    Discarded data not UBX '\n'
# --- but from here on valid UBX packages are received ... 
-------------------------------------------------
2009.08.23 13:08:27 ogpsd    DEBUG    Got UBX packet of type ACK-ACK: 
[{'MsgID': 22, 'ClsID': 6}]
2009.08.23 13:08:27 ogpsd    DEBUG    Got ACK {'MsgID': 22, 'ClsID': 6}
2009.08.23 13:08:27 ogpsd    DEBUG    Got UBX packet of type CFG-PRT: [{}, 
{'Baudrate': 9600, 'PortID': 1, 'Flags': 0, 'Mode': 526544, 'In_proto_mask': 7, 
'Out_proto_mask': 3}]
...
# --- then the almanac is loaded 
--------------------------------------------------------------------------
2009.08.23 13:08:27 ogpsd    DEBUG    Got UBX packet of type AID-DATA: [{}]
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type AID-INI: 
{'CLKD': 0, 'POSACC': 300000, 'TOW_NS': 0, 'WN': 1546, 'TACC_NS': 0, 'TOW': 
40122000, 'TM_CFG': 0, 'FLAGS': 3, 'TACC_MS':
60000, 'Y': 0, 'X': 0, 'Z': 0, 'CLKDACC': 0}
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type AID-HUI: 
{'UTC_LS': 15, 'KLOB_A0': 5.5879354476928711e-09, 'KLOB_A3': 
-3.8446823502624738e-09, 'KLOB_A2': -6.0392131295827767e-09,
'KLOB_B0': 77824.0, 'UTC_TOT': 233472, 'KLOB_B2': -6640.18505859375, 'KLOB_B3': 
-8454.5458984375, 'UTC_A0': 1.862645149230957e-09, 'UTC_A1': 
2.6645352591003757e-15, 'KLOB_A1': 4.7431867322700327e-09,
'UTC_DN': 4, 'UTC_WNF': 1512, 'UTC_LSF': 15, 'HEALTH': 4294967295L, 
'UTC_SPARE': 239, 'FLAGS': 7, 'UTC_WNT': 1546, 'KLOB_B1': 10430.3779296875}
2009.08.23 13:08:27 ogpsd    DEBUG    Loaded almanac for SV 1
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type AID-ALM: 
{'WEEK': 1545, 'SVID': 1, 'DWRD2': 4294788607L, 'DWRD3': 4288744792L, 'DWRD0': 
4267672, 'DWRD1': 3738765, 'DWRD6': 5171198,
'DWRD7': 4294443020L, 'DWRD4': 6094748, 'DWRD5': 2548781}
2009.08.23 13:08:27 ogpsd    DEBUG    Loaded almanac for SV 2
2009.08.23 13:08:27 ogpsd    DEBUG    Sending UBX packet of type AID-ALM: 
{'WEEK': 1545, 'SVID': 2, 'DWRD2': 4294783232L, 'DWRD3': 4288744703L, 'DWRD0': 
4344400, 'DWRD1': 2424519, 'DWRD6':
4293499434L, 'DWRD7': 1376312, 'DWRD4': 4289858600L, 'DWRD5': 7695075}
...
2009.08.23 13:08:28 ogpsd    DEBUG    Loaded almanac for SV 32
2009.08.23 13:08:28 ogpsd    DEBUG    Sending UBX packet of type AID-ALM: 
{'WEEK': 1545, 'SVID': 32, 'DWRD2': 4294793472L, 'DWRD3': 4288744848L, 'DWRD0': 
6319202, 'DWRD1': 3738942, 'DWRD6':
4290919408L, 'DWRD7': 1834972, 'DWRD4': 4292918992L, 'DWRD5': 4291945681L}
2009.08.23 13:08:28 ogpsd    DEBUG    Got UBX packet of type ACK-ACK: 
[{'MsgID': 0, 'ClsID': 6}]
2009.08.23 13:08:28 ogpsd    DEBUG    Got ACK {'MsgID': 0, 'ClsID': 6}
2009.08.23 13:08:28 ogpsd    DEBUG    Got UBX packet of type NAV-POSECEF: 
[{'Pacc': 99999904, 'ECEF_Z': 635725231, 'ITOW': 1000, 'ECEF_X': 0, 'ECEF_Y': 
0}]
2009.08.23 13:08:28 ogpsd    DEBUG    Got UBX packet of type NAV-POSLLH: 
[{'LON': 0, 'HMSL': 487000, 'HEIGHT': 500000, 'ITOW': 1000, 'LAT': 900000000, 
'Vacc': 999998976, 'Hacc': 999998976}]
2009.08.23 13:08:28 ogpsd    DEBUG    Got UBX packet of type NAV-DOP: [{'GDOP': 
9999, 'TDOP': 9999, 'VDOP': 9999, 'HDOP': 9999, 'PDOP': 9999, 'ITOW': 1000, 
'NDOP': 9999, 'EDOP': 9999}]
2009.08.23 13:08:28 ogpsd    DEBUG    Got UBX packet of type NAV-STATUS: 
[{'DiffS': 0, 'GPSfix': 0, 'Flags': 32, 'ITOW': 1000, 'TTFF': 0, 'MSSS': 1068}]
2009.08.23 13:08:28 ogspd.gpsdevice DEBUG    FixStatusChanged 1
2009.08.23 13:08:28 ogpsd    DEBUG    Got UBX packet of type NAV-VELNED: 
[{'SAcc': 99999904, 'GSpeed': 0, 'Speed': 0, 'Heading': 0, 'ITOW': 1000, 
'CAcc': 36000000, 'VEL_N': 0, 'VEL_E': 0, 'VEL_D': 0}]
2009.08.23 13:08:28 ogpsd    DEBUG    Got UBX packet of type NAV-TIMEUTC: 
[{'Hour': 0, 'Nano': 0, 'Min': 0, 'Month': 1, 'Valid': 0, 'Sec': 1, 'ITOW': 
1000, 'Year': 1980, 'TAcc': 3335637760L, 'Day': 6}]
2009.08.23 13:08:28 ogpsd    DEBUG    Got UBX packet of type NAV-SVINFO: 
[{'NCH': 16, 'ITOW': 1000}, {'SVID': 2, 'chn': 0, 'Azim': 0, 'Flags': 0, 
'Elev': -9, 'QI': 1, 'CNO': 0, 'PRRes': 0}, {'SVID':
5, 'chn': 1, 'Azim': 0, 'Flags': 0, 'Elev': -9, 'QI': 1, 'CNO': 0, 'PRRes': 0}, 
{'SVID': 6, 'chn': 2, 'Azim': 0, 'Flags': 0, 'Elev': -9, 'QI': 1, 'CNO': 0, 
'PRRes': 0}, {'SVID': 9, 'chn': 3, 'Azim':
0, 'Flags': 0, 'Elev': -9, 'QI': 1, 'CNO': 0, 'PRRes': 0}, {'SVID': 11, 'chn': 
4, 'Azim': 0, 'Flags': 0, 'Elev': -9, 'QI': 1, 'CNO': 0, 'PRRes': 0}, {'SVID': 
13, 'chn': 5, 'Azim': 0, 'Flags': 0,
'Elev': -9, 'QI': 1, 'CNO': 0, 'PRRes': 0}, {'SVID': 14, 'chn': 6, 'Azim': 0, 
'Flags': 0, 'Elev': -9, 'QI': 1, 'CNO': 0, 'PRRes': 0}, {'SVID': 16, 'chn': 7, 
'Azim': 0, 'Flags': 0, 'Elev': -9, 'QI': 1,
'CNO': 0, 'PRRes': 0}, {'SVID': 18, 'chn': 8, 'Azim': 0, 'Flags': 0, 'Elev': 
-9, 'QI': 1, 'CNO': 0, 'PRRes': 0}, {'SVID': 19, 'chn': 9, 'Azim': 0, 'Flags': 
0, 'Elev': -9, 'QI': 1, 'CNO': 0, 'PRRes':
0}, {'SVID': 20, 'chn': 10, 'Azim': 0, 'Flags': 0, 'Elev': -9, 'QI': 1, 'CNO': 
0, 'PRRes': 0}, {'SVID': 21, 'chn': 11, 'Azim': 0, 'Flags': 0, 'Elev': -9, 
'QI': 1, 'CNO': 0, 'PRRes': 0}, {'SVID': 22,
'chn': 12, 'Azim': 0, 'Flags': 0, 'Elev': -9, 'QI': 1, 'CNO': 0, 'PRRes': 0}, 
{'SVID': 24, 'chn': 13, 'Azim': 0, 'Flags': 0, 'Elev': -9, 'QI': 1, 'CNO': 0, 
'PRRes': 0}, {'SVID': 0, 'chn': 14, 'Azim':
0, 'Flags': 0, 'Elev': 0, 'QI': 0, 'CNO': 0, 'PRRes': 0}, {'SVID': 0, 'chn': 
15, 'Azim': 0, 'Flags': 0, 'Elev': 0, 'QI': 0, 'CNO': 0, 'PRRes': 0}]

2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '$GPTXT,'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '01,01,02'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX ',u-blox '
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX 'ag - www'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '.u-blox.'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX 'com*50\r\n'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '$GPTXT,0'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '1,01,02,'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX 'ANTARIS '
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX 'ATR062x '
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX 'HW 80040'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '001*26\r\n'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '$GPTXT,0'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '1,01,02,'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX 'ROM CORE'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '       5'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '.00    J'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX 'an 09 20'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '06 12:00'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX ':00*76\r\n'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '$GPTXT,0'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '1,01,02,LIC 1EBF'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '-BD07-E8'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '3D-6BE1-'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '0F7A*50\r'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '\n$GPTXT,'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '01,01,00'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX ',Excepti'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX 'on 0x800'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX '00040 wa'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX 's trappe'
2009.08.23 13:08:29 ogpsd    DEBUG    Discarded data not UBX 'd !*7E\r\n'

# --- here we go: Exception 0x80000040 was trapped ! ... 
--------------------------------------

and after that the gps system contiues in NMEA packages ... no wonder.



... so moving the pickle file out of the way ...
rm /var/lib/freesmartphone/ogpsd.pickle

... restoring /etc/frameworkd.conf ...
[ogpsd]
device = GTA02Device

... going outside ...
and theres a fix within 60 seconds!

I'm impressed. Thanks for the hint.


Cheers,
Erich

_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to