简体   繁体   English

RIL_REQUEST_SETUP_DATA_CALL 参数

[英]RIL_REQUEST_SETUP_DATA_CALL Params

I'm doing some work on RIL, and I am a little confused about RIL_REQUEST_SETUP_DATA_CALL and RIL_REQUEST_SET_INITIAL_ATTACH_APN requests.我正在做一些关于 RIL 的工作,我对RIL_REQUEST_SETUP_DATA_CALLRIL_REQUEST_SET_INITIAL_ATTACH_APN请求有点困惑。

I know that if we change the APN setting, the request RIL_REQUEST_SET_INITIAL_ATTACH_APN will be dispatched immediately.我知道如果我们更改 APN 设置,请求 RIL_REQUEST_SET_INITIAL_ATTACH_APN 将立即被调度。 And I think that only "setting->APN" can configure APN setting by a user.而且我认为只有“设置-> APN”才能由用户配置APN设置。 And there is only one APN for a mobile(regardless mms APN).并且手机只有一个APN(不管mms APN)。 Then if I setup a data call the APN should be this one.然后,如果我设置数据呼叫,APN 应该是这个。

So does anyone knows that Why the param of RIL_REQUEST_SETUP_DATA_CALL request contains APN?那么有谁知道为什么 RIL_REQUEST_SETUP_DATA_CALL 请求的参数包含 APN? I think is useless and it should be the same APN in RIL_REQUEST_SET_INITIAL_ATTACH_APN request.我认为没用,它应该是 RIL_REQUEST_SET_INITIAL_ATTACH_APN 请求中的相同 APN。 Thanks!谢谢!

The following is comments of param for RIL_REQUEST_SETUP_DATA_CALL.以下是 RIL_REQUEST_SETUP_DATA_CALL 参数的注释。

 * "data" is a const char **
 * ((const char **)data)[0] Radio technology to use
 * ((const char **)data)[1] is a RIL_DataProfile
 * ((const char **)data)[2] is the APN to connect
 * ((const char **)data)[3] is the username for APN, or NULL
 * ((const char **)data)[4] is the password for APN, or NULL
 * ((const char **)data)[5] is the PAP / CHAP auth type. Values:

The APN received in RIL_REQUEST_SET_INITIAL_ATTACH_APN is for the activating the default bearer in LTE. RIL_REQUEST_SET_INITIAL_ATTACH_APN 中收到的APN 用于激活LTE 中的默认承载。 If the default bearer is not established, you can not be registered on an LTE network.如果没有建立默认承载,则无法注册到LTE网络。 There are operators in the world which have different APNs for MMS and Android has to cater that.世界上有一些运营商为 MMS 提供不同的 APN,而 Android 必须迎合这一点。 Have a look at this list: http://www.hw-group.com/products/HWg-Ares/HWg-Ares_GSM_APN_en.html .看看这个列表: http : //www.hw-group.com/products/HWg-Ares/HWg-Ares_GSM_APN_en.html

Furthermore, the RIL_REQUEST_SETUP_DATA_CALL can establish the data call either on the default bearer or another PDP context.此外,RIL_REQUEST_SETUP_DATA_CALL 可以在默认承载或另一个 PDP 上下文上建立数据呼叫。 Some network allow you to route your data services through the default bearer but some do not.有些网络允许您通过默认承载路由您的数据服务,但有些则不允许。

RIL_REQUEST_SETUP_DATA_CALL need a apn context, it can access to network cause to the apn. RIL_REQUEST_SETUP_DATA_CALL 需要一个apn 上下文,它可以访问网络原因给apn。 RIL_REQUEST_SET_INITIAL_ATTACH_APN is activating the default bearer. RIL_REQUEST_SET_INITIAL_ATTACH_APN 正在激活默认承载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM