China Telecom ZZHC library

The China Telecom ZZHC library implements the self-registration (Zi-ZHu-Ce, ZZHC) functionality that registers the module information on the server when the network is available.


The telecommunication modules that are part of the China Telecom network are required to provide certain information stored on the module to the ZZHC server ( This is required for conformity with Chapter 6 of the China Telecom IoT Module Requirements Whitepaper.

The ZZHC library is started as a background thread on boot and it automatically detects the availability of the operator network. Once the Internet connectivity is ready and a new SIM card is detected on boot, the library proactively uploads the following information to the ZZHC server:

  • IMEI

  • model number (that is, nRF9160)

  • modem revision

  • nRF9160 SIM ICCID

  • nRF9160 SIM IMSI

On any failure, which includes an unknown or negative response from the server or any error during the program execution, the ZZHC library retries to upload the information to the server once every hour, for a maximum of five attempts.


By default, the ZZHC library is not used in any sample.

Enabling the ZZHC library

To enable the ZZHC library, edit the prj.conf file according to the following steps:

  1. Set CONFIG_ZZHC to y. This option enables the ZZHC library and ensures that China Telecom can approve the end product. The following required options are automatically selected when the ZZHC library is enabled:

  2. Set CONFIG_TRUSTED_EXECUTION_NONSECURE to y. This option enables the Trusted Execution: Non-Secure firmware image. The ZZHC library only works when this option is enabled.

  3. Set CONFIG_HEAP_MEM_POOL_SIZE to the minimum heap size required (2560 bytes): CONFIG_HEAP_MEM_POOL_SIZE=2560.

  4. Set the following options required by CONFIG_NRF_MODEM_LIB:





  5. Set the following options required by CONFIG_SETTINGS:





    • CONFIG_NVS=y


Configuring additional thread behavior

You can configure the thread behavior using the following Kconfig options: