SuperToma
Posts: 5
Joined: Thu Dec 22, 2016 10:51 pm
Location: Paris

Re: RFSniffer - Can't get it working

Fri Dec 23, 2016 12:26 pm

The receiver is connected on GPIO 27 :
I receive something that looks like noise. :geek:
Attachments
Capture d’écran 2016-12-23 à 13.15.56.jpg
Capture d’écran 2016-12-23 à 13.15.56.jpg (33.35 KiB) Viewed 3137 times

User avatar
joan
Posts: 12816
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: RFSniffer - Can't get it working

Fri Dec 23, 2016 1:12 pm

Does the signal look cleaner when you press a button on the remote?

SuperToma
Posts: 5
Joined: Thu Dec 22, 2016 10:51 pm
Location: Paris

Re: RFSniffer - Can't get it working

Fri Dec 23, 2016 1:44 pm

Not so much,
My temperature sensor send data 1 time each 40s.
When the light is blinking while sending data I can't say that's more clearer.

I have a second receiver (same as Husar) and the signal is even more noisy in piscope (cf. new capture).
Attachments
Capture d’écran 2016-12-23 à 14.39.06.jpg
Capture d’écran 2016-12-23 à 14.39.06.jpg (33.04 KiB) Viewed 3082 times

User avatar
joan
Posts: 12816
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: RFSniffer - Can't get it working

Fri Dec 23, 2016 2:37 pm

The most likely problem is the temperature sensor doesn't transmit on 433MHz. Have you a link to the specs?

SuperToma
Posts: 5
Joined: Thu Dec 22, 2016 10:51 pm
Location: Paris

Re: RFSniffer - Can't get it working

Fri Dec 23, 2016 4:03 pm

It is an Oregon THGR810.
cf. http://www.oregonscientificstore.com/p- ... nnels.aspx

The specs are here : http://www.homeseer.com/pdfs/Oregon_Sci ... HGR810.pdf

Maybe it's not working but I'm not sure :)

I'll make tests with the PI transmitter and watch if there is something viewable on receiver.

Thanks !

User avatar
joan
Posts: 12816
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: RFSniffer - Can't get it working

Fri Dec 23, 2016 4:18 pm

It does say 433MHz. However it only transmits once a minute.

Try something like

pigs fg 27 200

to filter most of the noise. Increase the 200 until there isn't noise say more than every few seconds or so. Then see if you pick up a signal every minute.

I think Oregon use a proprietary data format.

andies
Posts: 130
Joined: Mon Nov 11, 2013 8:12 pm
Location: Berlin

Re: RFSniffer - Can't get it working

Sun Dec 25, 2016 9:09 am

I finally solved my issue, see this thread: https://forum.pilight.org/Thread-Came-d ... atic-gates. The problem is the following. If you start recording a signal that is unknown to the software no useful output will be produced, sometimes nothing shows up. In this case you have to use any raw output software and go through the raw data by hand. Unless the protocol is known you cannot use RFSniffer etc.
raspberry B, Noir camera, Mac Book Air, iPhone, Bezzera

SuperToma
Posts: 5
Joined: Thu Dec 22, 2016 10:51 pm
Location: Paris

Re: RFSniffer - Can't get it working

Sun Dec 25, 2016 4:22 pm

Thanks Andies and Joan !
I'll try the rfxcom module that understand my transmiter ;)
Regards

theraspberryguy
Posts: 87
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website

Re: RFSniffer - Can't get it working

Thu Dec 29, 2016 7:25 pm

I also have a problem too. Using piscope, I can see the signal changing when a remote button is pressed but I cannot read the signal. After running

Code: Select all

pigs fg 150
, there was still some noise so I ran

Code: Select all

pigs fg 300
which removed a lot of the noise. Now, everytime I press a button, there is a signal but it differs slightly everytime so I am not sure what is going.

RFSniffer isn't working either but it is probably due the reason andies stated. I haven't tested out Husar's code yet but I have also followed many 433mhz tutorials to no success. By the way, here is my 433mhz device: http://www.avsl.com/product/429.950UK-5 ... te-control.

Any advice or suggestions would be great as I spent countless hours on this to no success. Thanks.
Here is my blog: https://thereallycoolstuff.wordpress.com

andies
Posts: 130
Joined: Mon Nov 11, 2013 8:12 pm
Location: Berlin

Re: RFSniffer - Can't get it working

Fri Jan 20, 2017 8:33 pm

What is your receiver? Try to get an arduino and a transmitter and send a 200ms-200ms signal to your receiver and check whether you can read this 200-200 signal. If not, the receiver is bad. I am pretty sure that it is the receiver. It took me a fruitless month to accept that.

And how do you read the signal? Only piscope? What is pilight-raw giving you?
raspberry B, Noir camera, Mac Book Air, iPhone, Bezzera

Husar
Posts: 67
Joined: Tue Nov 12, 2013 12:43 am
Location: Midwest, USA
Contact: Website

Re: RFSniffer - Can't get it working

Fri Jan 20, 2017 8:36 pm

theraspberryguy wrote:I also have a problem too. Using piscope, I can see the signal changing when a remote button is pressed but I cannot read the signal. After running

Code: Select all

pigs fg 150
, there was still some noise so I ran

Code: Select all

pigs fg 300
which removed a lot of the noise. Now, everytime I press a button, there is a signal but it differs slightly everytime so I am not sure what is going.

RFSniffer isn't working either but it is probably due the reason andies stated. I haven't tested out Husar's code yet but I have also followed many 433mhz tutorials to no success. By the way, here is my 433mhz device: http://www.avsl.com/product/429.950UK-5 ... te-control.

Any advice or suggestions would be great as I spent countless hours on this to no success. Thanks.
That surge protector looks like you shouldn't have any problem. Just try that code I suggested and I bet it works for you.
Ed

theraspberryguy
Posts: 87
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website

Re: RFSniffer - Can't get it working

Sat Jan 21, 2017 8:12 am

andies wrote:What is your receiver? Try to get an arduino and a transmitter and send a 200ms-200ms signal to your receiver and check whether you can read this 200-200 signal. If not, the receiver is bad. I am pretty sure that it is the receiver. It took me a fruitless month to accept that.

And how do you read the signal? Only piscope? What is pilight-raw giving you?
I haven't tried pilight-raw, just piscope. However, I suspect it is my receiver which is faulty as I bought the cheapest one possible from China. :D I have ordered a new one now. Thanks.
Here is my blog: https://thereallycoolstuff.wordpress.com

theraspberryguy
Posts: 87
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website

Re: RFSniffer - Can't get it working

Sat Jan 21, 2017 8:16 am

That surge protector looks like you shouldn't have any problem. Just try that code I suggested and I bet it works for you
I will try your code as soon as I get the new receiver. Thanks.
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 12816
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: RFSniffer - Can't get it working

Sat Jan 21, 2017 9:38 am

theraspberryguy wrote:
andies wrote: ...
And how do you read the signal? Only piscope? What is pilight-raw giving you?
I haven't tried pilight-raw, just piscope. However, I suspect it is my receiver which is faulty as I bought the cheapest one possible from China. :D I have ordered a new one now. Thanks.
piscope is intended to be a general purpose tool, it is certainly not dedicated to capturing and decoding RF signals. Although it can be used to capture and save the needed data.

I think pilight-raw tries to capture the raw data and present it in text form. The raw data being the length of the pulses.

http://abyz.co.uk/rpi/pigpio/examples.h ... monitor_py will show the length of the pulses.

theraspberryguy
Posts: 87
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website

Re: RFSniffer - Can't get it working

Sat Jan 21, 2017 10:08 am

Thanks for the advice. I will post back after I see what I can do with the new receiver.
Here is my blog: https://thereallycoolstuff.wordpress.com

Alex Konshin
Posts: 22
Joined: Sun Jan 29, 2017 10:02 pm
Location: Boston MA, USA

Re: RFSniffer - Can't get it working

Mon Feb 06, 2017 5:26 am

I know your pain :) I went though similar experience recently.
I tried many different things. I have 2 different SDR. I tried RFXCOM. I tried 4 different receivers with RPi and I have more of them to try :). I can summarize what I have learned:
  • SDR with rtl_433 knows many protocols and more or less work when you make it work. I connected and used it from my Windows machine. After some hard time with setup and drivers (basically nothing worked from the first try... then second try... then third try. FYI I am not a freshman - I work more than 25 years as a software developer. But still I had troubles. In general reception for 433MHz is worse than for other options. But its capability to see RF signals in selected ranges is very useful in some cases. For example, it is easy to identify the frequency of transmissions of some device.
  • RFXCOM knows dozens of protocols and its reception is good. Unfortunately it does not know the protocol on sensors that I needed. It is also pretty expensive (more than $100). Due to some legal reasons you cannot buy transceiver RFXCOM in USA, only receiver is available. If it is not a problem then it could be very useful in some projects.
  • Cheap receivers like RXB6 and RX-RM-5V works if you do it right. But back to the topic - RFSniffer is really bad choice if your device is not recognized by this utility. Basically this utility understands only some RF switches and remains silent for other devices. It was very disappointing and I decided to write my own utility that serves my needs (see https://github.com/alex-konshin/f007th-rpi).
  • I am going to try several other receivers with SPI interface. Actually I tried one (RFM01) couple of years ago but without success. But I didn't know what I know now. I will try again. I also bought and want to try Adafruit Feather M0 RFM69 Packet Radio (433 MHz) https://www.adafruit.com/products/3177. So I have a long backlog for my weekends :).

theraspberryguy
Posts: 87
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website

Re: RFSniffer - Can't get it working

Mon Feb 06, 2017 7:00 am

Thanks for that - its very frustrating when you see all those wonderful tutorials on the web but can't get yours to work :D . Anyway, I have got my new receiver and I will try it out next week...

By the way, as I am quite new to this, I don't quite understand what you mean by RFXCOM, SDR and rtl_433. Please could you explain. Thanks.
Here is my blog: https://thereallycoolstuff.wordpress.com

Alex Konshin
Posts: 22
Joined: Sun Jan 29, 2017 10:02 pm
Location: Boston MA, USA

Re: RFSniffer - Can't get it working

Mon Feb 06, 2017 3:12 pm

RFXCOM is here: http://www.rfxcom.com/
SDR stays for "Software Defined Radio". Actually people on these forums usually mean USB dongles (there are many of them on the market) with RTL2832 or similar. "rtl_433" is a one of utility for these dongles. See following pages:

theraspberryguy
Posts: 87
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website

Re: RFSniffer - Can't get it working

Mon Feb 06, 2017 5:52 pm

Thanks - I will update here after trying out the new receiver...
Here is my blog: https://thereallycoolstuff.wordpress.com

theraspberryguy
Posts: 87
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website

Re: RFSniffer - Can't get it working

Tue Feb 07, 2017 8:54 pm

Yes - the new receiver works :D ! I can't believe I spent so many days and nights on a faulty receiver from China! Using RFSniffer, I get the same codes consistently meaning the receiver works.

However, when I try send the codes using ./codesend, nothing happens, even though I am literally touching the rf extension. I also tried the receiver and transmitter, running RFSniffer on another console but nothing happens either. Also, I put an led on the data and ground pin of transmitter, and it flickers when code is sent so I think this means the wiring is correct and the transmitter therefore may be faulty.

I thought of soldering an antenna onto the transmitter, but I haven't got round to doing it. I don't think it would make a difference. Any other ideas? Thanks.
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 12816
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: RFSniffer - Can't get it working

Tue Feb 07, 2017 8:58 pm

Of course an aerial makes a difference, it increases the range for reception and transmission. That's why everyone with a working radio system will use an aerial on the receiver and transmitter.

theraspberryguy
Posts: 87
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website

Re: RFSniffer - Can't get it working

Wed Feb 08, 2017 6:33 am

I would have soldered an antenna on but I meant that as the transmitter was literally touching the extension cord, when using ./codesend, the transmitter may be faulty as it didn't work. I know that antennas are needed for longer range but I thought by touching it, it should work. Thanks anyway, I will try this out and see if it makes a difference.
Here is my blog: https://thereallycoolstuff.wordpress.com

theraspberryguy
Posts: 87
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website

Re: RFSniffer - Can't get it working

Thu Feb 09, 2017 7:15 pm

Ok, I soldered a 17.3cm wire onto the transmitter, however, nothing happens when using codesend. I think the transmitter is faulty as I think I have soldered the antenna properly. Any suggestions? Thanks.
Here is my blog: https://thereallycoolstuff.wordpress.com

claudioita
Posts: 18
Joined: Mon Jan 23, 2017 7:38 am

Re: RFSniffer - Can't get it working

Fri Feb 10, 2017 3:48 pm

Husar wrote:I am finally able to capture codes. Yea!

I gave up on getting any of the code to work that I tried earlier in this thread. I ended up using this Python 3 script I pulled off one of the home automation sites. Everything is working really good to capture the codes. Now I am working on sending the codes via PHP.

I anyone has trouble with the any of of the tutorials that I tried give this script go. Way easier!

Code: Select all

 
#!/usr/bin/env python3

import argparse
import signal
import sys
import time
import logging

from rpi_rf import RFDevice

rfdevice = None

# pylint: disable=unused-argument
def exithandler(signal, frame):
    rfdevice.cleanup()
    sys.exit(0)

logging.basicConfig(level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S',
                    format='%(asctime)-15s - [%(levelname)s] %(module)s: %(message)s', )

parser = argparse.ArgumentParser(description='Receives a decimal code via a 433/315MHz GPIO device')
parser.add_argument('-g', dest='gpio', type=int, default=27,
                    help="GPIO pin (Default: 27)")
args = parser.parse_args()

signal.signal(signal.SIGINT, exithandler)
rfdevice = RFDevice(args.gpio)
rfdevice.enable_rx()
timestamp = None
logging.info("Listening for codes on GPIO " + str(args.gpio))
while True:
    if rfdevice.rx_code_timestamp != timestamp:
        timestamp = rfdevice.rx_code_timestamp
        logging.info(str(rfdevice.rx_code) +
                     " [pulselength " + str(rfdevice.rx_pulselength) +
                     ", protocol " + str(rfdevice.rx_proto) + "]")
    time.sleep(0.01)
rfdevice.cleanup()

The above code will output something like the following.

Code: Select all

pi@raspberrypi:~ $ python3 rfrx.py 
/usr/local/lib/python3.4/dist-packages/rpi_rf/rpi_rf.py:167: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(self.gpio, GPIO.IN)
2016-12-19 20:15:52 - [INFO] rfrx: Listening for codes on GPIO 27
2016-12-19 20:15:52 - [INFO] rfrx: 1 [pulselength 1180, protocol 4]
2016-12-19 20:15:57 - [INFO] rfrx: 1054003 [pulselength 184, protocol 1]
2016-12-19 20:15:57 - [INFO] rfrx: 1054003 [pulselength 186, protocol 1]

Hi!

I did this and I still have the problem. No code showing up, I tried 2 remotes that I have ......

claudioita
Posts: 18
Joined: Mon Jan 23, 2017 7:38 am

Re: RFSniffer - Can't get it working

Fri Feb 10, 2017 3:53 pm

joan wrote:Are you receiving something which looks like a signal and is not just noise?

http://abyz.co.uk/rpi/pigpio/piscope.html
did this but receive this

Code: Select all

pi@raspberrypi:~ $ piscope &
[1] 4642
pi@raspberrypi:~ $ Unable to init server: Could not connect: Connection refused

(piscope:4642): Gtk-WARNING **: cannot open display:

Return to “Automation, sensing and robotics”

Who is online

Users browsing this forum: No registered users and 17 guests