Device Management

Last Updated on : 2024-05-11 10:30:07download

Overview

With the Device Management BizBundle SDK, you can request the following information:

  • The device ID.
  • The time zone of the device.
  • The IP address of the device.
  • The signal strength of the device.
  • The connectivity of the device.
  • The MAC address of the device.
  • The local IP address of the device.
  • The Wi-Fi signal strength of the device.
  • The device channel (for Zigbee devices only).
  • The manufacturer of the device (for third-party Matter devices only).
  • The Integrated Circuit Card Identification Number (ICCID) of the device.
  • The reference signal received power (RSRP) of the device (for LTE Cat.1 devices only).

Implementation

Get device information

    // Get device information management class DeviceDetailInfoManager. Call getDeviceDetailInfo() to get the device details.
    IDeviceDetailInfoManager manager = ThingDeviceDetailKit.getInstance().getDeviceInfoManager();
    manager.getDeviceDetailInfo(deviceId, deviceDetailInfo -> {
        StringBuilder sb = new StringBuilder();
        if (deviceDetailInfo != null) {
            sb.append("Device ID:").append(deviceDetailInfo.devId).append("\n");
            sb.append("Device time zone:").append(deviceDetailInfo.timezone).append("\n");
            sb.append("Device IP address:").append(deviceDetailInfo.ip).append("\n");
            sb.append("Device signal strength:").append(deviceDetailInfo.netStrength).append("\n");
            sb.append("Device connection mode:").append(deviceDetailInfo.connectAbility.name()).append("\n");
            sb.append("Device MAC address:").append(deviceDetailInfo.mac).append("\n");
            sb.append("Device local IP address:").append(deviceDetailInfo.lanIp).append("\n");
            sb.append("Device Wi-Fi signal strength:").append(deviceDetailInfo.wifiSignal).append("\n");
            sb.append("Channel ID:").append(deviceDetailInfo.channel).append("\n");
            sb.append("Device manufacturer name:").append(deviceDetailInfo.vendorName).append("\n");
            sb.append("Device RSRP value:").append(deviceDetailInfo.rsrp).append("\n");
            sb.append("Device ICCID:").append(deviceDetailInfo.iccid).append("\n");
        } else {
            sb.append("No info");
        }
        deviceInfo.setText(sb.toString());
    });

Demo

For more information, see the Device Management Module in the BizBundle SDK Demo.