# UART-Problem Run serial and debug at same time

**URL:** <https://forum.xod.io/t/uart-problem-run-serial-and-debug-at-same-time/4111>\
**Category:** Hardware Interfacing Questions\
**Created:** [June 14, 2020, 7:57pm UTC](https://forum.xod.io/t/uart-problem-run-serial-and-debug-at-same-time/4111 "2020-06-14T19:57:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris-cross](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@chris-cross](https://forum.xod.io/u/chris-cross)\
**Post date:** [June 14, 2020, 7:57pm UTC](https://forum.xod.io/t/uart-problem-run-serial-and-debug-at-same-time/4111/1 "2020-06-14T19:57:07Z")

</div>

Dear XODer,

used hardware:  
Wemos D1 Mini  
WTV020 dfp player (com. over serial)

at the moment i make a XOD Patch for the audio hardware WTV020 Player.  
The MP3 Player Interface work over serial communication.  
I use the pins GPIO1(TX) and GPIO3(RX) from the Wemos D1 Mini.

To communicate over serial in XOD i use uart-0 node between player and wemos.

The device works with hardware switch (digital read) perfectly (pic3)  
to play or stop sound respectivly send an command to the device

Problem comes, when i will use the Debug mode and Tweak nodes and/or hardware buttons at same time  
then no changes is respond on the debug mode and player want receive any data.  
Last picture i can control the device but the debug node show watch (pic3)  
Behind the boolean out run, is a Gate wich let Signals throug when uart is init (pic 1)

On Picture 2 you can see the SerialCommands for the Player.

Is there a problem in both ways to communicate with uart and debug at same time?

 ![2020-06-14 21_33_50-D__XOD IDE_My Patches_WTV020_DFPLAYER.xodball — XOD IDE](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/5/5320f99ccf4da16c41d810a83494e8fb53a79267.png) ![2020-06-14 21_33_50-D__XOD IDE_My Patches_WTV020_DFPLAYER.xodball2 — XOD IDE](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/b/bccd4f68de0cfe8329f28de2ebad22c56861536e.png) ![2020-06-14 21\_33\_50-D\_\_XOD IDE\_My ![2020-06-14 21_33_50-D__XOD IDE_My Patches_WTV020_DFPLAYER.xodball3 — XOD IDE](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/1/1a1646c888b50ccf0de9f472ec301679790bbf1d.png)  
thanks in advance

your  
Chris

---

<div class="post-metadata">

**Author:** ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)\
**Post date:** [June 14, 2020, 10:37pm UTC](https://forum.xod.io/t/uart-problem-run-serial-and-debug-at-same-time/4111/2 "2020-06-14T22:37:04Z")

</div>

Hi Chris,

As you’ve found, it’s not possible to use the same UART for both communicating with your MP3 player and debugging. I’m not familiar with the Wemos D1 Mini. If it has another hardware UART (e.g. UART-1) you could use it to connect to your MP3 player (the debugger will want to use UART-0). Alternatively you may be able to use software UART ([https://xod.io/libs/xod/uart/soft-uart/](https://xod.io/libs/xod/uart/soft-uart/)) to communicate with your MP3 player.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![chris-cross](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@chris-cross](https://forum.xod.io/u/chris-cross)\
**Post date:** [June 15, 2020, 6:38pm UTC](https://forum.xod.io/t/uart-problem-run-serial-and-debug-at-same-time/4111/3 "2020-06-15T18:38:25Z")

</div>

Thanks for answering wayland,  
i will try this with different ports and report back.

Greez  
Chris

---

<div class="post-metadata">

**Author:** ![chris-cross](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@chris-cross](https://forum.xod.io/u/chris-cross)\
**Post date:** [June 15, 2020, 9:04pm UTC](https://forum.xod.io/t/uart-problem-run-serial-and-debug-at-same-time/4111/4 "2020-06-15T21:04:00Z")

</div>

At first thank you so much Wayland,

the tip using software UART was the right way.  
After a view try´s now i can use gpio debug and tweak´s at same time.  
With this its easyer trying stuff.

 ![WTV020_1](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/6/6d35a79b7a0cdbe49da6c6ac5c07d5003bcdad10.png) ![WTV020_2](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/7/7cc0bd69203b657a3d1ac8502e049005f771a343.png) ![WTV020_3](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/3/33714f70cc6667d923a28db5d2dac29dbee26505.png)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [July 15, 2020, 9:04pm UTC](https://forum.xod.io/t/uart-problem-run-serial-and-debug-at-same-time/4111/5 "2020-07-15T21:04:12Z")

</div>

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