IFREEQ Docs
  • Introduction
  • Update Log
  • General Knowledge
    • About IoT
    • Electricity
      • Plug & socket types around the world
        • Power plug & outlet Types A & B
        • Power plug & outlet Type C
        • Power plug & outlet Type D
        • Power plug & outlet Type E
        • Power plug & outlet Type F (Schuko)
        • Power plug & outlet Type G
        • Power plug & outlet Type H
        • Power plug & outlet Type I
        • Power plug & outlet Type J
        • Power plug & outlet Type K
        • Power plug & outlet Type L
        • Power plug & outlet Type M
        • Power plug & outlet Type N
        • Power plug & outlet Type O
      • Full list: Plug, socket & voltage by country
      • Map showing the spread of the different plug types worldwide
      • Useful information for travellers
      • History of domestic electricity
        • Why isn’t there a universal standard electric plug?
        • Why isn’t there a standard voltage around the world?
      • Three-phase electric power (industrial applications only)
    • Certifications
    • Home Automation Brand
    • Home Automation Catalog
    • Industry Term
    • Network Term
    • The Third-party Control
      • AliGenie
      • Amazon Alexa
        • FAQs About Amazon Alexa
      • DuerOS
        • FAQs About DuerOS
      • Google Assistant
        • FAQs About Google Assistant
      • Home Assistant
        • FAQs About Home Assistant
      • HomeKit
        • FAQs About Homekit
      • IFTTT
      • Xiao AI
      • Yandex Alice
        • FAQs About Yandex Alice
  • Developer
    • Introduction
      • What is Tuya Smart?
      • What does Tuya do?
      • Tuya Smart Cloud Platform Overview
      • Advantages
      • Terms
      • Limits
    • Quick Start
    • Configure in Platform
      • Create Products
      • Function Definition
        • Overview
        • Standard Functions
        • Custom Functions
        • Cloud Functions
      • Design App UI
      • Configure Hardware
      • Cloud Configuration
        • Introduction
        • Upgrade Firmwares
        • Set up Multilingual UI
        • Manage Alarms
        • Configure Network for Devices
        • Enable Toggles on App
        • Automate the Smart Devices
      • Mass Production
    • Device Development
      • Access Mode MCU
        • MCU Access Guide
        • Wi-Fi General Solution
          • Wi-Fi Module MCU Development Overview
          • Hardware Design Reference Wi-Fi
          • Software Reference Wi-Fi
            • Tuya Cloud Universal Serial Port Access Protocol
            • Overview of migrating Tuya's MCU SDK
        • Wi-Fi Power Off Fast Connect Device Solution
          • Overview
        • Zigbee General Solution
          • Overview
          • Software development
            • Tuya Zigbee module UART communication protocol
          • Hardware Design
        • BLE General Solution
          • BLE Module MCU Development Overview
          • BLE Hardware Design
        • NB-IoT General Solution
          • NB-IoT Development Guide
          • Introduction to NB Module - NM1
      • Access Mode SoC
        • SoC Development Overview
        • Lighting
          • Guidance
          • Design
          • Test
        • Electrician
          • Guidance
          • Design
          • Test
      • Access Mode Link
        • Wi-Fi Chip SDK
          • Tuya Wi-Fi SDK Reference
          • Development Environment Setup When Using Tuya Wi-Fi SDK
        • BLE Chip SDK
          • TUYA BLE SDK User Guide
        • Zigbee Chip SDK
          • TUYA Zigbee SDK Document
      • Cloud Mode
        • Wi-Fi&BT Dual Mode Module
        • Wi-Fi Module
        • Bluetooth Module
        • Zigbee Module
        • Sub-G Module
      • Tuya Development Boards
      • Access Mode Simmulator
        • Module Debugging Assistant Instruction
      • Embedded License
        • Embedded open source license
    • Smart Product Solution
      • Gateway
        • MCU Access
        • Link SDK Access
        • PCB Details
      • HouseHold
        • Cleaner Robot
        • Air Conditioner
      • IPC
      • Lock
        • BLE Lock
        • Wi-Fi Lock
        • Zigbee Lock
      • Remote Control
      • Voice Product
        • Domestic Voice Speaker Solution
        • Domestic Voice Infrared SoC Solution
        • Overseas Voice Solution
        • Design Reference Materials - Alexa Module
        • Design Reference Materials - Domestic Voice Module
    • Firmware
      • S8E
  • FAQs
    • Device Development
      • Cloud Module
        • Wi-Fi Module
        • Zigbee Module
        • BLE Module
        • GPRS Module
        • NB-IoT Module
        • Dual-mode Module
        • Other Module Issues
      • Access Mode SoC
      • MCU Access Mode
        • Wi-Fi General Solution
        • Zigbee General Solution
        • BLE General Solution
          • BLE Single-point Solution
          • BLE Mesh General Solution
          • Other Issues of BLE Solution
        • NB-IoT General Solution
        • Other Issues of MCU Access Mode
      • Module SDK Development
        • BLE Chip SDK(single point)
        • Linux General SDK
        • NB-IoT Chip SDK
        • Wi-Fi Chip SDK
        • Others about Module SDK
      • Other Issues of Device Development
    • Smart Product Solution
      • Electrical
        • Outlet
        • Scenario Switch
        • Switch
      • Lighting
        • Wi-Fi Lighting
        • Zigbee Lighting
        • Bluetooth Lighting
        • Other Issues of Lighting
      • Lock
        • BLE Lock
        • NB-IoT Lock
        • Wi-Fi Lock
        • Zigbee Lock
        • Other Issues of Lock
      • Sensor
      • Gateway
        • BLE Gateway
        • Wireless Gateway
        • Zigbee Gateway
        • Other Issues of Gateway
      • IPC
      • Infrared Products
        • Infrared remote control
        • Infrared Capability Introduction
        • Infrared Code Library
      • Sweeper
      • Household Appliances
      • Pet Supplier
      • BLE Mesh Typical Solution
        • BLE Mesh Lighting Solution
        • BLE Mesh Electrical Solution
        • BLE Mesh Sensor Solution
        • BLE Mesh General Solution
    • Products
      • Electric
        • Smart Switch
        • Smart Plug
        • Curtain Controller
      • Lighting
      • Security
        • E202/203 Smart Lock
    • More
  • Links
    • ifreeq.cn
    • ifreeq.com
    • AIoT Expo
    • Official Store
Powered by GitBook
On this page
  • How does a universal gateway interact with an MCU?
  • How do I create a sub-device?
  • How do I create a gateway?
  • The gateway cannot be activated, what does 'sign verified error' in log printed?

Was this helpful?

  1. FAQs
  2. Smart Product Solution
  3. Gateway

Other Issues of Gateway

How does a universal gateway interact with an MCU?

1. Start the module: When the module is powered on, it sends a product information query frame to the MCU. If the MCU does not reply with any product information, the module will not respond to other commands. If the gateway is only used to transmit transparent data, no DPs are created on the gateway, and bit2 in the product information cap field is set to 0. If the gateway provides other features, DPs are created on the gateway, and bit2 in the product information cap field is set to 1. The sub_id 0000 indicates the gateway.

2. Add a sub-device. The MCU can send a sub-device addition command only after receiving a permit network access command. After the gateway module sends a deny network access command, it does not accept new sub-device addition commands. However, it can still process sub-device addition commands received previously. For example, the gateway receives a command to add sub_1 at 7:30:30 and sends a deny network access command at 7:30:31. Then, sub_1 can be added successfully. After you add the gateway to the app and connect the gateway to the network, tap Add Sub-device on the app panel so that the gateway module will send a permit network access command. If the gateway module is working in self-processing mode, the module will send a permit network access command after it detects a button tapping operation. This command will time out in 100s. One command can create multiple sub-devices with the same PID. The value of the sub_id field is in ASCII format and you can customize the value length. However, a value with fewer than 25 bytes is recommended.

3. Heartbeat mechanism: The gateway sends a query frame to the MCU at intervals to query the heartbeat of sub-devices. The hb_time field in the heartbeat response frame determines the interval. If the gateway fails to receive a reply from a sub-device, it will retransmit the query frame three times. If the gateway still does not receive a reply, it will set that sub-device to the offline status. The gateway will no longer send heartbeat query frames to that sub-device until the gateway receives a status frame from that sub-device and sets its status to online. After a sub-device is added, the default heartbeat interval is set to 60s. After the gateway is restarted, it polls the heartbeat of all sub-devices at an interval of 60s.

How do I create a sub-device?

1. Currently, sockets are the only available sub-device type.

2. To create a sub-device, choose Electrician > Socket >Custom Socket.

3. Set the communication type to Other.

4. To create a sub-device of another type, ask your project manager to contact the product manager. Currently, you cannot create such a sub-device on the platform yourself.

How do I create a gateway?

1. On the Tuya Smart platform, click Create.

2. Choose Others > Gateway. The type of a gateway running an earlier version is Wi-Fi connector. To create a gateway running an earlier version, resend a sample.

The gateway cannot be activated, what does 'sign verified error' in log printed?

Pls check if UUID, AUTHKEY and PID are filled correctly.

PreviousZigbee GatewayNextIPC

Last updated 4 years ago

Was this helpful?