<?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[Double SPI Radio Raspberry Pi]]></title><description><![CDATA[<p dir="auto">I have connected as an experiment two nrf24l01+ to the raspberry pi (spi enabled), my goal is to change one of the nrf24l01 for a lora or a 433... but since I do not have either yet, two nrf24l01+ it is :-)</p>
<p dir="auto">I decided to try spi0.1 (with the cs on pin 26) because of the bluetooth/spi1 stuff...</p>
<p dir="auto">The first radio is wired like on the homepage</p>
<p dir="auto">The second radio has its <strong>MOSI,MISO, SCLK, GND, 3.3v</strong> connected on the same wires as the first radio</p>
<p dir="auto">And the additional wires to<br />
<strong>IRQ=pin 16<br />
CE=pin 18<br />
CS=pin 26</strong></p>
<p dir="auto">And 47pF cap between ground and vcc on the radio's (4.7pF does not work even if I wire one radio)</p>
<p dir="auto">So I have two MySensor folders configures with</p>
<pre><code>./configure --my-transport=nrf24 --my-rf24-ce-pin=18 --my-rf24-cs-pin=26 --my-rf24-irq-pin=16 --spi-spidev-device=/dev/spidev0.1 --spi-driver=SPIDEV --my-port=5004 --my-node-id=15
</code></pre>
<pre><code>./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --spi-spidev-device=/dev/spidev0.0 --spi-driver=SPIDEV
</code></pre>
<p dir="auto">Anyway although the both run and something got transmitted and received... its kinda not working... individually (one 3.3v disconnected or both connected) they work fine communicating with my vento sensor... so the radio's are fine. (and so are the use of the alternative pins)</p>
<p dir="auto">but when both powered, the original pin radio works but the second radio does not (even with 3.3v/ground on other pins) or visa versa...</p>
<p dir="auto">when both using mysensors it crashes</p>
<p dir="auto">Was kinda hoping somebody could shed a light on why...<br />
is it the cs line not being low from the other radio? signal too weak?<br />
interference with packages? ?</p>
<p dir="auto">also tested <strong>dtoverlay=spi0-cs,cs0_pin=24,cs1_pin=26</strong> and <strong>dtoverlay=spi0-hw-cs</strong> in the <strong>/boot/config.txt</strong> to no avail,</p>
<p dir="auto">also note with one radio I did not activate the <strong>dtparam=spi=on</strong>, it still worked...</p>
<p dir="auto">2x nrf24l01 is one mysensors gateway and one milight, although I have milight in rflink :-)</p>
<p dir="auto">Some logs...</p>
<p dir="auto">Controller...</p>
<pre><code>mysgw: MCO:BGN:INIT GW,CP=RNNG--Q-,VER=2.2.0-beta
mysgw: TSF:LRT:OK
mysgw: TSM:INIT
mysgw: TSF:WUR:MS=0
mysgw: TSM:INIT:TSP OK
mysgw: TSM:INIT:GW MODE
mysgw: TSM:READY:ID=0,PAR=0,DIS=0
mysgw: MCO:REG:NOT NEEDED
mysgw: Listening for connections on 0.0.0.0:5003
mysgw: MCO:BGN:STP
mysgw: MCO:BGN:INIT OK,TSP=1
mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
mysgw: !TSF:MSG:LEN,0!=7
</code></pre>
<p dir="auto">Reset controller...</p>
<pre><code>mysgw: MCO:BGN:INIT GW,CP=RNNG--Q-,VER=2.2.0-beta
mysgw: TSF:LRT:OK
mysgw: TSM:INIT
mysgw: TSF:WUR:MS=0
mysgw: TSM:INIT:TSP OK
mysgw: TSM:INIT:GW MODE
mysgw: TSM:READY:ID=0,PAR=0,DIS=0
mysgw: MCO:REG:NOT NEEDED
mysgw: Listening for connections on 0.0.0.0:5003
mysgw: MCO:BGN:STP
mysgw: MCO:BGN:INIT OK,TSP=1
mysgw: TSF:MSG:READ,15-255-255,s=255,c=7,t=7,pt=0,l=0,sg=0:
mysgw: TSF:MSG:BC
mysgw: TSF:MSG:READ,0-0-14,s=14,c=6,t=0,pt=0,l=0,sg=0:
mysgw: !TSF:MSG:LEN,14!=7
mysgw: TSF:MSG:READ,0-0-14,s=14,c=6,t=0,pt=0,l=0,sg=0:
mysgw: !TSF:MSG:LEN,0!=7
mysgw: TSF:MSG:READ,255-62-2,s=255,c=7,t=255,pt=0,l=0,sg=0:
mysgw: !TSF:MSG:PVER,3!=2
</code></pre>
<p dir="auto">Node 15</p>
<pre><code>mysgw: MCO:BGN:INIT NODE,CP=RNNN--Q-,VER=2.2.0-beta
mysgw: TSM:INIT
mysgw: TSF:WUR:MS=0
mysgw: TSM:INIT:TSP OK
mysgw: TSM:INIT:STATID=15
mysgw: TSF:SID:OK,ID=15
mysgw: TSM:FPAR
mysgw: TSF:MSG:SEND,15-15-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
mysgw: !TSM:FPAR:NO REPLY
mysgw: TSM:FPAR
mysgw: TSF:MSG:SEND,15-15-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
mysgw: !TSM:FPAR:NO REPLY
mysgw: TSM:FPAR
mysgw: TSF:MSG:SEND,15-15-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
mysgw: !TSM:FPAR:NO REPLY
mysgw: TSM:FPAR
mysgw: TSF:MSG:SEND,15-15-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
mysgw: !TSM:FPAR:FAIL
mysgw: TSM:FAIL:CNT=1
mysgw: TSM:FAIL:DIS
mysgw: TSF:TDI:TSL
mysgw: TSM:FAIL:RE-INIT
mysgw: TSM:INIT
mysgw: TSM:INIT:TSP OK
mysgw: TSM:INIT:STATID=15
mysgw: TSF:SID:OK,ID=15
mysgw: TSM:FPAR
&lt;reset controller&gt;
mysgw: TSF:MSG:SEND,15-15-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
mysgw: TSF:MSG:READ,15-15-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
mysgw: TSF:MSG:BC
mysgw: !TSM:FPAR:NO REPLY
mysgw: TSM:FPAR
</code></pre>
]]></description><link>https://forum.mysensors.org/topic/7702/double-spi-radio-raspberry-pi</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 18:14:47 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/7702.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 Sep 2017 17:01:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Double SPI Radio Raspberry Pi on Sun, 14 Nov 2021 17:13:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/trixwood" aria-label="Profile: TriXwooD">@<bdi>TriXwooD</bdi></a> said in <a href="/post/76079">Double SPI Radio Raspberry Pi</a>:</p>
<blockquote>
<p dir="auto">dtparam=spi=on<br />
dtoverlay=spi1-1cs,cs0_pin=36</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/trixwood" aria-label="Profile: TriXwooD">@<bdi>TriXwooD</bdi></a> : Thank you, this helped me a lot. I had to use a different pin number in /boot/cmdline.txt though for that it matches the pin number given in the configure statement:</p>
<pre><code>dtparam=spi=on
dtoverlay=spi1-1cs,cs0_pin=16
</code></pre>
<pre><code>./configure --my-rf24-cs-pin=36 ...
</code></pre>
<p dir="auto">Configure wants the BCM pin number (36), but the dtoverlay wants the corresponding GPIO pin number (16).</p>
]]></description><link>https://forum.mysensors.org/post/111223</link><guid isPermaLink="true">https://forum.mysensors.org/post/111223</guid><dc:creator><![CDATA[toigo]]></dc:creator><pubDate>Sun, 14 Nov 2021 17:13:45 GMT</pubDate></item><item><title><![CDATA[Reply to Double SPI Radio Raspberry Pi on Tue, 02 Jan 2018 21:45:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/llegoff" aria-label="Profile: llegoff">@<bdi>llegoff</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/trixwood" aria-label="Profile: TriXwooD">@<bdi>TriXwooD</bdi></a> I think it would also worth mentioning that also the install scripts in "MySensorsSecond/initscripts" folder need to be modified if you want the service to get properly registered with the new name</p>
]]></description><link>https://forum.mysensors.org/post/82974</link><guid isPermaLink="true">https://forum.mysensors.org/post/82974</guid><dc:creator><![CDATA[gohan]]></dc:creator><pubDate>Tue, 02 Jan 2018 21:45:38 GMT</pubDate></item><item><title><![CDATA[Reply to Double SPI Radio Raspberry Pi on Tue, 02 Jan 2018 21:24:09 GMT]]></title><description><![CDATA[<p dir="auto">I finally got RFM69 and NRF24 working on the same RPI3 with dietpi running :grin:</p>
]]></description><link>https://forum.mysensors.org/post/82973</link><guid isPermaLink="true">https://forum.mysensors.org/post/82973</guid><dc:creator><![CDATA[gohan]]></dc:creator><pubDate>Tue, 02 Jan 2018 21:24:09 GMT</pubDate></item><item><title><![CDATA[Reply to Double SPI Radio Raspberry Pi on Sun, 22 Oct 2017 16:14:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/trixwood" aria-label="Profile: TriXwooD">@<bdi>TriXwooD</bdi></a> : i can confirm - i succesfully run two radios - rfm69 and nrf24 on RPi - on the spi0 runs rfm69 and on spi1 runs nrf24. Started two separated mysensors gateway on ports 5003 and 5004 and everythng runs fine! :)</p>
]]></description><link>https://forum.mysensors.org/post/77945</link><guid isPermaLink="true">https://forum.mysensors.org/post/77945</guid><dc:creator><![CDATA[seal]]></dc:creator><pubDate>Sun, 22 Oct 2017 16:14:09 GMT</pubDate></item><item><title><![CDATA[Reply to Double SPI Radio Raspberry Pi on Tue, 19 Sep 2017 07:36:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/trixwood" aria-label="Profile: TriXwooD">@<bdi>TriXwooD</bdi></a> nice work, thanks for sharing!</p>
<p dir="auto">About your question; MySensors only supports one transport per instance so you need to compile two gateways.</p>
]]></description><link>https://forum.mysensors.org/post/76092</link><guid isPermaLink="true">https://forum.mysensors.org/post/76092</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Tue, 19 Sep 2017 07:36:45 GMT</pubDate></item><item><title><![CDATA[Reply to Double SPI Radio Raspberry Pi on Tue, 19 Sep 2017 01:37:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/trixwood" aria-label="Profile: TriXwooD">@<bdi>TriXwooD</bdi></a> Update:</p>
<p dir="auto"><strong>Two radio's (or alternative pins for one radio :-))<br />
<em>for the nrf24l01</em></strong></p>
<p dir="auto">For Raspberry Pi with 40 pins header (pi zero, pi 3,..)</p>
<p dir="auto">Note on post above: I tried <em>spi1.0</em> instead of <em>spi0.0</em> and <em>spi0.1</em> and it works... (<em>cs</em> lines not interfering?)<br />
Still not sure why did <em>spi0.0</em> and <em>spi0.1</em> not work... what did I wrong there? It should be possible to share the <em>mosi/miso/sclk/gnd/3.3v</em> pins... (maybe it is the <em>cs?</em> or <em>ce?</em>... anyway)</p>
<p dir="auto">This probably means rfm69 wired correctly and a nrf24l01 will work both at the same time on a pi ;-)</p>
<p dir="auto"><em>Can I compile one gateway with both rfm69 and rf24 enabled at the same time, thus not running two gateways?</em></p>
<p dir="auto">For now two gateways running on a pi zero (pi3 with bluetooth not yet tested)</p>
<p dir="auto"><strong>Step Zero</strong><br />
Enable <em>spi1</em> in <em><strong>/boot/config.txt</strong></em></p>
<pre><code>sudo nano /boot/config.txt
</code></pre>
<pre><code>dtparam=spi=on
dtoverlay=spi1-1cs,cs0_pin=36
</code></pre>
<p dir="auto"><strong>First Radio Pin</strong><br />
Same as <a href="https://www.mysensors.org/build/raspberry" rel="nofollow ugc">Building a Raspberry Pi Gateway</a> page (<em>with irq pin 15!</em>)</p>
<p dir="auto"><strong>First Radio Configure</strong><br />
<em>With irq pin 15!</em></p>
<pre><code>cd MySensors
</code></pre>
<p dir="auto">Configuring...</p>
<pre><code>./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --spi-spidev-device=/dev/spidev0.0 --spi-driver=SPIDEV --my-port=5003
make
</code></pre>
<p dir="auto">Running...</p>
<pre><code>cd bin 
sudo ./mysgw -d
</code></pre>
<p dir="auto"><strong>Second Radio Pin</strong></p>
<p dir="auto"><img src="/assets/uploads/files/1505780477385-screen-shot-2017-09-19-at-02.20.38.png" alt="0_1505780471573_Screen Shot 2017-09-19 at 02.20.38.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><em>pin 01    3.3v<br />
pin 33 for irq<br />
pin 35 miso<br />
pin 36 cs<br />
pin 37 ce<br />
pin 38 mosi<br />
pin 39 gnd<br />
pin 40  sclk</em></p>
<p dir="auto"><strong>Second Radio Configure</strong><br />
<em>(in another terminal)</em></p>
<p dir="auto">A copy of the source</p>
<pre><code>cp -r MySensors MySensorsSecond
cd MySensorsSecond
</code></pre>
<p dir="auto">Configuring...<br />
<em>Note the port is 5004 instead of 5003, you can not run two gateways on the same port</em></p>
<pre><code>./configure --my-transport=nrf24 --my-rf24-irq-pin=33 --my-rf24-ce-pin=37 --my-rf24-cs-pin=36 --spi-spidev-device=/dev/spidev1.0 --spi-driver=SPIDEV --my-port=5004
make
</code></pre>
<p dir="auto">Running...</p>
<pre><code>cd bin 
sudo ./mysgw -d
</code></pre>
<p dir="auto">it works...  <em><strong>Fin!</strong></em></p>
<p dir="auto">currently running <a href="https://github.com/bakkerr/openmilight_pi" rel="nofollow ugc">openmilight</a> on radio 1 and mysensors on radio 2 ;-)</p>
]]></description><link>https://forum.mysensors.org/post/76079</link><guid isPermaLink="true">https://forum.mysensors.org/post/76079</guid><dc:creator><![CDATA[TriXwooD]]></dc:creator><pubDate>Tue, 19 Sep 2017 01:37:08 GMT</pubDate></item></channel></rss>