{"action":"created","issue":{"url":"https://api.github.com/repos/merbanan/rtl_433/issues/424","repository_url":"https://api.github.com/repos/merbanan/rtl_433","labels_url":"https://api.github.com/repos/merbanan/rtl_433/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/merbanan/rtl_433/issues/424/comments","events_url":"https://api.github.com/repos/merbanan/rtl_433/issues/424/events","html_url":"https://github.com/merbanan/rtl_433/issues/424","id":177656420,"number":424,"title":"higher samplerate -> no decoding (WT450)","user":{"login":"dagbdagb","id":8895912,"avatar_url":"https://avatars.githubusercontent.com/u/8895912?v=3","gravatar_id":"","url":"https://api.github.com/users/dagbdagb","html_url":"https://github.com/dagbdagb","followers_url":"https://api.github.com/users/dagbdagb/followers","following_url":"https://api.github.com/users/dagbdagb/following{/other_user}","gists_url":"https://api.github.com/users/dagbdagb/gists{/gist_id}","starred_url":"https://api.github.com/users/dagbdagb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagbdagb/subscriptions","organizations_url":"https://api.github.com/users/dagbdagb/orgs","repos_url":"https://api.github.com/users/dagbdagb/repos","events_url":"https://api.github.com/users/dagbdagb/events{/privacy}","received_events_url":"https://api.github.com/users/dagbdagb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-18T14:57:42Z","updated_at":"2016-09-18T15:25:02Z","closed_at":null,"body":"With default samplerate, my WT450 decodes perfectly. In order to simultaneously pick up another sensor on a different frequency, I want to increase the samplerate.\r\n\r\nBut then the original signal is not decoded. See below for two runs detecting the same sensor, once with the default samplerate and once at 1 Msps.\r\n\r\n\r\n**Default samplerate:**\r\nrtl_433 -p 65 -f 433800000 -A\r\n[....]\r\nExact sample rate is: 250000.000414 Hz\r\nSample rate set to 250000.\r\nBit detection level set to 8000.\r\nTuner gain set to Auto.\r\nReading samples in async mode...\r\nTuned to 433800000 Hz.\r\nDetected OOK package\r\n2016-09-17 13:48:59 :   WT450 sensor\r\n        House Code:      4\r\n        Channel:         4\r\n        Battery:         OK\r\n        Temperature:     19.72 C\r\n        Humidity:        81 %\r\nAnalyzing pulses...\r\nTotal count:   27,  width: 17725                (70.9 ms)\r\nPulse width distribution:\r\n [ 0] count:   16,  width:   239 [238;241]      ( 956 us)\r\n [ 1] count:   10,  width:   484 [484;485]      (1936 us)\r\n [ 2] count:    1,  width:   149 [149;149]      ( 596 us)\r\nGap width distribution:\r\n [ 0] count:   16,  width:   248 [247;250]      ( 992 us)\r\n [ 1] count:   10,  width:   492 [492;493]      (1968 us)\r\nPulse period distribution:\r\n [ 0] count:   10,  width:   487 [487;490]      (1948 us)\r\n [ 1] count:    4,  width:   977 [977;978]      (3908 us)\r\n [ 2] count:   12,  width:   732 [731;733]      (2928 us)\r\nLevel estimates [high, low]:  15819,   1335\r\nFrequency offsets [F1, F2]:   -6244,      0     (-23.8 kHz, +0.0 kHz)\r\nGuessing modulation: Pulse Width Modulation with startbit/delimiter\r\nAttempting demodulation... short_limit: 194, long_limit: 361, reset_limit: 494, demod_arg: 0\r\npulse_demod_pwm_ternary(): Analyzer Device \r\nbitbuffer:: Number of rows: 2 \r\n[00] {26} 34 15 52 80 : 00110100 00010101 01010010 10\r\n[01] {0} : \r\n\r\n\r\n\r\n**1M samplerate:**\r\nrtl_433 -p 65 -f 433800000 -A -s 1000000\r\n[....]\r\nExact sample rate is: 1000000.026491 Hz\r\nSample rate set to 1000000.\r\nBit detection level set to 8000.\r\nTuner gain set to Auto.\r\nReading samples in async mode...\r\nTuned to 433800000 Hz.\r\n[....]\r\n\r\nDetected OOK package\r\nAnalyzing pulses...\r\nTotal count:   27,  width: 70895                (70.9 ms)\r\nPulse width distribution:\r\n [ 0] count:   16,  width:   951 [947;958]      ( 951 us)\r\n [ 1] count:   10,  width:  1930 [1928;1936]    (1930 us)\r\n [ 2] count:    1,  width:   585 [585;585]      ( 585 us)\r\nGap width distribution:\r\n [ 0] count:   16,  width:  1000 [996;1004]     (1000 us)\r\n [ 1] count:   10,  width:  1976 [1974;1981]    (1976 us)\r\nPulse period distribution:\r\n [ 0] count:   10,  width:  1952 [1948;1957]    (1952 us)\r\n [ 1] count:    4,  width:  3908 [3905;3910]    (3908 us)\r\n [ 2] count:   12,  width:  2929 [2927;2935]    (2929 us)\r\nLevel estimates [high, low]:  15887,   3538\r\nFrequency offsets [F1, F2]:   -2433,      0     (-37.1 kHz, +0.0 kHz)\r\nGuessing modulation: Pulse Width Modulation with startbit/delimiter\r\nAttempting demodulation... short_limit: 768, long_limit: 1440, reset_limit: 1982, demod_arg: 0\r\npulse_demod_pwm_ternary(): Analyzer Device \r\nbitbuffer:: Number of rows: 2 \r\n[00] {26} 34 15 52 80 : 00110100 00010101 01010010 10\r\n[01] {0} : \r\n\r\n\r\nNote the missing output right after 'Detected OOK package' in the last run.\r\nWhy is decoding unsuccessful when the samplerate is 1M?"},"comment":{"url":"https://api.github.com/repos/merbanan/rtl_433/issues/comments/247854011","html_url":"https://github.com/merbanan/rtl_433/issues/424#issuecomment-247854011","issue_url":"https://api.github.com/repos/merbanan/rtl_433/issues/424","id":247854011,"user":{"login":"zuckschwerdt","id":12833,"avatar_url":"https://avatars.githubusercontent.com/u/12833?v=3","gravatar_id":"","url":"https://api.github.com/users/zuckschwerdt","html_url":"https://github.com/zuckschwerdt","followers_url":"https://api.github.com/users/zuckschwerdt/followers","following_url":"https://api.github.com/users/zuckschwerdt/following{/other_user}","gists_url":"https://api.github.com/users/zuckschwerdt/gists{/gist_id}","starred_url":"https://api.github.com/users/zuckschwerdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuckschwerdt/subscriptions","organizations_url":"https://api.github.com/users/zuckschwerdt/orgs","repos_url":"https://api.github.com/users/zuckschwerdt/repos","events_url":"https://api.github.com/users/zuckschwerdt/events{/privacy}","received_events_url":"https://api.github.com/users/zuckschwerdt/received_events","type":"User","site_admin":false},"created_at":"2016-09-18T15:25:02Z","updated_at":"2016-09-18T15:25:02Z","body":"the WT450 code is one of the few devices that uses PWM_Precise_Parameters, i.e pulse_tolerance (by way of OOK_PULSE_CLOCK_BITS, see pulse_demod_clock_bits()). The tolerance value is given in samples not in µs and thus locked to the sample rate. You can modify the code if you really need a different sample rate: https://github.com/merbanan/rtl_433/blob/master/src/devices/wt450.c#L138"}}
{"actor":{"display_login":"zuckschwerdt"}}