# Serial text output timeout?

**URL:** <https://forum.arduino.cc/t/serial-text-output-timeout/1411159>\
**Category:** General Guidance\
**Created:** [October 29, 2025, 8:53pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159 "2025-10-29T20:53:19Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![synthgal](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@synthgal](https://forum.arduino.cc/u/synthgal)\
**Post date:** [October 29, 2025, 8:53pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/1 "2025-10-29T20:53:20Z")

</div>

I'm trying to get serial data from my Adafruit Feather RP2350 via USB for debug purposes. My test code sends out an incrementing number every x seconds. If x == 1 second, it works no problem with any serial monitor (such as tio, minicom, or the Arduino IDE). However, if x \>= 2.3 seconds, the data stops after a message or two. The serial port doesn't disconnect when the issue occurs, I only get disconnect alerts when I reset or physically unplug the board. I have tried multiple microcontroller boards from multiple brands, I've switched cables, USB ports, nothing works. This issue occurs on my Debian 12 Framework 13 laptop and my partner's Debian 13 Thinkpad T480s, but _not_ my Debian 10 server, my freshly reflashed Raspberry Pi 3, or my WIndows 10 PC. Those computers accept the data just fine. I know the code is running properly on the boards because I set the built in LED to flash every time a serial message is sent out. The common factor seems to be our laptops.

I have checked lsof /dev/ttyACM0 to rule out other software grabbing the serial port, I've checked udev and stty rules (well, my partner did) to the best of my (well, her) ability, everything is identical between the different computers serial settings. My partner updated her kernel to the latest version and it still occurs.

I'm out of ideas, and this issue has completely stopped my personal projects. Does anyone have any ideas what could be going wrong? I know this isn't strictly an Arduino problem but I'm hoping someone here can help out regardless.

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [October 29, 2025, 9:07pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/2 "2025-10-29T21:07:28Z")

</div>

Welcome to the forum

The problem is probably caused by your sketch but as you did not post it we can't tell

Please post your full sketch, using code tags when you do

Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination

In my experience the easiest way to tidy up the code and add the code tags is as follows

Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [October 29, 2025, 9:09pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/3 "2025-10-29T21:09:24Z")

</div>

> [@synthgal](#):
>
> This issue occurs

It sounds like a time out from the computer software. Possibly the used protocol is involved in the same way.

---

<div class="post-metadata">

**Author:** ![camsysca](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/camsysca/32/1015228_2.png) [@camsysca](https://forum.arduino.cc/u/camsysca)\
**Post date:** [October 29, 2025, 9:13pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/4 "2025-10-29T21:13:08Z")

</div>

That it works on some machines, not others, makes me think your sketch is okay, it's config on the machines you're fighting. Can't help there.

---

<div class="post-metadata">

**Author:** ![synthgal](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@synthgal](https://forum.arduino.cc/u/synthgal)\
**Post date:** [October 29, 2025, 10:57pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/5 "2025-10-29T22:57:17Z")

</div>

```arduino
void setup() {
  Serial.begin(115200);
  delay(2000);
  pinMode(LED_BUILTIN, OUTPUT);
}

int i = 0;
bool led = false;

void loop() {
  Serial.println(i);
  digitalWrite(LED_BUILTIN, led);
  delay(5000);
  led = !led;
  i++;
}

```

---

<div class="post-metadata">

**Author:** ![BitSeeker](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/bitseeker/32/1241632_2.png) [@BitSeeker](https://forum.arduino.cc/u/BitSeeker)\
**Post date:** [October 29, 2025, 11:11pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/6 "2025-10-29T23:11:45Z")

</div>

Check for the presence of the `brltty` service and if running then turn it off and disable it.

---

<div class="post-metadata">

**Author:** ![synthgal](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@synthgal](https://forum.arduino.cc/u/synthgal)\
**Post date:** [October 29, 2025, 11:47pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/7 "2025-10-29T23:47:42Z")

</div>

not brltty, no ModemManager.

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [October 30, 2025, 12:57am UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/8 "2025-10-30T00:57:15Z")

</div>

> [@synthgal](#):
>
> I have tried multiple microcontroller boards from multiple brands,

I'm assuming by this you mean that it happens not only with an Adafruit Feather RP2350 but also (for example), an Uno R3, Pico, Nano Every, Wemos D1 mini, that kind of thing?

Anything of note in dmesg, syslog, debug, kern.log, daemon.log, etc.?

Have you tried it with a USB/serial cable with Tx and Rx jumpered together, and sending a character from your PC, waiting a few seconds, sending another character?

Just brainstorming...

---

<div class="post-metadata">

**Author:** ![BitSeeker](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/bitseeker/32/1241632_2.png) [@BitSeeker](https://forum.arduino.cc/u/BitSeeker)\
**Post date:** [October 30, 2025, 1:01am UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/9 "2025-10-30T01:01:00Z")

</div>

Ah well, it seemed at least a possibility. You wouldn't have them installed on a server and `brltty` is not usually installed on the Pi or Windows by default, but it might be on a Linux workstation so it seemed to kind of fit your list of working and non-working computers. Since they are not present, then there must obviously be another explanation.

You have already checked udev and stty. Have you checked whether the logged in user is a member of the dialout and plugdev groups?

You can check udev events with:

`sudo udevadm monitor`

This would show events such as the device being unplugged - or if it is randomly disconnecting and re-connecting for some reason.

Not sure what else to suggest at the moment. It does seem a bit odd.

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [October 30, 2025, 2:41am UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/10 "2025-10-30T02:41:28Z")

</div>

> [@synthgal](#):
>
> I'm out of ideas, and this issue has completely stopped my personal projects.

I am out of ideas too, having never heard of linux dropping a connection like that.

But if the serial data transfer works on some computers, why can't your project make use those?

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [October 30, 2025, 2:47am UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/11 "2025-10-30T02:47:34Z")

</div>

The only time I've seen anything like that was with a Pico (RP2040) and ModemManager was running unbeknownst to me. The serial connection would work (mostly) but it was unstable. I'd lose characters and get odd hangs.

---

<div class="post-metadata">

**Author:** ![synthgal](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@synthgal](https://forum.arduino.cc/u/synthgal)\
**Post date:** [October 30, 2025, 1:57pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/12 "2025-10-30T13:57:42Z")

</div>

All the computers that work are fixed in positions (ie the server is in a rack in a closet) that I can't easily work around. I would _much_ prefer working from my laptop. I know that's not a great answer but it's what I got.

---

<div class="post-metadata">

**Author:** ![camsysca](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/camsysca/32/1015228_2.png) [@camsysca](https://forum.arduino.cc/u/camsysca)\
**Post date:** [October 30, 2025, 3:06pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/13 "2025-10-30T15:06:53Z")

</div>

Just an unlikely thought - laptops sometimes have some pretty aggressive power management options. While it's hard to believe a timeout for that purpose that's as short as you describe, it might be worth looking at the settings on the laptop. Look for something that allows you to disable such features, or at least set the timeouts for more reasonable periods.

---

<div class="post-metadata">

**Author:** ![ua6em](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ua6em/32/930389_2.png) [@ua6em](https://forum.arduino.cc/u/ua6em)\
**Post date:** [October 31, 2025, 2:19pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/14 "2025-10-31T14:19:19Z")

</div>

> [@camsysca](#):
>
> -

To start, simply turn off the power saving function

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [April 29, 2026, 2:19pm UTC](https://forum.arduino.cc/t/serial-text-output-timeout/1411159/15 "2026-04-29T14:19:43Z")

</div>

Closed on April 29, 2026, 2:19pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
