ninjablocks / 433Utils

433Kit is a collection of code and documentation designed to assist you in the connection and usage of RF 433MHz transmit and receive modules to/with your Arduino and Rapberry Pi.
ninjablocks.com
MIT License
895 stars 335 forks source link

RFSniffer no data #21

Closed ghost closed 7 years ago

ghost commented 8 years ago

I have an Arduino sending data over 433MHz, this is wokring fine and I receive the data on my Pi using the VirtualWire lib and PIGPIO. But when I run RFSniffer it shows no data. The PINs are the same so that can't be it. Any advice on how to find the problem?

Connor-Knabe commented 8 years ago

I'm having the same issue I cannot seem to read anything from my receiver (I've tried two different receivers on different pins).

Barry40 commented 8 years ago

Same here :-( I installed a new sd card several times, and did exactly what it need to do but i can't recieve any signals. I also try'd with another 433mhz receiver. It hangs on sudo RFSniffer

"sudo /home/pi/433Utils/RPi_utils/RFSniffer "

Seems that it doesnt work with newer firmware of the rpi?

rotv commented 8 years ago

Have you ruled out pulse length as a cause (are you sure you're running RFSniffer with the correct pulse length)?

Connor-Knabe commented 8 years ago

No I wasn't aware that was something I could try. How do I go about that @rotv?

rotv commented 8 years ago

@Connor-Knabe, I did that for my remotes by using PISCOPE where I could see the signals and measure the pulses.

In order to test different pulse lengths you can invoke RFSniffer with the optional parameter: Usage: ./RFSniffer [pulseLength] You can for instance try out different "50-step" values: 150, 200, 250...400

E.g. sudo ./RFSniffer 150 (for 150 microsecond/us pulses).

My system, FHT-7901, uses 150 us pulses but the 433-Utils/rc-switch default setting of 350 also seems to work when I send codes. I'm using a better version of 433Utils which contains the latest and greatest rc-switch (git clone -b rcswitch --recursive git://github.com/rotv/433Utils.git). I've been trying to get it merged but no one is responding for the ninjablocks repositories (PR #17).

florianchrometz commented 8 years ago

+1 My RPi setup worked fine using codesend and RFSniffer. I updated my rpi this morning, now running: Linux raspi 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/Linux

Right after the update RFSniffer stopped working. I checked the reciever module on my other RPi (not updated, yet) where it's still working fine.

bartounet16 commented 8 years ago

Hello I don't understand I have installed Fresh raspian and compile RFSNIffer with default Options ( int PIN = 2;) I have connect rasp as this picture: http://www.homautomation.org/wp-content/uploads/2013/09/RPi.jpg But i don't receive some data !!! is there a problem with raspberry pie 2 and 3 ??

roidayan commented 8 years ago

hi @bartounet16 , when I sniff data on the pi I need to touch(or almost touch) the remote to the receiver to actually make it catch the signal. trying even few cm away doesn't catch the signal at all. have you tried that?

667bdrm commented 8 years ago

The problem reproducing on the latest Raspbian on B+ too. Tried the XY-MK-5V and RXB6 receivers, changed power supply and receiver power isolation. The both receivers works perfect on Arduino and ESP8266. As I could remember the XY-MK-5V has been worked on the older raspbian before the implementing kernel device tree.

dubanoze commented 8 years ago

Guys, GPIO by default PULL DOWN. When i add code for PULL UP sniffer start work.

florianchrometz commented 8 years ago

@dubanoze feel free to start a pull request with a working version :smile:

dubanoze commented 8 years ago

Wii paste code tomorrow. RPI on work.

rcoduk commented 8 years ago

@dubanoze Are u still gonna paste that code :)

yat0tv commented 8 years ago

Yeah I was wondering as well, I have some untested receivers that I can't get to spit out any data and hoping it's a pi/software issue and not hardware.

dubanoze commented 8 years ago

need add pullUpDnControl(PIN, PUD_OFF);

to RFSniffer.cpp

dubanoze commented 8 years ago

root@raspberrypi:/home/pi/433/433Utils/RPi_utils# ./RFSniffer

Received 3224434 Received 3224434 Received 3224434 Received 3224436 Received 3224436 Received 3224436 Received 3224436

yat0tv commented 8 years ago

hmm I've added that to line 38 and still not seeing any results.

dubanoze commented 8 years ago

Can you connect oscilloscope to data line ?

yat0tv commented 8 years ago

I do not have that kind of hardware.

rotv commented 8 years ago

You can use PISCOPE.

yat0tv commented 8 years ago

I can see it on channel 27 of PISCOPE modulating up and down quite rapidly but nothing shows up for RFSniffer

electronicsguy commented 7 years ago

It's working perfectly for me, on my single Raspberry Pi B+. Running Wheezy (Linux raspberrypi 4.1.19+) and no need of adding the pull up/down line mentioned above.

All I did was start RFSniffer in one terminal and use codesend from another terminal.

Received 54321 Received 54321

SamDecrock commented 7 years ago

I had the same problem with one of two 433 Mhz receivers. One worked on the Pi, the other didn't. However, both worked on the Arduino!

Putting pin 2 into the "no pull up/down"-state fixed it like @dubanoze said. You can do this from command line using

gpio mode 2 tri

I've tested this on both the Raspberry Pi Model B+ and Raspberry Pi 3.

The 100% usage is always there as I suppose WiringPi "polls" the pin every x microseconds.

Also, don't forget that the WiringPi PIN 2 is actually the 13th pin on the board, see: https://pinout.xyz/pinout/pin13_gpio27

ghost commented 7 years ago

This is no longer an issue for me because I moved to ESP8266, I also use RadioHead, the successor of VirtualWire at the moment.