<?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[Serial port integration results in gibberish]]></title><description><![CDATA[<p dir="auto">Greetings,<br />
Riddle me this.  I can get two Omega2+'s (O2+) to speak between their rx1/tx1 pairs using 9600 or 115200 baud, 8-bit, one stop, no parity, flow control off.  I can get two WinPC's to talk using PuTTy over USB-to-serial converters (USA-FTDI-A36) and between them a pair of D-sub 9 females and between them a breadboard.  All is great.  I can break the serial connection and replace one end with a sensor system that results in beautiful accelerometer and heading data in the terminal (this proves the wiring in the hand soldered serial section).</p>
<p dir="auto">The above shows I have set up the protocols correctly and the wiring is correct.</p>
<p dir="auto">Now I can attach either PC-to-serial section to an O2+ or the sensor to an O2+ resulting in little getting to the PC in an ssh terminal ("screen /dev/ttyS1 ${baud_rate})or cat /dev/ttyS1) and what arrives is a wreck.  In the case of putting the PC-to-serial section on Tx0 of a booting device it is a fire hose of garbage (monitoring from another O2+ shows a beautiful boot sequence!).  Putting my device output into an O2+ Rx1 results in a line of garbage at 2 Hz, every time the sensor sends out a message a 60 to 80 or so character stream of garbage shows up at the O2+ terminal session.</p>
<p dir="auto">I've beat on this and can't figure out why this simple interface is working under some conditions and not others.</p>
<p dir="auto">The sensor system is a 5V unit.  The O2+ is in either an expansion dock or a breadboard dock with same results.</p>
<p dir="auto">All I'm left with is an electrical issue.  I brought an old o-scope in today to investigate and found it's display dead.  Purchased a new scope and it will be delivered next week.</p>
<p dir="auto">What is left to troubleshoot here?</p>
<p dir="auto">Can the O2+ Rx port be over driven causing causing nonsensical results?</p>
<p dir="auto">What is the Tx port capable of driving?</p>
<p dir="auto">Where is this documented?</p>
<p dir="auto">thanks!<br />
Bill</p>
]]></description><link>http://community.onion.io/topic/2321/serial-port-integration-results-in-gibberish</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 08:09:47 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/2321.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Aug 2017 22:55:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Serial port integration results in gibberish on Fri, 25 Aug 2017 22:57:52 GMT]]></title><description><![CDATA[<p dir="auto">Greetings,<br />
Riddle me this.  I can get two Omega2+'s (O2+) to speak between their rx1/tx1 pairs using 9600 or 115200 baud, 8-bit, one stop, no parity, flow control off.  I can get two WinPC's to talk using PuTTy over USB-to-serial converters (USA-FTDI-A36) and between them a pair of D-sub 9 females and between them a breadboard.  All is great.  I can break the serial connection and replace one end with a sensor system that results in beautiful accelerometer and heading data in the terminal (this proves the wiring in the hand soldered serial section).</p>
<p dir="auto">The above shows I have set up the protocols correctly and the wiring is correct.</p>
<p dir="auto">Now I can attach either PC-to-serial section to an O2+ or the sensor to an O2+ resulting in little getting to the PC in an ssh terminal ("screen /dev/ttyS1 ${baud_rate})or cat /dev/ttyS1) and what arrives is a wreck.  In the case of putting the PC-to-serial section on Tx0 of a booting device it is a fire hose of garbage (monitoring from another O2+ shows a beautiful boot sequence!).  Putting my device output into an O2+ Rx1 results in a line of garbage at 2 Hz, every time the sensor sends out a message a 60 to 80 or so character stream of garbage shows up at the O2+ terminal session.</p>
<p dir="auto">I've beat on this and can't figure out why this simple interface is working under some conditions and not others.</p>
<p dir="auto">The sensor system is a 5V unit.  The O2+ is in either an expansion dock or a breadboard dock with same results.</p>
<p dir="auto">All I'm left with is an electrical issue.  I brought an old o-scope in today to investigate and found it's display dead.  Purchased a new scope and it will be delivered next week.</p>
<p dir="auto">What is left to troubleshoot here?</p>
<p dir="auto">Can the O2+ Rx port be over driven causing causing nonsensical results?</p>
<p dir="auto">What is the Tx port capable of driving?</p>
<p dir="auto">Where is this documented?</p>
<p dir="auto">thanks!<br />
Bill</p>
]]></description><link>http://community.onion.io/post/14273</link><guid isPermaLink="true">http://community.onion.io/post/14273</guid><dc:creator><![CDATA[William Scott]]></dc:creator><pubDate>Fri, 25 Aug 2017 22:57:52 GMT</pubDate></item><item><title><![CDATA[Reply to Serial port integration results in gibberish on Sat, 26 Aug 2017 17:50:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/4410">@William-Scott</a> said in <a href="/post/14273">Serial port integration results in gibberish</a>:</p>
<blockquote>
<p dir="auto">The above shows I have set up the protocols correctly and the wiring is correct.</p>
</blockquote>
<p dir="auto"><a href="http://www.gearmo.com/shop/single-port-usb-to-serial-adapter/" rel="nofollow"><strong>USA-FTDI-A36</strong></a> is a USB 2.0 to <strong>RS-232</strong> Serial Adapter.<br />
According to the specification it has got  "RS232 output power: -5.7 to +5.7VDC".<br />
So the Low level is about +5V and the High level is about -5V (negative logic) of the serial lines.<br />
You can check this with a multimeter - PC-to-PC test: the Idle state of the TxD lines are High (ie negative voltage).</p>
<p dir="auto">Omega2(+) has got two 3.3V TTL level serial lines, where the Low level is about 0V and the High level is about +3.3V (positive logic).<br />
A usual 5V powered sensor with TTL level output line(s) should provide Low level &lt; +0.8V and High level &gt; +2.4V (also positive logic).</p>
<p dir="auto">You should use</p>
<ul>
<li>
<p dir="auto">for example - an <a href="https://www.adafruit.com/product/70" rel="nofollow">FTDI Serial TTL-232 USB Cable</a> or an <a href="https://www.adafruit.com/product/2264" rel="nofollow">FT232H Breakout - General Purpose USB to GPIO+SPI+I2C</a> module:<br />
Omega2(+)_Rx &lt;-- cable/module_Tx<br />
Omega2(+) Tx --&gt; cable/module_Rx<br />
Omega2(+)_GND --- cable/module_GND<br />
You could use these devices with that  sensor too because its serial lines are 5V-logic compliant - no level shifting required.</p>
</li>
<li>
<p dir="auto">or - for example - one-one <a href="https://www.seeedstudio.com/RS232-to-TTL-Converter-Module-p-1684.html" rel="nofollow">RS232 to TTL Converter Module</a> with your (USA-FTDI-A36) cables.<br />
Using it with Omega2(+) connect VCC to +3.3V - with that sensor connect VCC to +5V.</p>
</li>
</ul>
<p dir="auto">There are lots of almost or fully equivalent but definitely cheaper gadgets on Amazon, ebay, ...</p>
<p dir="auto">Good luck.</p>
]]></description><link>http://community.onion.io/post/14276</link><guid isPermaLink="true">http://community.onion.io/post/14276</guid><dc:creator><![CDATA[György Farkas]]></dc:creator><pubDate>Sat, 26 Aug 2017 17:50:38 GMT</pubDate></item><item><title><![CDATA[Reply to Serial port integration results in gibberish on Mon, 11 Sep 2017 18:53:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/2619">@György-Farkas</a> Thanks a bunch!  I was stuck as I didn't have an oscilloscope at the time.  I ordered one right away and received it the following week.  Your response was already in hand.</p>
<p dir="auto">I "knew" there was the incompatibility as I knew (absolutely) the O2+ 3.3V system and many years of RS-232.  However I couldn't find any specifics in the Omega docs of the actual device interface.</p>
<p dir="auto">Your answer confirmed what I knew.  However your answer was much better as it provided a candidate solution to the incompatibility.</p>
<p dir="auto">thanks!!<br />
Bill</p>
]]></description><link>http://community.onion.io/post/14456</link><guid isPermaLink="true">http://community.onion.io/post/14456</guid><dc:creator><![CDATA[William Scott]]></dc:creator><pubDate>Mon, 11 Sep 2017 18:53:29 GMT</pubDate></item></channel></rss>