Aliyun CCP Access Protocol User Manual

This manual details how devices connect to Aliyun IoT Platform using the CCP protocol, including authentication and data channel setup.


Aliyun CCP Access Protocol User Manual - cover page
Brand
阿里云
Document type
User Manual
Language
Chinese
Pages
36
File format
PDF
File size
1.8 MB
Published
04 November, 2026
Updated
04 November, 2026
MD5 checksum
18C3CB1FEB79ED13ABC9602289EE96FC

About this manual

This document explains the CCP protocol for device-to-cloud communication in Aliyun IoT. It covers device authentication using HMAC-MD5 or HMAC-SHA1, key generation, and secure data channel access. The protocol includes steps for obtaining server certificates, exchanging session IDs, and establishing encrypted connections. It also defines message types like CONNECT, PUSH, RPC, and PING/PONG for device-cloud interaction.

The manual includes technical specifications for parameters such as deviceId, productKey, deviceSecret, and seedkey, along with encryption algorithms and certificate handling. It provides code examples in Java and C for implementation, and describes error codes for troubleshooting. This manual is written in Chinese.

What's inside

  • CCP Protocol Overview
  • Device Authentication
  • Data Channel Access
  • Message Types
  • Encryption and Decryption
  • Error Codes
  • Code Examples (Java & C)

Specifications

Authentication AlgorithmHMAC-MD5 (default) or HMAC-SHA1
Session ID (sid)32-bit hex string, cached locally for 24 hours
Seed Key16-byte random array, RSA encrypted with server's public key
Certificate FormatX.509 certificate in PEM format, base64-encoded
Message TypesCONNECT, PUSH, RPC, PING, PONG, DISCONNECT, RECONNECT, etc.

Frequently asked questions

How does a device authenticate with the Aliyun IoT platform?

The device sends a signed request to http://manager.channel.aliyun.com/iot/auth using HMAC-MD5 or HMAC-SHA1, with parameters including deviceId, productKey, and a computed signature.

What is the purpose of the seedkey in CCP?

The seedkey is a 16-byte random value generated by the device, encrypted with the server's public key, and used to decrypt the session token (sid) for secure communication.

What are the supported message types in CCP?

CCP supports CONNECT, PUSH, RPC, PING, PONG, DISCONNECT, RECONNECT, and others for device-cloud communication.

How is data encrypted in CCP?

Data is encrypted using AES-128-ECB with PKCS5 padding, using the seedkey as the key, and then base64-encoded for transmission.

Download PDF (1.8 MB)

More 阿里云 Manuals


View all 阿里云 manuals →