Device Pairing (Android)

Last Updated on : 2022-02-17 05:51:17download

Device Pairing SDK allows smart devices to be paired through routers. The following pairing modes are supported:

  • Wi-Fi Easy Connect (EZ)
  • Access point (AP), also known as the hotspot mode
  • Smart camera pairing in QR code mode
  • Wired pairing
  • Sub-device pairing
  • Device paring in QR code mode
  • Lightning search and pairing
  • NB-IoT device pairing
  • Bluetooth device pairing (For more information, see Bluetooth Series.)

Terms

Term Definition
Wi-Fi device A smart device that uses a Wi-Fi module to connect to a router and interact with apps and the cloud.
Wi-Fi Easy Connect Also known as the EZ mode. This pairing mode is implemented through the following steps:
  • 1. The app encapsulates the pairing data into the specified section of an IEEE 802.11 packet and sends the packet to the network.
  • 2. The Wi-Fi module of a smart device runs in promiscuous mode and listens for and captures all packets over the network.
  • 3. The Wi-Fi mode parses the packets that carry the pairing data from the app into the data format specified by the protocol.
AP pairing Also known as the hotspot mode or access point (AP) pairing. A mobile phone acts as a station (STA) and connects to the hotspot of a smart device. Then, both devices are paired to establish a socket connection between them and exchange data through the specified ports.
Smart camera pairing in QR code mode A smart camera scans the QR code on the app to get the pairing data.
Wired device A device that connects to a router over a wired network. For example, a wired device can be a Zigbee wired gateway or a wired camera.
Sub-device A device that interacts with apps and the cloud through a gateway. For example, a Zigbee sub-device is such a device.
Zigbee Zigbee is a short-range, simple, low-power, low-data-rate, cost-efficient, and two-way wireless communication technology.
It applies to short-range, low-power, and low-rate data transfer between various electronic devices, periodic data transfer, intermittent data transfer, and data transfer at a longer interval.
Zigbee gateway The device that integrates the coordinator with Wi-Fi features on a Zigbee network. The gateway is responsible to formulate the Zigbee network and store data.
Zigbee sub-device A router or a terminal on a Zigbee network. Each Zigbee sub-device is responsible to forward data, or responds to terminal control commands.