ir: add tools for receiving and sending ir
RFC PATCH 1/1 ir: add tools for receiving and sending ir
Provide simple tools for displaying raw IR and received scancodes, and sending them.
Todo:
- ir-rec cannot enable protocol decoders
- ir-send should accept scancode on commandline
- long options
--- configure.ac | 3 + utils/Makefile.am | 1 + utils/ir/.gitignore | 4 + utils/ir/Makefile.am | 6 + utils/ir/ir-rec.1.in | 68 +++++++++++ utils/ir/ir-rec.c | 224 ++++++++++++++++++++++++++++++++++ utils/ir/ir-send.1.in | 48 ++++++++ utils/ir/ir-send.c | 329 ++++++++++++++++++++++++++++++++++++++++++++++++++ utils/ir/lirc.h | 163 +++++++++++++++++++++++++ v4l-utils.spec.in | 8 +- 10 files changed, 852 insertions(+), 2 deletions(-) create mode 100644 utils/ir/.gitignore create mode 100644 utils/ir/Makefile.am create mode 100644 utils/ir/ir-rec.1.in create mode 100644 utils/ir/ir-rec.c create mode 100644 utils/ir/ir-send.1.in create mode 100644 utils/ir/ir-send.c create mode 100644 utils/ir/lirc.h
configure.ac +3 -0
@@ -23,6 +23,7 @@ AC_CONFIG_FILES([Makefile utils/libmedia_dev/Makefile utils/decode_tm6000/Makefile utils/dvb/Makefile + utils/ir/Makefile utils/keytable/Makefile utils/media-ctl/Makefile utils/rds/Makefile
@@ -53,6 +54,8 @@ AC_CONFIG_FILES([Makefile utils/qv4l2/qv4l2.1 utils/v4l2-compliance/v4l2-compliance.1 + utils/ir/ir-rec.1 + utils/ir/ir-send.1 utils/keytable/ir-keytable.1 utils/dvb/dvb-fe-tool.1 utils/dvb/dvbv5-scan.1
utils/Makefile.am +1 -0
@@ -3,6 +3,7 @@ SUBDIRS = \ libv4l2util \ libmedia_dev \ decode_tm6000 \ + ir \ keytable \ media-ctl \ v4l2-compliance \
utils/ir/.gitignore new file +4 -0
@@ -0,0 +1,4 @@ +ir-rec +ir-rec.1 +ir-send +ir-send.1
utils/ir/Makefile.am new file +6 -0
@@ -0,0 +1,6 @@ +bin_PROGRAMS = ir-rec ir-send +man_MANS = ir-rec.1 ir-send.1 + +ir_rec_SOURCES = ir-rec.c +ir_send_SOURCES = ir-send.c +
utils/ir/ir-rec.1.in new file +68 -0
68 lines not on this page · raw message
utils/ir/ir-rec.c new file +224 -0
224 lines not on this page · raw message
utils/ir/ir-send.1.in new file +48 -0
48 lines not on this page · raw message
utils/ir/ir-send.c new file +329 -0
329 lines not on this page · raw message
utils/ir/lirc.h new file +163 -0
163 lines not on this page · raw message
v4l-utils.spec.in +6 -2
@@ -17,8 +17,8 @@ Requires: libv4l = %{version}-%{release} %description v4l-utils is a collection of various video4linux (V4L) and DVB utilities. The -main v4l-utils package contains cx18-ctl, ir-keytable, ivtv-ctl, v4l2-ctl and -v4l2-sysfs-path. +main v4l-utils package contains cx18-ctl, ir-keytable, ir-rec, ir-send, +ivtv-ctl, v4l2-ctl and v4l2-sysfs-path. %package devel-tools
@@ -129,10 +129,14 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %config(noreplace) %{_sysconfdir}/udev/rules.d/70-infrared.rules %{_bindir}/cx18-ctl %{_bindir}/ir-keytable +%{_bindir}/ir-rec +%{_bindir}/ir-send %{_bindir}/ivtv-ctl %{_bindir}/v4l2-ctl %{_bindir}/v4l2-sysfs-path %{_mandir}/man1/ir-keytable.1* +%{_mandir}/man1/ir-rec.1* +%{_mandir}/man1/ir-send.1* %files devel-tools %defattr(-,root,root,-)
Signature · 1 line
2.1.0
Quoted 8 lines · Sean Young
Provide simple tools for displaying raw IR and received scancodes, and sending them.
Todo:
- ir-rec cannot enable protocol decoders
- ir-send should accept scancode on commandline
- long options
Didn't look at it in detail, but I noticed one thing...copyright headers like this:
Quoted 3 lines
+/*
+ Copyright (C) 2015 Sean Young <[email protected]>
+ */
Really should specify the license.