1 頁 (共 1 頁)

00300547 Different RPC between LOC_API_USE_LOCAL_RPC and LOC

發表於 : 2013年 4月 21日, 19:30
admin
Subject Different RPC between LOC_API_USE_LOCAL_RPC and LOC_API_USE_QCOM_AUTO_RPC
Description GPS can select which RPC lib to link to by set the value of
LOC_API_USE_LOCAL_RPC:=1 or 0
LOC_API_USE_QCOM_AUTO_RPC:=0 or 1
in the file of *\android\vendor\qcom-proprietary\gps\Android.mk
Could you help to explain what difference between the RPC of LOC_API_USE_LOCAL_RPC and LOC_API_USE_QCOM_AUTO_RPC?
Thank you.
Best Regards
David

Re: 00300547 Different RPC between LOC_API_USE_LOCAL_RPC and

發表於 : 2013年 4月 21日, 19:31
admin
Comment

Created By: Howard Chiu (4/5/2010 7:08 PM)
Hi David,

Please see below for the answer from our developer
===========================================
“LOC_API_USE_QCOM_AUTO_RPC”, which means all GPS libraries / test apps will be linked against the automatically generated RPC files in the build, which are guaranteed to match the modem.

LOC_API_USE_LOCAL_RPC will use local RPC files, which are not always in sync with modem. This option was legacy -- it was used before automatically generated RPC files were available.
===========================================

So you should stop using LOC_API_USE_LOCAL_RPC as it is meant to be phased out.

hope this helps,
Howard



Created By: David Lan (3/27/2010 8:51 AM)
Hi Eason,
I believe that you meant both QCOM_AUTO_RPC and LOCAL_RPC are Qualcomm's RPC.
Could you explain what different usage occasion between QCOM_AUTO_RPC and LOCA_RPC?
Best Regards
David



Created By: David Lan (3/25/2010 4:58 AM)
Hi Eason,
If we defined USE_LOCAL_RPC, do we adopt Qualcomm's RPC or OEMRPC?
Thank you.
David



Created By: Eason Lin (3/24/2010 7:46 AM)
Dear customer,

If LOC_API_USE_QCOM_AUTO_RPC equals to 1, USE_QCOM_AUTO_RPC will be defined.
If LOC_API_USE_LOCAL_RPC equals to 1, USE_LOCAL_RPC will be defined.

Those define is used to include different header files from RPC audo gen.

Qualcomm does not suggest customer to add or modify Qualcomm's RPC API. We strongly suggest customers to use OEMRAPI for your own RPC call. It could have risk if you extend or modify Qualcomm's RPC API, especially during code base migration. We suggest customer not to extend/modify Qualcomm's RPC API to avoid issues.

If you want to extend RPC call, please use OEMRAPI to add your RPC call. You can check more detail in this document '80-VM896-1'.

Thank you!
Eason