Skip to main content

Using the UART Interface

There are two serial ports on the device: one is the DEBUG UART dedicated to debugging, and the other is the UART interface used for web UI triggering. Hardware Base Board Interface Diagram Expansion Port Schematic

Connecting the DEBUG UART

The baud rate of the debug serial port is 1500000, and the hardware interface specification is MX1.25. The pin sequence is shown below. DEBUG_UART_PIN

  1. First, prepare a USB-to-serial converter. Connect the TX of the converter to the RX pin of the device, and connect the RX of the converter to the TX pin of the device. Remember to connect GND as well.
  2. Power on the device, and you will be able to see the device debugging information on the converter. DEBUG_UART_SHOW

Using the UART on the Expansion Interface

This UART interface is used as the UART interface for web UI triggering. It can be used to receive AI inference data, and it can also be used to send commands to trigger events.

Serial Port Trigger

  1. First, prepare a 10-pin MX1.25 cable and plug it into the expansion interface.

  2. Then, according to the pin sequence in the expansion diagram above, connect it to your USB-to-TTL tool. Connect the TX of the converter to the RX pin of the device, and connect the RX of the converter to the TX pin of the device. Remember to connect GND as well.

  3. In Device Info -> Connection Settings, you can set the serial port baud rate. DEBUG_UART_CONFIG

  4. In Recording Settings -> Recording Configuration -> Serial Port Trigger, click Configure to set the trigger command. DEBUG_UART_COMMAND_CONFIG

  5. Open the serial port tool, select the corresponding serial port device, and send the trigger command. DEBUG_UART_SEND_COMMAND

  6. In Recording Settings -> File Preview, you can view the photo or video captured by the serial port trigger just now. DEBUG_UART_FILE_SHOW

note

The trigger command can only be sent in ASCII format. HEX sending is not supported, and Chinese characters are not supported.

Receiving AI Inference Results

  1. First, in AI Inference -> Output Method, select Serial Port. UART_AI_OUTPUT_CONFIG

  2. Open the serial port tool, and you will be able to see the output results. UART_AI_OUTPUT

Technical Support and Product Discussion

Thank you for choosing our products! We are here to provide you with various support to ensure your experience with our products is as smooth as possible. We offer multiple communication channels to meet different preferences and needs.

Loading Comments...