Git Product home page Git Product logo

rtl-wx's People

Contributors

magellannh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtl-wx's Issues

Compile error - convenience_static

Keep getting this compile error:

gcc -O3 -Wall -Wextra -Wno-unused -Wsign-compare -g3 -fvisibility=hidden -o rtl-wx obj/rtl-wx.o obj/TagProc.o obj/DataStore.o obj/ConfProc.o obj/Scheduler.o obj/Util.o obj/rtl-433fm-demod.o obj/rtl-433fm-decode.o obj/getopt.o -Wl,-Bstatic -lconvenience_static -lrtlsdr -Wl,-Bdynamic -lpthread -lusb-1.0 -lm -L. -Llibrtlsdr/build/src
/usr/bin/ld: cannot find -lconvenience_static
collect2: ld returned 1 exit status
Makefile:69: recipe for target 'rtl-wx' failed

Any idea how this can be fixed?

Thanks

Owl energy meter decoding

Hello magellannh,

I wanted to be able to capture the signal sent by my Owl energy meter using RTL-SDR for processing on my PC. After doing some research it seems like the Owl energy meter uses the Oregon scientific protocol. After some more research I found your project and it did exactly what I wanted. After testing the software I found a problem and I hope that you would be able to tell me how to fix this.

I tested rtl-wx in server mode, but it did not pick up any data transmitted by my unit. I then ran rtl-wx in standalone mode and I saw error messages printed to the console (OWLCM119 Error). The calculated values seem to be out of range.
I located the piece of code in rtl-433fm-decode.c where a check is performed to ensure that the current and total_current values are in range.

I also added some code at that point to dump the msg and bb buffers to the console in an attemt to see what is going on:

        unsigned int current = get_owl_current(msg);
        double total_current = get_owl_total_current(msg);
        if ((current > 0) && (total_current > 0) && (current < 1000) && (total_current < 10000)) {
            if (owl_msg_ok_callback != NULL) {
                owl_msg_ok_callback(msg, 13, (float) current, total_current);
                return 1;
            } else
                //fprintf(stderr, "Power: %d (watts) Total: %7.4f (KWH)\n", current, total_current);
                fprintf(stderr, " Energy Sensor OWLCM119 Channel %d Current: %d (watts) Total: %7.4f (KWH)\n", msg[0] >> 4, current, total_current);
        } else {
            fprintf(stderr, "Message: ");
            for (i = 0; i < BITBUF_COLS; i++) fprintf(stderr, "%02x, ", msg[i]);
            fprintf(stderr, "\n");
            fprintf(stderr, "    Raw: ");
            for (i = 0; i < BITBUF_COLS; i++) fprintf(stderr, "%02x,", bb[0][i]);
            fprintf(stderr, "\n\n");

            if (owl_msg_error_callback != NULL) owl_msg_error_callback(msg, 13, (float) current, total_current);
        }

This output was produced:
Message: 19, 84, 01, a0, 50, c9, 00, 90, 04, 4e, b0, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00,
Raw: 00,00,00,58,91,20,85,0a,03,90,09,00,22,7d,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
At that time my meter displayed 0.483 KW.

Here is another example:
Message: 19, 84, 01, a0, 60, c0, 00, 00, 03, 3c, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00,
Raw: 00,00,00,58,91,20,85,06,03,00,00,00,cc,30,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,

This time the meter displayed 0.515KW.

I'm having a hard time trying to figure out how to process the buffer to get the consumed kilowatts. I have researched this a bit, but I could not find any way yet to successfully produce a value close to 0.483KW or 0.515KW.

I have the following meter: http://theowl.co.za/catalogsearch/result/index/?mode=grid&q=SE16 (I think it uses the CM119 sensor).

Do you perhaps know how to make sense of the msg buffer or raw buffer (bb) data?

Oregon THN132N integration

Hello,

I made my own THN132N copy with an arduino and a ds18b20

As RTL-433 last release can reconize Oregon THN132N, is this possible to include it on RTL-WX ?

I try to do it my self but i have to say that i'm really not a programmer...

built error

Hello

built from sources for Raspberry Pi
with protocol rubicson
/* init protocols somewhat ok */
register_protocol(demod, &rubicson, samp_rate);

i got a error :

gcc -O3 -c -o obj/rtl-433fm-demod.o rtl-433fm-demod.c -I. -I/usr/include/libusb-1.0 -Ilibrtlsdr/include
rtl-433fm-demod.c:63:25: fatal error: convenience.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
Makefile:58: recipe for target 'obj/rtl-433fm-demod.o' failed
make: *** [obj/rtl-433fm-demod.o] Error 1

maybe missing file : convenience.h ?

thanks for any help

stdout output a bit messy

Hi,running

./rtl-wx -s

in bash, here what I have on stdout, a bit messy with the EOL :

Ready to gather weather sensor data

                                   <<Hit 'h' for help, any key for status, ESC to quit>>

                                                                                        Found 1 device(s):
                                                                                                            0:  Realtek, RTL2838UHIDIR, SN: 00000001

                           Using device 0: Generic RTL2832U OEM
                                                               Found Rafael Micro R820T tuner
                                                                                             Tuner gain set to automatic.
Tuner error set to 56 ppm.
                          Tuned to 433925000 Hz.
                                                Oversampling input by: 9x.
                                                                          Oversampling output by: 1x.
                                                                                                     Buffer size: 16384kB 7.59ms
       Exact sample rate is: 1080000.025749 Hz
                                              Sampling at 1080000 S/s.
                                                                      Output at 120000 Hz.
                                                                                          Registering protocol[01] Oregon Scientific Weather Sensor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.