<?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[💬 Building a Raspberry Pi Gateway]]></title><description><![CDATA[<p dir="auto">This thread contains comments for the article "<a href="https://www.mysensors.org/build/raspberry" rel="nofollow ugc">Building a Raspberry Pi Gateway</a>" posted on <a href="https://www.mysensors.org/build/raspberry" rel="nofollow ugc">MySensors.org</a>.</p>
]]></description><link>https://forum.mysensors.org/topic/4803/building-a-raspberry-pi-gateway</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 08:35:04 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/4803.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Sep 2016 21:14:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Thu, 09 Jun 2022 01:59:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/badisensors" aria-label="Profile: badisensors">@<bdi>badisensors</bdi></a> try ethernet gateway instead of serial. You won't need to pass anything to docker and it works just fine.</p>
]]></description><link>https://forum.mysensors.org/post/112236</link><guid isPermaLink="true">https://forum.mysensors.org/post/112236</guid><dc:creator><![CDATA[monte]]></dc:creator><pubDate>Thu, 09 Jun 2022 01:59:19 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Wed, 08 Jun 2022 13:51:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello. I had built the Rpi gateway serial and it was working fine in core installation in homeassistant. Now i decided to make installation of homeassistant in docker and although i map the port as dev/ttyUSB020:/dev/ttyUSB020 it is impossible to connect in gateway. The gateway is starting fine and create the port /dev/ttyUSB020. Maybe its something to do with pty option  in gateway? My configuration is ./configuration --my-transport=rf24 --my-gateway=serial --my-serial-is-pty --my-serial-port=/dev/ttyUSB020  --my-rf24-ce-pin=22  --my-rf24-cs-pin=24 --my-rf24-irq-pin=15<br />
How do you think i can fix it?</p>
]]></description><link>https://forum.mysensors.org/post/112233</link><guid isPermaLink="true">https://forum.mysensors.org/post/112233</guid><dc:creator><![CDATA[badisensors]]></dc:creator><pubDate>Wed, 08 Jun 2022 13:51:49 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Sat, 09 Apr 2022 16:08:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oldsurferdude" aria-label="Profile: OldSurferDude">@<bdi>OldSurferDude</bdi></a> :+1: :+1: :+1:</p>
<p dir="auto">Glad to hear that you got it working!</p>
]]></description><link>https://forum.mysensors.org/post/111789</link><guid isPermaLink="true">https://forum.mysensors.org/post/111789</guid><dc:creator><![CDATA[ejlane]]></dc:creator><pubDate>Sat, 09 Apr 2022 16:08:24 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Fri, 08 Apr 2022 22:53:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ejlane" aria-label="Profile: ejlane">@<bdi>ejlane</bdi></a></p>
<p dir="auto">I saw the log parser.  Like the last comment in log parser, my output doesn't work with it. :(</p>
<p dir="auto">I discovered my problem, and this has always be a challenge.  I had the RF24 CE connected to RPi(physical15/GPIO22).  When I changed it over to (physical22/GPIO24) there were no error messages.</p>
<p dir="auto">Thanks for noting the in-out issue.  I'm dyslexic so that's always a  tough one for me.  I made the assumption that, like serial, TX goes to RX and RX to TX, but then, I could have screwed that up, too. Now I'm really confused! But then, it's only "two wires" to swap.</p>
<p dir="auto">Thanks for your help.</p>
]]></description><link>https://forum.mysensors.org/post/111787</link><guid isPermaLink="true">https://forum.mysensors.org/post/111787</guid><dc:creator><![CDATA[OldSurferDude]]></dc:creator><pubDate>Fri, 08 Apr 2022 22:53:49 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Fri, 08 Apr 2022 18:03:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oldsurferdude" aria-label="Profile: OldSurferDude">@<bdi>OldSurferDude</bdi></a> It looks like your gateway is set to send to the wrong topic? In the debug log it looks like the gateway is sending to the 'out' topic, while you mentioned that that was output from mysensors. But in your text you said you had it set the other way, so ??</p>
<p dir="auto">I don't have a system set up with MQTT now. I used it for a while, but got tired of having to remember to update the RPi that was doing the gateway work. I kept letting it get way out of date and that's a bit of a security issue. So I switched to a serial port connection that's powered by the HA server and plugged into a USB port from it.</p>
<p dir="auto">But have you used the log parser? <a href="https://www.mysensors.org/build/parser" rel="nofollow ugc">https://www.mysensors.org/build/parser</a></p>
<p dir="auto">It can help a ton with understanding all the messages that you're getting.</p>
<p dir="auto">But double check your topic settings is the only idea I have right now after seeing those log messages. It looks like the gateway sent to the 'out' topic, rather than just listening to it.</p>
]]></description><link>https://forum.mysensors.org/post/111785</link><guid isPermaLink="true">https://forum.mysensors.org/post/111785</guid><dc:creator><![CDATA[ejlane]]></dc:creator><pubDate>Fri, 08 Apr 2022 18:03:46 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Fri, 08 Apr 2022 12:46:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ejlane" aria-label="Profile: ejlane">@<bdi>ejlane</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/mfalkvidd" aria-label="Profile: mfalkvidd">@<bdi>mfalkvidd</bdi></a></p>
<p dir="auto">On the RPi: MySensors and running HA in a docker container.  Another linux box is running the MQTT broker.  MQTT Explorer is running on a windows PC.</p>
<p dir="auto">MySensors has the configuration:  (./configure --my-transport=rf24 --my-gateway=mqtt --my-controller-ip-address=192,.168.sss.sss --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1) where 192,.168.sss.sss is the ip address of my MQTT broker</p>
<p dir="auto">HA has the integration of MQTT: ip 192,.168.sss.sss; sub mysensors-out pub mysensors-in and MySensors is configure to MQTT.</p>
<p dir="auto">HA can send to, and receive from, the broker.  This was determined by the MQTT Explorer.</p>
<p dir="auto">For my Arduino program I took the <a href="https://www.mysensors.org/build/relay" rel="nofollow ugc">relay example with button</a>.  My Arduino is a <em>RF-NANO</em> so I had to add the pointers to the CE and CSN<br />
<em>#define   MY_RF24_CS_PIN 9<br />
#define   MY_RF24_CE_PIN 10</em></p>
<p dir="auto">The Arduino doesn't seem to send to the broker. See messages below messages, and MS doesn't seem to be receiving them (see below, below)</p>
<p dir="auto">OK, why isn't the status of the switch being received by MS and passed onto the MQTT broker:</p>
<p dir="auto"><strong>Repeating Arduino output</strong><br />
<em>36190 ?TSF:MSG:SEND,11-11-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:<br />
38197 !TSM:FPAR:NO REPLY<br />
38199 TSM:FPAR<br />
38203 ?TSF:MSG:SEND,11-11-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:<br />
40211 !TSM:FPAR:NO REPLY<br />
40213 TSM:FPAR<br />
40217 ?TSF:MSG:SEND,11-11-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:<br />
42225 !TSM:FPAR:NO REPLY<br />
42227 TSM:FPAR<br />
42231 ?TSF:MSG:SEND,11-11-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:<br />
44239 !TSM:FPAR:FAIL<br />
44240 TSM:FAIL:CNT=3<br />
44242 TSM:FAIL:DIS<br />
44244 TSF:TDI:TSL<br />
54248 TSM:FAIL:RE-INIT<br />
54250 TSM:INIT<br />
54256 TSM:INIT:TSP OK<br />
54258 TSF:SID:OK,ID=11<br />
54260 TSM:FPAR</em></p>
<p dir="auto"><strong>Output from mysgw:</strong><br />
sudo bin/mysgw<br />
Apr 07 19:35:16 INFO  Starting gateway...<br />
Apr 07 19:35:16 INFO  Protocol version - 2.4.0-alpha<br />
Apr 07 19:35:16 DEBUG MCO:BGN:INIT GW,CP=RNNGL---,FQ=NA,REL=0,VER=2.4.0-alpha<br />
Apr 07 19:35:16 DEBUG TSF:LRT:OK<br />
Apr 07 19:35:16 DEBUG TSM:INIT<br />
Apr 07 19:35:16 DEBUG TSF:WUR:MS=0<br />
Apr 07 19:35:16 DEBUG TSM:INIT:TSP OK<br />
Apr 07 19:35:16 DEBUG TSM:INIT:GW MODE<br />
Apr 07 19:35:16 DEBUG TSM:READY:ID=0,PAR=0,DIS=0<br />
Apr 07 19:35:16 DEBUG MCO:REG:NOT NEEDED<br />
Apr 07 19:35:16 DEBUG MCO:BGN:STP<br />
Apr 07 19:35:16 DEBUG MCO:BGN:INIT OK,TSP=1<br />
Apr 07 19:35:16 DEBUG GWT:RMQ:CONNECTING...<br />
Apr 07 19:35:16 DEBUG connected to 192.168.1.142<br />
Apr 07 19:35:16 DEBUG GWT:RMQ:OK<br />
Apr 07 19:35:16 DEBUG GWT:TPS:TOPIC=mysensors-out/0/255/0/0/18,MSG SENT<br />
Apr 07 19:35:16 DEBUG TSM:READY:NWD REQ<br />
Apr 07 19:35:17 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:<br />
Apr 07 19:50:16 DEBUG TSF:SAN:OK<br />
Apr 07 19:55:16 DEBUG TSM:READY:NWD REQ<br />
Apr 07 19:55:17 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:<br />
Apr 07 20:05:16 DEBUG TSF:SRT:OK<br />
Apr 07 20:05:16 DEBUG TSF:SAN:OK</p>
]]></description><link>https://forum.mysensors.org/post/111782</link><guid isPermaLink="true">https://forum.mysensors.org/post/111782</guid><dc:creator><![CDATA[OldSurferDude]]></dc:creator><pubDate>Fri, 08 Apr 2022 12:46:22 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Fri, 08 Apr 2022 02:15:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ejlane" aria-label="Profile: ejlane">@<bdi>ejlane</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/mfalkvidd" aria-label="Profile: mfalkvidd">@<bdi>mfalkvidd</bdi></a></p>
<p dir="auto">A bit more thrashing and found that I would need an integration set up on HA.</p>
<p dir="auto">I tried a TCP connection and HA could not connect.  I then then set up a TCP configuration on MS (./configure --my-transport=rf24 --my-gateway=ethernet --my-controller-ip-address=127.0.0.1) and while it was streaming error messages, I tried to connect HA.</p>
<p dir="auto">The I tried an HA/MS connecting using MQTT at address 127.0.0.1 but HA failed to connect (you have to install the HA MQTT integration before installing the HA MS  integration.)  With the same ip address on the MS configuration (./configure --my-transport=rf24 --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1) still failed to connect,</p>
<p dir="auto">Some joy was found when I set the ip address to that of my MQTT broker.  Neither HA nor MS reported any error messages.</p>
<p dir="auto">OK, now onto the Arduino side of things.</p>
<p dir="auto">OSD</p>
]]></description><link>https://forum.mysensors.org/post/111781</link><guid isPermaLink="true">https://forum.mysensors.org/post/111781</guid><dc:creator><![CDATA[OldSurferDude]]></dc:creator><pubDate>Fri, 08 Apr 2022 02:15:44 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Fri, 08 Apr 2022 01:16:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ejlane" aria-label="Profile: ejlane">@<bdi>ejlane</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/mfalkvidd" aria-label="Profile: mfalkvidd">@<bdi>mfalkvidd</bdi></a></p>
<p dir="auto">I installed an MQTT broker on another linux machine.  I did not set up access control(username, password)  If I install mosquitto-clients I can pub/sub to the broker without username and password.  In addition, on my windows box, I installed MQTT Explorer and can monitor the broker, again without username and password.  (should I specify --my-mqtt-user="" and --my-mqtt-password=""?)</p>
<p dir="auto">I have HA on the RPi.  I can access it on my windows box with <a href="http://192.168.sss.sss:8123" rel="nofollow ugc">http://192.168.sss.sss:8123</a>.  It requires a user password. but I don't see any parameter that refers to a password for an ethernet controller.</p>
<p dir="auto">I'll try those programs, but first I think I need to get MySensors working.</p>
<p dir="auto">Has anyone developed a cookbook?  <a href="http://tmrh20.github.io/" rel="nofollow ugc">http://tmrh20.github.io/</a> has many examples of using the RF24 with combinations of RPi and Arduinos.  These examples start with very basic connection to very complex.  I built a for Arduino Nodes, 1 RPi master system that has been running well for two years.  But I decided I need MQTT to exchange data with other devices.  Alas, the MQTT client example works, but the computational load on the Arduino was too much and therefore unusable.</p>
<p dir="auto">I'm looking to MySensors because it appears that the computational load for sensor nodes is tolerable. and it appears to have an MQTT gateway.</p>
<p dir="auto">Cookbook? working examples?</p>
]]></description><link>https://forum.mysensors.org/post/111780</link><guid isPermaLink="true">https://forum.mysensors.org/post/111780</guid><dc:creator><![CDATA[OldSurferDude]]></dc:creator><pubDate>Fri, 08 Apr 2022 01:16:19 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Tue, 05 Apr 2022 18:51:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oldsurferdude" aria-label="Profile: OldSurferDude">@<bdi>OldSurferDude</bdi></a> I don't see a password in your configure settings. Since it is saying that the connection is refused from your MQTT broker, that was the first thing that popped out to me. Do you have access control set up on the broker? I'm assuming that you have the IP address and port set up correctly.</p>
<p dir="auto">I'm not sure if there would be a different message for other things, but when I had the access control on and messed up the username or password it would tell me connection refused or at least something very similar.</p>
]]></description><link>https://forum.mysensors.org/post/111756</link><guid isPermaLink="true">https://forum.mysensors.org/post/111756</guid><dc:creator><![CDATA[ejlane]]></dc:creator><pubDate>Tue, 05 Apr 2022 18:51:07 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Tue, 05 Apr 2022 09:07:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oldsurferdude" aria-label="Profile: OldSurferDude">@<bdi>OldSurferDude</bdi></a> said in <a href="/post/111748">💬 Building a Raspberry Pi Gateway</a>:</p>
<blockquote>
<p dir="auto">o Is the gateway trying to connect to a controller such as Home Assistant (HA)?</p>
</blockquote>
<p dir="auto">Yes, a controller or a mqtt broker.</p>
<blockquote>
<p dir="auto">o The IP address of 127.0.0.1 implies the controller is on the same machine.  Would the gateway connect to a docker containerized HA?</p>
</blockquote>
<p dir="auto">I think it depends on how the docker is set up, but I don't have enough knowledge about docker to say for sure.</p>
<blockquote>
<p dir="auto">o What example programs will connect to the RF24 radio side of the gateway?  We could start off with a simple ONoff switch and progress to that node controlling a relay on another node.  (passing the request through an MQTT broker?)</p>
</blockquote>
<p dir="auto">You could build any of the nodes on the <a href="https://www.mysensors.org/build" rel="nofollow ugc">build page</a>, or use <a href="https://github.com/mysensors/MySensors/tree/development/examples/MockMySensors" rel="nofollow ugc">https://github.com/mysensors/MySensors/tree/development/examples/MockMySensors</a> or just create a local sensor on the gateway (if you don't need to test the nrf24 communication).</p>
<blockquote>
<p dir="auto">o Note that I made the assumption that the gateway doesn't distinguish between wired ethernet or WiFi.  Is that a good assumption?</p>
</blockquote>
<p dir="auto">In the case of the Raspberry Pi gateway yes. It will use the Pi's networking, regardless of type.</p>
]]></description><link>https://forum.mysensors.org/post/111750</link><guid isPermaLink="true">https://forum.mysensors.org/post/111750</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Tue, 05 Apr 2022 09:07:24 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Mon, 04 Apr 2022 20:04:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mfalkvidd" aria-label="Profile: mfalkvidd">@<bdi>mfalkvidd</bdi></a> I implemented your suggestion of running the development branch. This didn't work for a different reason.  Below my questions is what I did.<br />
Questions:<br />
o Is the gateway trying to connect to a controller such as Home Assistant (HA)?<br />
o The IP address of 127.0.0.1 implies the controller is on the same machine.  Would the gateway connect to a docker containerized HA?<br />
o What example programs will connect to the RF24 radio side of the gateway?  We could start off with a simple ONoff switch and progress to that node controlling a relay on another node.  (passing the request through an MQTT broker?)<br />
o Note that I made the assumption that the gateway doesn't distinguish between wired ethernet or WiFi.  Is that a good assumption?</p>
<p dir="auto">Hardware RPi 3B+, nRF24 wired with CE to physical pin 15<br />
OS: Raspbian GNU/Linux 11 (bullseye)</p>
<p dir="auto">It is assumed that deleting the MySensors folder will uninstall the existing master branch.  (probably a bad assumption)</p>
<ol>
<li>
<p dir="auto">sudo rm -r MySensors</p>
</li>
<li>
<p dir="auto">git clone <a href="https://github.com/mysensors/MySensors.git" rel="nofollow ugc">https://github.com/mysensors/MySensors.git</a> --branch development</p>
</li>
<li>
<p dir="auto">cd MySensors</p>
</li>
<li>
<p dir="auto">./configure --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --my-transport=rf24<br />
note:  It is stated that the default configuration is ethernet port 5003 (./configure --my-gateway=ethernet --my-port=5003)<br />
It is assumed that the software doesn't distinguish between ethernet and WiFi</p>
</li>
<li>
<p dir="auto">make<br />
many compiler warnings</p>
</li>
<li>
<p dir="auto">Start gateway with<br />
sudo ./bin/mysgw</p>
<p dir="auto">which results in:</p>
<p dir="auto">Apr 04 12:12:37 INFO  Config file /etc/mysensors.conf does not exist, creating new file.<br />
Apr 04 12:12:37 INFO  Starting gateway...<br />
Apr 04 12:12:37 INFO  Protocol version - 2.4.0-alpha<br />
Apr 04 12:12:37 INFO  EEPROM file /etc/mysensors.eeprom does not exist, creating new file.<br />
Apr 04 12:12:37 DEBUG MCO:BGN:INIT GW,CP=RNNGL---,FQ=NA,REL=0,VER=2.4.0-alpha<br />
Apr 04 12:12:37 DEBUG TSF:LRT:OK<br />
Apr 04 12:12:37 DEBUG TSM:INIT<br />
Apr 04 12:12:37 DEBUG TSF:WUR:MS=0<br />
Apr 04 12:12:37 DEBUG TSM:INIT:TSP OK<br />
Apr 04 12:12:37 DEBUG TSM:INIT:GW MODE<br />
Apr 04 12:12:37 DEBUG TSM:READY:ID=0,PAR=0,DIS=0<br />
Apr 04 12:12:37 DEBUG MCO:REG:NOT NEEDED<br />
Apr 04 12:12:37 DEBUG MCO:BGN:STP<br />
Apr 04 12:12:37 DEBUG MCO:BGN:INIT OK,TSP=1</p>
<p dir="auto">followed by repeating:</p>
<p dir="auto">Apr 04 12:12:37 DEBUG GWT:RMQ:CONNECTING...<br />
Apr 04 12:12:37 ERROR connect: Connection refused<br />
Apr 04 12:12:37 ERROR failed to connect<br />
Apr 04 12:12:38 DEBUG !GWT:RMQ:FAIL<br />
Apr 04 12:12:38 DEBUG TSM:READY:NWD REQ<br />
Apr 04 12:12:40 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:</p>
</li>
</ol>
<p dir="auto">Assumed that it failed to connect to an MQTT broker and the my-controller-ip-address is a broker address</p>
<p dir="auto">Changed the --my-controller-ip-address to that of my MQTT broker (It is assumed that the default MQTT port is used)<br />
repeat step 4. with the change and step 5. and 6.<br />
no joy same output<br />
Restarted with step 1 with changes<br />
no joy same output</p>
]]></description><link>https://forum.mysensors.org/post/111748</link><guid isPermaLink="true">https://forum.mysensors.org/post/111748</guid><dc:creator><![CDATA[OldSurferDude]]></dc:creator><pubDate>Mon, 04 Apr 2022 20:04:35 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Mon, 04 Apr 2022 09:35:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oldsurferdude" aria-label="Profile: OldSurferDude">@<bdi>OldSurferDude</bdi></a> loos like it could be the same problem as <a href="https://github.com/mysensors/MySensors/pull/1454" rel="nofollow ugc">https://github.com/mysensors/MySensors/pull/1454</a></p>
<p dir="auto">In that case, applying the suggested fix manually, or using the development branch (where the fix is already included) should work.</p>
]]></description><link>https://forum.mysensors.org/post/111746</link><guid isPermaLink="true">https://forum.mysensors.org/post/111746</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Mon, 04 Apr 2022 09:35:28 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Mon, 04 Apr 2022 09:32:12 GMT]]></title><description><![CDATA[<p dir="auto">I'm new to MySensors.  I'm trying to build an MQTT gateway with an nRF24 radio on my RPi 3B+.  I follow the instructions here,<br />
My radio is connected with CE on physical pin 15 (GPIO22) and CSN on physical pin 24 (GPIO8)  I am confident this works has I was able to run the tMRH20 examples</p>
<p dir="auto">I follow the instructions here on this web page</p>
<p dir="auto">I configured with:</p>
<pre><code>./configure --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --my-transport=rf24
</code></pre>
<p dir="auto">I run make but quickly error with "missing stropts.h" for which I found a fix "sudo touch /usr/include/stropts.h".  I run make again after a many warnings it stops with Error 1. The last few lines:</p>
<pre><code>re/Linux/drivers/core/compatibility.o build/hal/architecture/Linux/drivers/core/EthernetClient.o build/hal/architecture/Linux/drivers/core/EthernetServer.o build/hal/architecture/Linux/drivers/core/GPIO.o build/hal/architecture/Linux/drivers/core/interrupt.o build/hal/architecture/Linux/drivers/core/IPAddress.o build/hal/architecture/Linux/drivers/core/noniso.o build/hal/architecture/Linux/drivers/core/Print.o build/hal/architecture/Linux/drivers/core/SerialPort.o build/hal/architecture/Linux/drivers/core/SoftEeprom.o build/hal/architecture/Linux/drivers/core/SPIDEV.o build/hal/architecture/Linux/drivers/core/StdInOutStream.o build/hal/architecture/Linux/drivers/core/Stream.o build/examples_linux/mysgw.o build/hal/architecture/Linux/drivers/BCM/bcm2835.o build/hal/architecture/Linux/drivers/BCM/BCM.o build/hal/architecture/Linux/drivers/BCM/RPi.o build/hal/architecture/Linux/drivers/BCM/SPIBCM.o build/hal/architecture/Linux/drivers/BCM/Wire.o 
/usr/bin/ld: build/examples_linux/mysgw.o: in function `.LANCHOR1':
/home/appian3344/MySensors/./hal/architecture/Linux/drivers/core/config.h:39: multiple definition of `conf'; build/hal/architecture/Linux/drivers/core/config.o:/home/appian3344/MySensors/hal/architecture/Linux/drivers/core/config.h:39: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:80: bin/mysgw] Error 1
</code></pre>
<p dir="auto">OK, what didn't I do right?</p>
]]></description><link>https://forum.mysensors.org/post/111743</link><guid isPermaLink="true">https://forum.mysensors.org/post/111743</guid><dc:creator><![CDATA[OldSurferDude]]></dc:creator><pubDate>Mon, 04 Apr 2022 09:32:12 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Sun, 25 Jul 2021 06:29:35 GMT]]></title><description><![CDATA[<p dir="auto">In case someone has similar issue:<br />
Running everything latest up to date.</p>
<p dir="auto">Raspberry pi zero w with nrf24 connected directly on GPIO and domoticz. Had to have startup delay on mysgw service since domoticz wouldn't or couldn't start automatically on boot.<br />
So i added to:<br />
sudo nano /etc/systemd/system/mysgw.service</p>
<p dir="auto">[Service]<br />
ExecStartPre=/bin/sleep 10</p>
<p dir="auto">Maybe 10 seconds is overkill, but at least it works now.<br />
With raspberry pi 3b+ there wasn't that issue.</p>
<p dir="auto">Also in domoticz had to use raspi ip address, when setting up mysensors LAN gateway address, instead of localhost 127.0.0.1</p>
<p dir="auto">And myscontroller OTA updates are working too.🙂</p>
]]></description><link>https://forum.mysensors.org/post/110637</link><guid isPermaLink="true">https://forum.mysensors.org/post/110637</guid><dc:creator><![CDATA[iguaan]]></dc:creator><pubDate>Sun, 25 Jul 2021 06:29:35 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Wed, 28 Apr 2021 18:03:00 GMT]]></title><description><![CDATA[<p dir="auto">To clarify, I have the Mozilla Webthings Controller and I want to know if I can use the instructions above to make the same RPi4B to be the MySensors gateway. Any help would be greatly appreciated.</p>
]]></description><link>https://forum.mysensors.org/post/110074</link><guid isPermaLink="true">https://forum.mysensors.org/post/110074</guid><dc:creator><![CDATA[hawtcher]]></dc:creator><pubDate>Wed, 28 Apr 2021 18:03:00 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Wed, 28 Apr 2021 16:53:05 GMT]]></title><description><![CDATA[<p dir="auto">Is it possible to have the RPi4B, that is being used as the Webthings Gateway, also be the My Sensor controller once I add a NRF24L01+ module and follow steps above?</p>
]]></description><link>https://forum.mysensors.org/post/110071</link><guid isPermaLink="true">https://forum.mysensors.org/post/110071</guid><dc:creator><![CDATA[hawtcher]]></dc:creator><pubDate>Wed, 28 Apr 2021 16:53:05 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Tue, 18 Aug 2020 07:34:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mfalkvidd" aria-label="Profile: mfalkvidd">@<bdi>mfalkvidd</bdi></a> Just a quick update...</p>
<p dir="auto">Been extremely busy, so not a lot of time, but when I run the recompiled version (channel 109) gateway and use the existing - known good - sensor sketches with the channel 109 macro declaration included, it doesn't connect at all.<br />
When I run the "old" version of the gateway and the same sensor sketches with channel 109 commented out, it just-works™...</p>
<p dir="auto">More testing and such due I guess!  :(</p>
]]></description><link>https://forum.mysensors.org/post/107187</link><guid isPermaLink="true">https://forum.mysensors.org/post/107187</guid><dc:creator><![CDATA[Fear na Boinne]]></dc:creator><pubDate>Tue, 18 Aug 2020 07:34:32 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Mon, 13 Jul 2020 10:48:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fear-na-boinne" aria-label="Profile: Fear-na-Boinne">@<bdi>Fear-na-Boinne</bdi></a> if you want to be able to switch your rpi gateway between the old and the new channel while testing, you could try my patch which allows configurable service name</p>
<p dir="auto"><a href="https://github.com/mysensors/MySensors/pull/1421" rel="nofollow ugc">https://github.com/mysensors/MySensors/pull/1421</a></p>
<p dir="auto">Or just skip running make install so you don’t overwrite the old gateway</p>
]]></description><link>https://forum.mysensors.org/post/106662</link><guid isPermaLink="true">https://forum.mysensors.org/post/106662</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Mon, 13 Jul 2020 10:48:28 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Mon, 13 Jul 2020 06:38:36 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for the lack of response, life's been crazy... Thanks for the reply, I have since recompiled, but need to make some add'l changes to the sensor sketches, so I want to do all of that at once before I deploy to the new channel...  ;)</p>
]]></description><link>https://forum.mysensors.org/post/106661</link><guid isPermaLink="true">https://forum.mysensors.org/post/106661</guid><dc:creator><![CDATA[Fear na Boinne]]></dc:creator><pubDate>Mon, 13 Jul 2020 06:38:36 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Fri, 10 Jul 2020 05:53:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fear-na-boinne" aria-label="Profile: Fear-na-Boinne">@<bdi>Fear-na-Boinne</bdi></a> yes that is correct</p>
]]></description><link>https://forum.mysensors.org/post/106638</link><guid isPermaLink="true">https://forum.mysensors.org/post/106638</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Fri, 10 Jul 2020 05:53:51 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Thu, 09 Jul 2020 21:21:07 GMT]]></title><description><![CDATA[<p dir="auto">Just trying to figure out whether there is a switch or config file option for the channel, or whether the only option to change the channel is truly to recompile?!...</p>
<p dir="auto">Just ran the Poor Man's scanner and channels 1-98 a a garbage mess, so I need to go &gt;&gt; 100, but am surprised the only option there seems to be a recompile?...</p>
]]></description><link>https://forum.mysensors.org/post/106626</link><guid isPermaLink="true">https://forum.mysensors.org/post/106626</guid><dc:creator><![CDATA[Fear na Boinne]]></dc:creator><pubDate>Thu, 09 Jul 2020 21:21:07 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Tue, 19 May 2020 21:23:06 GMT]]></title><description><![CDATA[<p dir="auto">Since the pins are configurable before compilation, creating a script that uses the same settings as the compiled code would be pretty hard.</p>
<p dir="auto">The easiest way with existing code is probably to add --my-leds-blinking-inverse to your configure command and start the gateway, as suggested by <a class="plugin-mentions-user plugin-mentions-a" href="/user/masmat" aria-label="Profile: MasMat">@<bdi>MasMat</bdi></a></p>
]]></description><link>https://forum.mysensors.org/post/105691</link><guid isPermaLink="true">https://forum.mysensors.org/post/105691</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Tue, 19 May 2020 21:23:06 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Tue, 19 May 2020 20:55:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/masmat" aria-label="Profile: MasMat">@<bdi>MasMat</bdi></a> I was purely wanting to find a way of testing them, to check my wiring, if they do come on during boot then this is a great way to test.  It would also possibly be useful (for those of us less experienced) to have a script to run to check the wiring is correct.  I think it much more useful to have them off, and blink on, and it was the wiring that confused me.  I will have to see if I can investigate this further.</p>
]]></description><link>https://forum.mysensors.org/post/105689</link><guid isPermaLink="true">https://forum.mysensors.org/post/105689</guid><dc:creator><![CDATA[ej3-martin]]></dc:creator><pubDate>Tue, 19 May 2020 20:55:55 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Building a Raspberry Pi Gateway on Tue, 19 May 2020 18:55:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ej3-martin" aria-label="Profile: ej3-martin">@<bdi>ej3-martin</bdi></a> My LEDs come on when the Rpi boots (is that what you mean by testing?). Also you can invert the LEDs (on but blink off) if you want. I figured the wiring makes for better power delivery rather than feeding voltage from the GPIO</p>
]]></description><link>https://forum.mysensors.org/post/105683</link><guid isPermaLink="true">https://forum.mysensors.org/post/105683</guid><dc:creator><![CDATA[MasMat]]></dc:creator><pubDate>Tue, 19 May 2020 18:55:02 GMT</pubDate></item></channel></rss>