FAQ

Host Computer Unrecognizes Module After IIC/I/O Mode Switch—How to Change Communication Modes

userHead Schultz.Langley 2024-07-25 09:59:02 72 Views1 Replies

Why can't the host computer software recognize the module after switching to IIC or I/O mode? How to switch between different communication modes?

2025-07-25 10:58:14

Currently, the host computer software only supports the recognition of modules in UART mode. In UART mode, you can configure the module to IIC or I/O communication mode by entering the settings page after the host computer successfully recognizes it; In IIC communication mode, you can switch back to UART or I/O mode by sending instructions to the module through IIC communication according to the IIC communication protocol; In addition, without IIC test environment or after switching to I/O mode, you can switch back to UART mode in the following ways:

 

1.Users need to prepare a USB to TTL module that supports 921600 baud rate (CP2102 is recommended) and install the corresponding driver program. Connect the TX, RX, and 5V of the USB to TTL module to the corresponding pins of the TOF module, and do not connect the GND pin for the time being, then plug the USB to TTL module into the computer.

 

2.Open the host computer software, click to enter the serial port debugging assistant, change the baud rate to the baud rate you set before (if the baud rate has not been modified, it is 921600), select the COM port corresponding to the USB to TTL module and then click to connect to the COM port (in most cases, it will connect automatically). In the single send text box, enter 54 20 00 ff 00 ff ff ff ff 00 ff ff 00 10 0e ff ff ff ff ff ff ff ff ff ff ff 00 ff ff ff ff 7c, in the timed send bar at the bottom right, change the send interval to 20ms, and then check timed send.

 

3.At this time, connect the GND of the USB to TTL module to the GND pin of the TOF module, the module will switch to UART mode and start outputting data, at this time uncheck the timed send button, then unplug the USB to TTL module and re-power the module, then click the recognition button on the main page to recognize the module.

 

4.If the switch fails, unplug the USB to TTL module and repeat the whole process. Do not plug and unplug the GND pin multiple times when sending commands. If the module can be recognized normally but the serial port output data is abnormal, you can manually switch to UART mode in the settings page.

userHeadPic Schultz.Langley