merbanan / rtl_433

Program to decode radio transmissions from devices on the ISM bands (and other frequencies)
GNU General Public License v2.0
6.07k stars 1.31k forks source link

LimeSDR mini with SoapySDR, no pulse detected #919

Closed Xoib closed 5 years ago

Xoib commented 5 years ago

Hello,

I'm trying to do some tests with rtl_433 and the LimeSDR mini but I can't make it work. Here are the simple cmd line I am using : rtl_433 -d "" -G -a -A -f 433871000 -S all (targeting a 433.87 Mhz freq) At the start a pulse is wrongly detected and then nothing.

Any idea what am I missing?

[INFO] Make connection: 'LimeSDR Mini [USB 3.0] 1D424BD457D35B'
[DEBUG] Claimed Interface
[DEBUG] Estimated reference clock 40.0017 MHz
[INFO] Reference clock 40.00 MHz
[INFO] Device name: LimeSDR-Mini
[INFO] Reference: 40 MHz
[DEBUG] INT 121, FRAC 0, DIV_LOCH 1, EN_DIV2_DIVPROG 0
[DEBUG] VCO 5000.00 MHz, RefClk 40.00 MHz
[DEBUG] ICT_VCO: 180
[DEBUG] csw=64  cmphl=0
[DEBUG] csw=96  cmphl=0
[DEBUG] csw=112 cmphl=0
[DEBUG] csw=120 cmphl=0
[DEBUG] csw=124 cmphl=0
[DEBUG] csw=126 cmphl=0
[DEBUG] csw=127 cmphl=0
[DEBUG] Failed to lock
[DEBUG] csw=192 cmphl=0
[DEBUG] csw=224 cmphl=2
[DEBUG] csw=240 cmphl=3
[DEBUG] csw=232 cmphl=3
[DEBUG] csw=228 cmphl=2
[DEBUG] csw=230 cmphl=3
[DEBUG] csw=229 cmphl=3
[DEBUG] Failed to lock
[DEBUG] cmphl=2
[DEBUG] VCOL : csw=225 tune ok
[DEBUG] ICT_VCO: 180
[DEBUG] csw=64  cmphl=3
[DEBUG] csw=32  cmphl=3
[DEBUG] csw=16  cmphl=3
[DEBUG] csw=8   cmphl=3
[DEBUG] csw=4   cmphl=3
[DEBUG] csw=2   cmphl=3
[DEBUG] csw=1   cmphl=3
[DEBUG] Failed to lock
[DEBUG] csw=192 cmphl=3
[DEBUG] csw=160 cmphl=3
[DEBUG] csw=144 cmphl=3
[DEBUG] csw=136 cmphl=3
[DEBUG] csw=132 cmphl=3
[DEBUG] csw=130 cmphl=3
[DEBUG] csw=129 cmphl=3
[DEBUG] Failed to lock
[DEBUG] cmphl=3
[DEBUG] TuneVCO(SXT) - failed to lock (cmphl!=2)
[DEBUG] VCOM : csw=0 tune fail
[DEBUG] ICT_VCO: 180
[DEBUG] TuneVCO(SXT) - VCO too high
[DEBUG] VCOH : csw=0 tune fail
[DEBUG] Selected: VCOL
[DEBUG] INT 116, FRAC 0, DIV_LOCH 1, EN_DIV2_DIVPROG 0
[DEBUG] VCO 4800.00 MHz, RefClk 40.00 MHz
[DEBUG] ICT_VCO: 180
[DEBUG] csw=64  cmphl=0
[DEBUG] csw=96  cmphl=0
[DEBUG] csw=112 cmphl=0
[DEBUG] csw=120 cmphl=0
[DEBUG] csw=124 cmphl=0
[DEBUG] csw=126 cmphl=0
[DEBUG] csw=127 cmphl=0
[DEBUG] Failed to lock
[DEBUG] csw=192 cmphl=0
[DEBUG] csw=224 cmphl=3
[DEBUG] csw=208 cmphl=3
[DEBUG] csw=200 cmphl=2
[DEBUG] csw=204 cmphl=3
[DEBUG] csw=202 cmphl=3
[DEBUG] csw=201 cmphl=2
[DEBUG] CSW: lowest=197, highest=201, selected=199
[DEBUG] cmphl=2
[DEBUG] VCOL : csw=199 tune ok
[DEBUG] ICT_VCO: 180
[DEBUG] TuneVCO(SXR) - VCO too high
[DEBUG] VCOM : csw=0 tune fail
[DEBUG] ICT_VCO: 180
[DEBUG] TuneVCO(SXR) - VCO too high
[DEBUG] VCOH : csw=0 tune fail
[DEBUG] Selected: VCOL
[DEBUG] INT 57, FRAC 385875, DIV_OUTCH_CGEN 18
[DEBUG] VCO 2334.72 MHz, RefClk 40.00 MHz
[DEBUG] csw 155; interval [152, 159]
[DEBUG] INT 57, FRAC 385875, DIV_OUTCH_CGEN 18
[DEBUG] VCO 2334.72 MHz, RefClk 40.00 MHz
[DEBUG] csw 155; interval [152, 159]
[DEBUG] M=160, N=4, Fvco=614.400 MHz
[DEBUG] M=160, N=4, Fvco=614.400 MHz
[INFO] LMS7002M calibration values caching Disable
[DEBUG] INT 59, FRAC 0, DIV_OUTCH_CGEN 14
[DEBUG] VCO 2400.00 MHz, RefClk 40.00 MHz
[DEBUG] csw 170; interval [167, 173]
[DEBUG] M=195, N=3, Fvco=1300.000 MHz
[DEBUG] M=195, N=3, Fvco=1300.000 MHz
[DEBUG] SoapyLMS7::setGain(Rx, 0, LNA, 0 dB)
[DEBUG] Actual RxLNA[0] gain 0 dB
[DEBUG] SoapyLMS7::setGain(Tx, 0, PAD, 0 dB)
[DEBUG] Actual TxPAD[0] gain 0 dB
Using device LimeSDR-Mini: boardSerialNumber=0x1d424bd457d35a firmwareVersion=6 gatewareVersion=1.28 hardwareVersion=2 protocolVersion=1 
Found 4 antenna(s): NONE LNAH LNAL_NC LNAW 
Found 3 gain(s): TIA -12 - 61 (step 0) LNA -12 - 61 (step 0) PGA -12 - 61 (step 0) 
Found 2 frequencies: RF BB 
Found 1 frequency range(s): 0 - 3800000000 (step 0) 
Found 1 sample rate range(s): 100000 - 65000000 (step 0) 
Found 1 bandwidth range(s): 1400000 - 130000000 (step 0) 
Found current bandwidth 30000000
Found 3 stream format(s): CF32 CS12 CS16 
Found native stream format: CS16 (full scale: 2048.0)
[DEBUG] INT 59, FRAC 838860, DIV_OUTCH_CGEN 37
[DEBUG] VCO 2432.00 MHz, RefClk 40.00 MHz
[DEBUG] csw 175; interval [173, 178]
[DEBUG] INT 59, FRAC 838859, DIV_OUTCH_CGEN 37
[DEBUG] VCO 2432.00 MHz, RefClk 40.00 MHz
[DEBUG] csw 175; interval [173, 178]
Sample rate set to 249999 S/s.
Bit detection level set to 0 (Auto).
Tuner gain set to Auto.
[DEBUG] MCU algorithm time: 11 ms
[DEBUG] MCU algorithm time: 0 ms
[DEBUG] MCU algorithm time: 0 ms
[DEBUG] MCU algorithm time: 136 ms
[INFO] Rx calibration finished
Reading samples in async mode...
[DEBUG] INT 82, FRAC 811807, DIV_LOCH 3, EN_DIV2_DIVPROG 1
[DEBUG] VCO 6941.94 MHz, RefClk 40.00 MHz
[DEBUG] ICT_VCO: 180
[DEBUG] TuneVCO(SXR) - VCO too low
[DEBUG] VCOL : csw=0 tune fail
[DEBUG] ICT_VCO: 180
[DEBUG] TuneVCO(SXR) - VCO too low
[DEBUG] VCOM : csw=0 tune fail
[DEBUG] ICT_VCO: 180
[DEBUG] csw=64  cmphl=0
[DEBUG] csw=96  cmphl=2
[DEBUG] csw=112 cmphl=2
[DEBUG] csw=120 cmphl=3
[DEBUG] csw=116 cmphl=3
[DEBUG] csw=114 cmphl=2
[DEBUG] csw=115 cmphl=2
[DEBUG] CSW: lowest=96, highest=115, selected=105
[DEBUG] csw=192 cmphl=3
[DEBUG] csw=160 cmphl=3
[DEBUG] csw=144 cmphl=3
[DEBUG] csw=136 cmphl=3
[DEBUG] csw=132 cmphl=3
[DEBUG] csw=130 cmphl=3
[DEBUG] csw=129 cmphl=3
[DEBUG] Failed to lock
[DEBUG] cmphl=2
[DEBUG] VCOH : csw=105 tune ok
[DEBUG] Selected: VCOH
Tuned to 433.871MHz.
Detected OOK package    2018-12-15 22:43:49
Analyzing pulses...
Total count:    1,  width: 112.09 ms        (28023 S)
Pulse width distribution:
 [ 0] count:    1,  width: 112092 us [112092;112092]    (28023 S)
Gap width distribution:
Pulse period distribution:
Level estimates [high, low]:  10916,   1734
RSSI: -3.5 dB SNR: 16.0 dB Noise: -19.5 dB
Frequency offsets [F1, F2]:      13,      0 (+0.0 kHz, +0.0 kHz)
Guessing modulation: Single pulse detected. Probably Frequency Shift Keying or just noise...

signal_bsize = 393216  -      sg_index = 524288
start_pos    = 3004692  -   buffer_size = 3145728
*** Saving signal to file g005_433.871M_250k.cs16
*** Writing data from 3004692, len 141036
*** Writing data from 0, len 252180
*** signal_start = -8172, signal_end = 39851, signal_len = 48023, pulses_found = 1
Distance coding: Pulse length 28022

Short distance: 1000000, long distance: 0, packet distance: 0

p_limit: 28022
bitbuffer:: Number of rows: 0 

^CSignal caught, exiting!
zuckschwerdt commented 5 years ago

I guess you need to set the gains. Also don't use -G (you won't get more data, just more false positives.) or -a (old and not very helpful). Try rtl_433 -d "" -g "LNA=20,TIA=8,PGA=2" -f 433.87M -A -S all

Xoib commented 5 years ago

Thanks @zuckschwerdt Unfortunately, still no detection of the signal.

[ERROR] Rx calibration: MCU error 5 (Loopback signal weak: not connected/insufficient gain?)
Reading samples in async mode...

Here is the full output:

[INFO] Make connection: 'LimeSDR Mini [USB 3.0] 1D424BD457D35B'
[DEBUG] Claimed Interface
[DEBUG] Estimated reference clock 40.0017 MHz
[INFO] Reference clock 40.00 MHz
[INFO] Device name: LimeSDR-Mini
[INFO] Reference: 40 MHz
[DEBUG] INT 121, FRAC 0, DIV_LOCH 1, EN_DIV2_DIVPROG 0
[DEBUG] VCO 5000.00 MHz, RefClk 40.00 MHz
[DEBUG] ICT_VCO: 180
[DEBUG] csw=64  cmphl=0
[DEBUG] csw=96  cmphl=0
[DEBUG] csw=112 cmphl=0
[DEBUG] csw=120 cmphl=0
[DEBUG] csw=124 cmphl=0
[DEBUG] csw=126 cmphl=0
[DEBUG] csw=127 cmphl=0
[DEBUG] Failed to lock
[DEBUG] csw=192 cmphl=0
[DEBUG] csw=224 cmphl=2
[DEBUG] csw=240 cmphl=3
[DEBUG] csw=232 cmphl=3
[DEBUG] csw=228 cmphl=2
[DEBUG] csw=230 cmphl=3
[DEBUG] csw=229 cmphl=3
[DEBUG] Failed to lock
[DEBUG] cmphl=2
[DEBUG] VCOL : csw=224 tune ok
[DEBUG] ICT_VCO: 180
[DEBUG] TuneVCO(SXT) - VCO too high
[DEBUG] VCOM : csw=0 tune fail
[DEBUG] ICT_VCO: 180
[DEBUG] TuneVCO(SXT) - VCO too high
[DEBUG] VCOH : csw=0 tune fail
[DEBUG] Selected: VCOL
[DEBUG] INT 116, FRAC 0, DIV_LOCH 1, EN_DIV2_DIVPROG 0
[DEBUG] VCO 4800.00 MHz, RefClk 40.00 MHz
[DEBUG] ICT_VCO: 180
[DEBUG] csw=64  cmphl=0
[DEBUG] csw=96  cmphl=0
[DEBUG] csw=112 cmphl=0
[DEBUG] csw=120 cmphl=0
[DEBUG] csw=124 cmphl=0
[DEBUG] csw=126 cmphl=0
[DEBUG] csw=127 cmphl=0
[DEBUG] Failed to lock
[DEBUG] csw=192 cmphl=0
[DEBUG] csw=224 cmphl=3
[DEBUG] csw=208 cmphl=3
[DEBUG] csw=200 cmphl=2
[DEBUG] csw=204 cmphl=3
[DEBUG] csw=202 cmphl=3
[DEBUG] csw=201 cmphl=2
[DEBUG] CSW: lowest=196, highest=201, selected=198
[DEBUG] cmphl=2
[DEBUG] VCOL : csw=198 tune ok
[DEBUG] ICT_VCO: 180
[DEBUG] TuneVCO(SXR) - VCO too high
[DEBUG] VCOM : csw=0 tune fail
[DEBUG] ICT_VCO: 180
[DEBUG] TuneVCO(SXR) - VCO too high
[DEBUG] VCOH : csw=0 tune fail
[DEBUG] Selected: VCOL
[DEBUG] INT 57, FRAC 385875, DIV_OUTCH_CGEN 18
[DEBUG] VCO 2334.72 MHz, RefClk 40.00 MHz
[DEBUG] csw 155; interval [152, 159]
[DEBUG] INT 57, FRAC 385875, DIV_OUTCH_CGEN 18
[DEBUG] VCO 2334.72 MHz, RefClk 40.00 MHz
[DEBUG] csw 156; interval [152, 160]
[DEBUG] M=160, N=4, Fvco=614.400 MHz
[DEBUG] M=160, N=4, Fvco=614.400 MHz
[INFO] LMS7002M calibration values caching Disable
[DEBUG] INT 59, FRAC 0, DIV_OUTCH_CGEN 14
[DEBUG] VCO 2400.00 MHz, RefClk 40.00 MHz
[DEBUG] csw 170; interval [167, 173]
[DEBUG] M=195, N=3, Fvco=1300.000 MHz
[DEBUG] M=195, N=3, Fvco=1300.000 MHz
[DEBUG] SoapyLMS7::setGain(Rx, 0, LNA, 0 dB)
[DEBUG] Actual RxLNA[0] gain 0 dB
[DEBUG] SoapyLMS7::setGain(Tx, 0, PAD, 0 dB)
[DEBUG] Actual TxPAD[0] gain 0 dB
Using device LimeSDR-Mini: boardSerialNumber=0x1d424bd457d35a firmwareVersion=6 gatewareVersion=1.28 hardwareVersion=2 protocolVersion=1 
Found 4 antenna(s): NONE LNAH LNAL_NC LNAW 
Found 3 gain(s): TIA -12 - 61 (step 0) LNA -12 - 61 (step 0) PGA -12 - 61 (step 0) 
Found 2 frequencies: RF BB 
Found 1 frequency range(s): 0 - 3800000000 (step 0) 
Found 1 sample rate range(s): 100000 - 65000000 (step 0) 
Found 1 bandwidth range(s): 1400000 - 130000000 (step 0) 
Found current bandwidth 30000000
Found 3 stream format(s): CF32 CS12 CS16 
Found native stream format: CS16 (full scale: 2048.0)
[DEBUG] INT 59, FRAC 838860, DIV_OUTCH_CGEN 37
[DEBUG] VCO 2432.00 MHz, RefClk 40.00 MHz
[DEBUG] csw 175; interval [172, 178]
[DEBUG] INT 59, FRAC 838859, DIV_OUTCH_CGEN 37
[DEBUG] VCO 2432.00 MHz, RefClk 40.00 MHz
[DEBUG] csw 175; interval [172, 178]
Sample rate set to 249999 S/s.
Bit detection level set to 0 (Auto).
Setting gain element LNA: 20.000000 dB
[DEBUG] SoapyLMS7::setGain(Rx, 0, LNA, 20 dB)
[DEBUG] Actual RxLNA[0] gain 18 dB
Setting gain element TIA: 8.000000 dB
[DEBUG] SoapyLMS7::setGain(Rx, 0, TIA, 8 dB)
[DEBUG] Actual RxTIA[0] gain 0 dB
Setting gain element PGA: 2.000000 dB
[DEBUG] SoapyLMS7::setGain(Rx, 0, PGA, 2 dB)
[DEBUG] Actual RxPGA[0] gain 2 dB
[DEBUG] MCU algorithm time: 11 ms
[DEBUG] MCU algorithm time: 0 ms
[DEBUG] MCU algorithm time: 0 ms
[DEBUG] MCU algorithm time: 98 ms
[ERROR] Rx calibration: MCU error 5 (Loopback signal weak: not connected/insufficient gain?)
Reading samples in async mode...
[DEBUG] INT 82, FRAC 811807, DIV_LOCH 3, EN_DIV2_DIVPROG 1
[DEBUG] VCO 6941.94 MHz, RefClk 40.00 MHz
[DEBUG] ICT_VCO: 180
[DEBUG] TuneVCO(SXR) - VCO too low
[DEBUG] VCOL : csw=0 tune fail
[DEBUG] ICT_VCO: 180
[DEBUG] TuneVCO(SXR) - VCO too low
[DEBUG] VCOM : csw=0 tune fail
[DEBUG] ICT_VCO: 180
[DEBUG] csw=64  cmphl=0
[DEBUG] csw=96  cmphl=2
[DEBUG] csw=112 cmphl=2
[DEBUG] csw=120 cmphl=3
[DEBUG] csw=116 cmphl=3
[DEBUG] csw=114 cmphl=2
[DEBUG] csw=115 cmphl=3
[DEBUG] Failed to lock
[DEBUG] csw=192 cmphl=3
[DEBUG] csw=160 cmphl=3
[DEBUG] csw=144 cmphl=3
[DEBUG] csw=136 cmphl=3
[DEBUG] csw=132 cmphl=3
[DEBUG] csw=130 cmphl=3
[DEBUG] csw=129 cmphl=3
[DEBUG] Failed to lock
[DEBUG] cmphl=2
[DEBUG] VCOH : csw=105 tune ok
[DEBUG] Selected: VCOH
Tuned to 433.871MHz.

^CSignal caught, exiting!
Xoib commented 5 years ago

Well I spoke too fast, I tried a LNA gain from 20 to 30 and it detected the signal. Still it has trouble to recognize the protocol

Detected OOK package    2018-12-15 23:24:18
Analyzing pulses...
Total count:   19,  width: 50.30 ms     (12574 S)
Pulse width distribution:
 [ 0] count:    5,  width:  120 us [116;136]    (  30 S)
 [ 1] count:    3,  width:  164 us [156;168]    (  41 S)
 [ 2] count:    3,  width:   80 us [80;84]  (  20 S)
 [ 3] count:    2,  width:  216 us [212;224]    (  54 S)
 [ 4] count:    2,  width:   56 us [52;64]  (  14 S)
 [ 5] count:    4,  width:  304 us [296;320]    (  76 S)
Gap width distribution:
 [ 0] count:    3,  width: 2988 us [2604;3216]  ( 747 S)
 [ 1] count:    6,  width:  796 us [752;864]    ( 199 S)
 [ 2] count:    4,  width: 1664 us [1644;1708]  ( 416 S)
 [ 3] count:    5,  width: 5348 us [4960;6004]  (1337 S)
Pulse period distribution:
 [ 0] count:    3,  width: 3108 us [2772;3296]  ( 777 S)
 [ 1] count:    6,  width: 1028 us [888;1160]   ( 257 S)
 [ 2] count:    4,  width: 1872 us [1752;1956]  ( 468 S)
 [ 3] count:    5,  width: 5440 us [5048;6124]  (1360 S)
Level estimates [high, low]:   1000,    103
RSSI: -24.3 dB SNR: 19.7 dB Noise: -44.0 dB
Frequency offsets [F1, F2]:     303,      0 (+1.2 kHz, +0.0 kHz)
Guessing modulation: No clue...

Detected OOK package    2018-12-15 23:24:18
Analyzing pulses...
Total count:   13,  width: 33.61 ms     ( 8403 S)
Pulse width distribution:
 [ 0] count:    3,  width:  272 us [268;280]    (  68 S)
 [ 1] count:    4,  width:  168 us [152;188]    (  42 S)
 [ 2] count:    4,  width:   84 us [72;92]  (  21 S)
 [ 3] count:    2,  width:  112 us [104;124]    (  28 S)
Gap width distribution:
 [ 0] count:    4,  width:  732 us [708;784]    ( 183 S)
 [ 1] count:    1,  width: 6856 us [6856;6856]  (1714 S)
 [ 2] count:    2,  width: 4092 us [4080;4108]  (1023 S)
 [ 3] count:    3,  width: 1740 us [1692;1840]  ( 435 S)
 [ 4] count:    1,  width: 5140 us [5140;5140]  (1285 S)
 [ 5] count:    1,  width: 3196 us [3196;3196]  ( 799 S)
Pulse period distribution:
 [ 0] count:    4,  width:  920 us [832;1064]   ( 230 S)
 [ 1] count:    1,  width: 7012 us [7012;7012]  (1753 S)
 [ 2] count:    3,  width: 4556 us [4188;5212]  (1139 S)
 [ 3] count:    3,  width: 1896 us [1800;1964]  ( 474 S)
 [ 4] count:    1,  width: 3288 us [3288;3288]  ( 822 S)
Level estimates [high, low]:   1000,    115
RSSI: -24.3 dB SNR: 18.7 dB Noise: -43.1 dB
Frequency offsets [F1, F2]:     338,      0 (+1.3 kHz, +0.0 kHz)
Guessing modulation: No clue...

Detected OOK package    2018-12-15 23:24:19
Analyzing pulses...
Total count:   10,  width: 32.37 ms     ( 8092 S)
Pulse width distribution:
 [ 0] count:    1,  width:   52 us [52;52]  (  13 S)
 [ 1] count:    3,  width:  292 us [248;328]    (  73 S)
 [ 2] count:    3,  width:  116 us [104;132]    (  29 S)
 [ 3] count:    3,  width:   88 us [84;92]  (  22 S)
Gap width distribution:
 [ 0] count:    4,  width: 4556 us [4100;5048]  (1139 S)
 [ 1] count:    3,  width: 1732 us [1660;1852]  ( 433 S)
 [ 2] count:    1,  width: 6648 us [6648;6648]  (1662 S)
 [ 3] count:    1,  width:  748 us [748;748]    ( 187 S)
Pulse period distribution:
 [ 0] count:    4,  width: 4656 us [4176;5152]  (1164 S)
 [ 1] count:    3,  width: 1876 us [1776;1944]  ( 469 S)
 [ 2] count:    1,  width: 6976 us [6976;6976]  (1744 S)
 [ 3] count:    1,  width: 1048 us [1048;1048]  ( 262 S)
Level estimates [high, low]:   1000,    118
RSSI: -24.3 dB SNR: 18.5 dB Noise: -42.9 dB
Frequency offsets [F1, F2]:     457,      0 (+1.7 kHz, +0.0 kHz)
Guessing modulation: No clue...

Detected OOK package    2018-12-15 23:24:19
Analyzing pulses...
Total count:    1,  width: 0.07 ms      (   18 S)
Pulse width distribution:
 [ 0] count:    1,  width:   72 us [72;72]  (  18 S)
Gap width distribution:
Pulse period distribution:
Level estimates [high, low]:   1000,    125
RSSI: -24.3 dB SNR: 18.0 dB Noise: -42.4 dB
Frequency offsets [F1, F2]:     137,      0 (+0.5 kHz, +0.0 kHz)
Guessing modulation: Single pulse detected. Probably Frequency Shift Keying or just noise...

signal_bsize = 393216  -      sg_index = 1310720
start_pos    = 589480  -   buffer_size = 3145728
*** Saving signal to file g006_433.87M_250k.cs16
*** Writing data from 589480, len 393216
Detected OOK package    2018-12-15 23:24:19
Analyzing pulses...
Total count:   27,  width: 69.51 ms     (17377 S)
Pulse width distribution:
 [ 0] count:    8,  width:  296 us [268;332]    (  74 S)
 [ 1] count:    2,  width:   76 us [72;84]  (  19 S)
 [ 2] count:    8,  width:  112 us [96;132] (  28 S)
 [ 3] count:    5,  width:  200 us [176;220]    (  50 S)
 [ 4] count:    4,  width:  152 us [144;168]    (  38 S)
Gap width distribution:
 [ 0] count:   10,  width:  748 us [664;900]    ( 187 S)
 [ 1] count:    6,  width: 4528 us [3996;5080]  (1132 S)
 [ 2] count:    2,  width: 7204 us [6764;7648]  (1801 S)
 [ 3] count:    2,  width:  592 us [588;600]    ( 148 S)
 [ 4] count:    3,  width: 3132 us [3096;3156]  ( 783 S)
 [ 5] count:    3,  width: 1580 us [1572;1592]  ( 395 S)
Pulse period distribution:
 [ 0] count:   12,  width:  952 us [876;1096]   ( 238 S)
 [ 1] count:    5,  width: 4760 us [4216;5196]  (1190 S)
 [ 2] count:    2,  width: 7316 us [6880;7756]  (1829 S)
 [ 3] count:    4,  width: 3472 us [3252;4104]  ( 868 S)
 [ 4] count:    3,  width: 1848 us [1780;1916]  ( 462 S)
Level estimates [high, low]:   1000,    118
RSSI: -24.3 dB SNR: 18.5 dB Noise: -42.9 dB
Frequency offsets [F1, F2]:     239,      0 (+0.9 kHz, +0.0 kHz)
Guessing modulation: No clue...

Detected OOK package    2018-12-15 23:24:19
Analyzing pulses...
Total count:   12,  width: 48.42 ms     (12105 S)
Pulse width distribution:
 [ 0] count:    3,  width:   84 us [72;92]  (  21 S)
 [ 1] count:    1,  width:   56 us [56;56]  (  14 S)
 [ 2] count:    2,  width:  172 us [172;172]    (  43 S)
 [ 3] count:    2,  width:  116 us [108;124]    (  29 S)
 [ 4] count:    4,  width:  304 us [280;340]    (  76 S)
Gap width distribution:
 [ 0] count:    3,  width: 4672 us [4252;4888]  (1168 S)
 [ 1] count:    4,  width: 6768 us [5988;7604]  (1692 S)
 [ 2] count:    1,  width: 3176 us [3176;3176]  ( 794 S)
 [ 3] count:    3,  width:  680 us [612;756]    ( 170 S)
Pulse period distribution:
 [ 0] count:    3,  width: 4784 us [4324;5060]  (1196 S)
 [ 1] count:    4,  width: 6876 us [6044;7712]  (1719 S)
 [ 2] count:    1,  width: 3300 us [3300;3300]  ( 825 S)
 [ 3] count:    3,  width:  988 us [892;1064]   ( 247 S)
Level estimates [high, low]:   1000,    125
RSSI: -24.3 dB SNR: 18.0 dB Noise: -42.4 dB
Frequency offsets [F1, F2]:     329,      0 (+1.3 kHz, +0.0 kHz)
Guessing modulation: No clue...

Detected OOK package    2018-12-15 23:24:19
Analyzing pulses...
Total count:    2,  width: 4.47 ms      ( 1118 S)
Pulse width distribution:
 [ 0] count:    1,  width:  108 us [108;108]    (  27 S)
 [ 1] count:    1,  width:  136 us [136;136]    (  34 S)
Gap width distribution:
 [ 0] count:    1,  width: 4228 us [4228;4228]  (1057 S)
Pulse period distribution:
 [ 0] count:    1,  width: 4336 us [4336;4336]  (1084 S)
Level estimates [high, low]:   1000,    100
RSSI: -24.3 dB SNR: 19.9 dB Noise: -44.3 dB
Frequency offsets [F1, F2]:     248,      0 (+0.9 kHz, +0.0 kHz)
Guessing modulation: Pulse Width Modulation with fixed gap
Attempting demodulation... short_width: 108, long_width: 136, reset_limit: 4232, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PWM,s=108,l=136,r=4232,g=0,t=8,y=0'
pulse_demod_pwm(): Analyzer Device 
bitbuffer:: Number of rows: 1 
[00] { 2} 80        : 10

Detected OOK package    2018-12-15 23:24:20
Analyzing pulses...
Total count:    2,  width: 5.42 ms      ( 1356 S)
Pulse width distribution:
 [ 0] count:    2,  width:  280 us [256;304]    (  70 S)
Gap width distribution:
 [ 0] count:    1,  width: 4864 us [4864;4864]  (1216 S)
Pulse period distribution:
 [ 0] count:    1,  width: 5168 us [5168;5168]  (1292 S)
Level estimates [high, low]:   1000,    122
RSSI: -24.3 dB SNR: 18.2 dB Noise: -42.6 dB
Frequency offsets [F1, F2]:     294,      0 (+1.1 kHz, +0.0 kHz)
Guessing modulation: Un-modulated signal. Maybe a preamble...

Detected OOK package    2018-12-15 23:24:20
Analyzing pulses...
Total count:    7,  width: 19.26 ms     ( 4815 S)
Pulse width distribution:
 [ 0] count:    1,  width:  308 us [308;308]    (  77 S)
 [ 1] count:    3,  width:   76 us [72;80]  (  19 S)
 [ 2] count:    2,  width:  108 us [100;116]    (  27 S)
 [ 3] count:    1,  width:  160 us [160;160]    (  40 S)
Gap width distribution:
 [ 0] count:    3,  width: 4996 us [4912;5060]  (1249 S)
 [ 1] count:    1,  width:  924 us [924;924]    ( 231 S)
 [ 2] count:    1,  width: 1692 us [1692;1692]  ( 423 S)
 [ 3] count:    1,  width:  736 us [736;736]    ( 184 S)
Pulse period distribution:
 [ 0] count:    3,  width: 5164 us [4984;5332]  (1291 S)
 [ 1] count:    2,  width:  916 us [836;1000]   ( 229 S)
 [ 2] count:    1,  width: 1772 us [1772;1772]  ( 443 S)
Level estimates [high, low]:   1000,    128
RSSI: -24.3 dB SNR: 17.8 dB Noise: -42.1 dB
Frequency offsets [F1, F2]:     289,      0 (+1.1 kHz, +0.0 kHz)
Guessing modulation: No clue...

signal_bsize = 786432  -      sg_index = 2359296
start_pos    = 1167212  -   buffer_size = 3145728
*** Saving signal to file g007_433.87M_250k.cs16
*** Writing data from 1167212, len 786432
Detected OOK package    2018-12-15 23:24:20
Analyzing pulses...
Total count:   19,  width: 53.32 ms     (13330 S)
Pulse width distribution:
 [ 0] count:    6,  width:  124 us [108;152]    (  31 S)
 [ 1] count:    3,  width:  264 us [244;288]    (  66 S)
 [ 2] count:    6,  width:  176 us [148;200]    (  44 S)
 [ 3] count:    2,  width:   48 us [44;52]  (  12 S)
 [ 4] count:    2,  width:   72 us [72;76]  (  18 S)
Gap width distribution:
 [ 0] count:    4,  width: 3124 us [3096;3148]  ( 781 S)
 [ 1] count:    7,  width: 1672 us [1596;1816]  ( 418 S)
 [ 2] count:    4,  width: 4496 us [3992;4888]  (1124 S)
 [ 3] count:    1,  width: 6736 us [6736;6736]  (1684 S)
 [ 4] count:    2,  width:  756 us [756;760]    ( 189 S)
Pulse period distribution:
 [ 0] count:    4,  width: 3256 us [3204;3316]  ( 814 S)
 [ 1] count:    7,  width: 1856 us [1772;1896]  ( 464 S)
 [ 2] count:    4,  width: 4668 us [4144;5176]  (1167 S)
 [ 3] count:    1,  width: 6788 us [6788;6788]  (1697 S)
 [ 4] count:    2,  width:  876 us [832;924]    ( 219 S)
Level estimates [high, low]:   1000,    113
RSSI: -24.3 dB SNR: 18.9 dB Noise: -43.2 dB
Frequency offsets [F1, F2]:     386,      0 (+1.5 kHz, +0.0 kHz)
Guessing modulation: No clue...

Detected OOK package    2018-12-15 23:24:20
Analyzing pulses...
Total count:    2,  width: 9.40 ms      ( 2349 S)
Pulse width distribution:
 [ 0] count:    1,  width:   60 us [60;60]  (  15 S)
 [ 1] count:    1,  width:  136 us [136;136]    (  34 S)
Gap width distribution:
 [ 0] count:    1,  width: 9200 us [9200;9200]  (2300 S)
Pulse period distribution:
 [ 0] count:    1,  width: 9260 us [9260;9260]  (2315 S)
Level estimates [high, low]:   1000,    111
RSSI: -24.3 dB SNR: 19.0 dB Noise: -43.4 dB
Frequency offsets [F1, F2]:     131,      0 (+0.5 kHz, +0.0 kHz)
Guessing modulation: Pulse Width Modulation with fixed gap
Attempting demodulation... short_width: 60, long_width: 136, reset_limit: 9204, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PWM,s=60,l=136,r=9204,g=0,t=28,y=0'
pulse_demod_pwm(): Analyzer Device 
bitbuffer:: Number of rows: 1 
[00] { 2} 80        : 10

Detected OOK package    2018-12-15 23:24:20
Analyzing pulses...
Total count:   14,  width: 38.10 ms     ( 9525 S)
Pulse width distribution:
 [ 0] count:    2,  width:   72 us [68;80]  (  18 S)
 [ 1] count:    3,  width:  200 us [180;232]    (  50 S)
 [ 2] count:    3,  width:  304 us [288;320]    (  76 S)
 [ 3] count:    3,  width:  136 us [132;144]    (  34 S)
 [ 4] count:    2,  width:   96 us [96;100] (  24 S)
 [ 5] count:    1,  width:   40 us [40;40]  (  10 S)
Gap width distribution:
 [ 0] count:    4,  width: 4552 us [4140;5076]  (1138 S)
 [ 1] count:    5,  width:  704 us [616;828]    ( 176 S)
 [ 2] count:    1,  width: 6716 us [6716;6716]  (1679 S)
 [ 3] count:    2,  width: 2860 us [2564;3160]  ( 715 S)
 [ 4] count:    1,  width: 1592 us [1592;1592]  ( 398 S)
Pulse period distribution:
 [ 0] count:    4,  width: 4688 us [4244;5156]  (1172 S)
 [ 1] count:    5,  width:  848 us [708;904]    ( 212 S)
 [ 2] count:    1,  width: 7024 us [7024;7024]  (1756 S)
 [ 3] count:    2,  width: 3024 us [2744;3304]  ( 756 S)
 [ 4] count:    1,  width: 1912 us [1912;1912]  ( 478 S)
Level estimates [high, low]:   1000,    118
RSSI: -24.3 dB SNR: 18.5 dB Noise: -42.9 dB
Frequency offsets [F1, F2]:     321,      0 (+1.2 kHz, +0.0 kHz)
Guessing modulation: No clue...

Detected OOK package    2018-12-15 23:24:21
Analyzing pulses...
Total count:    1,  width: 0.24 ms      (   59 S)
Pulse width distribution:
 [ 0] count:    1,  width:  236 us [236;236]    (  59 S)
Gap width distribution:
Pulse period distribution:
Level estimates [high, low]:   1000,     95
RSSI: -24.3 dB SNR: 20.4 dB Noise: -44.7 dB
Frequency offsets [F1, F2]:     245,      0 (+0.9 kHz, +0.0 kHz)
Guessing modulation: Single pulse detected. Probably Frequency Shift Keying or just noise...

signal_bsize = 786432  -      sg_index = 262144
start_pos    = 2301864  -   buffer_size = 3145728
*** Saving signal to file g008_433.87M_250k.cs16
*** Writing data from 2301864, len 786432
^CSignal caught, exiting!
zuckschwerdt commented 5 years ago

Finding the gain really is the weak point here. Isn't there a way to get automatic gain with newer firmware/drivers? My LimeSDR is pre-production and doesn't support the current firmware with auto gain in FPGA. Also you can run the LimeSDR at much higher sample rates than the puny rtl-sdrs :) -s 2M should be no problem, I think 8M worked well for me.

zuckschwerdt commented 5 years ago

The SNR looks ok, the Noise looks really well, the RSSI could be higher. Keep a look out for that when you try other gains.

merbanan commented 5 years ago

You could try with -l [200-3000] also but the signal is not filling the dynamic range properly. The pulse length distribution is very wide. Try with gqrx until you can see the signal in the spectrum.

zuckschwerdt commented 5 years ago

@merbanan you need to take into account that the 12 bit from the Lime will be processed to a true magnitude and not just amplitude like for 8 bit. I.e. quiet parts are "amplified" and loud parts attenuated. The pulse detect will need a level more in the "center" than the low end.

Xoib commented 5 years ago

Thanks for your help! With 2M or more, like 8M samples, the results aren't much better in term of signal recognition. Also the detection level (-l) make it's harder to capture everything so I don't use it. But with less gain I get an higher RSI thus that's good.

Regarding gqrx, I can't for now, as on this laptop I'm running Fedora fc29 and it suffer from a libuhd bug; Compiling manually from source also.

Thus I did a capture through urh: complex file Raw from rtl_433: cs16 files Password: limesdr

Any suggestions on how can I narrow this protocol? (btw it's a simple garage door keyfob)

Detected OOK package    2018-12-16 09:44:02
Analyzing pulses...
Total count:  102,  width: 188.52 ms        (377036 S)
Pulse width distribution:
 [ 0] count:  102,  width:  497 us [496;500]    ( 994 S)
Gap width distribution:
 [ 0] count:   43,  width:  504 us [502;506]    (1008 S)
 [ 1] count:    3,  width: 5219 us [4500;5581]  (10438 S)
 [ 2] count:   39,  width: 1515 us [1500;1582]  (3030 S)
 [ 3] count:   15,  width: 2524 us [2501;2581]  (5047 S)
 [ 4] count:    1,  width: 3501 us [3501;3501]  (7002 S)
Pulse period distribution:
 [ 0] count:   43,  width: 1002 us [998;1004]   (2003 S)
 [ 1] count:    3,  width: 5716 us [4997;6078]  (11432 S)
 [ 2] count:   39,  width: 2012 us [1997;2079]  (4025 S)
 [ 3] count:   15,  width: 3020 us [2998;3079]  (6041 S)
 [ 4] count:    1,  width: 3999 us [3999;3999]  (7998 S)
Level estimates [high, low]:   3719,    130
RSSI: -12.9 dB SNR: 29.1 dB Noise: -42.0 dB
Frequency offsets [F1, F2]:     538,      0 (+16.4 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1515, reset_limit: 5582, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1515,g=1582,r=5582'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 20 
[00] { 1} 00        : 0
[01] {16} d0 74     : 11010000 01110100 
[02] { 4} c0        : 1100
[03] { 3} 40        : 010
[04] { 4} d0        : 1101
[05] { 3} 20        : 001
[06] { 0}           : 
[07] { 1} 00        : 0
[08] { 3} 40        : 010
[09] { 3} 40        : 010
[10] { 3} 20        : 001
[11] { 3} 20        : 001
[12] {15} 7d d2     : 01111101 1101001
[13] { 1} 00        : 0
[14] { 9} 6d 00     : 01101101 0
[15] { 2} 00        : 00
[16] { 1} 80        : 1
[17] { 6} e8        : 111010
[18] { 4} 40        : 0100
[19] { 0}           : 

signal_bsize = 1703936  -      sg_index = 2097152
start_pos    = 13464  -   buffer_size = 3145728
*** Saving signal to file g051_433.87M_2000k.cs16
*** Writing data from 13464, len 1703936
Detected OOK package    2018-12-16 09:44:02
Analyzing pulses...
Total count:   82,  width: 187.44 ms        (374878 S)
Pulse width distribution:
 [ 0] count:   82,  width:  497 us [496;499]    ( 994 S)
Gap width distribution:
 [ 0] count:   38,  width:  504 us [502;507]    (1009 S)
 [ 1] count:   12,  width: 5032 us [4498;5580]  (10065 S)
 [ 2] count:   17,  width: 1511 us [1500;1582]  (3022 S)
 [ 3] count:    8,  width: 2520 us [2500;2580]  (5041 S)
 [ 4] count:    6,  width: 3540 us [3500;3580]  (7080 S)
Pulse period distribution:
 [ 0] count:   38,  width: 1002 us [998;1004]   (2003 S)
 [ 1] count:   12,  width: 5530 us [4996;6077]  (11060 S)
 [ 2] count:   17,  width: 2008 us [1997;2079]  (4017 S)
 [ 3] count:    8,  width: 3018 us [2998;3078]  (6035 S)
 [ 4] count:    6,  width: 4038 us [3996;4078]  (8075 S)
Level estimates [high, low]:   3569,    128
RSSI: -13.2 dB SNR: 28.8 dB Noise: -42.1 dB
Frequency offsets [F1, F2]:     327,      0 (+10.0 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1511, reset_limit: 5580, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1511,g=1582,r=5580'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 25 
[00] { 1} 00        : 0
[01] { 1} 80        : 1
[02] { 0}           : 
[03] { 0}           : 
[04] { 3} 00        : 000
[05] { 0}           : 
[06] { 0}           : 
[07] { 1} 00        : 0
[08] { 1} 80        : 1
[09] { 3} 80        : 100
[10] { 0}           : 
[11] { 4} 80        : 1000
[12] { 3} 00        : 000
[13] { 0}           : 
[14] { 8} 36        : 00110110 
[15] { 1} 00        : 0
[16] { 1} 00        : 0
[17] { 3} 20        : 001
[18] { 1} 80        : 1
[19] { 1} 00        : 0
[20] { 2} 00        : 00
[21] { 2} c0        : 11
[22] { 2} 00        : 00
[23] { 4} c0        : 1100
[24] { 3} 46        : 010
... Maximum number of rows reached. Message is likely truncated.

signal_bsize = 1703936  -      sg_index = 1310720
start_pos    = 2402012  -   buffer_size = 3145728
*** Saving signal to file g052_433.87M_2000k.cs16
*** Writing data from 2402012, len 743716
*** Writing data from 0, len 960220
Detected OOK package    2018-12-16 09:44:02
Analyzing pulses...
Total count:   96,  width: 188.45 ms        (376903 S)
Pulse width distribution:
 [ 0] count:   96,  width:  497 us [496;500]    ( 994 S)
Gap width distribution:
 [ 0] count:   39,  width:  504 us [502;506]    (1008 S)
 [ 1] count:    5,  width: 4714 us [4498;5576]  (9429 S)
 [ 2] count:   35,  width: 1520 us [1500;1582]  (3040 S)
 [ 3] count:   12,  width: 2522 us [2500;2581]  (5043 S)
 [ 4] count:    4,  width: 3500 us [3500;3500]  (7000 S)
Pulse period distribution:
 [ 0] count:   39,  width: 1002 us [998;1004]   (2003 S)
 [ 1] count:    5,  width: 5212 us [4995;6074]  (10423 S)
 [ 2] count:   35,  width: 2018 us [1998;2079]  (4035 S)
 [ 3] count:   12,  width: 3018 us [2996;3078]  (6037 S)
 [ 4] count:    4,  width: 3996 us [3996;3997]  (7993 S)
Level estimates [high, low]:   3170,    144
RSSI: -14.3 dB SNR: 26.8 dB Noise: -41.1 dB
Frequency offsets [F1, F2]:     547,      0 (+16.7 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1520, reset_limit: 5577, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1520,g=1582,r=5577'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 22 
[00] { 1} 00        : 0
[01] { 6} b0        : 101100
[02] { 4} c0        : 1100
[03] { 7} 06        : 0000011
[04] { 6} 04        : 000001
[05] { 0}           : 
[06] { 1} 00        : 0
[07] { 9} 5c 80     : 01011100 1
[08] { 0}           : 
[09] { 1} 80        : 1
[10] {12} db c0     : 11011011 1100
[11] {10} 06 c0     : 00000110 11
[12] { 0}           : 
[13] { 1} 80        : 1
[14] { 3} 40        : 010
[15] { 0}           : 
[16] { 0}           : 
[17] { 1} 00        : 0
[18] {10} 5d c0     : 01011101 11
[19] { 0}           : 
[20] { 2} 00        : 00
[21] { 0}           : 

signal_bsize = 1703936  -      sg_index = 524288
start_pos    = 1660836  -   buffer_size = 3145728
*** Saving signal to file g053_433.87M_2000k.cs16
*** Writing data from 1660836, len 1484892
*** Writing data from 0, len 219044
Detected OOK package    2018-12-16 09:44:03
Analyzing pulses...
Total count:  102,  width: 188.48 ms        (376955 S)
Pulse width distribution:
 [ 0] count:  102,  width:  497 us [496;499]    ( 994 S)
Gap width distribution:
 [ 0] count:   46,  width:  504 us [501;507]    (1008 S)
 [ 1] count:    2,  width: 5577 us [5575;5579]  (11154 S)
 [ 2] count:   35,  width: 1516 us [1500;1582]  (3032 S)
 [ 3] count:   13,  width: 2508 us [2500;2580]  (5015 S)
 [ 4] count:    5,  width: 3548 us [3500;3580]  (7096 S)
Pulse period distribution:
 [ 0] count:   46,  width: 1002 us [998;1004]   (2003 S)
 [ 1] count:    2,  width: 6074 us [6072;6076]  (12149 S)
 [ 2] count:   35,  width: 2013 us [1996;2080]  (4026 S)
 [ 3] count:   13,  width: 3004 us [2996;3078]  (6009 S)
 [ 4] count:    5,  width: 4046 us [3997;4078]  (8091 S)
Level estimates [high, low]:   3396,    119
RSSI: -13.7 dB SNR: 29.0 dB Noise: -42.8 dB
Frequency offsets [F1, F2]:    -159,      0 (-4.9 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1516, reset_limit: 5580, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1516,g=1582,r=5580'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 21 
[00] { 1} 00        : 0
[01] {11} bb 20     : 10111011 001
[02] { 1} 00        : 0
[03] { 3} 00        : 000
[04] { 6} 04        : 000001
[05] { 0}           : 
[06] { 1} 00        : 0
[07] { 5} 48        : 01001
[08] { 3} 20        : 001
[09] { 1} 00        : 0
[10] { 2} 40        : 01
[11] { 0}           : 
[12] { 4} b0        : 1011
[13] { 0}           : 
[14] { 3} 80        : 100
[15] { 3} 00        : 000
[16] { 5} b0        : 10110
[17] {13} 5d c8     : 01011101 11001
[18] { 1} 00        : 0
[19] {13} 5e d0     : 01011110 11010
[20] { 5} 00        : 00000

signal_bsize = 1703936  -      sg_index = 2883584
start_pos    = 911712  -   buffer_size = 3145728
*** Saving signal to file g054_433.87M_2000k.cs16
*** Writing data from 911712, len 1703936
Detected OOK package    2018-12-16 09:44:03
Analyzing pulses...
Total count:   98,  width: 188.47 ms        (376948 S)
Pulse width distribution:
 [ 0] count:   98,  width:  497 us [496;499]    ( 994 S)
Gap width distribution:
 [ 0] count:   39,  width:  504 us [501;507]    (1008 S)
 [ 1] count:    4,  width: 4808 us [4500;5576]  (9617 S)
 [ 2] count:   37,  width: 1513 us [1500;1582]  (3026 S)
 [ 3] count:   15,  width: 2522 us [2500;2581]  (5045 S)
 [ 4] count:    2,  width: 3500 us [3500;3500]  (7000 S)
Pulse period distribution:
 [ 0] count:   39,  width: 1002 us [998;1005]   (2003 S)
 [ 1] count:    4,  width: 5306 us [4998;6072]  (10612 S)
 [ 2] count:   37,  width: 2010 us [1998;2080]  (4021 S)
 [ 3] count:   15,  width: 3020 us [2998;3078]  (6039 S)
 [ 4] count:    2,  width: 3998 us [3998;3998]  (7996 S)
Level estimates [high, low]:   3319,    118
RSSI: -13.9 dB SNR: 28.9 dB Noise: -42.9 dB
Frequency offsets [F1, F2]:    1025,      0 (+31.3 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1513, reset_limit: 5576, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1513,g=1582,r=5576'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 22 
[00] { 1} 00        : 0
[01] { 3} 80        : 100
[02] { 0}           : 
[03] { 4} 20        : 0010
[04] {14} 74 10     : 01110100 000100
[05] { 2} c0        : 11
[06] { 3} 40        : 010
[07] { 1} 00        : 0
[08] { 2} 40        : 01
[09] { 0}           : 
[10] { 3} 20        : 001
[11] { 1} 80        : 1
[12] { 3} 80        : 100
[13] { 1} 80        : 1
[14] {11} b7 80     : 10110111 100
[15] { 3} 40        : 010
[16] { 0}           : 
[17] { 0}           : 
[18] { 5} d0        : 11010
[19] { 5} 50        : 01010
[20] { 5} d0        : 11010
[21] { 9} 5e 80     : 01011110 1

signal_bsize = 1703936  -      sg_index = 2097152
start_pos    = 162568  -   buffer_size = 3145728
*** Saving signal to file g055_433.87M_2000k.cs16
*** Writing data from 162568, len 1703936
Detected OOK package    2018-12-16 09:44:03
Analyzing pulses...
Total count:   98,  width: 188.51 ms        (377012 S)
Pulse width distribution:
 [ 0] count:   98,  width:  497 us [496;499]    ( 994 S)
Gap width distribution:
 [ 0] count:   47,  width:  504 us [501;507]    (1009 S)
 [ 1] count:    5,  width: 4946 us [4501;5580]  (9892 S)
 [ 2] count:   17,  width: 2516 us [2500;2582]  (5031 S)
 [ 3] count:   25,  width: 1515 us [1501;1582]  (3030 S)
 [ 4] count:    3,  width: 3554 us [3500;3580]  (7107 S)
Pulse period distribution:
 [ 0] count:   47,  width: 1002 us [998;1004]   (2004 S)
 [ 1] count:    5,  width: 5444 us [4998;6077]  (10887 S)
 [ 2] count:   17,  width: 3013 us [2998;3080]  (6026 S)
 [ 3] count:   25,  width: 2012 us [1998;2080]  (4025 S)
 [ 4] count:    3,  width: 4051 us [3998;4078]  (8102 S)
Level estimates [high, low]:   3220,    127
RSSI: -14.1 dB SNR: 28.0 dB Noise: -42.2 dB
Frequency offsets [F1, F2]:    1211,      0 (+37.0 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1515, reset_limit: 5580, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1515,g=1582,r=5580'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 25 
[00] { 1} 00        : 0
[01] { 0}           : 
[02] { 6} 24        : 001001
[03] { 6} 04        : 000001
[04] { 0}           : 
[05] { 0}           : 
[06] { 0}           : 
[07] { 3} 80        : 100
[08] { 0}           : 
[09] { 4} 20        : 0010
[10] { 3} 80        : 100
[11] { 1} 00        : 0
[12] { 2} 40        : 01
[13] { 3} 20        : 001
[14] { 4} 30        : 0011
[15] { 3} 00        : 000
[16] { 3} 40        : 010
[17] { 3} 40        : 010
[18] { 0}           : 
[19] {10} 20 c0     : 00100000 11
[20] { 9} 77 80     : 01110111 1
[21] { 1} 00        : 0
[22] { 5} 60        : 01100
[23] { 3} 80        : 100
[24] { 1} 00        : 0
... Maximum number of rows reached. Message is likely truncated.

signal_bsize = 1703936  -      sg_index = 1572864
start_pos    = 2559392  -   buffer_size = 3145728
*** Saving signal to file g056_433.87M_2000k.cs16
*** Writing data from 2559392, len 586336
*** Writing data from 0, len 1117600
Detected OOK package    2018-12-16 09:44:04
Analyzing pulses...
Total count:  100,  width: 187.48 ms        (374951 S)
Pulse width distribution:
 [ 0] count:  100,  width:  497 us [496;500]    ( 994 S)
Gap width distribution:
 [ 0] count:   49,  width:  504 us [500;507]    (1008 S)
 [ 1] count:    3,  width: 5245 us [4580;5580]  (10490 S)
 [ 2] count:    6,  width: 3526 us [3498;3580]  (7053 S)
 [ 3] count:   27,  width: 1514 us [1500;1582]  (3028 S)
 [ 4] count:   14,  width: 2519 us [2499;2581]  (5038 S)
Pulse period distribution:
 [ 0] count:   49,  width: 1002 us [998;1004]   (2003 S)
 [ 1] count:    3,  width: 5742 us [5078;6078]  (11485 S)
 [ 2] count:    6,  width: 4024 us [3995;4077]  (8047 S)
 [ 3] count:   27,  width: 2011 us [1998;2080]  (4022 S)
 [ 4] count:   14,  width: 3016 us [2996;3078]  (6032 S)
Level estimates [high, low]:   2875,    125
RSSI: -15.1 dB SNR: 27.2 dB Noise: -42.4 dB
Frequency offsets [F1, F2]:     454,      0 (+13.9 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1514, reset_limit: 5580, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1514,g=1582,r=5580'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 24 
[00] { 1} 00        : 0
[01] { 3} 00        : 000
[02] { 9} bb 00     : 10111011 0
[03] { 0}           : 
[04] { 0}           : 
[05] { 1} 00        : 0
[06] { 2} 40        : 01
[07] { 6} 24        : 001001
[08] { 3} 20        : 001
[09] { 1} 80        : 1
[10] { 1} 00        : 0
[11] { 5} 60        : 01100
[12] { 1} 00        : 0
[13] { 5} 40        : 01000
[14] { 2} 00        : 00
[15] { 4} a0        : 1010
[16] { 3} 00        : 000
[17] { 1} 00        : 0
[18] { 4} 40        : 0100
[19] { 1} 80        : 1
[20] { 0}           : 
[21] {13} 70 48     : 01110000 01001
[22] { 7} b0        : 1011000
[23] { 3} 20        : 001

signal_bsize = 1703936  -      sg_index = 786432
start_pos    = 1802544  -   buffer_size = 3145728
*** Saving signal to file g057_433.87M_2000k.cs16
*** Writing data from 1802544, len 1343184
*** Writing data from 0, len 360752
Detected OOK package    2018-12-16 09:44:04
Analyzing pulses...
Total count:   90,  width: 184.41 ms        (368818 S)
Pulse width distribution:
 [ 0] count:   90,  width:  497 us [496;499]    ( 994 S)
Gap width distribution:
 [ 0] count:   37,  width:  504 us [501;506]    (1008 S)
 [ 1] count:    8,  width: 4662 us [4497;5574]  (9325 S)
 [ 2] count:   11,  width: 2516 us [2500;2580]  (5031 S)
 [ 3] count:   30,  width: 1515 us [1500;1582]  (3030 S)
 [ 4] count:    3,  width: 3523 us [3498;3572]  (7046 S)
Pulse period distribution:
 [ 0] count:   37,  width: 1002 us [998;1004]   (2003 S)
 [ 1] count:    8,  width: 5160 us [4994;6072]  (10319 S)
 [ 2] count:   11,  width: 3012 us [2997;3077]  (6025 S)
 [ 3] count:   30,  width: 2012 us [1997;2079]  (4025 S)
 [ 4] count:    3,  width: 4020 us [3996;4068]  (8040 S)
Level estimates [high, low]:   3200,    134
RSSI: -14.2 dB SNR: 27.5 dB Noise: -41.7 dB
Frequency offsets [F1, F2]:     598,      0 (+18.3 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1515, reset_limit: 5575, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1515,g=1582,r=5575'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 23 
[00] { 1} 00        : 0
[01] { 2} 00        : 00
[02] { 2} c0        : 11
[03] { 3} 40        : 010
[04] { 1} 80        : 1
[05] { 3} 40        : 010
[06] { 0}           : 
[07] {20} 83 a0 a0  : 10000011 10100000 1010
[08] { 2} 00        : 00
[09] { 4} 90        : 1001
[10] { 0}           : 
[11] { 0}           : 
[12] { 0}           : 
[13] { 1} 80        : 1
[14] { 2} c0        : 11
[15] { 2} 00        : 00
[16] {18} ee 83 00  : 11101110 10000011 00
[17] { 0}           : 
[18] { 0}           : 
[19] { 4} b0        : 1011
[20] { 1} 80        : 1
[21] { 0}           : 
[22] { 1} 00        : 0

signal_bsize = 1703936  -      sg_index = 0
start_pos    = 1028792  -   buffer_size = 3145728
*** Saving signal to file g058_433.87M_2000k.cs16
*** Writing data from 1028792, len 1703936
Detected OOK package    2018-12-16 09:44:04
Analyzing pulses...
Total count:   94,  width: 184.42 ms        (368840 S)
Pulse width distribution:
 [ 0] count:   94,  width:  497 us [496;498]    ( 994 S)
Gap width distribution:
 [ 0] count:   41,  width:  504 us [501;506]    (1008 S)
 [ 1] count:    3,  width: 4880 us [4498;5574]  (9761 S)
 [ 2] count:   28,  width: 1508 us [1500;1581]  (3016 S)
 [ 3] count:   14,  width: 2522 us [2499;2580]  (5045 S)
 [ 4] count:    7,  width: 3544 us [3498;3580]  (7088 S)
Pulse period distribution:
 [ 0] count:   41,  width: 1001 us [998;1004]   (2002 S)
 [ 1] count:    3,  width: 5378 us [4994;6071]  (10755 S)
 [ 2] count:   28,  width: 2006 us [1998;2078]  (4011 S)
 [ 3] count:   14,  width: 3020 us [2996;3078]  (6040 S)
 [ 4] count:    7,  width: 4042 us [3996;4076]  (8083 S)
Level estimates [high, low]:   2954,    143
RSSI: -14.9 dB SNR: 26.2 dB Noise: -41.2 dB
Frequency offsets [F1, F2]:     551,      0 (+16.8 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1508, reset_limit: 5575, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1508,g=1582,r=5575'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 25 
[00] { 1} 00        : 0
[01] { 7} b2        : 1011001
[02] { 3} 20        : 001
[03] { 0}           : 
[04] { 0}           : 
[05] { 3} 00        : 000
[06] { 3} 80        : 100
[07] { 0}           : 
[08] { 0}           : 
[09] { 7} 78        : 0111100
[10] { 3} 20        : 001
[11] { 0}           : 
[12] { 3} 20        : 001
[13] { 0}           : 
[14] { 1} 80        : 1
[15] { 0}           : 
[16] { 0}           : 
[17] { 3} 00        : 000
[18] { 3} 00        : 000
[19] {17} b0 5d 00  : 10110000 01011101 0
[20] { 3} 20        : 001
[21] { 1} 80        : 1
[22] { 7} 78        : 0111100
[23] { 0}           : 
[24] { 4} 20        : 0010
... Maximum number of rows reached. Message is likely truncated.

signal_bsize = 1703936  -      sg_index = 2359296
start_pos    = 279072  -   buffer_size = 3145728
*** Saving signal to file g059_433.87M_2000k.cs16
*** Writing data from 279072, len 1703936
Detected OOK package    2018-12-16 09:44:05
Analyzing pulses...
Total count:   86,  width: 186.40 ms        (372794 S)
Pulse width distribution:
 [ 0] count:   86,  width:  497 us [496;499]    ( 994 S)
Gap width distribution:
 [ 0] count:   37,  width:  504 us [501;506]    (1007 S)
 [ 1] count:    6,  width: 4844 us [4498;5574]  (9688 S)
 [ 2] count:   19,  width: 1530 us [1500;1582]  (3061 S)
 [ 3] count:   14,  width: 2512 us [2500;2580]  (5025 S)
 [ 4] count:    9,  width: 3516 us [3498;3580]  (7033 S)
Pulse period distribution:
 [ 0] count:   37,  width: 1001 us [998;1004]   (2002 S)
 [ 1] count:    6,  width: 5342 us [4994;6072]  (10683 S)
 [ 2] count:   19,  width: 2028 us [1998;2079]  (4056 S)
 [ 3] count:   14,  width: 3010 us [2997;3078]  (6020 S)
 [ 4] count:    9,  width: 4014 us [3995;4076]  (8027 S)
Level estimates [high, low]:   2732,    101
RSSI: -15.6 dB SNR: 28.6 dB Noise: -44.2 dB
Frequency offsets [F1, F2]:    -258,      0 (-7.9 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1530, reset_limit: 5575, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1530,g=1582,r=5575'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 25 
[00] { 1} 00        : 0
[01] { 1} 80        : 1
[02] { 0}           : 
[03] { 6} 20        : 001000
[04] { 3} 00        : 000
[05] { 1} 80        : 1
[06] { 0}           : 
[07] { 0}           : 
[08] { 2} 00        : 00
[09] { 1} 80        : 1
[10] { 2} 80        : 10
[11] { 5} 40        : 01000
[12] { 3} 80        : 100
[13] { 4} b0        : 1011
[14] { 0}           : 
[15] { 5} 70        : 01110
[16] { 1} 00        : 0
[17] { 3} 60        : 011
[18] { 3} 40        : 010
[19] { 0}           : 
[20] { 0}           : 
[21] { 1} 00        : 0
[22] { 2} 40        : 01
[23] { 0}           : 
[24] { 3} 60        : 011
... Maximum number of rows reached. Message is likely truncated.

signal_bsize = 1703936  -      sg_index = 1572864
start_pos    = 2690868  -   buffer_size = 3145728
*** Saving signal to file g060_433.87M_2000k.cs16
*** Writing data from 2690868, len 454860
*** Writing data from 0, len 1249076
Detected OOK package    2018-12-16 09:44:05
Analyzing pulses...
Total count:  102,  width: 186.47 ms        (372942 S)
Pulse width distribution:
 [ 0] count:  102,  width:  497 us [496;499]    ( 994 S)
Gap width distribution:
 [ 0] count:   50,  width:  504 us [501;506]    (1009 S)
 [ 1] count:    4,  width: 4768 us [4497;5574]  (9535 S)
 [ 2] count:   31,  width: 1523 us [1500;1582]  (3046 S)
 [ 3] count:   12,  width: 2513 us [2500;2581]  (5026 S)
 [ 4] count:    4,  width: 3520 us [3499;3580]  (7039 S)
Pulse period distribution:
 [ 0] count:   50,  width: 1002 us [998;1004]   (2003 S)
 [ 1] count:    4,  width: 5264 us [4994;6072]  (10529 S)
 [ 2] count:   31,  width: 2020 us [1998;2079]  (4041 S)
 [ 3] count:   12,  width: 3010 us [2997;3078]  (6020 S)
 [ 4] count:    4,  width: 4016 us [3996;4076]  (8032 S)
Level estimates [high, low]:   2790,    116
RSSI: -15.4 dB SNR: 27.5 dB Noise: -43.0 dB
Frequency offsets [F1, F2]:     275,      0 (+8.4 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1523, reset_limit: 5575, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1523,g=1582,r=5575'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 21 
[00] { 1} 00        : 0
[01] { 3} 20        : 001
[02] { 0}           : 
[03] { 1} 80        : 1
[04] { 7} 2e        : 0010111
[05] { 0}           : 
[06] { 7} b8        : 1011100
[07] { 3} 00        : 000
[08] { 3} 40        : 010
[09] { 0}           : 
[10] {11} 37 a0     : 00110111 101
[11] {18} 20 82 40  : 00100000 10000010 01
[12] { 3} 20        : 001
[13] { 7} 78        : 0111100
[14] { 2} 00        : 00
[15] { 2} c0        : 11
[16] { 3} 20        : 001
[17] { 1} 80        : 1
[18] { 3} 00        : 000
[19] { 3} 00        : 000
[20] { 3} 00        : 000

signal_bsize = 1703936  -      sg_index = 786432
start_pos    = 1941564  -   buffer_size = 3145728
*** Saving signal to file g061_433.87M_2000k.cs16
*** Writing data from 1941564, len 1204164
*** Writing data from 0, len 499772
Detected OOK package    2018-12-16 09:44:05
Analyzing pulses...
Total count:   96,  width: 187.48 ms        (374957 S)
Pulse width distribution:
 [ 0] count:   96,  width:  497 us [496;499]    ( 994 S)
Gap width distribution:
 [ 0] count:   42,  width:  504 us [502;506]    (1008 S)
 [ 1] count:    2,  width: 5038 us [4500;5574]  (10075 S)
 [ 2] count:   15,  width: 2512 us [2500;2582]  (5024 S)
 [ 3] count:    8,  width: 3520 us [3500;3580]  (7040 S)
 [ 4] count:   28,  width: 1522 us [1501;1582]  (3045 S)
Pulse period distribution:
 [ 0] count:   42,  width: 1001 us [998;1004]   (2002 S)
 [ 1] count:    2,  width: 5535 us [4998;6072]  (11070 S)
 [ 2] count:   15,  width: 3009 us [2998;3078]  (6018 S)
 [ 3] count:    8,  width: 4018 us [3997;4078]  (8035 S)
 [ 4] count:   28,  width: 2020 us [1998;2079]  (4040 S)
Level estimates [high, low]:   2753,    112
RSSI: -15.5 dB SNR: 27.7 dB Noise: -43.3 dB
Frequency offsets [F1, F2]:     357,      0 (+10.9 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1522, reset_limit: 5575, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1522,g=1582,r=5575'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 25 
[00] { 1} 00        : 0
[01] { 0}           : 
[02] { 0}           : 
[03] {14} 04 10     : 00000100 000100
[04] { 1} 80        : 1
[05] { 0}           : 
[06] { 3} 40        : 010
[07] { 4} 70        : 0111
[08] { 3} 20        : 001
[09] { 0}           : 
[10] { 7} 74        : 0111010
[11] { 0}           : 
[12] { 6} 24        : 001001
[13] { 3} 00        : 000
[14] { 6} 70        : 011100
[15] { 1} 80        : 1
[16] { 0}           : 
[17] { 3} 20        : 001
[18] { 1} 80        : 1
[19] { 3} 00        : 000
[20] { 6} 70        : 011100
[21] { 1} 80        : 1
[22] { 0}           : 
[23] { 4} d0        : 1101
[24] { 3} 40        : 010
... Maximum number of rows reached. Message is likely truncated.

signal_bsize = 1703936  -      sg_index = 0
start_pos    = 1200532  -   buffer_size = 3145728
*** Saving signal to file g062_433.87M_2000k.cs16
*** Writing data from 1200532, len 1703936
Detected OOK package    2018-12-16 09:44:05
Analyzing pulses...
Total count:   98,  width: 187.41 ms        (374829 S)
Pulse width distribution:
 [ 0] count:   98,  width:  497 us [496;499]    ( 994 S)
Gap width distribution:
 [ 0] count:   46,  width:  504 us [501;506]    (1008 S)
 [ 1] count:    2,  width: 5035 us [4496;5574]  (10070 S)
 [ 2] count:   27,  width: 1514 us [1500;1581]  (3027 S)
 [ 3] count:   13,  width: 2512 us [2499;2580]  (5024 S)
 [ 4] count:    9,  width: 3542 us [3498;3578]  (7085 S)
Pulse period distribution:
 [ 0] count:   46,  width: 1002 us [998;1004]   (2003 S)
 [ 1] count:    2,  width: 5532 us [4994;6071]  (11064 S)
 [ 2] count:   27,  width: 2010 us [1996;2079]  (4021 S)
 [ 3] count:   13,  width: 3009 us [2996;3077]  (6018 S)
 [ 4] count:    9,  width: 4040 us [3994;4076]  (8080 S)
Level estimates [high, low]:   3108,    124
RSSI: -14.4 dB SNR: 27.9 dB Noise: -42.4 dB
Frequency offsets [F1, F2]:     316,      0 (+9.6 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1514, reset_limit: 5574, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1514,g=1582,r=5574'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 25 
[00] { 1} 00        : 0
[01] { 9} 04 80     : 00000100 1
[02] { 3} 20        : 001
[03] { 0}           : 
[04] { 4} 80        : 1000
[05] { 3} 00        : 000
[06] { 0}           : 
[07] { 0}           : 
[08] { 0}           : 
[09] { 0}           : 
[10] { 3} 80        : 100
[11] { 0}           : 
[12] { 0}           : 
[13] { 4} 70        : 0111
[14] { 0}           : 
[15] { 3} 40        : 010
[16] { 0}           : 
[17] { 0}           : 
[18] { 0}           : 
[19] { 6} 20        : 001000
[20] {23} 04 17 b2  : 00000100 00010111 1011001
[21] { 4} d0        : 1101
[22] { 0}           : 
[23] { 3} 80        : 100
[24] { 7} b8        : 1011100
... Maximum number of rows reached. Message is likely truncated.

signal_bsize = 1703936  -      sg_index = 2621440
start_pos    = 450860  -   buffer_size = 3145728
*** Saving signal to file g063_433.87M_2000k.cs16
*** Writing data from 450860, len 1703936
Detected OOK package    2018-12-16 09:44:06
Analyzing pulses...
Total count:   92,  width: 185.40 ms        (370790 S)
Pulse width distribution:
 [ 0] count:   92,  width:  497 us [496;499]    ( 994 S)
Gap width distribution:
 [ 0] count:   41,  width:  504 us [501;506]    (1008 S)
 [ 1] count:    6,  width: 5050 us [4497;5577]  (10100 S)
 [ 2] count:   27,  width: 1510 us [1500;1581]  (3021 S)
 [ 3] count:   12,  width: 2520 us [2500;2580]  (5041 S)
 [ 4] count:    5,  width: 3530 us [3498;3579]  (7061 S)
Pulse period distribution:
 [ 0] count:   41,  width: 1001 us [998;1004]   (2002 S)
 [ 1] count:    6,  width: 5547 us [4994;6074]  (11094 S)
 [ 2] count:   27,  width: 2008 us [1996;2078]  (4015 S)
 [ 3] count:   12,  width: 3018 us [2996;3078]  (6035 S)
 [ 4] count:    5,  width: 4028 us [3996;4076]  (8056 S)
Level estimates [high, low]:   2623,    116
RSSI: -15.9 dB SNR: 27.0 dB Noise: -43.0 dB
Frequency offsets [F1, F2]:     822,      0 (+25.1 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1510, reset_limit: 5578, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1510,g=1582,r=5578'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 24 
[00] { 1} 00        : 0
[01] { 3} 80        : 100
[02] { 2} 00        : 00
[03] { 2} 80        : 10
[04] { 3} 40        : 010
[05] {13} 41 b0     : 01000001 10110
[06] { 3} 00        : 000
[07] { 4} 70        : 0111
[08] { 0}           : 
[09] { 7} 06        : 0000011
[10] { 0}           : 
[11] { 4} 30        : 0011
[12] { 7} 04        : 0000010
[13] { 3} 80        : 100
[14] { 0}           : 
[15] { 0}           : 
[16] { 0}           : 
[17] { 0}           : 
[18] { 0}           : 
[19] { 0}           : 
[20] { 1} 00        : 0
[21] { 5} 48        : 01001
[22] { 9} d7 80     : 11010111 1
[23] { 1} 80        : 1

signal_bsize = 1703936  -      sg_index = 1835008
start_pos    = 2830496  -   buffer_size = 3145728
*** Saving signal to file g064_433.87M_2000k.cs16
*** Writing data from 2830496, len 315232
*** Writing data from 0, len 1388704
Detected OOK package    2018-12-16 09:44:06
Analyzing pulses...
Total count:  102,  width: 187.46 ms        (374910 S)
Pulse width distribution:
 [ 0] count:  102,  width:  497 us [496;499]    ( 994 S)
Gap width distribution:
 [ 0] count:   48,  width:  504 us [501;506]    (1008 S)
 [ 1] count:    4,  width: 4786 us [4498;5574]  (9573 S)
 [ 2] count:   13,  width: 2502 us [2500;2504]  (5003 S)
 [ 3] count:   33,  width: 1523 us [1500;1582]  (3046 S)
 [ 4] count:    3,  width: 3526 us [3498;3580]  (7051 S)
Pulse period distribution:
 [ 0] count:   48,  width: 1002 us [998;1004]   (2003 S)
 [ 1] count:    4,  width: 5284 us [4995;6070]  (10567 S)
 [ 2] count:   13,  width: 2999 us [2997;3002]  (5998 S)
 [ 3] count:   33,  width: 2020 us [1997;2080]  (4041 S)
 [ 4] count:    3,  width: 4022 us [3996;4076]  (8045 S)
Level estimates [high, low]:   2749,    118
RSSI: -15.5 dB SNR: 27.3 dB Noise: -42.9 dB
Frequency offsets [F1, F2]:     505,      0 (+15.4 kHz, +0.0 kHz)
Guessing modulation: Pulse Position Modulation with fixed pulse width
Attempting demodulation... short_width: 504, long_width: 1523, reset_limit: 5574, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_PPM,s=504,l=1523,g=1582,r=5574'
pulse_demod_ppm(): Analyzer Device 
bitbuffer:: Number of rows: 21 
[00] { 1} 00          : 0
[01] { 0}             : 
[02] {30} 3a 08 3a 08 : 00111010 00001000 00111010 000010
[03] {13} 41 d0       : 01000001 11010
[04] { 2} 40          : 01
[05] { 1} 80          : 1
[06] {14} 37 a4       : 00110111 101001
[07] { 0}             : 
[08] { 3} 20          : 001
[09] { 4} 30          : 0011
[10] { 1} 80          : 1
[11] { 0}             : 
[12] { 0}             : 
[13] { 0}             : 
[14] { 4} 20          : 0010
[15] { 3} 40          : 010
[16] { 2} 40          : 01
[17] { 0}             : 
[18] { 2} 00          : 00
[19] { 1} 80          : 1
[20] { 0}             : 

signal_bsize = 1703936  -      sg_index = 1048576
start_pos    = 2097004  -   buffer_size = 3145728
*** Saving signal to file g065_433.87M_2000k.cs16
*** Writing data from 2097004, len 1048724
*** Writing data from 0, len 655212
^CSignal caught, exiting!
merbanan commented 5 years ago

Ok, this looks good, now we have sane signal reception but there could be more gain. You can look at the pulses with pulseview also:

tests/sigrok-open.sh signals/g051_433.87M_2000k.cs16

Regarding the signal the encoding is using a fixed pulse size Pulse width distribution: [ 0] count: 102, width: 497 us [496;499] ( 994 S)

ca 500us and it looks like the pulse period is 1000us

So a period of 1000us with a 500us pulse is one bit (0) and a period without a pulse is the other bit (1). I'm not sure we have code that is capable to decode this type of coding. It shouldn't be that hard to add it though. Maybe @zuckschwerdt has some good input regarding this.

merbanan commented 5 years ago

I think the decoder we have is for 2-DPPM which is a special case of general PPM.

merbanan commented 5 years ago

Or PDM (Pulse distance coding)

https://www.phidgets.com/docs/IR_Remote_Control_Primer

zuckschwerdt commented 5 years ago

Sounds like RZ PCM. -X n=foo,m=OOK_PCM,s=500,l=1000 should do

merbanan commented 5 years ago

No go with the samples I tried.

zuckschwerdt commented 5 years ago

I did try with a random sample and it worked.

rtl_433 -M level -s 2M -R 0 -X "n=foo,m=OOK_PCM,s=500,l=1000,r=9000" g060_433.87M_2000k.cs16

gives

{195}c142778f142272859bc5cb513560cd43648cd12778cd23c00

(strangely enough running a batch of files results in shorter codes like {108}a89ab066a1b2466893bc6691e0, perhaps some buffer is broken. I'll have a look).

zuckschwerdt commented 5 years ago

Ok, fixed. CS16 buffers need 0 not 128 to clear out ;) The read codes look about right compared by hand and are:

g051_433.87M_2000k.cs16 {197}c15bf56e5736569d1306cd9d3a6aad5ba66b5b3942ad9b9000
g052_433.87M_2000k.cs16 {196}c142478918285c85e3c4eb583060e943072a1cae78fd43600
g053_433.87M_2000k.cs16 {197}c16b95cfd43f44cdaba42856b55cfd6a250d91336ad5139000
g054_433.87M_2000k.cs16 {197}c16ad74c1e3f48cdd3a66916a45cf16b36ad5d336ab5b3f000
g055_433.87M_2000k.cs16 {197}c172766adfb950d99a274a17285ad573644ad9b656cdaad000
g056_433.87M_2000k.cs16 {197}c13ba7e9122e4ec17334e9d43c6cd93bf50d5aa866b9733000
g057_433.87M_2000k.cs16 {196}c1e2d5ac12334ee9d2866b99bc72d9e337291abf74b5e3a00
g058_433.87M_2000k.cs16 {193}c1ca86ca1b217eadfb672e922142a1cab56fd7245a8523000
g059_433.87M_2000k.cs16 {193}c16ba7491e2e48d573a4e9142478f16bf6ad9d286ab93b000
g060_433.87M_2000k.cs16 {195}c142778f142272859bc5cb513560cd43648cd12778cd23c00
g061_433.87M_2000k.cs16 {195}c1d214ed512d5cf1b275aad3bf7ee9d355ce543a50f1e3c00
g062_433.87M_2000k.cs16 {196}c123f7ee52366a9d1356c9dd3c6ae523a50f1ab944ad13600
g063_433.87M_2000k.cs16 {196}c1fba7485e3c48897246a91b244ef1fbf6ab5d2b48b96ae00
g064_433.87M_2000k.cs16 {194}c173966cdfad60f1aa27ea13a87ec172244919ba56d542800
g065_433.87M_2000k.cs16 {196}c13ab7efd5bf66fd5b3429d6ab749d3a850913b36691ca200
Xoib commented 5 years ago

Thank you @merbanan and @zuckschwerdt ! I know get consistent data. Now that I can assume the right settings, when I try those (width of pulse and bit period plus the max gap size before end of message) in a graphical tool, I get totally different result. image Any idea?


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:54
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 196          data      : c13bc7ee95ae66c1233489d42b6c9d3ae5ae56a1669d3a200
codes     : {196}c13bc7ee95ae66c1233489d42b6c9d3ae5ae56a1669d3a200
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -22.0 dB     SNR       : 23.8 dB       Noise     : -45.9 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:54
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 197          data      : c16bc74e9b2e42d523a489142178b96ae6cd9ca16a9de2d000
codes     : {197}c16bc74e9b2e42d523a489142178b96ae6cd9ca16a9de2d000
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -21.7 dB     SNR       : 20.7 dB       Noise     : -42.5 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:55
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 196          data      : c1e2b5afd5b366e95a842b99ab729de287ee56b674919ae00
codes     : {196}c1e2b5afd5b366e95a842b99ab729de287ee56b674919ae00
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -21.5 dB     SNR       : 22.1 dB       Noise     : -43.7 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:55
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 193          data      : c17285aa15a15af1fa272b922b7e8972b7e856ae5685e3000
codes     : {193}c17285aa15a15af1fa272b922b7e8972b7e856ae5685e3000
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -21.7 dB     SNR       : 20.6 dB       Noise     : -42.4 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:55
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 197          data      : c1d2d6ad572d48f1d275af13ba7ef1d3348c182750b5e33000
codes     : {197}c1d2d6ad572d48f1d275af13ba7ef1d3348c182750b5e33000
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -21.6 dB     SNR       : 23.0 dB       Noise     : -44.7 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:56
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 197          data      : c1d286aa1d217ef1fa772f122d7ea1d2b48a142e50856a1000
codes     : {197}c1d286aa1d217ef1fa772f122d7ea1d2b48a142e50856a1000
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -21.5 dB     SNR       : 22.3 dB       Noise     : -43.9 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:56
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 196          data      : c1ca4788582b5ce5e366ab5e3066e9cb074c17305afdd2e00
codes     : {196}c1ca4788582b5ce5e366ab5e3066e9cb074c17305afdd2e00
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -21.8 dB     SNR       : 21.4 dB       Noise     : -43.3 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:56
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 195          data      : c143c6ce9b28428523c48e982160b942e5cfdca4789d82400
codes     : {195}c143c6ce9b28428523c48e982160b942e5cfdca4789d82400
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -21.9 dB     SNR       : 24.5 dB       Noise     : -46.6 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:56
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 197          data      : c1e2e5af15a25a910a85cb912b5089e3c42b56ba74896b9000
codes     : {197}c1e2e5af15a25a910a85cb912b5089e3c42b56ba74896b9000
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -22.1 dB     SNR       : 21.0 dB       Noise     : -43.2 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:57
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 195          data      : c112850a1aa15aadfb972fd239428912b44cdfae5c8572400
codes     : {195}c112850a1aa15aadfb972fd239428912b44cdfae5c8572400
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -21.3 dB     SNR       : 23.7 dB       Noise     : -45.1 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:57
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 195          data      : c122242a1fa450b96b572895a856d52395ae9aa844c10bc00
codes     : {195}c122242a1fa450b96b572895a856d52395ae9aa844c10bc00
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -21.8 dB     SNR       : 19.4 dB       Noise     : -41.2 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:57
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 197          data      : c19a244b96b050cd6ad44d5fa25cd59b950e95ab6cc13b9000
codes     : {197}c19a244b96b050cd6ad44d5fa25cd59b950e95ab6cc13b9000
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -22.3 dB     SNR       : 21.2 dB       Noise     : -43.5 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:58
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 196          data      : c19b5449d9b06ccd42d60d5fa75c859a150a122b6ce582e00
codes     : {196}c19b5449d9b06ccd42d60d5fa75c859a150a122b6ce582e00
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -21.7 dB     SNR       : 20.2 dB       Noise     : -41.9 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:58
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 197          data      : c112160d59ad78adb395acd3a7429113572cd2275cf1827000
codes     : {197}c112160d59ad78adb395acd3a7429113572cd2275cf1827000
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -22.7 dB     SNR       : 20.1 dB       Noise     : -42.9 dB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2018-12-19 00:04:58
model     : foo          count     : 1             num_rows  : 1             rows      : 
len       : 196          data      : c13bf7ed92276ac1133789dcbc6ce53ba66a19ad66ad6ba00
codes     : {196}c13bf7ed92276ac1133789dcbc6ce53ba66a19ad66ad6ba00
Modulation: ASK          Freq      : 433.9 MHz
RSSI      : -22.1 dB     SNR       : 18.3 dB       Noise     : -40.4 dB
``
zuckschwerdt commented 5 years ago

The encoding here is Return-to-Zero (RZ), your other tool assumes NRZ (thus inserts an additional zero everywhere). E.g. a002, and c1 are the same prefix, just stuffed with 0s. See the first and last output line in this BitBench.

zuckschwerdt commented 5 years ago

Can you share Manufacturer and Model of the system? It's a recommendable secure system for a garage door opener. It employs a rolling code, I guess no further decryption is possible. If you just want to spot the signal use that decoder line and look for at least 180 bits starting with "c1".

Xoib commented 5 years ago

Thanks @zuckschwerdt ! It's a MEMOBIP (433Mhz first generation) from URMET. I didn't find the link for 433Mhz system (they don't produce it nor maintain it any more) but it's the same kind of architecture.

There is a PIC12F629 as programmable chip, and for RF there is a T574 3WU (or I574 3WU; Unfortunately I didn't find any documentation regarding that chip). Also it contain a 13.56Mhz chip for opening classic door VIGIK system, not related to what we are interested here.

I guess I understand how to narrow the short and long parameter, but the reset parameter, how did you narrow it?

merbanan commented 5 years ago

Reset should be longer then the longest message bit interval. @zuckschwerdt can you create a flex decoder specification based on the c1 and > 180 bits info?

zuckschwerdt commented 5 years ago

The longet run of 0 I've seen is 5, thus reset needs to be bigger than 5500 µs (accounts for the preceeding bit space). Something between 6000 and 9000 seems reasonable.

Add ,bits>=180 to require a minimum bit length. Add ,match=c1 to match the byte. It's currently not easy to match a specific positions.