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-07-24

TWE Programmer

A TWELITE flashing and terminal tool for Windows

    TWE Programmer is a utility for flashing firmware to TWELITE series wireless microcontrollers and connecting to the terminal.

    Installation

    Download TWE-Programmer.exe from our website and copy it to any location.

    Operating Environment

    Developed and tested under the following environment:

    VersionOS.NET
    v3.8.1Windows 10 Pro 1809v4.0.30319

    Dependencies

    FTDI Driver

    You may need to install the FTDI serial converter IC driver used in TWELITE R and MONOSTICK.

    Launch

    Launch TWEProgrammer.exe by double-clicking it, like any standard application.

    Example screen after startup

    Example screen after startup

    Flashing Firmware

    Selecting the COM Port

    Select the COM port connected to TWELITE R or MONOSTICK with a TWELITE module.

    If TWELITE is properly recognized, the serial number printed on its surface will be displayed.

    Selecting the Firmware

    Press the button to select a file or drag a .bin file to load and begin firmware flashing. If a previously selected file still exists, you can press the “(Re)Write” button to reflash it.

    Example screen during flashing

    Example screen during flashing

    If “Connect to Terminal” is checked, TWELITE will be automatically reset and the terminal screen will be displayed.

    Example screen after flashing

    Example screen after flashing

    Options

    Slow Write (Safe Mode)

    Applies safer settings. Usually not needed.

    Verify

    Verifies the data after flashing.

    Connecting to the Terminal

    Baud Rate Configuration

    The baud rate can be changed from the “Terminal” section. The setting uses 8N1 format.

    Connecting the Terminal

    To use only the terminal without flashing, check “Connect to Terminal” and press “Reset TWELITE”.

    Disconnecting the Terminal

    Click “Disconnect Terminal” or press Alt+I.

    Shortcuts

    FunctionKey CombinationRemarks
    Disconnect TerminalAlt+IOr the “Disconnect Terminal” button
    Connect Terminal (normal)Alt+NConnect without reset
    Connect Terminal (reset)Alt+RConnect with reset
    Hardware ResetAlt+R
    Send +++Alt+POr the + + + button.
    Used to enter interactive mode
    Change Terminal Display ColorAlt+GOnly when connected
    Clear Terminal DisplayAlt+LOr the clear button
    Copy Display ContentsAlt+COr the copy button
    Paste from ClipboardAlt+V
    Open Firmware FileCtrl+Alt+ODisabled while connected to terminal
    Reflash FirmwareCtrl+Alt+W
    Erase FirmwareCtrl+Alt+EDisabled while connected to terminal
    Change Terminal Rendering ModeCtrl+Alt+DSwitch to double-buffer mode.
    Cursor hidden, may cause rendering issues
    Exit TWE ProgrammerCtrl+Alt+X

    The following escape sequences are also supported:

    FunctionKey Combination
    Move cursor up one lineESC[A]
    Move cursor to beginning of lineESC[G]
    Move cursor to home positionESC[H
    Clear screenESC[2J
    CR / Move cursor to beginning of line\r

    Logging

    To log terminal input and output, check “Save Terminal Log” before connecting.

    A log file named twelog.log will be saved in append mode in the same folder as TWE-Programmer.exe.

    To obtain multiple logs simultaneously, install TWE-Programmer.exe in separate folders.

    Input/Output Format

    The following format is used for saving:

    CharacterDescription
    Printable ASCII characters (excluding backslash \)excluding backslash \
    Backslash \ (0x5C)converted to \\
    Othersrepresented in hexadecimal

    Input from PC to TWELITE is enclosed in escape sequences to distinguish it from TWELITE’s output.

    • Input start: ESC[7m]
    • Input end: ESC[0m]

    Settings

    Several settings can be configured via command-line options at startup.

    ParameterDescription
    -vEnable verify
    -cDisable auto-connect after startup
    -sEnable slow write (safe mode)
    -DEnable double buffer
    Reduces flickering but hides cursor and imposes limitations
    -g [num]
    --color [num]
    Specify text color (0 for none)
    0: Pink/Wine
    1: Orange/Black
    2: Green/Black
    3: Black/White
    4: White/Wine
    5: Wine/Yellow
    6: White/Blue
    [file]Specify firmware file to load

    You can create a program shortcut and add command-line options via its properties.

    Example of the Properties dialog

    Example of the Properties dialog

    Error Output

    If an error occurs during flashing, the screen will turn pink as shown below. Check the connection and press “(Re)Write”.

    Example of flashing failure

    Example of flashing failure

    Errors also occur if another software is using the COM port. Close the software using the port, then press “Recheck Connection”.

    Example of connection failure

    Example of connection failure