How to switch between UART and IIC communication modes of the TFMINI-S

Here’s how to switch between UART and IIC communication modes for the TFmini-S:

Switching to IIC Mode

  1. Connect the Device: Use a USB-to-UART converter to connect the TFmini-S to your PC.
  2. Open Serial Assistant: Select the correct port and set the baud rate to 115200.
  3. Send Commands: Send the communication interface configuration command:
    5A 05 0A 01 6A
    Then send the configuration save command:
    5A 04 11 6F.
  4. Restart the Device: Power cycle the device to start it in IIC mode.

Switching Back to UART Mode

  1. Keep the Device Connected: Ensure the TFmini-S remains connected to your PC.
  2. Send Commands: Send the command to switch back to UART mode:
    5A 05 0A 00 69
    Then send the configuration save command:
    5A 04 11 6F.
  3. Restart the Device: Power cycle the device to restore it to UART mode.

Notes

  • Always send the configuration save command (5A 04 11 6F) after modifying parameters; otherwise, the settings will reset upon reboot.
  • If you need to change the I2C slave address, use the command:
    5A 05 08 ADDR 5U, where ADDR is the new slave address.

Please refer to the User guide for more.

Note: Bytes with yellow undertone represents checksum.