Hi, i been using my 433mhz receiver for awhile now, i use it to detect my door sensor which is connected to my Openhab2 on my Raspberry pi 3 runing Stretch, recently i had some problems with my system and i decided to make fresh install, after installing Buster on my Pi and going through the steps i succeeded installing and using last time from these links: RFSniffer, 433MHz receiver RPI and MQTT
I know its a bit of an old link and things changed a bit, i installed mosquitto with Buster repo and installed wiringPi from Github as it’s no longer available by Gordan at the original site, i installed 433utils github, followed everything and when i test my ./RFSniffer it works perfectly but when i use ./RFmqtt i get nothing!
I tried different pins, different Pi, different method of installation, i also tried Strech Version of Pi and still nothing…
I had ./RFmqtt work before even without connecting to OH2
I spent my last 15 days of quarantine plus other non quarantined days trying to solve this but no luck, what to do?!?
I would appreciate any advice or help and i will be thankful always
Have you used openhabian-config tool, selected option 10 Apply Improvements, then Add needed Packages, svr mounts, and fix permissions? If not give that a try and by some chance you do not have openhabian-config tool you can add it with these commands from the doc’s.
Did you get it running?
when you run the RFmqtt in the console do you get any error or message?
(Make sure it is not allready running as a process.)
You might uncomment the part which states.
/* Include for debugging */
And build it to get more info when something is received.
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