T3-X Series Modules

Last Updated on : 2024-07-18 09:23:33download

This topic describes information about implementing serial communication between T3-X series modules and MCUs.

Overview

T3-X series, including T3-U, T3-U-IPEX, T3-3S, and T3-E2, is a low power Wi-Fi and Bluetooth Low Energy (LE) combo module. It supports both the access point (AP) mode and station (STA) mode for Wi-Fi connection as well as a connection over Bluetooth LE.

Serial protocol

Serial communication between module and MCU

  • Connection between a module and a 3.3V MCU

    T3-X Series Modules
  • Connection between a module and a 5V MCU

    In the following circuit diagram, voltage level translation can be implemented with a bidirectional voltage-level translator, a MOS transistor, or a triode.

    T3-X Series Modules

Level translator reference

  • N-channel MOSFET level translator: An N-channel MOSFET and a built-in body diode are used to implement two-way communication.

    T3-X Series Modules
  • NPN triode level translator: An NPN triode is used to implement one-way communication.

    T3-X Series Modules

Design specification

Serial port pin

The following table lists the specification and pin information of T3-X modules for serial communication with an MCU.

Module model Input voltage (TYP) Input current (MAX) TX pin No. TX silk screen RX pin No. RX silk screen
T3-U 3.3V 370 mA 15 TX0 16 RX0
T3-U-IPEX 3.3V 370 mA 15 TX0 16 RX0
T3-3S 3.3V 380 mA 16 TX0 15 RX0
T3-E2 3.3V 370 mA 31 TX0 30 RX0

Power supply

  • For modules with a 3.3V input voltage, the supply current must be greater than the maximum input current. The total capacity of the external filter capacitor should be greater than 10 μF.
  • Place the filter capacitors C1 and C2 near the power pin of the module.

Pins on module

  • The GPIO might experience an uncontrollable high level within five milliseconds of starting the module (before the program startup). Place a 4.7 kΩ pull-down resistor if needed.
  • The CEN pin of the module is a hardware reset pin. The module has internal weak pull-up resistors configured. If the pin is not used, it can float. If a module has been paired, this pin cannot be used to clear pairing information.
  • The TX1 pin on the module is used to select a mode. Pulling TX1 down before the module is powered on will start the test firmware, while floating it or pulling it up will start the application firmware. In normal use, this pin is used as a log printing port.
  • Other unused pins can be left floating.
  • For information about specific pins, refer to the module datasheet.

Power-on sequence of the module

  • Suppose that the high-level voltage settling time of the module’s GPIO is t2 and the voltage settling time of the module power pin is t1. Every time the module is powered on, t2 must be greater than or equal to t1, as shown in the following figure.

    T3-X Series Modules
  • If t2 is less than t1, the module might fail to start.

    • To return the module to its normal state, pull down the module reset pin (RST/CEN) for one millisecond and pull up to restart the module.
    • Repeatedly power cycling the module power pin will not restore it to its normal state.

Antenna clearance

  • Do not use metal shells or plastic shells with metallic paint or coating in the direction of the antenna radiation. Do not use metal objects such as screws and rivets near the antenna, which might affect the antenna efficiency.

  • Try to increase the distance from the top shell to the antenna to minimize the impact on antenna performance.

    T3-X Series Modules
  • Try to increase the distance from the upper and bottom shells to the antenna to minimize the impact on antenna performance.

    T3-X Series Modules
  • Keep the module away from speakers, power switches, cameras, HDMI, USB, and other high-speed signals to avoid interference.

  • Avoid metal shielding near the antenna. If co-channel interference occurs, you must evaluate the impact on the antenna performance and ensure isolation from interference.

Antenna placement

  • Horizontal placement

    We recommend that you place the module at the edge of the backplane with the antenna facing outward, and flush the module’s GND terminal with the backplane’s GND terminal. Both terminals are fully connected.

    T3-X Series Modules
  • Embedded placement

    Embed the module into the backplane through a slot that is flushed with or deeper than the module’s GND terminal. The side of the slot must be 15 mm or farther from the module’s board edge.

    A wider slot can achieve better performance that is still weaker than that of horizontal placement.

    T3-X Series Modules
  • Vertical placement

    Insert the module vertically into the backplane slot with the antenna facing upward. The module’s GND terminal and the backplane’s GND terminal must be fully connected. We recommend that you keep a clearance distance of 15 mm or more around the antenna.

  • Location of the antenna on the backplane

    When the MCU backplane is large, select the antenna position according to the following rules:

    T3-X Series Modules
    • When the antenna comes out from the left side of the module, you can choose position 1 or position 2 (optimal).

      T3-X Series Modules
    • When the antenna comes out from the right side of the module, you can choose position 5 or position 4 (optimal).

      T3-X Series Modules

Low power design

Option 1: Control module power pin on/off

This circuit design can achieve overall low power consumption.

T3-X Series Modules

How it works

As shown in the circuit diagram, the MCU can control the switch S1 with the GPIO pin to power on/off the module.

  • When the MCU has data to report to the cloud, it turns the S1 on. Then, the module can receive data from the MCU and report data to the cloud and the mobile app.
  • When data reporting is completed, the module will be powered off and consume no power.

Disadvantages

  • Current sinking occurs. When the switch S1 is turned off, the TXD and RXD pins on the module are still connected to the RXD and TXD pins on the MCU.
  • Therefore, the current from the MCU can flow into the VCC pin of the module through the UART pin.
  • The TXD and RXD pins of the module are high, so the current sinking will increase the consumption of the module.
  • When the switch S1 is turned on next time, t2 will be less than t1, which can cause the module to be frozen.

Solution 1

Optimize the software of the MCU without hardware modification. When the MCU detects the data reporting is completed, the program proceeds with the following steps.

  1. Set the TXD and RXD pins of the MCU as GPIO pins that are configured as the open-drain or weak pull-down mode.

  2. Turn the switch S1 off to power off the module.

  3. This way, when the MCU has data to report, it turns the S1 on firstly.

  4. Then, it configures the TXD and RXD pins as the UART to establish communication with the module for data transmission.

    This solution does not apply to MCUs whose UART pin cannot be configured as the open-drain or weak pull-up mode. If the UART circuit has a pull-up resistor, one terminal of the resistor must be connected to the VCC pin of the module, or you can directly remove this resistor.

Solution 2

Add a level translator to the circuit without software modification. See the circuit diagram in the preceding sections Level translator reference and Connection between a module and a 3.3V MCU and embed a level translator in the UART circuit.

Option 2: Reduce power usage in idle state

Pull down the module’s clock enable (CEN) pin or reset (RST) pin to reduce idle consumption.

T3-X Series Modules

How it works

As shown in the circuit diagram, the MCU can control the CEN or RST pin with the GPIO pin to power on/off the module.

  • When the MCU has data to report to the cloud, the GPIO outputs high to power on the module. Then, the module can receive data from the MCU and report data to the cloud and the mobile app.
  • When data reporting is completed, the GPIO outputs low and the module runs in reset mode with low power consumption.

Disadvantages

The CEN or RST pin has a 10 kΩ internal pull-up resistor, so the module has an input current of 330 μA in the reset mode.

Radio frequency (RF) test

The antenna is susceptible to the distance from the shell to the surrounding components. We recommend that you test the radio frequency (RF) performance after the final test. The RF test items and metrics are listed in the following table.

Test item Test metric
Increasing indoor distance ≥ 50m
Increasing outdoor distance ≥ 75m
Total radiated power (TRP) in the signaling mode of end devices (test mode of 11B 11 Mbit/s). ≥ 10 dBm
Total isotropic sensitivity (TIS) in the signaling mode of end devices (test mode of 11B 11 Mbit/s). ≤ -83 dBm
  • TRP and TIS must be tested in a dark chamber of the antenna manufacturers or certified organizations.
  • The test items apply to most Wi-Fi products, excluding certain special products.