Guest User

Untitled

a guest
Mar 28th, 2011
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1. /**
  2. * RIL_REQUEST_REGISTRATION_STATE
  3. *
  4. * Request current registration state
  5. *
  6. * "data" is NULL
  7. * "response" is a "char **"
  8. * ((const char **)response)[0] is registration state 0-6,
  9. * 0 - Not registered, MT is not currently searching
  10. * a new operator to register
  11. * 1 - Registered, home network
  12. * 2 - Not registered, but MT is currently searching
  13. * a new operator to register
  14. * 3 - Registration denied
  15. * 4 - Unknown
  16. * 5 - Registered, roaming
  17. * 10 - Same as 0, but indicates that emergency calls
  18. * are enabled.
  19. * 12 - Same as 2, but indicates that emergency calls
  20. * are enabled.
  21. * 13 - Same as 3, but indicates that emergency calls
  22. * are enabled.
  23. * 14 - Same as 4, but indicates that emergency calls
  24. * are enabled.
  25. *
  26. * ((const char **)response)[1] is LAC if registered on a GSM/WCDMA system or
  27. * NULL if not.Valid LAC are 0x0000 - 0xffff
  28. * ((const char **)response)[2] is CID if registered on a * GSM/WCDMA or
  29. * NULL if not.
  30. * Valid CID are 0x00000000 - 0xffffffff
  31. * In GSM, CID is Cell ID (see TS 27.007)
  32. * in 16 bits
  33. * In UMTS, CID is UMTS Cell Identity
  34. * (see TS 25.331) in 28 bits
  35. * ((const char **)response)[3] indicates the available radio technology 0-7,
  36. * 0 - Unknown, 1 - GPRS, 2 - EDGE, 3 - UMTS,
  37. * 4 - IS95A, 5 - IS95B, 6 - 1xRTT,
  38. * 7 - EvDo Rev. 0, 8 - EvDo Rev. A,
  39. * 9 - HSDPA, 10 - HSUPA, 11 - HSPA
  40. * ((const char **)response)[4] is Base Station ID if registered on a CDMA
  41. * system or NULL if not. Base Station ID in
  42. * decimal format
  43. * ((const char **)response)[5] is Base Station latitude if registered on a
  44. * CDMA system or NULL if not. Base Station
  45. * latitude is a decimal number as specified in
  46. * 3GPP2 C.S0005-A v6.0. It is represented in
  47. * units of 0.25 seconds and ranges from -1296000
  48. * to 1296000, both values inclusive (corresponding
  49. * to a range of -90∞ to +90∞).
  50. * ((const char **)response)[6] is Base Station longitude if registered on a
  51. * CDMA system or NULL if not. Base Station
  52. * longitude is a decimal number as specified in
  53. * 3GPP2 C.S0005-A v6.0. It is represented in
  54. * units of 0.25 seconds and ranges from -2592000
  55. * to 2592000, both values inclusive (corresponding
  56. * to a range of -180∞ to +180∞).
  57. * ((const char **)response)[7] is concurrent services support indicator if
  58. * registered on a CDMA system 0-1.
  59. * 0 - Concurrent services not supported,
  60. * 1 - Concurrent services supported
  61. * ((const char **)response)[8] is System ID if registered on a CDMA system or
  62. * NULL if not. Valid System ID are 0 - 32767
  63. * ((const char **)response)[9] is Network ID if registered on a CDMA system or
  64. * NULL if not. Valid System ID are 0 - 65535
  65. * ((const char **)response)[10] is the TSB-58 Roaming Indicator if registered
  66. * on a CDMA or EVDO system or NULL if not. Valid values
  67. * are 0-255.
  68. * ((const char **)response)[11] indicates whether the current system is in the
  69. * PRL if registered on a CDMA or EVDO system or NULL if
  70. * not. 0=not in the PRL, 1=in the PRL
  71. * ((const char **)response)[12] is the default Roaming Indicator from the PRL,
  72. * if registered on a CDMA or EVDO system or NULL if not.
  73. * Valid values are 0-255.
  74. * ((const char **)response)[13] if registration state is 3 (Registration
  75. * denied) this is an enumerated reason why
  76. * registration was denied. See 3GPP TS 24.008,
  77. * 10.5.3.6 and Annex G.
  78. * 0 - General
  79. * 1 - Authentication Failure
  80. * 2 - IMSI unknown in HLR
  81. * 3 - Illegal MS
  82. * 4 - Illegal ME
  83. * 5 - PLMN not allowed
  84. * 6 - Location area not allowed
  85. * 7 - Roaming not allowed
  86. * 8 - No Suitable Cells in this Location Area
  87. * 9 - Network failure
  88. * 10 - Persistent location update reject
  89. *
  90. * Please note that registration state 4 ("unknown") is treated
  91. * as "out of service" in the Android telephony system
  92. *
  93. * Registration state 3 can be returned if Location Update Reject
  94. * (with cause 17 - Network Failure) is received repeatedly from the network,
  95. * to facilitate "managed roaming"
  96. *
  97. * Valid errors:
  98. * SUCCESS
  99. * RADIO_NOT_AVAILABLE
  100. * GENERIC_FAILURE
  101. */
  102. #define RIL_REQUEST_REGISTRATION_STATE 20
Advertisement
Add Comment
Please, Sign In to add comment