I have my ./RFmqtt working and no error or any type of message showing, except I don’t receive anything from my door sensor only for ./RFSniffer I do receive a signal.
I just uncommented the line /* Include for debugging */ nothing changed yet
last night I did fresh install again and this time I didn’t install wiringpi as I mentioned its no longer available on the main site but it appeared to me that its already installed and no need to do anything
this is the only thing I get when running ./RFmqtt
so that’s what i did as fresh install:
1-installed Full Buster from here https://www.raspberrypi.org/downloads/raspbian/
2- sudo apt update && sudo apt upgrade -y
3-followed your steps on your page here: https://community.openhab.org/t/rfsniffer-433mhz-receiver-rpi-and-mqtt/39515
4- from #3 above i did install mosquitto+clintes and the libmosquitto-dev
5- installed 433Utils and changed the Makefile and add RFmqtt.cpp than changed the gpio to 27 for rfmqtt and for rfsinnfer its already set to 2 so than i hit sudo make
NOTE I have not installed wiringpi as i mentioned before it comes pre installed and i also tried it on with manual installation before!
6- i have replaced and adjusted
/* Include for debugging */ &
usleep(550U);
// remove nanosleep by commenting out.
// nanosleep( &req, (struct timespec *)NULL);
Pins are set right i believe, i followed the wiringpi diagram, so my RFSniffer is set to wiringpi pin 2 = gpio 27
My RFmqtt set to gpio 27 = pin2 in wiringpi
I need to mention somthing hopefully its not too late
My RPI3 uses wifi usb dungle so i am wondering if this might effect it ? I have had it working before with the same setup using same pi and usb wifi
Isn’t supposed to be so?!
Your link for RFmqtt.cpp has pin#3 so i changed it to 27 so that can equal to pin 2 of wiringpi diagram for RFSniffer
And by the way i have tried rfmqtt with pin3 and multiple pins and same nothing happens!
I am now trying Stretch and going to Try Jessie and will update back …
sorry to bother you @Josar
i been trying my best with this but no moving forward yet, i dont like to give up on this yet cause i know it worked perfect for me before so here is what i have seen on my logs
when i hit this line mosquitto_sub -u admin -P adminpassword -v -h 192.168.2.140 -p 1883 -t '#'
i do receive signal from my 433mhz door sensor
also my logs now seems to be changed for better, i can see it receiving the signal here : mymosquitto.log (182.1 KB)
using MQTT.fx i do get signal between both no problem
when i run ./RFmqtt which is inside my 433Utils/RPi
i receive nothing, i do think its the mosquitto problem still for some reason!
How can you recieve a mqtt message with the 433Mhz topic if RFmqtt does not work?
For me this sounds as if you allready have RFmqtt running as deamon. And thus the 433Mhz door sensor is allready translated to an mqtt topic. Now you need to configure Openhab MQTT to receive this MQTT topics.
I think there is a embedded MQTT broker which can be enabled or use Mosquitto (or any other) as broker. Also you will need to install the MQTT binding. See this thread which explains this in detail.
Hi, i have mentioned that my when i run RFmqtt i get no signal no error no nothing, i put up my logs and if you check i do get a signal from my sensor, regarding the OH i cant get it to connect if RFmqtt not receiving signal, i have read everything regarding the OH new mqtt embedded and other bidding that belongs to MQTT and all seem to be clear, my problem seems to be more with either the RFmqtt or the Mosquitto itself.
One thing, Can you confirm if the RFmqtt working for you or anyone that you know? Than i can make sure that i have problem only in myside for sure