Free IDE / Editor for Arduino / Genuino and its clones

# EDRUINO - Terminal

Each project can open its own serial terminal window. During a sketch upload, the COM port used is temporarily deactivated to allow sketch loader to put the sketch to an Arduino memory and then it is automatically activated again.

It is possible to open more terminals for single project, if e.g. uses more serial lines.

The terminal window is opened by clicking on the Terminal button:

When open, the terminal window consists of following parts:

- Tx (write) pane
- Rx (read) pane
- Collapsible channel pane

The terminal can work in two modes:

- Standard mode - all the data sent from Arduino are displayed
- Channel mode - Specially formated data from Arduino are interpreted as up to 8 data channels and are displayed in the boxes in the left panel including small bar graph under boxex.

## Standard mode

In standard mode, all incomming data are displayed in the Read window.

### CR / LF handling

As a default, CR character (0x13) is handled as a new line command and LF (0x10) is ignored. This behaviour can be changed by clicking on two blue buttons on the toolbar. Third blue button switches displaying of CR, LF and STX in symbolic form.

## Channel data

Channel data use following data format:

[*Xvalue]

- X is channel name and usually is represented by letters A-H (another letters can be configured)
- value is decimal representation of value

example of valid data: Serial.print("[*A128]"); Serial.print("[*C25]"); Serial.print("[*S1023]");

As a default range 0..1023 is set for bar-graph. This range can be changed by Channel range command sent by Arduino. Format is similar to data format, only instead of * uses !

Example: Serial.print("[!A512]")" sets range for A-channel to 512

As the channel data mode displays only the last data, data logging can be switched on the Log channels tab.

## Graphical representation of channel data - "oscilloscope"

First three channel data can be displayed in a form of graph.

Channel data values can be graphically summed up so that A+B, A+C, B+C and A+B+C can be displayed.

Oscilloscope can be used in two modes which are switched from po-up menu activated by right-clicking the graph. In normal mode, graph is updated only when data comes from Arduino. Free-run mode is analogous to osciloscope with free running time base.

## Terminal data setting

Terminal settings is read from the project configuration file if it exists and can be modified by the Setup dialog.

## Opened terminal list

On the left panel, there is a tab marked Terminals. It keeps the list of all opened terminal windows and clicking in terminal name activates it.

## Terminal as a stand-alone program

The terminal is bundled with the Edruino program under MjTerm.exe name. It can be used without starting Edruino as a universal serial line terminal.