julienfouilhe / automate-gate-opening

Automate gate/garage door opening via 433.92MHz emitter with Raspberry Pi, Home Assistant and Homekit.
56 stars 4 forks source link

How can i adapt the function sendCode() with this output please ? #5

Open belarbi2733 opened 1 year ago

belarbi2733 commented 1 year ago

Der ,

By using rtl_433 -A i have this output :

Analyzing pulses... Total count: 313, width: 476.27 ms (119067 S) Pulse width distribution: [ 0] count: 1, width: 25932 us [25932;25932] (6483 S) [ 1] count: 192, width: 412 us [404;424] ( 103 S) [ 2] count: 120, width: 812 us [808;820] ( 203 S) Gap width distribution: [ 0] count: 1, width: 34900 us [34900;34900] (8725 S) [ 1] count: 164, width: 384 us [380;396] ( 96 S) [ 2] count: 4, width: 3992 us [3992;3996] ( 998 S) [ 3] count: 140, width: 780 us [776;788] ( 195 S) [ 4] count: 3, width: 16372 us [16372;16376] (4093 S) Pulse period distribution: [ 0] count: 1, width: 60832 us [60832;60832] (15208 S) [ 1] count: 44, width: 796 us [796;804] ( 199 S) [ 2] count: 4, width: 4400 us [4400;4404] (1100 S) [ 3] count: 260, width: 1196 us [1192;1204] ( 299 S) [ 4] count: 3, width: 16788 us [16788;16792] (4197 S) Pulse timing distribution: [ 0] count: 1, width: 25932 us [25932;25932] (6483 S) [ 1] count: 356, width: 400 us [380;424] ( 100 S) [ 2] count: 260, width: 796 us [776;820] ( 199 S) [ 3] count: 1, width: 34900 us [34900;34900] (8725 S) [ 4] count: 4, width: 3992 us [3992;3996] ( 998 S) [ 5] count: 3, width: 16372 us [16372;16376] (4093 S) [ 6] count: 1, width: 100004 us [100004;100004] (25001 S) Level estimates [high, low]: 15949, 55 RSSI: -0.1 dB SNR: 24.6 dB Noise: -24.7 dB Frequency offsets [F1, F2]: 1483, 0 (+5.7 kHz, +0.0 kHz) Guessing modulation: Pulse Width Modulation with sync/delimiter view at https://triq.org/pdv/#AAB0110701654C0190031C88540F983FF4FFFF8355+AAB05E0703654C0190031C88540F983FF4FFFF91919191919191919191919492A19292A1929292929292A192A1A192A19292A192A192A192929292A1A1A19292A192A192A1A1A1929292A192A1A192A1A192A1A192929292A1A1A1A192A1A1929555+AAB05E0701654C0190031C88540F983FF4FFFF91919191919191919191919492A19292A1929292929292A192A1A192A19292A192A192A192929292A1A1A19292A192A192A1A1A1929292A192A1A192A1A192A1A192929292A1A1A1A192A1A1929655 Attempting demodulation... short_width: 412, long_width: 812, reset_limit: 34904, sync_width: 25932 Use a flex decoder with -X 'n=name,m=OOK_PWM,s=412,l=812,r=34904,g=0,t=0,y=25932' pulse_slicer_pwm(): Analyzer Device bitbuffer:: Number of rows: 1 [00] {312} ff fb 7e 96 af 1a 8e 92 78 4f ff ed fa 5a bc 6a 3a 49 e1 3f ff b7 e9 6a f1 a8 e9 27 84 ff fe df a5 ab c6 a3 a4 9e 13

How can i adapt the function sendcode() please ?

Thank you