/pps/services/cds/cnice/status

Cellular data services (CDS) status object

Publishers
Cellular data service
Subscribers
Clients of the cellular data service

Connection status attributes

For each logical connection, CDSC publishes an attribute that provides the current state of the connection and the radio. The attribute name is the logical connection name, and the value is a JSON string comprising several fields that describe the state of the connection. Some fields may not be present, depending on the current state. For example, if enabled is false, then no other fields will be present. The fields are listed in the following table:

Field Data type Description
enabled Boolean Indicates whether the connection is configured for the carrier configuration and current radio state (always published). If true, a connection request can be made to the network. A value of false indicates the connection is not configured (essentially doesn't exist). For a given carrier, a connection could be configured (exist) for one RAT, e.g., LTE, but not for other RATs, e.g., 1X/EVDO. For another carrier a connection may not be configured for any RAT, i.e., is never supported by that carrier. Note that this attribute only reflects the known network "design" for the carrier and does not reflect transient refusals such as authorization failures or no bandwidth for pay as you go accounts. These types of transient refusals are reflected in the connection error codes in the status object.
always_on Boolean Indicates whether a connection is considered "always on". Always published. If true, the CDSC component will attempt to activate this connection as part of its default connection manager logic (upon the appropriate radio and SIM events).
access_controlled Boolean Indicates whether access to a connection is controlled. Always published. If access is controlled then only system processes and applications granted the appropriate connection capability can access the connection's control object to make connect and disconnect requests. Furthermore, the network interface(s) for the connection have packet filters installed to allow traffic only from such authorized processes and applications.
zero_rated Boolean Indicates whether the connection is zero-rated (no customer charge) for the current configuration. Always published. Note that a carrier may have a connection as zero-rated for one RAT, e.g., LTE, but might decide to apply charges in a different RAT, e.g., 3G.
active Boolean Indicates whether a connection request has been made. Always published. If true, the connection state of the service can be pending_connect or connected.
connected Boolean Indicates whether the connection is active. Published only when true. If true, applications with the appropriate capabilities can route traffic over the connection through the published network interface(s).
on_hold Boolean Published only if active is true and the connection request has failed (is being retried).
bid Integer array Optional. Lists ID numbers of the underlying network bearers linked to this connection.
net_if String The name of the network interface that is routing traffic for this connection. Published only if connected is true). This is the value used by applications to bind sockets to the specific connection as well as to get the IP information about the connection from NET_PPS.
apn String The access point name (APN) used to establish this connection. Published only if connected is true.
deactivate_reason Number Indicates the reason a connection isn't active (has been torn down). Published only if active is false. The supported reason codes are:
  • 0—normal operation
  • 1—service update

data_services_status attribute

This attribute indicates current data service's overall status. It can be one of the following values:

  • ON—data services are enabled and always-on connections have been activated by CDSC. On-demand connections can be requested.
  • OFF—data services are disabled and deactivated. On-demand connections will be refused.
  • OFF_ROAMING—the same as OFF except data services are turned off because the device entered a data roaming state. Data services maybe re-enabled via the enable_data_roaming message (see /pps/services/cds/cnice/control).

data_roaming_status attribute

This attribute indicates the current data roaming state. It can be one of the following values:

  • ROAMING—the device is considered to be in a data roaming state. Note that, depending on the carrier, this might not align with the radio roaming state.
  • NOT_ROAMING—the device is not considered to be in a data roaming state.

user_enabled_data_roaming attribute

This attribute indicates whetherdata roaming has been explicitly enabled via the control message enable_data_roaming (see /pps/services/cds/cnice/control). It can be one of the following values:

  • empty—data roaming has not been explicitly enabled or disabled.
  • YES—data roaming has been explicitly enabled.
  • NO—data roaming has been explicitly disabled.

Examples

Here is an example of the connection attribute for the carrier_admin connection indicating it is active:
carrier_admin:json:
{
    "enabled":true,
    "always_on":false,
    "access_controlled":true,
    "zero_rated":true,
    "connected":true,
    "net_if":"msm4",
}
Here is an example of the connection attribute for the internet connection indicating it is active:
internet:json:
{
    "enabled":true,
    "always_on":true,
    "access_controlled":false,
    "zero_rated":false,
    "connected":true,
    "net_if":"msm0",
}
Here is an example of the connection attribute for the carrier_apps connection indicating that the connection failed:
carrier_apps:json:
{ 
    "enabled":true,
    "always_on":false,
    "access_controlled":true,
    "zero_rated":true,
    "active":true,
    "bid":[6],
    "connected":false,
    "on_hold":true
}