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

 找回密码
 立即注册
查看: 4960|回复: 3

[求助] 树莓派接收红外的问题

[复制链接]

17

主题

798

帖子

5730

积分

论坛元老

Rank: 8Rank: 8

积分
5730
金钱
4927
HASS币
0
发表于 2018-3-3 18:11:31 | 显示全部楼层 |阅读模式
本帖最后由 sirakawa 于 2018-3-3 19:46 编辑

更新:
把接收头直接焊在杜邦线上之后,貌似对遥控有反应了

但是也只有这样的

pi@hassbian:~ $ mode2 -d /dev/lirc0
Using driver devinput on device /dev/lirc0
Trying device: /dev/lirc0
Using device: /dev/lirc0
Partial read 4 bytes on /dev/lirc0


而且有时候没按遥控,自动就会有反应- -

----------------------------------
按照下面这个教程,mode2 -d /dev/lirc0之后应该是接收遥控的了,但是直接就像下面这样出了一堆CODE之后就没了= =有能指导下这是什么问题的么?

https://www.jianshu.com/p/9cfb0bf02006
接收头用的是这个
https://detail.tmall.com/item.ht ... EofYS&_u=3je3ui480b

接收头接了树莓派的pin1(3v3) pin6(GND) pin12(gpio18)

而且奇怪的是我拔了接收头也出这些。。

pi@hassbian:~ $ mode2 -d /dev/lirc0
Using driver devinput on device /dev/lirc0
Trying device: /dev/lirc0
Using device: /dev/lirc0
code: 0x1e1300010b0000010600000106000001
code: 0x0f0000010b0000010500000105000000
code: 0x04000001050000010500000105000001
code: 0x05000001050000010600000105000000
code: 0x05000001050000010500000105000001
code: 0x05000000060000010500000104000001
code: 0x05000001050000010400000105000000
code: 0x04000001050000010500000106000001
code: 0x05000000040000010500000104000001
code: 0x07000001040000010500000105000001
code: 0x04000001070000010400000105000001
code: 0x04000001050000010400000105000001
code: 0x05000001040000000700000105000001
code: 0x04000001050000010500000104000001
code: 0x05000001050000010400000105000001
code: 0x07000001050000010400000105000000
code: 0x04000001050000010400000105000001
code: 0x06000001060000010500000105000001
code: 0x04000000050000010500000004000001
code: 0x05000001040000010500000106000001
code: 0x05000000050000010400000005000001
code: 0x05000000050000010500000105000001
code: 0x06000001050000010400000105000000
code: 0x05000001040000010500000104000001
code: 0x05000000050000010600000104000000
code: 0x07000000050000010400000005000001
code: 0x05000001040000010500000106000001
code: 0x05000000040000010500000005000001
code: 0x04000001050000010500000104000001
code: 0x05000001060000010500000004000001
code: 0x05000000050000010500000005000001
code: 0x05000000040000010700000105000000
code: 0x05000001040000000500000105000001
code: 0x06000001050000010500000106000001
code: 0x05000001050000000500000105000000
code: 0x05000001050000010500000105000001
code: 0x06000001050000010500000105000001
code: 0x05000001050000010500000104000001
code: 0x05000001050000010700000104000001
code: 0x05000001050000010500000105000001
code: 0x04000001060000010500000006000000
code: 0x06000001060000010400000105000001
code: 0x04000001050000010500000105000001
code: 0x06000001050000010500000105000001
code: 0x05000001040000010500000105000001
code: 0x05000001060000010500000105000000
code: 0x04000001050000000500000104000001
code: 0x05000001050000010400000107000001
code: 0x05000001050000010500000104000001
code: 0x06000001050000010500000004000001
code: 0x06000001050000010400000105000001
code: 0x05000001040000010500000005000001
code: 0x04000000070000010400000105000001
code: 0x04000001050000010400000005000001
code: 0x05000001040000010500000106000001
code: 0x05000001050000010400000005000001
code: 0x04000000050000010500000104000001
code: 0x06000001050000010500000104000001
code: 0x05000000050000010400000105000001
code: 0x04000001050000010600000105000001
code: 0x05000000040000010500000005000001
code: 0x04000001050000010400000105000001
code: 0x06000000050000010500000004000001
code: 0x05000000050000010500000004000001
code: 0x05000001060000010400000105000001
code: 0x06000001050000000500000104000000
code: 0x05000001050000000400000107000001
code: 0x05000000040000010500000104000001
code: 0x05000001040000000500000105000000
code: 0x06000001040000010500000105000001
code: 0x04000001050000000400000105000001
code: 0x04000001050000010600000105000001
code: 0x05000001040000000500000104000000
code: 0x07000000050000010500000006000000
code: 0x05000001050000010500000105000001
code: 0x05000001050000010500000005000001
code: 0x06000001050000000500000104000001
code: 0x05000001050000000400000105000001
code: 0x05000001040000010600000105000001
code: 0x05000001050000010400000105000000
code: 0x05000001050000000400000106000001
code: 0x06000001050000010500000104000001
code: 0x05000001050000010500000104000001
code: 0x05000001060000010500000105000001
code: 0x05000001050000010500000105000001
code: 0x05000000040000010600000105000001
code: 0x05000001050000010400000105000001
code: 0x05000001050000010500000106000001
code: 0x05000001050000010500000005000001
code: 0x06000001050000010400000105000001
code: 0x05000001060000010500000104000001
code: 0x05000001040000000500000104000001
code: 0x05000001050000010400000106000000
code: 0x05000001040000000500000105000001
code: 0x04000001050000000600000104000000
code: 0x07000001050000010500000105000001
code: 0x05000001050000000400000105000001
code: 0x06000001060000010500000004000001
code: 0x05000000040000010500000104000001
code: 0x05000001040000000500000107000001
code: 0x04000000050000010500000005000001
code: 0x04000000050000010500000005000001
code: 0x07000001050000010500000005000001
code: 0x05000000040000010500000005000001
code: 0x05000000060000000500000105000000
code: 0x06000000050000010400000105000001
code: 0x05000001040000010700000104000001
code: 0x05000001050000010500000104000001
code: 0x05000001040000010500000005000001
code: 0x06000001050000000400000105000000
code: 0x04000001060000000500000105000000
code: 0x04000001060000010500000005000001
code: 0x06000001050000010400000105000001
code: 0x150000010700000116060000ed010001
Partial read 8 bytes on /dev/lirc0




回复

使用道具 举报

4

主题

163

帖子

909

积分

高级会员

Rank: 4

积分
909
金钱
746
HASS币
0
发表于 2018-3-20 22:49:09 | 显示全部楼层
问题解决了吗?我也遇到了。“拔了接收头也出这些”的问题没遇到
回复

使用道具 举报

17

主题

798

帖子

5730

积分

论坛元老

Rank: 8Rank: 8

积分
5730
金钱
4927
HASS币
0
 楼主| 发表于 2018-4-5 10:06:25 | 显示全部楼层
八哥 发表于 2018-4-4 11:43
用脚本来“转换”配置
sudo /usr/share/lirc/lirc-old2new
结束lircd进程

谢谢,去试试
回复

使用道具 举报

1

主题

138

帖子

2852

积分

金牌会员

Rank: 6Rank: 6

积分
2852
金钱
2714
HASS币
0
发表于 2018-5-8 22:35:36 | 显示全部楼层
八哥 发表于 2018-4-4 11:43
用脚本来“转换”配置
sudo /usr/share/lirc/lirc-old2new
结束lircd进程

八哥,你太牛逼,我研究了一晚上,你一语惊醒梦中人啊
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 17:23 , Processed in 0.369052 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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