This is the multi-page printable view of this section. Click here to print...

Return to the regular view of this page

As of 2025-08-01

UART Communication Without the STAGE App

Use CoolTerm for UART communication instead of the TWELITE STAGE App
    The terminal function of the TWELITE STAGE app is not suitable for advanced UART operations. This article introduces how to use the general-purpose software CoolTerm to access interactive mode and send binary data over UART.

    When the TWELITE STAGE App is Not Suitable

    The Terminal of the TWELITE STAGE app is intended only for simple evaluation purposes. Therefore, for advanced UART communication such as the serial communication app’s format modes (ASCII / Binary), there are the following issues:

    • When inputting a sequence to TWELITE’s RX, you must paste a pre-copied string using Alt+V / ⌘+V.
    • Binary data cannot be handled in HEX (hexadecimal) notation.

    Overview of CoolTerm

    CoolTerm is a general-purpose software specialized for serial communication. Unlike TeraTerm, it can handle binary data without using debug mode and supports multiple platforms.

    Using ASCII and Binary format modes of the serial communication app simultaneously

    Using ASCII and Binary format modes of the serial communication app simultaneously

    Installation

    Please download the files from the author’s homepage.

    Configuration

    In CoolTerm, you can name the serial port and its associated settings.

    Here, we introduce the necessary settings to adapt to the default TWELITE series.

    Settings can be changed from the Options menu.

    Serial Port

    Within Options, under Serial Port, check the following settings:

    • Port: The port used by the TWELITE R or MONOSTICK
    • Baudrate: Set to 115200 bps
    Example settings

    Example settings

    Terminal

    Within Options, under Terminal, mainly check the following settings:

    • Terminal Mode: Raw Mode
    • Enter Key Emulation: CR+LF
    Example settings

    Example settings

    Data Handling

    Within Options, under Data Handling, mainly check the following settings:

    • Clear Display on: Check ESC[2J] (enables screen clearing in interactive mode)
    • Check Handle BS and DEL Characters (enables character deletion in interactive mode)
    • Text Encoding: UTF8
    Example settings

    Example settings

    Transmit

    Within Options, under Transmit, mainly check the following settings:

    • Send String Options: Check Terminate 'Send String' Data
      • Termination String: 0D 0A (appends CRLF at the end in the send screen)
    Example settings

    Example settings

    Usage Examples

    Interactive Mode

    For interactive mode, it is recommended to set Options > Terminal > Terminal Mode to Raw Mode.

    After clicking Connect, select the main screen and input the + character three times.

    You can use interactive mode by directly typing characters just like in the TWELITE STAGE app.

    Example of using interactive mode

    Example of using interactive mode

    Serial Communication App Format Mode (ASCII)

    When handling sequences composed of ASCII strings starting with : and ending with CRLF, as in the serial communication app’s ASCII format mode, setting Options > Terminal > Terminal Mode to Line Mode is convenient.

    You can input line by line using the Enter key, and press the cursor key to refer to the history.

    The following figure shows an example of sending the byte sequence 0x11 0x22 0x33 0xAA 0xBB 0xCC several times from the Parent to all Children using the simplified format.

    Example of using ASCII format mode

    Example of using ASCII format mode

    Serial Communication App Format Mode (Binary)

    In the serial communication app’s binary format mode, set Options > Terminal > Terminal Mode to Raw Mode and uncheck Options > Transmit > Send String Options > Terminate 'Send String' Data.

    To display received data in hexadecimal, select View > View Hex.

    To send data represented in hexadecimal, select Connection > Send String... to open the send screen, and choose the Hex radio button.

    The following figure shows an example of sending the byte sequence 0x11 0x22 0x33 0xAA 0xBB 0xCC from the Parent to all Children using the simplified format.

    Example of using binary format mode

    Example of using binary format mode