Here’s how to switch between UART and IIC communication modes for the TFmini-S:
Switching to IIC Mode
- Connect the Device: Use a USB-to-UART converter to connect the TFmini-S to your PC.
- Open Serial Assistant: Select the correct port and set the baud rate to 115200.
- Send Commands: Send the communication interface configuration command:
5A 05 0A 01 6A
Then send the configuration save command:
5A 04 11 6F
. - Restart the Device: Power cycle the device to start it in IIC mode.
Switching Back to UART Mode
- Keep the Device Connected: Ensure the TFmini-S remains connected to your PC.
- 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
. - 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
, whereADDR
is the new slave address.
Please refer to the User guide for more.
Note: Bytes with yellow undertone represents checksum.