Skip to content

Serial connection closes after receiving interrupted system call #609

Closed
@petrica

Description

@petrica

Bug Report

Describe the bug

After opening the serial monitor and reading data from an Arduino, if the amount of data is consistent and protracted in time, an interrupted system call error closes the serial connection.

To Reproduce

Write an Arduino sketch that sends data continuously to the serial monitor.

Expected behavior

Connection is kept opened and data is received.

Environment (please complete the following information):

  • OS: macOs
  • OS Version: Catalina 10.15.7
  • Browser: Chrome
  • Browser Version: 87.0.4280.141
  • Agent Version: 1.2.0-5c796d2

Additional context

This bug seems to have been present in the Arduino CLI as well and got resolved by upgrading the bugst/go-serial library to latest version.

Arduino CLI similar issue here: arduino/arduino-cli#507

bugst/go-serial version that handles the interrupt: bugst/go-serial@6a673bf

Metadata

Metadata

Assignees

Labels

type: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions