<?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[MySensors GW on rpi3]]></title><description><![CDATA[<p dir="auto">I have installed a new image on a rpi3 and followed the installation guide for getting the GW  installed - ethernet selected.<br />
When I run "sudo ./bin/mysgw" i receive these messages:</p>
<p dir="auto">Sep 28 13:14:14 ERROR accept: Bad file descriptor<br />
Sep 28 13:14:14 ERROR accept: Bad file descriptor<br />
Sep 28 13:14:14 ERROR accept: Bad file descriptor<br />
Sep 28 13:14:14 ERROR accept: Bad file descriptor<br />
Sep 28 13:14:14 ERROR accept: Bad file descriptor</p>
<p dir="auto">What does this mean?</p>
]]></description><link>https://forum.mysensors.org/topic/12038/mysensors-gw-on-rpi3</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 16:13:21 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/12038.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Sep 2022 11:24:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MySensors GW on rpi3 on Fri, 30 Sep 2022 18:07:04 GMT]]></title><description><![CDATA[<p dir="auto">Nice work <a class="plugin-mentions-user plugin-mentions-a" href="/user/kurtsejr" aria-label="Profile: Kurtsejr">@<bdi>Kurtsejr</bdi></a>, thanks for reporting back</p>
]]></description><link>https://forum.mysensors.org/post/113085</link><guid isPermaLink="true">https://forum.mysensors.org/post/113085</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Fri, 30 Sep 2022 18:07:04 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Fri, 30 Sep 2022 11:58:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kurtsejr" aria-label="Profile: Kurtsejr">@<bdi>Kurtsejr</bdi></a> Thanks<br />
Everything seems to be working, used the "dev version" - thanks for helping, I started with a new image.</p>
]]></description><link>https://forum.mysensors.org/post/113080</link><guid isPermaLink="true">https://forum.mysensors.org/post/113080</guid><dc:creator><![CDATA[Kurtsejr]]></dc:creator><pubDate>Fri, 30 Sep 2022 11:58:46 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Fri, 30 Sep 2022 07:01:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kurtsejr" aria-label="Profile: Kurtsejr">@<bdi>Kurtsejr</bdi></a> Thanks a lot!<br />
I removed the entry in the interrupt.cpp fil, and was then able to do a make , "make" - with some warnings, but make ended up writing this to me:</p>
<p dir="auto">/home/pi/MySensors/./hal/architecture/Linux/drivers/core/config.h:39: multiple d              efinition of `conf'; build/hal/architecture/Linux/drivers/core/config.o:/home/pi              /MySensors/hal/architecture/Linux/drivers/core/config.h:39: first defined here<br />
collect2: error: ld returned 1 exit status<br />
make: *** [Makefile:80: bin/mysgw] Error 1<br />
pi@MySensor-GW:~/MySensors $<br />
pi@MySensor-GW:~/MySensors $ sudo ./bin/mysgw -c<br />
sudo: ./bin/mysgw: command not found</p>
<p dir="auto">This means that I do not have a mysgw file in "bin" - bin dir is empty</p>
]]></description><link>https://forum.mysensors.org/post/113078</link><guid isPermaLink="true">https://forum.mysensors.org/post/113078</guid><dc:creator><![CDATA[Kurtsejr]]></dc:creator><pubDate>Fri, 30 Sep 2022 07:01:16 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Thu, 29 Sep 2022 20:49:03 GMT]]></title><description><![CDATA[<p dir="auto">Nice work on the internet connectivity <a class="plugin-mentions-user plugin-mentions-a" href="/user/kurtsejr" aria-label="Profile: Kurtsejr">@<bdi>Kurtsejr</bdi></a></p>
<p dir="auto">It is an issue on some (newer?) linux versions. It has been fixed in the development version of MySensors. You can switch to the development version, or add the fix yourself.</p>
<p dir="auto">See <a href="https://github.com/mysensors/MySensors/issues/1431" rel="nofollow ugc">https://github.com/mysensors/MySensors/issues/1431</a> and  <a href="https://github.com/mysensors/MySensors/pull/1446/files" rel="nofollow ugc">https://github.com/mysensors/MySensors/pull/1446/files</a></p>
<p dir="auto">Sorry for the inconvenience.</p>
]]></description><link>https://forum.mysensors.org/post/113077</link><guid isPermaLink="true">https://forum.mysensors.org/post/113077</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Thu, 29 Sep 2022 20:49:03 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Thu, 29 Sep 2022 20:23:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kurtsejr" aria-label="Profile: Kurtsejr">@<bdi>Kurtsejr</bdi></a> Now I have network connection, made an update and upgrade, and now I can install from github. Changed to rf24 radio, and could see that ethernet was default.</p>
<p dir="auto">pi@MySensor-GW:~/MySensors $ sudo ./configure --my-transport=rf24<br />
[SECTION] Detecting target machine.<br />
[OK] machine detected: SoC=BCM2837, Type=rpi3, CPU=armv7l.<br />
[SECTION] Detecting SPI driver.<br />
[OK] SPI driver detected:BCM.<br />
[SECTION] Gateway configuration.<br />
[OK] Type: ethernet.<br />
[OK] Transport: rf24.<br />
[OK] Signing: Disabled.<br />
[OK] Encryption: Disabled.<br />
[OK] CPPFLAGS: -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloa                 t-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX                 _ARCH_RASPBERRYPI<br />
[OK] CXXFLAGS:  -std=c++11<br />
[SECTION] Detecting init system.<br />
[OK] Init system detected: systemd.<br />
[SECTION] Saving configuration.<br />
[OK] Saved.<br />
[SECTION] Cleaning previous builds.<br />
[OK] Finished.</p>
<p dir="auto">Next was to do a make, result:</p>
<p dir="auto">pi@MySensor-GW:~/MySensors $ sudo make<br />
g++ -MT build/hal/architecture/Linux/drivers/core/interrupt.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI  -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/interrupt.cpp -o build/hal/architecture/Linux/drivers/core/interrupt.o<br />
hal/architecture/Linux/drivers/core/interrupt.cpp:33:10: fatal error: stropts.h: No such file or directory<br />
33 | #include &lt;stropts.h&gt;<br />
|          ^~~~~~~~~~~<br />
compilation terminated.<br />
make: *** [Makefile:99: build/hal/architecture/Linux/drivers/core/interrupt.o] Error 1<br />
pi@MySensor-GW:~/MySensors $</p>
<p dir="auto">So it seems that something is missing, something linux basic ....</p>
]]></description><link>https://forum.mysensors.org/post/113076</link><guid isPermaLink="true">https://forum.mysensors.org/post/113076</guid><dc:creator><![CDATA[Kurtsejr]]></dc:creator><pubDate>Thu, 29 Sep 2022 20:23:05 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Thu, 29 Sep 2022 20:06:11 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> You are right, no network connection - strange I will investigate, thanks!</p>
]]></description><link>https://forum.mysensors.org/post/113075</link><guid isPermaLink="true">https://forum.mysensors.org/post/113075</guid><dc:creator><![CDATA[Kurtsejr]]></dc:creator><pubDate>Thu, 29 Sep 2022 20:06:11 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Thu, 29 Sep 2022 20:05:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kurtsejr" aria-label="Profile: Kurtsejr">@<bdi>Kurtsejr</bdi></a> said in <a href="/post/113071">MySensors GW on rpi3</a>:</p>
<blockquote>
<p dir="auto">How do I remove if more that one instance is started? - I will try to google it. Perhaps it's easier to start from beginning again</p>
</blockquote>
<p dir="auto"><code>sudo systemctl stop mysgw.service</code> will stop the gateway service if it is currently running. It will start automatically again after reboot (unless disabled).</p>
<p dir="auto"><code>sudo systemctl disable mysgw.service</code> will disable autostart, but will keep the service running if it has already been started.</p>
<p dir="auto"><a href="https://www.linuxtrainingacademy.com/systemd-cheat-sheet/" rel="nofollow ugc">https://www.linuxtrainingacademy.com/systemd-cheat-sheet/</a> can be a good place to start</p>
]]></description><link>https://forum.mysensors.org/post/113074</link><guid isPermaLink="true">https://forum.mysensors.org/post/113074</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Thu, 29 Sep 2022 20:05:17 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Thu, 29 Sep 2022 20:01:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kurtsejr" aria-label="Profile: Kurtsejr">@<bdi>Kurtsejr</bdi></a> said in <a href="/post/113072">MySensors GW on rpi3</a>:</p>
<blockquote>
<p dir="auto">Has something changed? or is it github that does not response?</p>
</blockquote>
<p dir="auto">The Raspberry Pi probably doesn't have the right settings for connecting to Internet. What happens if you run <code>ping google.com</code> for example? You should get something like this:</p>
<pre><code>ping google.com
PING google.com (142.250.179.142) 56(84) bytes of data.
64 bytes from ams17s10-in-f14.1e100.net (142.250.179.142): icmp_seq=1 ttl=58 time=33.3 ms
64 bytes from ams17s10-in-f14.1e100.net (142.250.179.142): icmp_seq=2 ttl=58 time=33.4 ms
</code></pre>
<p dir="auto">If you don't get any replies, the raspberry pi doesn't have a working internet connection.</p>
]]></description><link>https://forum.mysensors.org/post/113073</link><guid isPermaLink="true">https://forum.mysensors.org/post/113073</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Thu, 29 Sep 2022 20:01:39 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Thu, 29 Sep 2022 16:26:27 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 decided to reinstall, start from scratch by installing a new pi image om my SDHC disk, but trying to install the GW software I get this message:</p>
<p dir="auto">pi@MySensor-GW:~ $ pwd<br />
/home/pi<br />
pi@MySensor-GW:~ $ sudo git clone <a href="https://github.com/mysensors/MySensors.git" rel="nofollow ugc">https://github.com/mysensors/MySensors.git</a> --branch development<br />
Cloning into 'MySensors'...<br />
fatal: unable to access '<a href="https://github.com/mysensors/MySensors.git/" rel="nofollow ugc">https://github.com/mysensors/MySensors.git/</a>': Couldn't connect to server<br />
pi@MySensor-GW:~ $ sudo git clone <a href="https://github.com/mysensors/MySensors.git" rel="nofollow ugc">https://github.com/mysensors/MySensors.git</a> --branch master<br />
Cloning into 'MySensors'...<br />
fatal: unable to access '<a href="https://github.com/mysensors/MySensors.git/" rel="nofollow ugc">https://github.com/mysensors/MySensors.git/</a>': Couldn't connect to server<br />
pi@MySensor-GW:~ $</p>
<p dir="auto">Has something changed? or is it github that does not response?</p>
]]></description><link>https://forum.mysensors.org/post/113072</link><guid isPermaLink="true">https://forum.mysensors.org/post/113072</guid><dc:creator><![CDATA[Kurtsejr]]></dc:creator><pubDate>Thu, 29 Sep 2022 16:26:27 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Thu, 29 Sep 2022 15:46:25 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> said in <a href="/post/113067">MySensors GW on rpi3</a>:</p>
<blockquote>
<p dir="auto">sudo systemctl enable mysgw.service</p>
</blockquote>
<p dir="auto">Thanks for your reply</p>
<p dir="auto">I have run the command, result:</p>
<p dir="auto">pi@MySensor-GW:~ $ sudo systemctl enable mysgw.service<br />
pi@MySensor-GW:~ $</p>
<p dir="auto">How do I remove if more that one instance is started? - I will try to google it. Perhaps it's easier to start from beginning again</p>
]]></description><link>https://forum.mysensors.org/post/113071</link><guid isPermaLink="true">https://forum.mysensors.org/post/113071</guid><dc:creator><![CDATA[Kurtsejr]]></dc:creator><pubDate>Thu, 29 Sep 2022 15:46:25 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Thu, 29 Sep 2022 13:32:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kurtsejr" aria-label="Profile: Kurtsejr">@<bdi>Kurtsejr</bdi></a> I tested the gateway on a spare raspberry pi and it does indeed print lots of <code>ERROR accept: Bad file descriptor</code> when more than one instance of the gateway is started. The solution is easy: don't start two instances at the same time.</p>
<p dir="auto">The reason is actually printed in the log: <code>ERROR bind: Address already in use</code> but is easy to miss due to the many <code>ERROR accept: Bad file descriptor</code></p>
<pre><code>INFO  Starting gateway...
INFO  Protocol version - 2.4.0-alpha
DEBUG MCO:BGN:INIT GW,CP=R-NGL---,FQ=NA,REL=0,VER=2.4.0-alpha
ERROR bind: Address already in use
ERROR Failed to bind!
DEBUG MCO:BGN:STP
DEBUG MCO:REG:NOT NEEDED
DEBUG MCO:BGN:INIT OK,TSP=NA
ERROR accept: Bad file descriptor
ERROR accept: Bad file descriptor
ERROR accept: Bad file descriptor
ERROR accept: Bad file descriptor
</code></pre>
]]></description><link>https://forum.mysensors.org/post/113068</link><guid isPermaLink="true">https://forum.mysensors.org/post/113068</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Thu, 29 Sep 2022 13:32:38 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Thu, 29 Sep 2022 06:32:03 GMT]]></title><description><![CDATA[<p dir="auto">To check if the gateway has started automatically, run <code>sudo systemctl enable mysgw.service</code></p>
]]></description><link>https://forum.mysensors.org/post/113067</link><guid isPermaLink="true">https://forum.mysensors.org/post/113067</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Thu, 29 Sep 2022 06:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Wed, 28 Sep 2022 14:17:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kurtsejr" aria-label="Profile: Kurtsejr">@<bdi>Kurtsejr</bdi></a> yes the gateway will start automatically at each boot, unless automatic start is disabled.</p>
]]></description><link>https://forum.mysensors.org/post/113063</link><guid isPermaLink="true">https://forum.mysensors.org/post/113063</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Wed, 28 Sep 2022 14:17:46 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Wed, 28 Sep 2022 13:49:22 GMT]]></title><description><![CDATA[<p dir="auto">Yes I made a reboot, just made a new reboot - same result :-(</p>
]]></description><link>https://forum.mysensors.org/post/113062</link><guid isPermaLink="true">https://forum.mysensors.org/post/113062</guid><dc:creator><![CDATA[Kurtsejr]]></dc:creator><pubDate>Wed, 28 Sep 2022 13:49:22 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Wed, 28 Sep 2022 13:37:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kurtsejr" aria-label="Profile: Kurtsejr">@<bdi>Kurtsejr</bdi></a> did you reboot befor running <code>sudo ./bin/mysgw</code>?<br />
If that’s the case my guess is that the gateway was already started automatically at boot. When you tried to start another instance, the tcp port was already in use.</p>
]]></description><link>https://forum.mysensors.org/post/113061</link><guid isPermaLink="true">https://forum.mysensors.org/post/113061</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Wed, 28 Sep 2022 13:37:31 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Wed, 28 Sep 2022 12:10:25 GMT]]></title><description><![CDATA[<p dir="auto">Sorry one more:</p>
<p dir="auto">pi@MySensor-GW:~/MySensors $ sudo make<br />
pi@MySensor-GW:~/MySensors $ sudo make install<br />
Installing bin/mysgw to /usr/local/bin<br />
install -m0644 initscripts/mysgw.systemd /etc/systemd/system/mysgw.service<br />
systemctl daemon-reload<br />
MySensors gateway has been installed, to add to the boot run:<br />
sudo systemctl enable mysgw.service<br />
To start the gateway run:<br />
sudo systemctl start mysgw.service<br />
pi@MySensor-GW:~/MySensors $ sudo systemctl enable mysgw.service<br />
pi@MySensor-GW:~/MySensors $</p>
<p dir="auto">So no warnings or errors on make and make install, seens to be ok.</p>
<p dir="auto">Then a "sudo reboot"</p>
]]></description><link>https://forum.mysensors.org/post/113060</link><guid isPermaLink="true">https://forum.mysensors.org/post/113060</guid><dc:creator><![CDATA[Kurtsejr]]></dc:creator><pubDate>Wed, 28 Sep 2022 12:10:25 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Wed, 28 Sep 2022 11:43:50 GMT]]></title><description><![CDATA[<p dir="auto">Used --rf24 I get:</p>
<p dir="auto">[SECTION] Detecting target machine.<br />
[OK] machine detected: SoC=BCM2837, Type=rpi3, CPU=armv7l.<br />
[SECTION] Detecting SPI driver.<br />
[OK] SPI driver detected:BCM.<br />
[SECTION] Gateway configuration.<br />
[OK] Type: ethernet.<br />
[OK] Transport: rf24.<br />
[OK] Signing: Disabled.<br />
[OK] Encryption: Disabled.<br />
[OK] CPPFLAGS: -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI<br />
[OK] CXXFLAGS:  -std=c++11<br />
[SECTION] Detecting init system.<br />
[OK] Init system detected: systemd.<br />
[SECTION] Saving configuration.<br />
[OK] Saved.<br />
[SECTION] Cleaning previous builds.<br />
[OK] Finished.</p>
<p dir="auto">Seems fine for me</p>
]]></description><link>https://forum.mysensors.org/post/113059</link><guid isPermaLink="true">https://forum.mysensors.org/post/113059</guid><dc:creator><![CDATA[Kurtsejr]]></dc:creator><pubDate>Wed, 28 Sep 2022 11:43:50 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Wed, 28 Sep 2022 11:40:39 GMT]]></title><description><![CDATA[<p dir="auto">I used the "Raspberry pi OS (32 bit) from 2022-09-22</p>
<p dir="auto">on configure I used<br />
sudo ./configure --my-gateway=ethernet<br />
could see that port 5003 and rf24  was default</p>
<p dir="auto">My controller is HA, but the error messages was of cause from</p>
]]></description><link>https://forum.mysensors.org/post/113058</link><guid isPermaLink="true">https://forum.mysensors.org/post/113058</guid><dc:creator><![CDATA[Kurtsejr]]></dc:creator><pubDate>Wed, 28 Sep 2022 11:40:39 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors GW on rpi3 on Wed, 28 Sep 2022 11:31:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kurtsejr" aria-label="Profile: Kurtsejr">@<bdi>Kurtsejr</bdi></a> what configure command did you use?<br />
Were there any warnings or errors during make?<br />
What image are you using?</p>
]]></description><link>https://forum.mysensors.org/post/113057</link><guid isPermaLink="true">https://forum.mysensors.org/post/113057</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Wed, 28 Sep 2022 11:31:27 GMT</pubDate></item></channel></rss>