<?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[FAQ: I heard there is some issue with hardware SPI? And full-duplex SPI?]]></title><description><![CDATA[<p dir="auto">The Omega2 does not support full-duplex SPI transmissions. This is due to a hardware bug in the underlying MT7688 SoC used in the Omega2.</p>
<p dir="auto">On the bright side, <strong>half-duplex SPI transmissions will work</strong>. We've done some work to improve the speed and stability of half-duplex transmissions, read more about it <a href="https://onion.io/2bt-brand-new-os-release/" rel="nofollow">here</a>.</p>
<p dir="auto">When working with SPI on the Omega, we recommend:</p>
<ul>
<li>Using the <a href="https://github.com/OnionIoT/python-spidev" rel="nofollow">python-spidev module</a></li>
<li>Writing C code that directly uses the Linux spidev interface
<ul>
<li>General information can be found here: <a href="https://www.kernel.org/doc/Documentation/spi/spidev" rel="nofollow">https://www.kernel.org/doc/Documentation/spi/spidev</a></li>
<li>And here is a good example of how it can be used: <a href="http://linux-sunxi.org/SPIdev#In_the_user_space" rel="nofollow">http://linux-sunxi.org/SPIdev#In_the_user_space</a></li>
</ul>
</li>
</ul>
<p dir="auto">A few additional notes:</p>
<ul>
<li>The <code>spi-tool</code> utility and the <code>pyOnionSpi</code> module are deprecated and should not be used</li>
</ul>
]]></description><link>http://community.onion.io/topic/3300/faq-i-heard-there-is-some-issue-with-hardware-spi-and-full-duplex-spi</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Mar 2026 17:52:34 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/3300.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Nov 2018 23:00:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FAQ: I heard there is some issue with hardware SPI? And full-duplex SPI? on Mon, 13 Jun 2022 18:51:58 GMT]]></title><description><![CDATA[<p dir="auto">The Omega2 does not support full-duplex SPI transmissions. This is due to a hardware bug in the underlying MT7688 SoC used in the Omega2.</p>
<p dir="auto">On the bright side, <strong>half-duplex SPI transmissions will work</strong>. We've done some work to improve the speed and stability of half-duplex transmissions, read more about it <a href="https://onion.io/2bt-brand-new-os-release/" rel="nofollow">here</a>.</p>
<p dir="auto">When working with SPI on the Omega, we recommend:</p>
<ul>
<li>Using the <a href="https://github.com/OnionIoT/python-spidev" rel="nofollow">python-spidev module</a></li>
<li>Writing C code that directly uses the Linux spidev interface
<ul>
<li>General information can be found here: <a href="https://www.kernel.org/doc/Documentation/spi/spidev" rel="nofollow">https://www.kernel.org/doc/Documentation/spi/spidev</a></li>
<li>And here is a good example of how it can be used: <a href="http://linux-sunxi.org/SPIdev#In_the_user_space" rel="nofollow">http://linux-sunxi.org/SPIdev#In_the_user_space</a></li>
</ul>
</li>
</ul>
<p dir="auto">A few additional notes:</p>
<ul>
<li>The <code>spi-tool</code> utility and the <code>pyOnionSpi</code> module are deprecated and should not be used</li>
</ul>
]]></description><link>http://community.onion.io/post/18233</link><guid isPermaLink="true">http://community.onion.io/post/18233</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Mon, 13 Jun 2022 18:51:58 GMT</pubDate></item><item><title><![CDATA[Reply to FAQ: I heard there is some issue with hardware SPI? And full-duplex SPI? on Mon, 13 Jun 2022 18:59:07 GMT]]></title><description><![CDATA[<h3>Half Duplex SPI Transactions</h3>
<p dir="auto">If you're looking to do a half-duplex SPI transaction (where Chip-Select is held active between blocks), check out the <code>xfer3</code> function in the <code>python-spidev</code> module.</p>
<p dir="auto">Details:</p>
<ul>
<li>In the <a href="https://github.com/OnionIoT/python-spidev#half-duplex-transmissions" rel="nofollow">python-spidev module readme</a></li>
<li>An <a href="https://community.onion.io/topic/3179/spi-bus-in-python/16" rel="nofollow">example of usage in a community thread</a></li>
</ul>
<h3>If you absolutely need full-duplex SPI</h3>
<p dir="auto">The Omega2 family does not support full-duplex transactions on the hardware SPI bus, but you can make a software (bit-bang) instance of an SPI bus that will support full-duplex.</p>
<p dir="auto">More info on software-based SPI buses in <a href="https://community.onion.io/topic/4500/faq-how-can-i-make-a-software-based-bit-bang-spi-bus-i-need-2-spi-devices-can-i-use-any-4-gpios-as-an-spi-bus" rel="nofollow">this FAQ post</a>.</p>
]]></description><link>http://community.onion.io/post/24670</link><guid isPermaLink="true">http://community.onion.io/post/24670</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Mon, 13 Jun 2022 18:59:07 GMT</pubDate></item></channel></rss>