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
  • I used the serial interface assistant to send a network pairing command based on the protocol used for module connection. Why didn't the module enter the network pairing mode?
  • Where can I get the two Wi-Fi serial debugging assistants provided by Tuya?
  • How to grab the module's print log?
  • What can I do if the CRC sum check fails?
  • What can I do when the Wi-Fi indicator blinks quickly but network pairing fails?
  • How to address the issue that the module cannot work properly?
  • How should the MCU respond to the sending state query of the module state?
  • How do I use the function debugging file?
  • How to report the fault type?
  • What are the serial port access requirements?
  • Why can an MCU be successfully paired only after a restart?
  • What is the Tuya MCU simulation and debugging assistant?
  • What is the Tuya Cloud simulation assistant?
  • Does the cloud simulation assistant support all communications protocols?
  • What is the minimum size of a Wi-Fi module upgrade package?
  • How to perform product test of Wi-Fi MCU solution?
  • What is the Tuya Cloud low-power simulation assistant?
  • How many schedules can be added for a Wi-Fi product?
  • Can the MCU debugging assistant be connected to the network?
  • Will a module send the Wi-Fi status upon power-on?
  • Can Tuya's MCU Simulation and Debug Assistant connect to the Internet?
  • How many DPs can be added for a Wi-Fi product?

Was this helpful?

  1. FAQs
  2. Device Development
  3. MCU Access Mode

Wi-Fi General Solution

PreviousMCU Access ModeNextZigbee General Solution

Last updated 4 years ago

Was this helpful?

I used the serial interface assistant to send a network pairing command based on the protocol used for module connection. Why didn't the module enter the network pairing mode?

The serial interface assistant can send a network pairing command to the module only after the heartbeat packet, product information query command, MCU working mode query command, Wi-Fi working status, and MCU connection status are sent to the module using the basic protocol.

Where can I get the two Wi-Fi serial debugging assistants provided by Tuya?

MCU debugging assistant and cloud serial debugging assistant. At present, the two assistants have been sorted together. You can go to the platform to download or submit the work order to find technical support.

How to grab the module's print log?

When you need to see the running log information of the module, you can lead the module log port and use the serial port tool to view the print log information.wiring

  • TYWE3S general module class

Pull out the GPIO2 and GND of the module, and connect the RX and GND of the USB to TTL module respectively.

  • TYWE1S general module class

Pull out the U0TX and GND of the module, and connect the RX and GND of the USB to TTL module respectively.

Open serial debugging assistant

  • Set the serial debugging assistant:

Baud rate: 74880, data bit: 8, parity bit: none, stop bit: 1, data flow control: none

  • Match the COM port, open the serial port:

View logs

Print ASCII characters, send the screenshot or save the log to the graffiti engineer.

What can I do if the CRC sum check fails?

If the CRC sum check fails, compare the check value with the calculation result in the example.

What can I do when the Wi-Fi indicator blinks quickly but network pairing fails?

1. If the indicator keeps blinking quickly, retry or restart the Wi-Fi module and try again. If network pairing still fails, provide your router model and mobile phone model to Tuya technical support engineers.

2. If the indicator blinks quickly and then becomes steady off, check whether the Wi-Fi network to which your mobile phone is connected can access the Internet and whether the Wi-Fi network name and password are correct. If yes, disconnect the device and try again.

3. If the indicator blinks quickly, turns off, and finally becomes steady on, disconnect the device and try again. If network pairing still fails, contact Tuya technical support engineers.

How to address the issue that the module cannot work properly?

The required supply voltage and current of the Wi-Fi module are 3.3V (3.0V-3.6V) and over 300mA respectively.In case the supply voltage of the module is too low or too high or the current of the module is too low, the module cannot work properly, and the following phenomena may occur:

  • The module cannot be started normally and no normal heartbeat packages are sent.

  • The module is restarted repeatedly or restarted during the network configuration.

How should the MCU respond to the sending state query of the module state?

When the MCU receives the state query instruction of the Wi-Fi module, the MCU shall report the locally reportable data one by one so as to facilitate the smart phone App synchronizing the device state.

How do I use the function debugging file?

The function debugging file is generated based on data points. You can use the file with Tuya's ComAssistant.

Note the following after you modify the data points in the Tuya Smart platform:

1. If you use ComAssistant, download the latest function debugging file and import it to the ComAssistant to synchronize the modified content.

2. If you use the Wi-Fi module, remove the module and add it again. The local function debugging file is updated each time a module is added.

How to report the fault type?

If the fault values filled-in on the platform are E1, E2, H1 and H2, the corresponding fault values are 0x01, 0x02, 0x04 and 0x08. The fault values shall be arranged in the ascending order of the bit, 32 faults can be supported at most, i.e., 32bit (4 bytes) and multiple faults can be reported at the same time.

What are the serial port access requirements?

1. Hardware access standard: TTL serial port, and 3.3 V power input

2. Software access parameters:

  • baud rate of 9600

  • 8 data bits

  • no parity check

  • 1 stop bit

  • no data flow control

Why can an MCU be successfully paired only after a restart?

A module restarts during pairing. After it is restarted, it will send a string of garbled characters. Check whether the basic protocol exists after the restart. If yes, check whether the problem is caused by the garbled characters as follows: Connect Serial Port Utility between the MCU and the module through the TX/RX and GND pins. Check whether the module returns a heartbeat packet after a restart. Query product information and check the module operating status.

What is the Tuya MCU simulation and debugging assistant?

The Tuya MCU simulation and debugging assistant simulates the MCU data sending and receiving. It is connected to developers' Wi-Fi modules through a USB-to-TTL tool to:

(1) verify whether the Wi-Fi modules function properly;

(2) test the app panel display before MCU development is completed;

(3) offer data to the developers for their reference on how to send or return data to the modules.

What is the Tuya Cloud simulation assistant?

The Tuya Cloud simulation assistant simulates data sending and receiving of a Wi-Fi module. It is connected to developers' MCUs through a USB-to-TTL tool to verify whether data sending and receiving of the MCUs comply with Tuya's communication protocol and module workflow.

Does the cloud simulation assistant support all communications protocols?

Tuya's cloud simulation assistant has been optimized and integrated most communications protocols.

What is the minimum size of a Wi-Fi module upgrade package?

256 bytes.

How to perform product test of Wi-Fi MCU solution?

The MCU sends a Wi-Fi function test command such as 0x55 0xaa 0x00 0x0e 0x00 0x00 0x0d to the Wi-Fi module. After receiving the command, the Wi-Fi module scans for an SSID as the Wi-Fi hotspot of the tuya_mdev_test. If it is scanned, it will return the signal strength percentage, otherwise it will return failure and the corresponding error code.

What is the Tuya Cloud low-power simulation assistant?

The Tuya Cloud simulation assistant simulates data sending and receiving of a Wi-Fi module. It is connected to developers' MCUs through a USB-to-TTL tool to verify whether data sending and receiving of the MCUs comply with Tuya's communication protocol and module workflow.

How many schedules can be added for a Wi-Fi product?

Up to 30 schedules can be added.

Can the MCU debugging assistant be connected to the network?

Yes. The MCU debugging assistant simulates the communication between the MCU and the module, which is equivalent to the customer's MCU. You can use the mobile phone to configure the network and connect to the cloud.

Will a module send the Wi-Fi status upon power-on?

Yes.

Can Tuya's MCU Simulation and Debug Assistant connect to the Internet?

The cloud assistant is to simulate the communication between the module and the MCU. It mainly depends on whether the MCU can correctly interact with the module. It does not support networking.

How many DPs can be added for a Wi-Fi product?

Hello, this is related to the module. Generally speaking, the maximum number of DPs that can be added is 25-30.