@gvorster It was some time ago but remember that finally was able to use this script: https://github.com/Yveaux/MySensors_MQTTGateway/blob/master/mqttGateway2.pl
However currently switched to this: https://www.mysensors.org/build/raspberry
and must say that works fine for me, and without extra Arduino (just RPi3 and nRF24L01+).
Posts made by catcher
-
RE: Raspberry PI + MQTT (Mosquitto) + Serial Gateway
-
How exactly ACK mechanism works like?
How exactly ACK mechanism works like?
- I'm using Serial GW, should I implement ACK confirmation in my controler or Serial GW handle this?
- If I'm sending message from NODE1 to NODE2 through Serial GW (NODE1->SerGW->NODE2) should ACK be sent from GW to NODE1 too or NODE2 should be responsible for sending ACK to NODE1 when received?
Generally ACK is handled in low level implementation or should I carry about it in my code?
Thanks in advace.
Regards
-
RE: Problem with sending 3 messages at once to one node
@boozz I see your point, maybe I'll do this as you suggest - bit codding.
My thinking was due to way how I want to do this in Node-RED:@mfalkvidd I didn't check this yet, but rememebr that noticed messages st=fail earlier, but I'm using power supply 2.5A, so this should be enough, but will check this once again. And go through the debug guide.
Anyway thanks guys for help.
-
Problem with sending 3 messages at once to one node
Hi,
Need help with troubleshooting.
My situation:
- MySensors protocol version 1.5
- serial gateway (connected to RaspbrryPI)
- 1 node controlling lights with relays (4 realys and 4 push buttons - light can be turn on with pushbutton and with a mysensors network + when using pushbuttons message about light state is generated to mysensors network) - (source code)
Problem:
When I'm trying to send 3 messages about turning on 3 lights node turn on only 2 lights.
Sometimes it turn on 3 but very very rare.
I'm using NodeRED, but also testing with simple python script (link) with the same result.Do you have any idea what can cause such symptoms? Where and how to start troubleshoot?
Thanks in advance.
Regards,
Michal -
RE: Raspberry PI + MQTT (Mosquitto) + Serial Gateway
Oh, I think I have it, you mean mqttGateway2.pl works with serial gateway. mqttGateway2.pl is a little bit different from https://github.com/mysensors/PerlMQTTGateway then from https://github.com/Yveaux/MySensors_MQTTGateway. Anyway thanks I'll check this.
-
RE: Raspberry PI + MQTT (Mosquitto) + Serial Gateway
@Mrlynx Did you make some changes or it works in this way out of the box?
-
Raspberry PI + MQTT (Mosquitto) + Serial Gateway
Hi,
I'm looking for combination of those 3 things from topic.
I going to use RaspberryPi as a gateway, MQTT broker and controller in one device.
I need MQTT (in future I going to use WiFi sensors too), but MQTT gateway from MySensors on Arduino is not enough for me because it allows only for one connections and has too simple logic regarding subscripitions.
I was going to use SerialGateway (or direct nRF24L01 connection to RPi) because I want to connect whole controller/gateway stuff to UPS - if I have Ethernet or MQTT gateway separately to RPi then I need to connect RPI, Ethernet/MQTT gateway and router to UPS, but I have it in diferent localizations.
I've fount that there is RPi port of MySensors lib: https://github.com/mysensors/Raspberry, but without MQTT support.
I've also found bridge between Arduino ethernet gateway and MQTT broker with Perl script: https://github.com/mysensors/PerlMQTTGateway
... but cannot find compilation of those 3 things together. Maybe I missed someting and maybe there is reason for that is not connected together. I've gone through this forum but without success.
Maybe you can give me some hints how to deal with it?
Thanks.
Regards,
Michal