How the universal remote control works for Smart Life TUYA app?

huangdaisy 发布

Universal remote control function

1.Infrared remote control function

  1. Set the remote control to enter the pairing state, connect the mobile APP to wifi, and request a network token from the cloud platform
  2. The distribution network token is issued in the cloud, the mobile APP broadcasts the wifi account password and the distribution network token, and the remote control obtains the configuration information sent by the mobile APP and registers to the cloud platform
  3. The mobile phone searches the cloud platform for the device according to the token obtained previously
  4. Return to the device information, finish adding the universal remote controller, APP can start to control the universal infrared remote controller
  5. Universal infrared remote control to add sub-devices: open the APP, enter the universal remote control software interface, connect to wifi, add devices of the corresponding brand, and the APP sends instructions to the cloud platform to query related infrared code libraries
  6. The cloud platform issues the infrared code corresponding to the brand to the universal infrared controller, the mobile phone APP sends function instructions to the universal infrared controller, the infrared controller sends the corresponding infrared code, and the device responds.

   The APP interface asks whether there is a response, if so, click OK, the universal infrared remote control returns the matching information to the cloud platform

  1. The cloud platform returns the device information to the APP to complete the addition of the device.2.Bluetooth gateway function
    1. Set the remote control to enter the pairing state, connect the mobile APP to wifi, and request the network token from the cloud platform
    2. The cloud platform issues the distribution network token, the mobile phone broadcasts the wifi account password and the distribution network token, and the remote control obtains the configuration information sent by the mobile phone and registers it to the cloud platform
    3. The mobile phone finds the device in the cloud according to the token obtained previously
    4. Return the device information, finish adding the universal remote controller, APP can start to control the universal infrared remote controller
    5. Add sub-device for gateway function: set the Bluetooth device to be paired to the pairing state, open the APP, enter the universal remote control software interface, connect wifi, turn on the Bluetooth, and the APP sends the network access command to the Bluetooth remote

       The remote control starts to search for surrounding Bluetooth devices

    1. When the device information of the target Bluetooth device is searched, the universal infrared remote control will transmit the searched device information and the sub-device access request to the wifi through the serial port and submit it to the cloud platform.
    2. The cloud platform returns the device information, completes the addition of the Bluetooth device, and the APP can start to control the Bluetooth sub-device through the universal infrared remote control3.Any DIY learning function

分享此文章



← 较旧的文章 较新的文章 →


0 条评论

发表评论