<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cannot init 2 UARTs on GPy]]></title><description><![CDATA[<p dir="auto">I am trying to initialize UART:</p>
<p dir="auto">uartGPS = UART(0, 9600)<br />
uartGPS.init(9600, bits=8, parity=None, stop=1, pins=('P3','P4'), timeout_chars=5)</p>
<p dir="auto">GPy gets frozen on these commands.</p>
<p dir="auto">uartGPS = UART(1, 9600)<br />
uartGPS.init(9600, bits=8, parity=None, stop=1, pins=('P3','P4'), timeout_chars=5)</p>
<p dir="auto">works well.</p>
<p dir="auto">I need for my projects two UARTs.</p>
]]></description><link>https://forum.pycom.io/topic/4007/cannot-init-2-uarts-on-gpy</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 21:21:37 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/4007.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Nov 2018 18:52:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cannot init 2 UARTs on GPy on Sat, 17 Nov 2018 07:11:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrejpekarcik" aria-label="Profile: andrejpekarcik">@<bdi>andrejpekarcik</bdi></a> UART0 is used for the REPL over USB. The regular speed is 115200. SO if you want to use that, you have to deinit REPL on UART, using uos.dupterm(None), and use Telnet for the REPL.</p>
]]></description><link>https://forum.pycom.io/post/23604</link><guid isPermaLink="true">https://forum.pycom.io/post/23604</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Sat, 17 Nov 2018 07:11:31 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot init 2 UARTs on GPy on Fri, 16 Nov 2018 23:22:35 GMT]]></title><description><![CDATA[<p dir="auto">I believe that bus 0 is used for REPL through serial connection in your case as well as this is an usual setup. Initializing new UART object on the same bus seems to stop terminal duplication (see os.dupterm() in docs). Try to connect to REPL via Telnet instead of serial connection.<br />
There is also bus 2 but according to the docs it is used for connection to LTE modem in case of GPy.</p>
]]></description><link>https://forum.pycom.io/post/23603</link><guid isPermaLink="true">https://forum.pycom.io/post/23603</guid><dc:creator><![CDATA[danielm]]></dc:creator><pubDate>Fri, 16 Nov 2018 23:22:35 GMT</pubDate></item></channel></rss>