Skip to content

tools/serial.inc.mk: add support miniterm.py#12743

Merged
aabadie merged 1 commit intoRIOT-OS:masterfrom
aabadie:review_miniterm
Nov 19, 2019
Merged

tools/serial.inc.mk: add support miniterm.py#12743
aabadie merged 1 commit intoRIOT-OS:masterfrom
aabadie:review_miniterm

Conversation

@aabadie
Copy link
Contributor

@aabadie aabadie commented Nov 19, 2019

miniterm.py is a simple terminal program that is included with pyserial.
This means that it is available wherever pyterm can work. It allows raw
access, does line translation and passes through special characters.

Co-authored-by: Juan Carrano j.carrano@fu-berlin.de

Contribution description

This PR adds support for miniterm as alternative for RIOT_TERMINAL.

It's a rework of the initial PR: #11003

Testing procedure

The following should launch miniterm instead of pyterm:

RIOT_TERMINAL=miniterm make BOARD=samr21-xpro -C examples/default flash term

Issues/PRs references

Will be useful for #2968

miniterm.py is a simple terminal program that is included with pyserial.
This means that it is available wherever pyterm can work. It allows raw
access, does line translation and passes through special characters.

Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
@aabadie aabadie added Type: new feature The issue requests / The PR implemements a new feature for RIOT CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: tools Area: Supplementary tools labels Nov 19, 2019
@aabadie aabadie requested a review from kaspar030 November 19, 2019 14:13
@aabadie aabadie mentioned this pull request Nov 19, 2019
1 task
TERMFLAGS ?= --nolock --imap lfcrlf --baud "$(BAUD)" "$(PORT)"
else ifeq ($(RIOT_TERMINAL),miniterm)
TERMPROG ?= miniterm.py
# The RIOT shell will still transmit back a CRLF, but at least with --eol LF
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The RIOT shell will still transmit back a CRLF

really?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand neither the issue nor the comment. RIOT should send LF on every "\n", which the terminal is supposed to turn into "\r\n" before sending to the console, so "--eol LF" is definitely correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand neither the issue nor the comment.

This is taken as-is from the original PR. Do you have a better suggestion for the comment ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, what's happening is that miniterm sends "\r\n" on enter, and the RIOT shell accepts both as newline.

Copy link
Contributor

@kaspar030 kaspar030 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, works. ACK.

@aabadie aabadie merged commit ea8257b into RIOT-OS:master Nov 19, 2019
@aabadie aabadie deleted the review_miniterm branch November 19, 2019 14:58
@fjmolinas fjmolinas added this to the Release 2020.01 milestone Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: new feature The issue requests / The PR implemements a new feature for RIOT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants