Fundamentals 8 min read

Step-by-Step Guide to Integrating NB‑IoT with Huawei OceanConnect

This article provides a comprehensive, step-by-step tutorial on preparing, provisioning, and connecting NB‑IoT devices to Huawei's OceanConnect platform, covering partner program enrollment, application creation, profile upload, codec development, device binding, data transmission, and signal downlink.

Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Step-by-Step Guide to Integrating NB‑IoT with Huawei OceanConnect

Preparation

Apply to join Huawei's IoT Solution Partner Program by reviewing the MAR system manual and IoT partner policy. After approval, you will receive an automated email allowing you to request OceanConnect platform resources and the SoftRadio tool.

Device Access and Data Reporting

Step 1: Create an Application – Log in to the SP Portal, create a new application, and obtain the appid and secret. These credentials map your northbound application to the platform.

Step 2: Upload Device Profile – Develop a device profile file that defines the device’s basic information and service capabilities, compress it into a ZIP package, and upload it to the previously created application via the SP Portal.

Step 3: Northbound Application Development – Implement authentication, direct‑device registration, and device‑information modification interfaces. After these three functions are completed, an offline device can be created on the platform and verified through the SP Portal.

Codec Development

Develop a codec plugin that implements four tasks: decode uplink data, decode uplink signals, encode downlink signals, and encode downlink data responses. Follow Huawei’s documentation and demo code, modifying only the encode and decode functions while keeping the original directory structure.

Southbound Device Binding

Method 1: Use SoftRadio to simulate an NB module, base station, and core network via its graphical interface. Method 2: Use a real NB module (if a live network is available) and send AT commands to bind the device. Successful binding changes the device status from offline to online in the SP Portal.

Southbound Data Transmission

Send data from the device using the AT+NMGS command over a serial port. Ensure the data format matches the definitions in the codec plugin. Successful uploads appear in the device’s event section on the SP Portal; failures require troubleshooting.

Northbound Data Retrieval

The northbound server can obtain device data by subscribing to data‑change messages or by calling the data query API.

Signal Downlink

1. Create and Send Signal – The northbound application creates a signal whose parameters must conform to the device profile. 2. Device Receives Signal – The device must be online (or report data) within the signal’s valid time window to receive it. 3. Device Executes Signal – After execution, the device returns the result to the platform; the result format must match the codec implementation.

Other Functional Modules

Based on project needs, you can develop additional features such as batch processing, rule engines, etc.

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.

NB-IoTdevice provisioningHuaweicodec developmentIoT integrationOceanConnect
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.