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

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

[基础教程] 轻松简单地获取315、433Mhz遥控器的十进制发射码

  [复制链接]

0

主题

3

帖子

38

积分

新手上路

Rank: 1

积分
38
金钱
35
HASS币
0
发表于 2018-9-3 21:39:44 | 显示全部楼层
射频模块是什么
回复

使用道具 举报

0

主题

18

帖子

290

积分

论坛积极会员

积分
290
金钱
272
HASS币
0
发表于 2018-9-3 22:12:57 | 显示全部楼层
感谢楼主~~~~~~
回复

使用道具 举报

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2018-9-3 22:28:24 | 显示全部楼层
step0766 发表于 2018-9-3 20:26
1、你的接收模块是433的吗?用315的是接收不了的
2、你运行ReceiveDemo_Advanced.ino的结果是什么?串口监 ...

致step0766
1、DATA接的是D4吗?  

55.jpg
2、电源接对了吗?要5V供电的
33.jpg
这个程序刷进去之后 ,标注的VIN和G 端口不是定义的5V ,我用电表量过0.48V 然后外接的5v

3、你的接收模块是433的吗?用315的是接收不了的
44.jpg
这个应该是 淘宝上买的,315和433分别装的

4、你运行ReceiveDemo_Advanced.ino的结果是什么?串口监视器显示什么?
22.JPG

没有结果,就是这个局面,
啊A.JPG

端口设置的9600
奇怪的是arduino里显示的是921600 ,找不到原因和改正,
串口监视器无任何显示



回复

使用道具 举报

6

主题

271

帖子

2960

积分

金牌会员

Rank: 6Rank: 6

积分
2960
金钱
2684
HASS币
20

卓越贡献

 楼主| 发表于 2018-9-4 00:46:04 | 显示全部楼层
wktm 发表于 2018-9-3 22:28
致step0766
1、DATA接的是D4吗?  

微信截图_20180904004049.png
这个就是串口监视器,这里看接收结果的
回复

使用道具 举报

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2018-9-5 23:23:21 | 显示全部楼层
再次感谢step0766  按照step0766的方法,终于成功,只是显示出来的码,每次按遥控器,出来的几行数字都不一样,很是奇怪,不知道是不是正确读取的。

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10810,1051,508,352,1191,1046,499,1051,501,360,1186,1050,503,1047,508,353,1189,1049,504,357,1186,361,1182,364,1193,1044,501,360,1192,354,1187,1049,504,360,1191,355,1193,355,1185,361,1187,1050,499,361,1187,360,1194,352,1212,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10814,1048,505,355,1189,1048,506,1045,505,354,1197,1040,506,1045,504,356,1191,1050,504,356,1192,355,1196,350,1193,1044,509,352,1192,355,1187,1050,514,349,1186,360,1193,355,1189,358,1188,1049,513,347,1193,354,1194,353,1215,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10817,1045,508,353,1187,1049,508,1043,502,358,1193,1044,506,1045,505,356,1199,1039,522,339,1199,348,1195,352,1191,1047,515,346,1191,355,1194,1044,507,355,1192,356,1197,350,1195,351,1197,1041,507,354,1195,351,1205,342,1223,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 349 microseconds Protocol: 1
Raw data: 10815,1048,508,351,1198,1038,509,1042,511,350,1201,1036,513,1038,507,354,1194,1046,505,357,1192,354,1195,352,1192,1045,511,350,1191,357,1193,1043,519,345,1192,355,1195,352,1197,350,1200,1038,509,351,1193,354,1203,344,1223,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 349 microseconds Protocol: 1
Raw data: 10816,1045,512,348,1188,1049,515,1037,506,354,1199,1039,509,1041,510,351,1195,1045,513,348,1195,352,1198,349,1204,1034,509,351,1196,352,1196,1041,516,348,1195,352,1197,351,1190,357,1195,1042,506,355,1191,355,1191,356,1220,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 349 microseconds Protocol: 1
Raw data: 10821,1042,506,355,1192,1045,507,1045,510,351,1196,1040,506,1046,508,353,1192,1048,517,343,1201,346,1208,340,1195,1042,510,351,1213,334,1197,1041,511,351,1197,351,1198,350,1192,355,1194,1043,511,350,1192,355,1192,355,1220,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10818,1045,508,354,1198,1039,520,1031,508,353,1196,1041,506,1045,507,355,1221,1019,507,354,1193,353,1194,354,1191,1046,506,355,1196,351,1195,1043,511,352,1193,354,1195,353,1196,352,1192,1045,505,356,1199,348,1195,352,1217,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10814,1046,513,348,1186,1051,509,1042,502,359,1195,1043,510,1041,501,360,1191,1050,508,352,1200,346,1193,354,1197,1041,509,353,1188,358,1196,1043,512,351,1190,357,1190,358,1192,355,1189,1048,506,356,1194,352,1195,353,1215,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10815,1044,513,348,1193,1046,508,1044,506,355,1199,1040,506,1046,511,350,1197,1044,512,348,1191,357,1195,352,1200,1040,508,352,1197,350,1198,1041,509,353,1191,357,1208,339,1204,344,1196,1043,507,353,1193,354,1193,354,1239,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10812,1049,505,356,1204,1035,512,1040,507,354,1194,1045,511,1041,517,343,1197,1045,516,345,1200,348,1196,351,1195,1044,506,355,1191,356,1196,1044,512,352,1196,350,1195,353,1199,348,1213,1025,517,344,1199,349,1194,352,1219,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10814,1046,509,352,1193,1046,512,1040,508,352,1199,1040,519,1034,507,354,1207,1035,520,341,1200,347,1200,347,1199,1042,510,350,1200,347,1197,1044,512,350,1195,353,1195,353,1198,350,1203,1035,517,344,1200,348,1195,353,1221,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 349 microseconds Protocol: 1
Raw data: 10822,1039,510,352,1194,1045,512,1040,509,353,1197,1041,517,1036,511,351,1198,1043,508,353,1197,351,1196,352,1200,1039,519,342,1197,350,1197,1042,516,348,1201,348,1196,351,1201,345,1197,1044,509,351,1195,352,1202,346,1220,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10814,1048,514,347,1205,1034,508,1045,505,356,1197,1043,513,1040,509,352,1197,1046,515,346,1196,351,1200,349,1199,1040,518,343,1197,352,1205,1034,514,349,1200,348,1198,351,1196,351,1210,1030,515,346,1195,353,1206,342,1228,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 349 microseconds Protocol: 1
Raw data: 10818,1043,512,350,1206,1034,511,1042,527,334,1200,1039,517,1037,516,346,1201,1040,508,353,1195,352,1203,346,1197,1041,513,349,1198,350,1204,1035,514,350,1207,341,1196,351,1202,346,1202,1037,513,349,1197,351,1204,344,1217,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10811,1049,502,359,1193,1045,508,1044,509,352,1193,1045,503,1047,507,355,1192,1048,506,355,1192,356,1205,341,1190,1049,507,353,1189,359,1186,1051,515,349,1196,351,1189,358,1191,356,1194,1044,505,358,1191,354,1191,356,1219,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10814,1046,505,356,1191,1048,512,1040,506,354,1198,1041,516,1035,513,349,1198,1043,511,350,1193,354,1195,353,1194,1045,516,345,1198,349,1191,1048,510,353,1192,355,1191,358,1200,346,1193,1046,506,354,1202,346,1201,346,1221,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10815,1046,511,350,1194,1043,508,1044,510,351,1196,1042,510,1043,516,345,1196,1045,515,346,1195,353,1196,351,1199,1039,509,353,1196,351,1193,1045,516,348,1209,338,1195,352,1194,354,1211,1028,518,344,1195,351,1202,345,1220,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10820,1041,507,354,1204,1035,514,1038,512,349,1195,1043,513,1039,514,349,1195,1045,510,352,1199,348,1204,343,1192,1047,512,349,1195,352,1193,1045,522,343,1197,351,1200,346,1200,348,1199,1039,509,353,1194,354,1197,349,1224,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 349 microseconds Protocol: 1
Raw data: 10814,1047,514,347,1197,1042,510,1043,511,351,1192,1046,513,1040,510,352,1200,1041,512,350,1193,354,1194,353,1200,1039,517,344,1200,347,1200,1040,515,349,1199,348,1201,347,1209,339,1195,1043,512,350,1198,348,1196,353,1223,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10817,1044,510,351,1194,1044,515,1039,508,352,1193,1047,510,1043,519,341,1204,1038,512,349,1199,349,1198,349,1197,1043,511,350,1200,348,1205,1034,514,350,1198,350,1197,351,1197,350,1205,1035,524,338,1203,344,1198,349,1217,

Decimal: 11962632 (24Bit) Binary: 101101101000100100001000 Tri-State: not applicable PulseLength: 348 microseconds Protocol: 1
Raw data: 10815,1048,525,335,1201,1039,508,1045,517,344,1200,1040,510,1043,520,341,1203,1039,509,353,1204,343,1200,347,1198,1042,513,349,1202,345,1203,1036,514,351,1195,352,1197,352,1193,354,1196,1043,517,344,1199,348,1202,347,1217,







方法是刷库里的ReceiveDemo_Advanced
改一下端口 115200  然后刷入,

疑问: 这个码是十进制的吗,怎么还带逗号,这种码转成16进制 的话,用什么软件转,我在淘宝上又买一个串口转433d射频的解码板,只是用解码板读出的数值是FD B6 89 08 53 DF 再按一下同一个按钮,发现数值又变成FD B6 89 08 54 DF  有什么软件能让nodemcu读取的数值转换成解码板的数值,因为串口用 的比较多,


另外博联的读出的CODE :

b10084032e2e2e45172e2e0001b517452d17452e178a2e45172e44172e2e2e45172e2e0001b617442e17452e1744172e2e5c2e45172e2e2e5c2e2e2e000187177317452e1744182e2e444644172e2e2e45172e2e2e000188164644452e1745175c8a45172e2e2e44182e2e2e000187177317442f5b172e2f44172e45172e2e2e45452e2e0001881744458a45172e2e45172e45172e2e2e45452e2e000188174545448a452e45178a2e2e2e45175c2e0001885c2e17731744172f2e5b73172e2f2e8a2e2e000187178a452e5c172e73172e45172e2e2e45450001e4178a8a45172e2e45162f44172f2e2e45732e00019f45000114172e2e44172e5d5c2e45172e5c0001e48a2e1745172e2e5c2e45172e2e2e8b2e2d00019f462d5c2e175ca1172f45172e2e2e451700022a44000114172e2e5c2e8b2ee62e0001e5ce8b2e45172e8aa2172e2e0001b65c2e17458a172e2e45d02e2e5c5c2f00018817cf450001428b2e8a2e2e0001b7000114732e2e5d2e5c2e0004812e5c2e8ba1452f000257468a452e0001152eb95c0001891646454545b95c00015a00028600012c2eb98a2e2e0003e1172e2e46000171178b0002135dfd4517e774170003f8451873172e2f2e5c0002145d2d180001435db85d000357fed0fe0002b6e72e2ee85c2f450002438ae75c8c45fe000215a10001a0741700042845b9fe0003410001cf00012c7400029f8a00015b5d0004840001fd5c000271455c0001440003138b737300022b00022c00039d00027046000189fe74175c00036f000143e80003cbe75d8b00022b0001150001168a5db90001fd0001158b8b0001158b0002432e1700053e00011400011600049b00015b0001a000025ad045b946175c00011600022b000214a2450003b4e70001a10002142e00012d2e8ab98b000215a18b8a8b000172000271d00001158b0001160001e617fe73a2178be75d00025a8a0001448b0003f98b2e46178a2f2e2eb92f0001a046cfff455d8b8a2f2e0002141774732e2f4517b92e2f5c2e2f2e000189188a462d175da2172e46172e2f2e45172f2e2e00018a5c2e18e62f2e45172e5d2e2e2fb92e00018a17d02e5c462e45172e46172f2e73172f2e2e0001a1462e17458a182e2e5d73182d2f2e45182e2e2f00018918452e5c8a7446172e46172e2e2e46172e2f0001b7187317d0172e2f45172e46172e2e2f8a2f2e00018a17462d18452e1745172e2f45172f45172e2f2e45172f2e2e00018a18452e170005dc00000000



用什么方法能转成跟串口模块那样就6组两位的数值啊  用在线进制转换 试了很多家,没有一个数值是一样的,

回复

使用道具 举报

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2018-9-5 23:28:34 | 显示全部楼层
另外就是杜亚的管机遥控还是不行,窗口没有任何数值,在坛里搜syjjx说https://bbs.hassbian.com/forum.p ... =%E6%9D%9C%E4%BA%9A 杜亚的不是滚动码, 固定码为何识别不了,是怎么回事呢? 很想解决杜亚管机的问题,syjjx说的方案好像在第一步验证时候就报错,也没指出毛病所在,
回复

使用道具 举报

6

主题

271

帖子

2960

积分

金牌会员

Rank: 6Rank: 6

积分
2960
金钱
2684
HASS币
20

卓越贡献

 楼主| 发表于 2018-9-6 01:09:26 | 显示全部楼层
本帖最后由 step0766 于 2018-9-6 01:16 编辑
wktm 发表于 2018-9-5 23:23
再次感谢step0766  按照step0766的方法,终于成功,只是显示出来的码,每次按遥控器,出来的几行数字都不一 ...

1、 Binary: 101101101000100100001000才是二进制码,十进制码Decimal: 11962632,把11962632填入hass即可
2、发射长度PulseLength: 348
3、协议Protocol: 1
回复

使用道具 举报

3

主题

343

帖子

1598

积分

严重灌水用户

积分
1598
金钱
1254
HASS币
0
发表于 2018-9-6 03:45:58 | 显示全部楼层
谢谢分享
回复

使用道具 举报

0

主题

5

帖子

24

积分

新手上路

Rank: 1

积分
24
金钱
19
HASS币
0
发表于 2018-9-6 05:03:23 | 显示全部楼层
非常感谢分享!!!!!!
回复

使用道具 举报

1

主题

9

帖子

180

积分

注册会员

Rank: 2

积分
180
金钱
171
HASS币
0
发表于 2018-9-6 07:45:43 | 显示全部楼层
感謝教學
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 10:26 , Processed in 0.055884 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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