Fundamentals 4 min read

How OceanConnect IoT Platform Handles Immediate, Cached, and Batch Commands

This article explains the two command delivery modes—immediate and cached—offered by Huawei's OceanConnect IoT platform, details the TTL parameter, illustrates the command flow for various device modes, and describes five batch command strategies for large‑scale device control.

Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
How OceanConnect IoT Platform Handles Immediate, Cached, and Batch Commands

OceanConnect Command Delivery Mechanisms

Today we discuss how the Huawei OceanConnect IoT platform implements its command issuance mechanisms.

Two Command Issuance Modes

Immediate Issuance : The command is sent instantly; if the device is offline or does not receive the command, the issuance fails. This mode suits scenarios requiring real‑time command execution, such as turning street lights on/off or opening gas valve shutters. The application must ensure the timing of issuance.

Cached Issuance : The platform stores the command in a queue after receipt. When the device comes online, the platform sequentially delivers the queued commands. This mode is appropriate for scenarios with less stringent real‑time requirements, like configuring water‑meter parameters.

The platform also supports an expireTime (TTL) parameter when sending commands to the IoT management platform:

expireTime=0: Immediate issuance.

expireTime>0: Cached issuance.

Command Flow Diagrams

Immediate command issuance flow:

Immediate command flow diagram
Immediate command flow diagram

DRX/eDRX mode command issuance flow:

DRX/eDRX command flow diagram
DRX/eDRX command flow diagram

PSM mode command issuance flow:

PSM command flow diagram
PSM command flow diagram

Batch Command Issuance

The platform also supports batch command issuance, which is a cached command feature useful for controlling multiple devices simultaneously. Five batch command types are available:

DeviceList – send commands based on a device list.

DeviceType – send commands based on device type.

DeviceArea – send commands based on geographic area.

GroupList – send commands based on device groups.

Broadcast – broadcast commands to all devices.

Implementation diagram for batch commands:

Batch command implementation diagram
Batch command implementation diagram

Detailed module functions for batch command issuance:

Batch command module details
Batch command module details

Key point: Batch command issuance uses the cached command mechanism, linking it to the platform's cached delivery feature.

That concludes today’s five‑minute tutorial. Stay tuned after the holidays for more practical NB‑IoT application insights.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

IoTcachedOceanConnectbatch commandscommand deliveryimmediate
Huawei Cloud Developer Alliance
Written by

Huawei Cloud Developer Alliance

The Huawei Cloud Developer Alliance creates a tech sharing platform for developers and partners, gathering Huawei Cloud product knowledge, event updates, expert talks, and more. Together we continuously innovate to build the cloud foundation of an intelligent world.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.