标签:手机底层 ril ril_request registration_state
log中:VOICE_REGISTRATION_STATE {1, ac17, 02219ea0, 17, null, null, null, 0, null, null, 1, null, null, 0, null}
1, 表示registered, home network; LAC: ac17, CID: 02219EA0, radioTech: RADIO_TECH_TD_SCDMA;0:
is concurrent services support indicator if registered on a CDMA system 0-1. 0 - Concurrent services not supported
1:
is the TSB-58 Roaming Indicator if registered on a CDMA or EVDO system or NULL if not
RIL_REQUEST_VOICE_REGISTRATION_STATE
Request current registration state
"data" is NULL
"response" is a "char*"
((const char*)response)[0] is registration state 0-6,
0 - Not registered, MT is not currently searching
a new operator to register
1 - Registered, home network
2 - Not registered, but MT is currently searching
a new operator to register
3 - Registration denied
4 - Unknown
5 - Registered, roaming
10 - Same as 0, but indicates that emergency calls
are enabled.
12 - Same as 2, but indicates that emergency calls
are enabled.
13 - Same as 3, but indicates that emergency calls
are enabled.
14 - Same as 4, but indicates that emergency calls
are enabled.
((const char*)response)[1] is LAC if registered on a GSM/WCDMA system or
NULL if not.Valid LAC are 0x0000 - 0xffff
((const char*)response)[2] is CID if registered on aGSM/WCDMA or
NULL if not.
Valid CID are 0x00000000 - 0xffffffff
In GSM, CID is Cell ID (see TS 27.007)
in 16 bits
In UMTS, CID is UMTS Cell Identity
(see TS 25.331) in 28 bits
((const char*)response)[3] indicates the available voice radio technology,
valid values as defined by RIL_RadioTechnology.
((const char*)response)[4] is Base Station ID if registered on a CDMA
system or NULL if not. Base Station ID in
decimal format
((const char*)response)[5] is Base Station latitude if registered on a
CDMA system or NULL if not. Base Station
latitude is a decimal number as specified in
3GPP2 C.S0005-A v6.0. It is represented in
units of 0.25 seconds and ranges from -1296000
to 1296000, both values inclusive (corresponding
to a range of -90 to +90 degrees).
((const char*)response)[6] is Base Station longitude if registered on a
CDMA system or NULL if not. Base Station
longitude is a decimal number as specified in
3GPP2 C.S0005-A v6.0. It is represented in
units of 0.25 seconds and ranges from -2592000
to 2592000, both values inclusive (corresponding
to a range of -180 to +180 degrees).
((const char*)response)[7] is concurrent services support indicator if
registered on a CDMA system 0-1.
0 - Concurrent services not supported,
1 - Concurrent services supported
((const char*)response)[8] is System ID if registered on a CDMA system or
NULL if not. Valid System ID are 0 - 32767
((const char*)response)[9] is Network ID if registered on a CDMA system or
NULL if not. Valid System ID are 0 - 65535
((const char*)response)[10] is the TSB-58 Roaming Indicator if registered
on a CDMA or EVDO system or NULL if not. Valid values
are 0-255.
((const char*)response)[11] indicates whether the current system is in the
PRL if registered on a CDMA or EVDO system or NULL if
not. 0=not in the PRL, 1=in the PRL
((const char*)response)[12] is the default Roaming Indicator from the PRL,
if registered on a CDMA or EVDO system or NULL if not.
Valid values are 0-255.
((const char*)response)[13] if registration state is 3 (Registration
denied) this is an enumerated reason why
registration was denied. See 3GPP TS 24.008,
10.5.3.6 and Annex G.
0 - General
1 - Authentication Failure
2 - IMSI unknown in HLR
3 - Illegal MS
4 - Illegal ME
5 - PLMN not allowed
6 - Location area not allowed
7 - Roaming not allowed
8 - No Suitable Cells in this Location Area
9 - Network failure
10 - Persistent location update reject
11 - PLMN not allowed
12 - Location area not allowed
13 - Roaming not allowed in this Location Area
15 - No Suitable Cells in this Location Area
17 - Network Failure
20 - MAC Failure
21 - Sync Failure
22 - Congestion
23 - GSM Authentication unacceptable
25 - Not Authorized for this CSG
32 - Service option not supported
33 - Requested service option not subscribed
34 - Service option temporarily out of order
38 - Call cannot be identified
48-63 - Retry upon entry into a new cell
95 - Semantically incorrect message
96 - Invalid mandatory information
97 - Message type non-existent or not implemented
98 - Message not compatible with protocol state
99 - Information element non-existent or not implemented
100 - Conditional IE error
101 - Message not compatible with protocol state
111 - Protocol error, unspecified
((const char*)response)[14] is the Primary Scrambling Code of the current
cell as described in TS 25.331, in hexadecimal
format, or NULL if unknown or not registered
to a UMTS network.
Please note that registration state 4 ("unknown") is treated
as "out of service" in the Android telephony system
Registration state 3 can be returned if Location Update Reject
(with cause 17 - Network Failure) is received repeatedly from the network,
to facilitate "managed roaming"
Valid errors:
SUCCESS
RADIO_NOT_AVAILABLE
GENERIC_FAILURE
log: DATA_REGISTRATION_STATE {1, ac17, 02219ea0, 9, null, 20, null, null, null, null, null}
1:registered,home network; ..., 9: raidoTech, HSDPA; 20:
The maximum number of simultaneous Data Calls that can be established using RIL_REQUEST_SETUP_DATA_CALL
RIL_REQUEST_DATA_REGISTRATION_STATE
Request current DATA registration state
"data" is NULL
"response" is a "char*"
((const char*)response)[0] is registration state 0-5 from TS 27.007 10.1.20 AT+CGREG (根据协议抄写到下面)
0 notregistered, MT is not currently searching an operator to register to
The UE is in GMM state GMM-NULL or GMM-DEREGISTERED-INITIATED.
The GPRS service is disabled, the UE is allowed to attach for GPRS if requestedby the user.
1 registered,home network
The UE is in GMM state GMM-REGISTERED or GMM-ROUTING-AREA-UPDATING-INITIATEDINITIATED on the home PLMN.
2 notregistered, but MT is currently trying to attach or searching an operator toregister to
The UE is in GMM state GMM-DEREGISTERED or GMM-REGISTERED-INITIATED. The GPRSservice is enabled, but an allowable PLMN is currently not available. The UEwill start a GPRS attach as soon as an allowable PLMN is available.
3 registrationdenied
The UE is in GMM state GMM-NULL. The GPRS service is disabled, the UE is notallowed to attach for GPRS if requested by the user.
4 unknown
5 registered,roaming
The UE is in GMM state GMM-REGISTERED or GMM-ROUTING-AREA-UPDATING-INITIATED ona visited PLMN.
((const char*)response)[1] is LAC if registered or NULL if not
((const char*)response)[2] is CID if registered or NULL if not
((const char*)response)[3] indicates the available data radio technology,
valid values as defined by RIL_RadioTechnology.
((const char*)response)[4] if registration state is 3 (Registration
denied) this is an enumerated reason why
registration was denied. See 3GPP TS 24.008,
Annex G.6 "Additonal cause codes for GMM".
7 == GPRS services not allowed
8 == GPRS services and non-GPRS services not allowed
9 == MS identity cannot be derived by the network
10 == Implicitly detached
14 == GPRS services not allowed in this PLMN
16 == MSC temporarily not reachable
40 == No PDP context activated
((const char*)response)[5] The maximum number of simultaneous Data Calls that can be
established using RIL_REQUEST_SETUP_DATA_CALL.
The values at offsets 6..10 are optional LTE location information in decimal.
If a value is unknown that value may be NULL. If all values are NULL,
none need to be present.
((const char*)response)[6] is TAC, a 16-bit Tracking Area Code.
((const char*)response)[7] is CID, a 0-503 Physical Cell Identifier.
((const char*)response)[8] is ECI, a 28-bit E-UTRAN Cell Identifier.
((const char*)response)[9] is CSGID, a 27-bit Closed Subscriber Group Identity.
((const char*)response)[10] is TADV, a 6-bit timing advance value.
LAC and CID are in hexadecimal format.
valid LAC are 0x0000 - 0xffff
valid CID are 0x00000000 - 0x0fffffff
Please note that registration state 4 ("unknown") is treated
as "out of service" in the Android telephony system
Valid errors:
SUCCESS
RADIO_NOT_AVAILABLE
GENERIC_FAILURE
typedef enum {
RADIO_TECH_UNKNOWN = 0,
RADIO_TECH_GPRS = 1,
RADIO_TECH_EDGE = 2,
RADIO_TECH_UMTS = 3,
RADIO_TECH_IS95A = 4,
RADIO_TECH_IS95B = 5,
RADIO_TECH_1xRTT = 6,
RADIO_TECH_EVDO_0 = 7,
RADIO_TECH_EVDO_A = 8,
RADIO_TECH_HSDPA = 9,
RADIO_TECH_HSUPA = 10,
RADIO_TECH_HSPA = 11,
RADIO_TECH_EVDO_B = 12,
RADIO_TECH_EHRPD = 13,
RADIO_TECH_LTE = 14,
RADIO_TECH_HSPAP = 15, // HSPA+
RADIO_TECH_GSM = 16, // Only supports voice
RADIO_TECH_TD_SCDMA = 17,
RADIO_TECH_IWLAN = 18
} RIL_RadioTechnology;
RIL_REQUEST_VOICE_REGISTRATION_STATE、RIL_REQUEST_DATA_REGISTRATION_STATE消息含义
标签:手机底层 ril ril_request registration_state
原文地址:http://8202061.blog.51cto.com/8192061/1615527