Hi @alimon,
Iâve integrated the gpsd with your patch, I am testing using gps_test application. Here is what I get from the service:
08-05 22:26:22.668 1644 1644 D gpsd_wrapper: Starting gpsd: /vendor/bin/logwrapper /vendor/bin/gpsd -Nn -D3 pds://any
08-05 22:26:22.732 1646 1646 I gpsd : gpsd:INFO: launching (Version 3.20.1~dev)
08-05 22:26:22.733 1646 1646 I gpsd : gpsd:INFO: listening on port gpsd
08-05 22:26:22.734 1646 1646 E gpsd : gpsd:ERROR: NTP: shmget(1314148400, 96, 600) fail: Function not implemented
08-05 22:26:22.734 1646 1646 E gpsd : gpsd:ERROR: NTP: shmget(1314148401, 96, 600) fail: Function not implemented
08-05 22:26:22.734 1646 1646 E gpsd : gpsd:ERROR: NTP: shmget(1314148402, 96, 666) fail: Function not implemented
08-05 22:26:22.734 1646 1646 E gpsd : gpsd:ERROR: NTP: shmget(1314148403, 96, 666) fail: Function not implemented
08-05 22:26:22.734 1646 1646 E gpsd : gpsd:ERROR: NTP: shmget(1314148404, 96, 666) fail: Function not implemented
08-05 22:26:22.734 1646 1646 E gpsd : gpsd:ERROR: NTP: shmget(1314148405, 96, 666) fail: Function not implemented
08-05 22:26:22.735 1646 1646 E gpsd : gpsd:ERROR: NTP: shmget(1314148406, 96, 666) fail: Function not implemented
08-05 22:26:22.735 1646 1646 E gpsd : gpsd:ERROR: NTP: shmget(1314148407, 96, 666) fail: Function not implemented
08-05 22:26:22.735 1646 1646 E gpsd : gpsd:ERROR: shmget(0x47505344, 24512, 0666) for SHM export failed: Function not implemented
08-05 22:26:22.735 1646 1646 I gpsd : gpsd:INFO: stashing device pds://any at slot 0
08-05 22:26:22.735 1646 1646 I gpsd : gpsd:INFO: gpsd_activate(2): activated GPS (fd 5)
08-05 22:26:22.736 1646 1646 I gpsd : gpsd:WARN: NTP: ntpshm_alloc() failed
08-05 22:26:22.736 1646 1646 I gpsd : gpsd:INFO: PPS:pds://any ntpshm_link_activate: 0
08-05 22:26:22.736 1646 1646 I gpsd : gpsd:INFO: device pds://any activated
08-05 22:26:22.737 1646 1646 I gpsd : gpsd:INFO: running with effective group ID 0
08-05 22:26:22.737 1646 1646 I gpsd : gpsd:INFO: running with effective user ID 9999
08-05 22:26:22.738 1646 1646 I gpsd : gpsd:INFO: startup at 2020-08-05T22:26:22.000Z (1596666382)
08-05 22:26:22.738 1646 1646 E gpsd : gpsd:ERROR: QRTR connect: End of lookup, No PDS service found for pds://any.
08-05 22:26:22.738 1646 1646 I gpsd : gpsd:INFO: GPS on pds://any returned error -1 ( 0.002893437 sec since data)
08-05 22:26:22.738 1646 1646 I gpsd : gpsd:WARN: device read of pds://any returned error or packet sniffer failed sync (flags {})
08-05 22:26:22.739 1646 1646 I gpsd : gpsd:INFO: closing GPS=pds://any (5)
08-05 22:26:29.430 1646 1646 I gpsd : gpsd:CLIENT: => client(0): {âclassâ:âVERSIONâ,âreleaseâ:â3.20.1~devâ,ârevâ:â3.20.1~devâ,âproto_majorâ:3,âproto_minorâ:15}\x0d\x0a
08-05 22:26:29.431 1646 1646 I gpsd : gpsd:INFO: reconnection attempt on device 0
08-05 22:26:29.431 1646 1646 I gpsd : gpsd:INFO: gpsd_activate(2): activated GPS (fd 6)
08-05 22:26:29.431 1646 1646 E gpsd : gpsd:ERROR: QRTR connect: End of lookup, No PDS service found for pds://any.
08-05 22:26:29.432 1646 1646 I gpsd : gpsd:INFO: GPS on pds://any returned error -1 ( 0.000375521 sec since data)
08-05 22:26:29.432 1646 1646 I gpsd : gpsd:WARN: device read of pds://any returned error or packet sniffer failed sync (flags {})
08-05 22:26:29.432 1646 1646 I gpsd : gpsd:INFO: closing GPS=pds://any (6)
08-05 22:26:29.432 1646 1646 I gpsd : gpsd:CLIENT: <= client(0): ?WATCH={âenableâ:true,âjsonâ:true};\x0a
08-05 22:26:29.432 1646 1646 I gpsd : gpsd:INFO: gpsd_activate(2): activated GPS (fd 6)
08-05 22:26:29.433 1646 1646 I gpsd : gpsd:CLIENT: => client(0): {âclassâ:âDEVICESâ,âdevicesâ:[{âclassâ:âDEVICEâ,âpathâ:âpds://anyâ,âdriverâ:âQualcomm PDSâ,âactivatedâ:â2020-08-05T22:
26:29.433Zâ}]}\x0d\x0a{âclassâ:âWATCHâ,âenableâ:true,âjsonâ:true,ânmeaâ:false,ârawâ:0,âscaledâ:false,âtimingâ:false,âsplit24â:false,âppsâ:false}\x0d\x0a
08-05 22:26:29.433 1646 1646 E gpsd : gpsd:ERROR: QRTR connect: End of lookup, No PDS service found for pds://any.
08-05 22:26:29.434 1646 1646 I gpsd : gpsd:INFO: GPS on pds://any returned error -1 ( 0.001031302 sec since data)
08-05 22:26:29.434 1646 1646 I gpsd : gpsd:WARN: device read of pds://any returned error or packet sniffer failed sync (flags {})
08-05 22:26:29.434 1646 1646 I gpsd : gpsd:CLIENT: => client(0): {âclassâ:âDEVICEâ,âpathâ:âpds://anyâ,âactivatedâ:0}\x0d\x0a
08-05 22:26:29.434 1646 1646 I gpsd : gpsd:INFO: closing GPS=pds://any (6)
01-01 00:13:43.238 0 0 I logd : logdr: UID=0 GID=0 PID=1649 b tail=0 logMask=99 pid=0 start=0ns deadline=0ns
I am using this kernel:
https://git.linaro.org/people/amit.pundir/linux.git
branch: db410c-android-mainline-tracking
I have compiled the kernel with db410c_defconfig but enable the QRTR driver.
Any suggestion on this?
Thanks