Commit graph

391 commits

Author SHA1 Message Date
qctecmdr
1a16cbc20c Merge "GPS NMEA: generate empty GSA sentence for dead reckoning fixes" 2019-11-04 17:59:31 -08:00
qctecmdr
465d7647f0 Merge "GnssSv struct: make it in sync between 3.0.c5, 4.0 and 5.0" 2019-11-04 14:08:06 -08:00
Wei Chen
7eb1dcf0c7 GPS NMEA: generate empty GSA sentence for dead reckoning fixes
For dead reckoning fixes when number of SV used in fix is 0,
we need to generate an empty GSA sentence

CRs-fixed: 2542163

Change-Id: Icb89981d04ecdfeb81fbdc16b2a8d3676319b18d
2019-11-04 09:31:27 -08:00
Wei Chen
755bba2813 GnssSv struct: make it in sync between 3.0.c5, 4.0 and 5.0
Make GnssSv struct in sync between 3.0.c5, 4.0 and 5.0 to allow
3.0.C5 hal daemon to work with 4.0/5.0 location client API app

Change-Id: I421fc3a36055fa278ef42bca4816d07f18c75d68
CRs-fixed: 2541020
2019-10-31 21:30:09 -07:00
Madhanraj Chelladurai
f195c219e6 nmea: fix status and mode indicator fields of RMC
Fix status and mode indicator fields to proper
values as per NMEA standard for GPRMC string.

Change-Id: I7fe0e292079c0f71bb37f6a1462f669e14f54b81
CRs-Fixed: 2537924
2019-10-28 23:26:36 -07:00
qctecmdr
91c053b772 Merge "GPS NMEA: enhance gga fix qualtiy for sensor contributed fix" 2019-10-23 22:49:12 -07:00
Wei Chen
3a84bfac17 GPS NMEA: enhance gga fix qualtiy for sensor contributed fix
This enhancement will be enabled if CUSTOM_NMEA_GGA_FIX_QUALITY_ENABLED
is set to 1 in gps.conf.

PPP fix w/o sensor: fix quality will now be 59
PPP fix w sensor: fix quality will now be 69
RTK fixed fix w/ sensor: fix quality will now be 64
RTK float fix w/ sensor: 65
DGNSS and/or SBAS correction fix and w/ sensor: 62
GPS fix without correction but and w/ sensor: 61

Change-Id: I7bc1bb5504e023de40f271d97d31c602f27bd94e
CRs-fixed: 2537211
2019-10-22 11:55:12 -07:00
Wei Chen
ba93fa33fb GPS log util: add capability to log modem callflow with debug level
Add debug level to log high frequency modem calls so those high
frequency modem calls do not get outputted with default gps.conf

Change-Id: I2c34471ae97f5cdfebf99c3d7edcdaff7ff63018
CRs-fixed: 2537163
2019-10-17 15:22:13 -07:00
Harikrishnan Hariharan
201f612040 Enable/Disable process launch by loc_launcher based on SOC-Id
Add a parameter SOC_IDS for process configuration in izat.conf
to include/exclude the process based on SOC-Id. Read the value
of this parameter to enable or disable the process launch by
loc_launcher.

Fixed an issue in read_a_line function to handle newline at the
end of line in the file to be read.

Change-Id: I66777856ebbb928ce4f49a44dfd9d2f1fbca69b5
CRs-Fixed: 2540349
2019-10-12 11:50:54 +05:30
Harikrishnan Hariharan
8e7733ba7f Disable few process launch in loc_launcher for low ram targets
Use ro.config.low_ram property to identify low ram targets and
disable the process in izat.conf whose property value
LOW_RAM_TARGETS is set to DISABLED.

Change-Id: Idb8b0b91c4ed127b4fa58c41683f9720252dff84
CRs-Fixed: 2542145
2019-10-10 23:01:26 -07:00
Mike Cailean
73f69ef469 Enable Android sanitizers
Change-Id: I6724d0e171e42f779e8eed6aea126f3f69496f6d
CRs-fixed: 2534375
2019-10-07 15:32:50 -07:00
Mike Cailean
fa7f9e3f08 Prevent left shift by a large number
CRs-fixed: 2534443

Change-Id: I3c52f6f62620c69bc79bc9bc5343e5d1ec08656d
2019-10-07 10:34:05 -07:00
Harikrishnan Hariharan
bf12ff26d5 Use 'subdir-objects' option in HAL configure options
If a source file is in a subdirectory, but the 'subdir-objects'
automake option hasn't been enabled. For now, the corresponding
output object file(s) will be placed in the top-level directory.
However, this behaviour will change in future Automake versions,
they will unconditionally cause object files to be placed in the
same subdirectory of the corresponding sources.
So to avoid future incompatibilities, enable the 'subdir-objects'
option in location module configure options.

Change-Id: If9e94c0f6fcd9922ee7f0f9d1909d5d6579a5715
CRs-Fixed: 2533108
2019-09-25 19:35:16 -07:00
Prashant Kumar
d66fc2cdb4 Reversing the Added API to read the device SOC ID
Change-Id: I96bd498fdd9509a1d52063ec26732a99365415d5
CRs-Fixed: 2531660
2019-09-20 10:01:48 +05:30
Ashish Dhiman
4d2c7279b5 Add API to read the device SOC ID.
CRs-Fixed: 2385448
Change-Id: Ia154c908e610e2e475171d9a45822bae84210d5b
2019-09-19 03:28:41 -07:00
qctecmdr
f14b5413a7 Merge "LocIpc sender recv and recver send" 2019-09-17 15:58:26 -07:00
Kevin Tang
c891e738f5 LocIpc sender recv and recver send
Added two APIs, which allow ILocIpcListener to provide
a sender for sending data back to LocIpcSender; and to
allow a LocIpcSender to get a recver from the last send
target so that it can receive data from it.

Change-Id: I94e2204a2588d375805d0674d1e877bbe414c99f
CRs-Fixed: 2524039
2019-09-09 18:03:22 -07:00
Kevin Tang
1209591f94 change some of the comments that contain prohibited words
Change-Id: Iaa8009e245edbcbc5adbe2348de4a014271c0ef9
CRs-Fixed: 2504418
2019-09-06 09:18:35 -07:00
qctecmdr
e60e51f520 Merge "GPS hw: report ppe/spe report with combined report" 2019-08-30 04:06:32 -07:00
qctecmdr
93db35b825 Merge "AgpsManager supports two clients" 2019-08-28 20:41:30 -07:00
Wei Chen
1a1232c594 GPS hw: report ppe/spe report with combined report
When DRE/PPE are also running in the system, in addition to
reporitng the combined final output, add the support to
report the unmodified SPE/PPE report received from the engine

Change-Id: Icb636824da32b175030dfcd2b270ac8b500ff75b
CRs-fixed: 2487580
2019-08-23 12:56:14 +08:00
haohuang
39e34de194 AgpsManager supports two clients
AgpsManager supports two clients, QCOM AGPS
Stack is to handle ATL type WWAN, AFW AGPS
stack is used to handle ATL type SUPL and
SUPL emergency.

Change-Id: Id43c4919a1ae67d739e055c7fb5ba3abacc70b34
CRs-Fixed: 2509244
2019-08-20 21:38:51 +08:00
qctecmdr
5ee0b62e8c Merge "delete of shared LocApiBase::mMsgTask may cause issues" 2019-08-19 11:21:18 -07:00
Kevin Tang
32e36b84e1 delete of shared LocApiBase::mMsgTask may cause issues
mMsgTask is static, its delete would impact other LocApi
objects which don't know it is deleted. Added refcount
to manage this shared obj.

Change-Id: Iea81039b9cd74081c5230d6bb18ea80c2ee05916
CRs-Fixed: 2505569
2019-08-16 11:20:03 -07:00
Harikrishnan Hariharan
bbc8da3a74 Generate Navic SV NMEA sentence - GIGSV
NMEA Sentence is generated when NMEA_PROVIDER is set to 0.

Change-Id: I12db25a4f32d1b8fb325048c43b23aa7d0b5f671
CRs-Fixed: 2509063
2019-08-14 02:27:12 -07:00
Nilesh Gharde
e549c9be3b Set NMEA masks for multiband related and NAVIC(GIGSV)
Change-Id: Idbe1af49b5c10e6dbb2c904cddc82601db1eba49
CRs-Fixed: 2506574
2019-08-09 14:48:18 +05:30
qctecmdr
eb3b1419e3 Merge "Add support for MB SV Poly fields" 2019-07-22 21:47:06 -07:00
Hoss Zhou
f48758a922 modify QZSS SVID according to NMEA spec 4.11
Change-Id: I7c82c210174076f9620b52cfb749a4c73824ffdf
CRs-Fixed: 2473699
2019-07-17 12:30:24 +08:00
Bhavna Sharma
903040f8c2 Add support for MB SV Poly fields
CRs-Fixed: 2478704

Change-Id: I95bcfa28989d65e3c75a761b51d778606fca61c4
2019-07-16 11:08:22 -07:00
qctecmdr
dadd76fd33 Merge "Enable GTP_WAA feature" 2019-07-16 02:31:30 -07:00
Mike Cailean
1608ffb38b SUPL-2.0-con-034-1/2 test case fails
SUPL-2.0-con-034-1/2 Fail because Emergency-NI
did not check inprogress session

Change-Id: I377955c455830bf3bb7cb7fe05d45c4536dabfbc
CRs-fixed: 2483780
2019-07-15 10:41:58 -07:00
qctecmdr
a4c0207725 Merge "Add XSSO support for multiple network handles" 2019-07-09 10:25:05 -07:00
Kevin Tang
95ee8899c9 Add XSSO support for multiple network handles
Add support in HAL for multiple network handles
with same type.

Change-Id: Idc9e6fc1c7876dc868264500d60a5d086ab003b0
CRs-Fixed: 2477395
2019-07-08 11:17:06 -07:00
Ashish Dhiman
14cba9c544 Enable GTP_WAA feature
CRs-Fixed: 2469727
Change-Id: Ib9d47e1a2778fd9ee574ff03290c59d7b2514087
2019-07-08 11:19:35 +05:30
Yingjie Wang
23e09131f9 Remove redundant LocPosTechMask definition
Change-Id: I0de0413b31ff12def49f459f2d2993c354e99aa9
CRs-fixed: 2484085
2019-07-04 10:49:38 +08:00
Bhavna Sharma
5f21e4fdef Send abort msg explictly to loopback address
To abort inet receiver thread, an abort
message must be sent explictly to loopback address.
For reciever to receive abort message it must be
open to receive messages on INADDR_ANY and not
just specific IP address.

CRs-Fixed: 2462833

Change-Id: I9ab3266d582bc774655fcabfc086dab33010f7d8
2019-06-26 15:23:13 -07:00
qctecmdr
8d4a16cef0 Merge "Add validity bit and field for Glonass system RTC" 2019-06-26 10:46:13 -07:00
Bhavna Sharma
9fbe4b70ca Add validity bit and field for Glonass system RTC
CRs-Fixed: 2447850

Change-Id: I45daa7c5415a897c12c107b9eb3e2451e43155b7
2019-06-24 12:01:32 -07:00
qctecmdr
59496905e8 Merge "fix nmea GSV/GNS/GSA issues" 2019-06-23 04:06:56 -07:00
qctecmdr
c6c14839e4 Merge "Add B2A-Q support in NMEA messages" 2019-06-21 20:06:40 -07:00
Wei Chen
333e69585b Loc Ipc: add routine to notify sender that receiver has restarted
When qrtr socket receiver has restarted, need a way to inform
sender so sender can restart the service discovery process

Change-Id: Id665da649e0962691277124b42f1ee9cc6160fa8
CRs-fixed: 2445555
2019-06-20 10:10:08 -07:00
qctecmdr
98896798de Merge "GnssAdapter: add support for ppe fix type and calibration info" 2019-06-19 22:31:20 -07:00
qctecmdr
a029b65f78 Merge "Redesign Inet sender and receiver" 2019-06-19 11:55:14 -07:00
Wei Chen
49f7e15a81 GnssAdapter: add support for ppe fix type and calibration info
(1) Add support to report out calibration confidence in position
    report
(2) Update gps quality of GGA, mode indicator for GMC and VTG
    NMEA sentences

Change-Id: Ia1aa5283deffed6638172b90a41b481c2d199229
CRs-fixed: 2438838
2019-06-19 15:03:39 +05:30
Mike Cailean
90a01875da Add B2A-Q support in NMEA messages
Change-Id: Ia58935df454e7bfffa91416159e5c9ba4fe1ac75
CRs-fixed: 2474222
2019-06-18 16:42:58 -07:00
Hoss Zhou
c3d1f8fb94 fix nmea GSV/GNS/GSA issues
1. remove blank GSV sentences
2. modify GNS mode indicator field
3. modify GSA mode field, remove blank sentence

Change-Id: Ibe196328938e2674f0100224209cef0b229328e1
CRs-Fixed: 2460129
2019-06-18 10:54:28 +08:00
Nilesh Gharde
ff98fecec4 AP Default Setting CRM Builds SM8250 and Beyond
loc_service_mask should not be populated with any
SAP(Basic or Premium) value if the SAP value is 
MODEM_DEFAULT.

Change-Id: I665bb90e4a814dc31bed566cc0b2ecffcfae52ac
CRs-Fixed: 2457874
2019-06-13 22:38:59 -07:00
Bhavna Sharma
61fd929fb6 Redesign Inet sender and receiver
Redesign the inet sender and receiver to
be able to accomodate udp and tcp types into
one base class.

CRs-Fixed: 2429102

Change-Id: Ie138839a5c8842813c99053816e06e4ed7f6b314
2019-06-12 14:06:08 -07:00
qctecmdr
aadcd5f7dc Merge "SV used in fix satellites are not updated for B2A-Q" 2019-06-12 11:44:32 -07:00
qctecmdr
3bbb89aee1 Merge "Fix to use explicit sized structures" 2019-06-11 10:55:39 -07:00