# \#stdin

**URL:** https://forums.digi.com/tag/stdin/2888.md

[Latest](https://forums.digi.com/latest.md) · [Categories](https://forums.digi.com/categories.md) · [Tags](https://forums.digi.com/tags.md)

---

## [Question about the UART buffer and sys.stdin](https://forums.digi.com/t/question-about-the-uart-buffer-and-sys-stdin/21174)

<div class="topic-metadata">

**Author:** [@Johnny\_Wu](https://forums.digi.com/u/Johnny_Wu)\
**Replies:** 3\
**Last updated:** [July 16, 2021, 11:03am UTC](https://forums.digi.com/t/question-about-the-uart-buffer-and-sys-stdin/21174 "2021-07-16T11:03:39Z")

</div>

Hi there, I’m currently doing a project and trying to read some data from a MCU. The XBee I’m using is XBee3 Cellular LTE-M/NB-IoT. The general process should be as follow: xbee send 0x05 to MCU to wake up the MCU, a…

---

## [SOLVED: read from stdin non-block](https://forums.digi.com/t/solved-read-from-stdin-non-block/16850)

<div class="topic-metadata">

**Author:** [@Martin.work](https://forums.digi.com/u/Martin.work)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 8:06am UTC](https://forums.digi.com/t/solved-read-from-stdin-non-block/16850 "2016-06-01T08:06:53Z")

</div>

Hello, I’m not able to read from stdin non-blocking. If I use: length = fread(buffer, 1, 10, stdin); My code hangs until buffer is full. If I use: serEopen(115200); serEdatabits(PARAM\_8BIT); serEparity(PARAM\_NOPA…
