- 红外模块
- 购买地址和文档 https://detail.tmall.com/item.htm?id=525526707341&rn=3a8680a95b09a61a991525bcc91415b8&abbucket=12
- 首先确认是否已经开启了i2c
$ sudo i2cdetect -y 1
- 如果出现以下错误
Error:Could not open file `/dev/i2c-1': No such file or dire
$ sudo i2cdetect -y 1
Error:Could not open file `/dev/i2c-1': No such file or dire
Instructions tested with a Raspberry Pi 2 with an 8GB memory card. Probably also works fine on a Raspberry Pi 3.
Download the latest Raspbian Jessie Light
image. Earlier versions of Raspbian won't work.
Write it to a memory card using Etcher, put the memory card in the RPi and boot it up.
参考文档
$ git clone https://github.com/cmusatyalab/openface
$ cd openface
创建一个:
$ time dd if=/dev/zero of=test bs=128k count=1512 oflag=dsync
用tcpdump以文本形式查看报文内容:
$ sudo tcpdump -p -i eth0 -s 0 -l -w - dst port 6666 and dst host l-mem1.f.cn1.qunar.com | strings | grep set
hadoop jar ./contrib/streaming/hadoop-streaming-0.20.2-cdh3u4.jar -input /home/xiaoxu.lv/publish_fare/raw_data/blacketermmergeresults_zip_2013-05-10.txt -output /home/xiaoxu.lv/publish_fare/rule_detail/ -mapper extract_raw.py -file extract_raw.py -reducer cat -numReduceTasks 41 | |
hadoop jar ./contrib/streaming/hadoop-streaming-0.20.2-cdh3u4.jar -input /home/xiaoxu.lv/publish_fare/rule_detail/ -output /home/xiaoxu.lv/publish_fare/rule_detail_count_finger/ -mapper "cut -f 1" -reducer "uniq -c" -numReduceTasks 41 |