Updated on 2022-02-24 GMT+08:00

Device Development

Overview

Based on the protocol used by the device to connect to the IoT platform, there are two access scenarios:
  • Access using CoAP or LWM2M. In this scenario, devices can connect to the IoT platform by integrating NB-IoT modules or LiteOS SDK.

    Integrating NB-IoT Modules

    Devices integrated with NB-IoT modules can connect to the IoT platform through NB-IoT networks.

    Features

    • Wide coverage: The gain is 20 dB higher than that of LTE.
    • Low power consumption: The solution focuses on applications with small data volume at a low rate.
    • Massive amounts of connections: A single sector supports a maximum of 50,000 connections.
    • Low cost: NB-IoT chipsets or modules are cost-effective for its low rate, low power consumption, and low bandwidth.

    Scenarios

    Low requirements on data timeliness, small data packets, fixed locations, and power supply from batteries. For example, smart metering and smart street lamp.

    Applicable Networks

    • NB-IoT network: constructed by carriers
    • NB-IoT SIM card: purchased from NB-IoT network carriers
    • NB-IoT module: purchased from the module manufacturers.

    Communication Protocols

    CoAP/LWM2M

    Integrating LiteOS SDK

    The LiteOS SDK is a lightweight SDK integrated on the device. Its features are as follows:

    Features

    • Protocols and security details are shielded. Users can focus on their applications without paying attention to the implementation of protocols and security policies.
    • An adaptation layer is provided. Users can migrate LiteOS SDK by adapting only a few interfaces.
    • Data reported by devices can be cached and retransmission and acknowledgment mechanisms are provided to ensure data reporting reliability.
    • Firmware upgrade, resumable download, and integrity protection for firmware packages are supported.
    • Security and non-security connection modes are supported.

    Running Environment Requirements

    RAM > 32 KB

    FLASH > 128 KB

    Applicable Networks

    NB-IoT, 2G/3G/4G, and wired networks

    Communication Protocols

    CoAP and LWM2M

  • Access using MQTT/MQTTS. In this scenario, devices can connect to the IoT platform by integrating AgentLite SDK.

    AgentLite SDK is a lightweight SDK integrated on the device. Its features are as follows:

    Features

    • Multiple network access modes are supported, such as Wi-Fi, 2G/3G/4G, and wired network.
    • After devices are integrated with the lightweight SDKs, they can be connected to the IoT platform by calling APIs.
    • Data in JSON format is used for frequent communication and communication involving huge amount of data.

    Running Environment Requirements

    RAM > 4 MB

    FLASH > 600 KB

    Currently, the following platforms are supported:

    ARM Linux (Embedded Linux)

    MIPS Linux (Embedded Linux)

    x86 Linux

    x86_64 Linux

    x86 Windows

    x86_64 Windows

    Android (Java)

    Applicable Networks

    2G/3G/4G and wired network

    Communication Protocols

    HTTPS, MQTT, and MQTTS