请选择 进入手机版 | 继续访问电脑版

『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: syjjx

[基础教程] 获取并发射杜亚433.92Mhz遥控器的发射码

[复制链接]

4

主题

258

帖子

2605

积分

论坛积极会员

积分
2605
金钱
2347
HASS币
0
发表于 2018-3-1 10:09:35 | 显示全部楼层
确实在uno上运行ide收和发验证脚本都报错,请楼主改一改吧
回复

使用道具 举报

14

主题

267

帖子

1639

积分

论坛技术达人

积分
1639
金钱
1352
HASS币
40

教程狂人

发表于 2018-5-15 15:28:02 | 显示全部楼层
大佬,提供的文件,是网页内容啊,
回复

使用道具 举报

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2018-9-3 14:39:12 | 显示全部楼层
验证时候提示好像有什么错误,刚开始玩nodemcu  ,这个杜亚的电机很是郁闷,一直采不到码,只能用刚到货的博联pro+ ,采集到的码 又不能通过ttl 发送出去,机器无反应,这个库文件也替换了,怎么还没有一点反应,郁闷中

666.JPG
回复

使用道具 举报

0

主题

3

帖子

20

积分

新手上路

Rank: 1

积分
20
金钱
17
HASS币
0
发表于 2019-3-20 17:50:12 | 显示全部楼层
杜亚的遥控器,是不是随便一个接收发射模块都可以模拟发送?
每个遥控器是不是有个唯一的编码?
回复

使用道具 举报

0

主题

147

帖子

1199

积分

金牌会员

Rank: 6Rank: 6

积分
1199
金钱
1052
HASS币
0
发表于 2019-3-20 19:37:05 | 显示全部楼层
学习分享!
回复

使用道具 举报

2

主题

65

帖子

370

积分

中级会员

Rank: 3Rank: 3

积分
370
金钱
305
HASS币
0
发表于 2019-3-23 17:14:51 | 显示全部楼层
请大神分享一下ino文件,谢谢
回复

使用道具 举报

0

主题

6

帖子

27

积分

新手上路

Rank: 1

积分
27
金钱
21
HASS币
0
发表于 2019-7-25 15:45:22 | 显示全部楼层
你好楼主,替换库文件,别验证不能通过,麻烦能详细点吗?
回复

使用道具 举报

1

主题

45

帖子

767

积分

高级会员

Rank: 4

积分
767
金钱
722
HASS币
0
发表于 2020-7-1 00:29:26 | 显示全部楼层
家里一个晾衣机也遇到了类似的40位长码,rc-switch认不出,用手上的一个电视棒截到了信号,求教该如何用rc-switch发送长码

rtl_433 -A
rtl_433 version unknown inputs file rtl_tcp RTL-SDR
Use -h for usage help and see https://triq.org/ for documentation.
Registered 126 out of 154 device decoding protocols [ 1-4 8 11-12 15-17 19-21 23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-154 ]
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Detected OOK package        2020-07-01 00:23:10
Analyzing pulses...
Total count:  328,  width: 446.94 ms                (111736 S)
Pulse width distribution:
 [ 0] count:    8,  width: 4760 us [4280;4836]        (1190 S)
 [ 1] count:  144,  width:  736 us [732;744]        ( 184 S)
 [ 2] count:  176,  width:  376 us [368;384]        (  94 S)
Gap width distribution:
 [ 0] count:    8,  width: 1468 us [1464;1476]        ( 367 S)
 [ 1] count:  140,  width:  340 us [336;352]        (  85 S)
 [ 2] count:  172,  width:  700 us [696;712]        ( 175 S)
 [ 3] count:    7,  width: 7932 us [7776;8140]        (1983 S)
Pulse period distribution:
 [ 0] count:    8,  width: 6232 us [5752;6308]        (1558 S)
 [ 1] count:  312,  width: 1080 us [1068;1088]        ( 270 S)
 [ 2] count:    7,  width: 8516 us [8508;8524]        (2129 S)
Level estimates [high, low]:  15913,     74
RSSI: -0.1 dB SNR: 23.3 dB Noise: -23.5 dB
Frequency offsets [F1, F2]:  -13929,      0        (-53.1 kHz, +0.0 kHz)
Guessing modulation: Pulse Width Modulation with sync/delimiter
Attempting demodulation... short_width: 376, long_width: 736, reset_limit: 8144, sync_width: 4760
Use a flex decoder with -X 'n=name,m=OOK_PWM,s=376,l=736,r=8144,g=0,t=0,y=4760'
pulse_demod_pwm(): Analyzer Device
bitbuffer:: Number of rows: 8 
[00] {40} 6a 53 4a fa ee : 01101010 01010011 01001010 11111010 11101110 
[01] {40} 6a 53 4a fa ee : 01101010 01010011 01001010 11111010 11101110 
[02] {40} 6a 53 4a fa ee : 01101010 01010011 01001010 11111010 11101110 
[03] {40} 6a 53 4a fa ee : 01101010 01010011 01001010 11111010 11101110 
[04] {40} 6a 53 4a fa e1 : 01101010 01010011 01001010 11111010 11100001 
[05] {40} 6a 53 4a fa e1 : 01101010 01010011 01001010 11111010 11100001 
[06] {40} 6a 53 4a fa e1 : 01101010 01010011 01001010 11111010 11100001 
[07] {40} 6a 53 4a fa e1 : 01101010 01010011 01001010 11111010 11100001 

Detected OOK package        2020-07-01 00:23:14
Analyzing pulses...
Total count:  164,  width: 219.44 ms                (54859 S)
Pulse width distribution:
 [ 0] count:    4,  width: 4688 us [4264;4832]        (1172 S)
 [ 1] count:   76,  width:  736 us [732;740]        ( 184 S)
 [ 2] count:   84,  width:  376 us [368;384]        (  94 S)
Gap width distribution:
 [ 0] count:    4,  width: 1464 us [1464;1468]        ( 366 S)
 [ 1] count:   72,  width:  344 us [336;352]        (  86 S)
 [ 2] count:   84,  width:  700 us [696;712]        ( 175 S)
 [ 3] count:    3,  width: 7780 us [7768;7788]        (1945 S)
Pulse period distribution:
 [ 0] count:    4,  width: 6152 us [5732;6296]        (1538 S)
 [ 1] count:  156,  width: 1080 us [1072;1088]        ( 270 S)
 [ 2] count:    3,  width: 8516 us [8504;8524]        (2129 S)
Level estimates [high, low]:  15963,     47
RSSI: -0.1 dB SNR: 25.3 dB Noise: -25.4 dB
Frequency offsets [F1, F2]:  -13504,      0        (-51.5 kHz, +0.0 kHz)
Guessing modulation: Pulse Width Modulation with sync/delimiter
Attempting demodulation... short_width: 376, long_width: 736, reset_limit: 7792, sync_width: 4688
Use a flex decoder with -X 'n=name,m=OOK_PWM,s=376,l=736,r=7792,g=0,t=0,y=4688'
pulse_demod_pwm(): Analyzer Device
bitbuffer:: Number of rows: 4 
[00] {40} 6a 53 4a fa aa : 01101010 01010011 01001010 11111010 10101010 
[01] {40} 6a 53 4a fa aa : 01101010 01010011 01001010 11111010 10101010 
[02] {40} 6a 53 4a fa aa : 01101010 01010011 01001010 11111010 10101010 
[03] {40} 6a 53 4a fa aa : 01101010 01010011 01001010 11111010 10101010 

Detected OOK package        2020-07-01 00:23:16
Analyzing pulses...
Total count:  328,  width: 447.37 ms                (111843 S)
Pulse width distribution:
 [ 0] count:    8,  width: 4764 us [4280;4844]        (1191 S)
 [ 1] count:  152,  width:  736 us [732;744]        ( 184 S)
 [ 2] count:  168,  width:  376 us [368;384]        (  94 S)
Gap width distribution:
 [ 0] count:    8,  width: 1472 us [1468;1480]        ( 368 S)
 [ 1] count:  148,  width:  344 us [336;352]        (  86 S)
 [ 2] count:  164,  width:  700 us [696;712]        ( 175 S)
 [ 3] count:    7,  width: 7940 us [7784;8148]        (1985 S)
Pulse period distribution:
 [ 0] count:    8,  width: 6236 us [5760;6316]        (1559 S)
 [ 1] count:  312,  width: 1080 us [1072;1092]        ( 270 S)
 [ 2] count:    7,  width: 8524 us [8520;8532]        (2131 S)
Level estimates [high, low]:  15973,     66
RSSI: -0.1 dB SNR: 23.8 dB Noise: -23.9 dB
Frequency offsets [F1, F2]:  -13289,      0        (-50.7 kHz, +0.0 kHz)
Guessing modulation: Pulse Width Modulation with sync/delimiter
Attempting demodulation... short_width: 376, long_width: 736, reset_limit: 8152, sync_width: 4764
Use a flex decoder with -X 'n=name,m=OOK_PWM,s=376,l=736,r=8152,g=0,t=0,y=4764'
pulse_demod_pwm(): Analyzer Device
bitbuffer:: Number of rows: 8 
[00] {40} 6a 53 4a fa cc : 01101010 01010011 01001010 11111010 11001100 
[01] {40} 6a 53 4a fa cc : 01101010 01010011 01001010 11111010 11001100 
[02] {40} 6a 53 4a fa cc : 01101010 01010011 01001010 11111010 11001100 
[03] {40} 6a 53 4a fa cc : 01101010 01010011 01001010 11111010 11001100 
[04] {40} 6a 53 4a fa c3 : 01101010 01010011 01001010 11111010 11000011 
[05] {40} 6a 53 4a fa c3 : 01101010 01010011 01001010 11111010 11000011 
[06] {40} 6a 53 4a fa c3 : 01101010 01010011 01001010 11111010 11000011 
[07] {40} 6a 53 4a fa c3 : 01101010 01010011 01001010 11111010 11000011 

Detected OOK package        2020-07-01 00:23:19
Analyzing pulses...
Total count:  164,  width: 219.42 ms                (54856 S)
Pulse width distribution:
 [ 0] count:    4,  width: 4692 us [4276;4836]        (1173 S)
 [ 1] count:   76,  width:  732 us [732;740]        ( 183 S)
 [ 2] count:   84,  width:  376 us [368;384]        (  94 S)
Gap width distribution:
 [ 0] count:    4,  width: 1468 us [1464;1476]        ( 367 S)
 [ 1] count:   72,  width:  344 us [336;352]        (  86 S)
 [ 2] count:   84,  width:  700 us [696;708]        ( 175 S)
 [ 3] count:    3,  width: 7776 us [7776;7776]        (1944 S)
Pulse period distribution:
 [ 0] count:    4,  width: 6164 us [5752;6304]        (1541 S)
 [ 1] count:  156,  width: 1080 us [1072;1088]        ( 270 S)
 [ 2] count:    3,  width: 8508 us [8508;8512]        (2127 S)
Level estimates [high, low]:  15984,     61
RSSI: -0.1 dB SNR: 24.2 dB Noise: -24.3 dB
Frequency offsets [F1, F2]:  -14196,      0        (-54.2 kHz, +0.0 kHz)
Guessing modulation: Pulse Width Modulation with sync/delimiter
Attempting demodulation... short_width: 376, long_width: 732, reset_limit: 7780, sync_width: 4692
Use a flex decoder with -X 'n=name,m=OOK_PWM,s=376,l=732,r=7780,g=0,t=0,y=4692'
pulse_demod_pwm(): Analyzer Device
bitbuffer:: Number of rows: 4 
[00] {40} 6a 53 4a fa f0 : 01101010 01010011 01001010 11111010 11110000 
[01] {40} 6a 53 4a fa f0 : 01101010 01010011 01001010 11111010 11110000 
[02] {40} 6a 53 4a fa f0 : 01101010 01010011 01001010 11111010 11110000 
[03] {40} 6a 53 4a fa f0 : 01101010 01010011 01001010 11111010 11110000 
回复

使用道具 举报

0

主题

3

帖子

28

积分

新手上路

Rank: 1

积分
28
金钱
25
HASS币
0
发表于 2020-11-30 17:30:59 | 显示全部楼层
int logfile[40];

logfile申明的是数组,怎么后面logfile又在赋值为int类型呢。编译不过,是不是代码写错了
回复

使用道具 举报

0

主题

4

帖子

22

积分

新手上路

Rank: 1

积分
22
金钱
18
HASS币
0
发表于 2021-8-19 18:42:54 | 显示全部楼层
楼主采集的代码里,把所有logfile的地方改成logfile[i]就可以正常工作了。注意logfile[i+1]这个不要改。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-3-29 21:03 , Processed in 0.060102 second(s), 39 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表