<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IMX8 gpio ir receiver using LIRC in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-gpio-ir-receiver-using-LIRC/m-p/986183#M146456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN style="border: 0px;"&gt;I am working on Imx8mm evk and yocto project. (4.14.78_1.0.0_ga)&lt;BR /&gt;I have been trying ir-receiver solution.&lt;BR /&gt;The Remote Control is using the NEC IR Protocol.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;1. GPIO setting&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;UL style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em 30px;"&gt;   &lt;LI style="border: 0px; font-weight: inherit; margin: 0px 0px 0.5em;"&gt; &lt;P style="border: 0px; font-weight: inherit;"&gt;Edit fsl-imx8mm-evk.dts&lt;/P&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;{&amp;nbsp;&lt;/P&gt;     &lt;P&gt;&lt;/P&gt;     &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;    ir_recv {     &lt;BR /&gt;      &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;     compatible = "gpio-ir-receiver";      &lt;BR /&gt; gpios = &amp;lt;&amp;amp;gpio1 13 GPIO_ACTIVE_HIGH&amp;gt;;      &lt;BR /&gt; pinctrl-names = "default";      &lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ir&amp;gt;;     &lt;/BLOCKQUOTE&gt;     &lt;/BLOCKQUOTE&gt;     &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;    };    &lt;/BLOCKQUOTE&gt;     &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;      &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;       &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;        &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;       :        &lt;BR /&gt; :        &lt;BR /&gt; :       &lt;/BLOCKQUOTE&gt;       &lt;/BLOCKQUOTE&gt;      &lt;/BLOCKQUOTE&gt;     &lt;/BLOCKQUOTE&gt; };     &lt;P&gt;&lt;/P&gt;     &lt;P&gt;&lt;/P&gt;     &lt;P&gt;&amp;amp;iomuxc {&lt;/P&gt;     &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;    pinctrl-names = "default";     &lt;BR /&gt;pinctrl_ir: irgrp {     &lt;BR /&gt;      &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;     fsl,pins = &amp;lt;      &lt;BR /&gt; MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x1d6      &lt;BR /&gt; &amp;gt;;     &lt;/BLOCKQUOTE&gt; };    &lt;/BLOCKQUOTE&gt;     &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;      &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;       &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;        &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;         &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;/BLOCKQUOTE&gt;         &lt;SPAN style="font-family: inherit; font-weight: inherit;"&gt;:&lt;/SPAN&gt;       &lt;BR /&gt;         &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;/BLOCKQUOTE&gt;         &lt;SPAN style="font-family: inherit; font-weight: inherit;"&gt;:&lt;/SPAN&gt;       &lt;BR /&gt;       &lt;SPAN&gt;:&lt;/SPAN&gt;      &lt;/BLOCKQUOTE&gt;       &lt;/BLOCKQUOTE&gt;      &lt;/BLOCKQUOTE&gt;     &lt;/BLOCKQUOTE&gt;     &lt;P&gt;&lt;/P&gt;     &lt;P&gt;};&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt;   &lt;LI style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;Enable GPIO IR remote control&lt;/SPAN&gt;&lt;BR /&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;menuconfig ---&amp;gt; Device Drivers ---&amp;gt; Remote Controller devices ---&amp;gt; &amp;lt;*&amp;gt; GPIO IR remote control&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt;   &lt;LI style="border: 0px; font-weight: inherit;"&gt; &lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;GPIO1_13 status&lt;/SPAN&gt;&lt;/P&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;root@imx8mmevk:~# cat /sys/kernel/debug/gpio&lt;BR /&gt;gpiochip0: GPIOs 0-31, parent: platform/30200000.gpio, 30200000.gpio:&lt;BR /&gt;gpio-13 ( |gpio-ir-recv ) in hi IRQ&lt;BR /&gt;gpio-15 ( |cd ) in lo IRQ&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt; &lt;/UL&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;2. LIRC install&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;UL style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em 30px;"&gt;   &lt;LI style="border: 0px; font-weight: inherit; margin: 0px 0px 0.5em;"&gt; &lt;P style="border: 0px; font-weight: inherit; margin: 0px 0px 1em;"&gt;Edit the local.conf file&lt;/P&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;IMAGE_INSTALL_append = " lirc"&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt;   &lt;LI style="border: 0px; font-weight: inherit;"&gt; &lt;P style="border: 0px; font-weight: inherit;"&gt;lircd version and check lirc driver&lt;/P&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;root@imx8mmevk:~# lircd -version&lt;BR /&gt;lircd 0.9.4d&lt;BR /&gt;root@imx8mmevk:~# dmesg | grep "LIRC" -i&lt;BR /&gt;[ 1.455517] lirc_dev: IR Remote Control driver registered, major 236&lt;BR /&gt;[ 1.500490] IR LIRC bridge handler initialized&lt;BR /&gt;[ 1.535966] rc rc0: lirc_dev: driver ir-lirc-codec (gpio-rc-recv) registered at minor = 0&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt; &lt;/UL&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;3. TEST remote using mode2 command&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;UL style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em 30px;"&gt;   &lt;LI style="border: 0px; font-weight: inherit; margin: 0px 0px 0.5em;"&gt; &lt;P style="border: 0px; font-weight: inherit;"&gt;Stop and check status lirc driver&lt;/P&gt; &lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;/P&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;root@imx8mmevk:~# systemctl stop lircd.socket lircd.service&lt;/P&gt;     &lt;P&gt;root@imx8mmevk:~# systemctl status lircd.socket lircd.service&lt;BR /&gt;● lircd.socket&lt;BR /&gt; Loaded: loaded (/lib/systemd/system/lircd.socket; disabled; vendor preset: e&amp;gt;&lt;BR /&gt; Active: inactive (dead) since Thu 2019-09-26 07:17:02 UTC; 2min 19s ago&lt;BR /&gt; Listen: /run/lirc/lircd (Stream)&lt;/P&gt;     &lt;P&gt;Sep 26 06:59:56 imx8mmevk systemd[1]: Listening on lircd.socket.&lt;BR /&gt;Sep 26 07:17:02 imx8mmevk systemd[1]: Closed lircd.socket.&lt;/P&gt;     &lt;P&gt;● lircd.service - LIRC Infrared Signal Decoder&lt;BR /&gt; Loaded: loaded (/lib/systemd/system/lircd.service; enabled; vendor preset: e&amp;gt;&lt;BR /&gt; Active: inactive (dead) since Thu 2019-09-26 07:17:02 UTC; 2min 19s ago&lt;BR /&gt; Process: 3653 ExecStopPost=/bin/rm -fR /run/lirc (code=exited, status=0/SUCCE&amp;gt;&lt;BR /&gt; Process: 3652 ExecStopPost=/bin/rm -f /dev/lircd (code=exited, status=0/SUCCE&amp;gt;&lt;BR /&gt; Process: 3617 ExecStart=/usr/sbin/lircd --pidfile=/run/lirc/lircd.pid --devic&amp;gt;&lt;BR /&gt; Process: 3615 ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd (code=exited&amp;gt;&lt;BR /&gt; Process: 3603 ExecStartPre=/bin/rm -f /run/lirc/lircd (code=exited, status=0/&amp;gt;&lt;BR /&gt; Process: 3602 ExecStartPre=/bin/rm -f /dev/lircd (code=exited, status=0/SUCCE&amp;gt;&lt;BR /&gt; Process: 3601 ExecStartPre=/bin/mkdir -p /run/lirc (code=exited, status=0/SUC&amp;gt;&lt;BR /&gt; Main PID: 3622 (code=killed, signal=TERM)&lt;/P&gt;     &lt;P&gt;Sep 26 06:59:58 imx8mmevk systemd[1]: Starting LIRC Infrared Signal Decoder...&lt;BR /&gt;Sep 26 06:59:58 imx8mmevk systemd[1]: Started LIRC Infrared Signal Decoder.&lt;BR /&gt;Sep 26 07:17:02 imx8mmevk systemd[1]: Stopping LIRC Infrared Signal Decoder...&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt;   &lt;LI&gt;&lt;SPAN&gt;Run mode2 and test remote control&lt;/SPAN&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;root@imx8mmevk:~# mode2 --driver default --device /dev/lirc0&lt;BR /&gt;Using driver default on device /dev/lirc0&lt;BR /&gt;Trying device: /dev/lirc0&lt;BR /&gt;Using device: /dev/lirc0&lt;BR /&gt;Warning: Running as root.&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt;   &lt;LI style="color: #242729; background-color: #ffffff; border: 0px; font-weight: 400; margin: 0px 0px 1em;"&gt;Press button on my remote control (NEC protocol)    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;space 13301060&lt;BR /&gt;pulse 399019&lt;BR /&gt;space 9015&lt;BR /&gt;pulse 4474&lt;BR /&gt;space 594&lt;BR /&gt;pulse 1661&lt;BR /&gt;space 574&lt;BR /&gt;pulse 556&lt;BR /&gt;space 575&lt;BR /&gt;pulse 556&lt;BR /&gt;space 575&lt;BR /&gt;pulse 555&lt;BR /&gt;space 574&lt;BR /&gt;pulse 557&lt;BR /&gt;space 574&lt;BR /&gt;pulse 557&lt;BR /&gt;space 574&lt;BR /&gt;pulse 557&lt;BR /&gt;space 573&lt;BR /&gt;pulse 558&lt;BR /&gt;space 573&lt;BR /&gt;pulse 558&lt;BR /&gt;space 574&lt;BR /&gt;pulse 1663&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1663&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1663&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1663&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1665&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 573&lt;BR /&gt;pulse 558&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 573&lt;BR /&gt;pulse 558&lt;BR /&gt;space 572&lt;BR /&gt;pulse 558&lt;BR /&gt;space 572&lt;BR /&gt;pulse 558&lt;BR /&gt;space 572&lt;BR /&gt;pulse 558&lt;BR /&gt;space 573&lt;BR /&gt;pulse 557&lt;BR /&gt;space 572&lt;BR /&gt;pulse 559&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1665&lt;BR /&gt;space 571&lt;BR /&gt;pulse 558&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1663&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1665&lt;BR /&gt;space 571&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 572&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt; &lt;/UL&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;But, I don't understand first and last log.&lt;BR /&gt;space 13301060, space 572&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;BR /&gt;Start and End logic is High. (Check signal using logic analyzer)&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_17.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91348i6A0B6CB60CB87A0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_17.png" alt="pastedImage_17.png" /&gt;&lt;/span&gt;&lt;BR /&gt;But, mode2 first and last log is space..&lt;BR /&gt;I know 'space' is logic low time.&lt;BR /&gt;Is there anything wrong?&lt;BR /&gt;Please suggest me how can I supposed to solve.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2019 03:32:08 GMT</pubDate>
    <dc:creator>bbq56go</dc:creator>
    <dc:date>2019-10-31T03:32:08Z</dc:date>
    <item>
      <title>IMX8 gpio ir receiver using LIRC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-gpio-ir-receiver-using-LIRC/m-p/986183#M146456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN style="border: 0px;"&gt;I am working on Imx8mm evk and yocto project. (4.14.78_1.0.0_ga)&lt;BR /&gt;I have been trying ir-receiver solution.&lt;BR /&gt;The Remote Control is using the NEC IR Protocol.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;1. GPIO setting&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;UL style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em 30px;"&gt;   &lt;LI style="border: 0px; font-weight: inherit; margin: 0px 0px 0.5em;"&gt; &lt;P style="border: 0px; font-weight: inherit;"&gt;Edit fsl-imx8mm-evk.dts&lt;/P&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;{&amp;nbsp;&lt;/P&gt;     &lt;P&gt;&lt;/P&gt;     &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;    ir_recv {     &lt;BR /&gt;      &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;     compatible = "gpio-ir-receiver";      &lt;BR /&gt; gpios = &amp;lt;&amp;amp;gpio1 13 GPIO_ACTIVE_HIGH&amp;gt;;      &lt;BR /&gt; pinctrl-names = "default";      &lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ir&amp;gt;;     &lt;/BLOCKQUOTE&gt;     &lt;/BLOCKQUOTE&gt;     &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;    };    &lt;/BLOCKQUOTE&gt;     &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;      &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;       &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;        &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;       :        &lt;BR /&gt; :        &lt;BR /&gt; :       &lt;/BLOCKQUOTE&gt;       &lt;/BLOCKQUOTE&gt;      &lt;/BLOCKQUOTE&gt;     &lt;/BLOCKQUOTE&gt; };     &lt;P&gt;&lt;/P&gt;     &lt;P&gt;&lt;/P&gt;     &lt;P&gt;&amp;amp;iomuxc {&lt;/P&gt;     &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;    pinctrl-names = "default";     &lt;BR /&gt;pinctrl_ir: irgrp {     &lt;BR /&gt;      &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;     fsl,pins = &amp;lt;      &lt;BR /&gt; MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x1d6      &lt;BR /&gt; &amp;gt;;     &lt;/BLOCKQUOTE&gt; };    &lt;/BLOCKQUOTE&gt;     &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;      &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;       &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;        &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;         &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;/BLOCKQUOTE&gt;         &lt;SPAN style="font-family: inherit; font-weight: inherit;"&gt;:&lt;/SPAN&gt;       &lt;BR /&gt;         &lt;BLOCKQUOTE style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;/BLOCKQUOTE&gt;         &lt;SPAN style="font-family: inherit; font-weight: inherit;"&gt;:&lt;/SPAN&gt;       &lt;BR /&gt;       &lt;SPAN&gt;:&lt;/SPAN&gt;      &lt;/BLOCKQUOTE&gt;       &lt;/BLOCKQUOTE&gt;      &lt;/BLOCKQUOTE&gt;     &lt;/BLOCKQUOTE&gt;     &lt;P&gt;&lt;/P&gt;     &lt;P&gt;};&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt;   &lt;LI style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;Enable GPIO IR remote control&lt;/SPAN&gt;&lt;BR /&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;menuconfig ---&amp;gt; Device Drivers ---&amp;gt; Remote Controller devices ---&amp;gt; &amp;lt;*&amp;gt; GPIO IR remote control&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt;   &lt;LI style="border: 0px; font-weight: inherit;"&gt; &lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;GPIO1_13 status&lt;/SPAN&gt;&lt;/P&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;root@imx8mmevk:~# cat /sys/kernel/debug/gpio&lt;BR /&gt;gpiochip0: GPIOs 0-31, parent: platform/30200000.gpio, 30200000.gpio:&lt;BR /&gt;gpio-13 ( |gpio-ir-recv ) in hi IRQ&lt;BR /&gt;gpio-15 ( |cd ) in lo IRQ&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt; &lt;/UL&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;2. LIRC install&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;UL style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em 30px;"&gt;   &lt;LI style="border: 0px; font-weight: inherit; margin: 0px 0px 0.5em;"&gt; &lt;P style="border: 0px; font-weight: inherit; margin: 0px 0px 1em;"&gt;Edit the local.conf file&lt;/P&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;IMAGE_INSTALL_append = " lirc"&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt;   &lt;LI style="border: 0px; font-weight: inherit;"&gt; &lt;P style="border: 0px; font-weight: inherit;"&gt;lircd version and check lirc driver&lt;/P&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;root@imx8mmevk:~# lircd -version&lt;BR /&gt;lircd 0.9.4d&lt;BR /&gt;root@imx8mmevk:~# dmesg | grep "LIRC" -i&lt;BR /&gt;[ 1.455517] lirc_dev: IR Remote Control driver registered, major 236&lt;BR /&gt;[ 1.500490] IR LIRC bridge handler initialized&lt;BR /&gt;[ 1.535966] rc rc0: lirc_dev: driver ir-lirc-codec (gpio-rc-recv) registered at minor = 0&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt; &lt;/UL&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;3. TEST remote using mode2 command&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;UL style="background-color: #ffffff; border: 0px; margin: 0px 0px 1em 30px;"&gt;   &lt;LI style="border: 0px; font-weight: inherit; margin: 0px 0px 0.5em;"&gt; &lt;P style="border: 0px; font-weight: inherit;"&gt;Stop and check status lirc driver&lt;/P&gt; &lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;/P&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;root@imx8mmevk:~# systemctl stop lircd.socket lircd.service&lt;/P&gt;     &lt;P&gt;root@imx8mmevk:~# systemctl status lircd.socket lircd.service&lt;BR /&gt;● lircd.socket&lt;BR /&gt; Loaded: loaded (/lib/systemd/system/lircd.socket; disabled; vendor preset: e&amp;gt;&lt;BR /&gt; Active: inactive (dead) since Thu 2019-09-26 07:17:02 UTC; 2min 19s ago&lt;BR /&gt; Listen: /run/lirc/lircd (Stream)&lt;/P&gt;     &lt;P&gt;Sep 26 06:59:56 imx8mmevk systemd[1]: Listening on lircd.socket.&lt;BR /&gt;Sep 26 07:17:02 imx8mmevk systemd[1]: Closed lircd.socket.&lt;/P&gt;     &lt;P&gt;● lircd.service - LIRC Infrared Signal Decoder&lt;BR /&gt; Loaded: loaded (/lib/systemd/system/lircd.service; enabled; vendor preset: e&amp;gt;&lt;BR /&gt; Active: inactive (dead) since Thu 2019-09-26 07:17:02 UTC; 2min 19s ago&lt;BR /&gt; Process: 3653 ExecStopPost=/bin/rm -fR /run/lirc (code=exited, status=0/SUCCE&amp;gt;&lt;BR /&gt; Process: 3652 ExecStopPost=/bin/rm -f /dev/lircd (code=exited, status=0/SUCCE&amp;gt;&lt;BR /&gt; Process: 3617 ExecStart=/usr/sbin/lircd --pidfile=/run/lirc/lircd.pid --devic&amp;gt;&lt;BR /&gt; Process: 3615 ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd (code=exited&amp;gt;&lt;BR /&gt; Process: 3603 ExecStartPre=/bin/rm -f /run/lirc/lircd (code=exited, status=0/&amp;gt;&lt;BR /&gt; Process: 3602 ExecStartPre=/bin/rm -f /dev/lircd (code=exited, status=0/SUCCE&amp;gt;&lt;BR /&gt; Process: 3601 ExecStartPre=/bin/mkdir -p /run/lirc (code=exited, status=0/SUC&amp;gt;&lt;BR /&gt; Main PID: 3622 (code=killed, signal=TERM)&lt;/P&gt;     &lt;P&gt;Sep 26 06:59:58 imx8mmevk systemd[1]: Starting LIRC Infrared Signal Decoder...&lt;BR /&gt;Sep 26 06:59:58 imx8mmevk systemd[1]: Started LIRC Infrared Signal Decoder.&lt;BR /&gt;Sep 26 07:17:02 imx8mmevk systemd[1]: Stopping LIRC Infrared Signal Decoder...&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt;   &lt;LI&gt;&lt;SPAN&gt;Run mode2 and test remote control&lt;/SPAN&gt;    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;root@imx8mmevk:~# mode2 --driver default --device /dev/lirc0&lt;BR /&gt;Using driver default on device /dev/lirc0&lt;BR /&gt;Trying device: /dev/lirc0&lt;BR /&gt;Using device: /dev/lirc0&lt;BR /&gt;Warning: Running as root.&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt;   &lt;LI style="color: #242729; background-color: #ffffff; border: 0px; font-weight: 400; margin: 0px 0px 1em;"&gt;Press button on my remote control (NEC protocol)    &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;     &lt;P&gt;space 13301060&lt;BR /&gt;pulse 399019&lt;BR /&gt;space 9015&lt;BR /&gt;pulse 4474&lt;BR /&gt;space 594&lt;BR /&gt;pulse 1661&lt;BR /&gt;space 574&lt;BR /&gt;pulse 556&lt;BR /&gt;space 575&lt;BR /&gt;pulse 556&lt;BR /&gt;space 575&lt;BR /&gt;pulse 555&lt;BR /&gt;space 574&lt;BR /&gt;pulse 557&lt;BR /&gt;space 574&lt;BR /&gt;pulse 557&lt;BR /&gt;space 574&lt;BR /&gt;pulse 557&lt;BR /&gt;space 573&lt;BR /&gt;pulse 558&lt;BR /&gt;space 573&lt;BR /&gt;pulse 558&lt;BR /&gt;space 574&lt;BR /&gt;pulse 1663&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1663&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1663&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1663&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1665&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 573&lt;BR /&gt;pulse 558&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 573&lt;BR /&gt;pulse 558&lt;BR /&gt;space 572&lt;BR /&gt;pulse 558&lt;BR /&gt;space 572&lt;BR /&gt;pulse 558&lt;BR /&gt;space 572&lt;BR /&gt;pulse 558&lt;BR /&gt;space 573&lt;BR /&gt;pulse 557&lt;BR /&gt;space 572&lt;BR /&gt;pulse 559&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1665&lt;BR /&gt;space 571&lt;BR /&gt;pulse 558&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 573&lt;BR /&gt;pulse 1663&lt;BR /&gt;space 572&lt;BR /&gt;pulse 1665&lt;BR /&gt;space 571&lt;BR /&gt;pulse 1664&lt;BR /&gt;space 572&lt;/P&gt;    &lt;/BLOCKQUOTE&gt; &lt;/LI&gt; &lt;/UL&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;But, I don't understand first and last log.&lt;BR /&gt;space 13301060, space 572&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;BR /&gt;Start and End logic is High. (Check signal using logic analyzer)&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_17.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91348i6A0B6CB60CB87A0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_17.png" alt="pastedImage_17.png" /&gt;&lt;/span&gt;&lt;BR /&gt;But, mode2 first and last log is space..&lt;BR /&gt;I know 'space' is logic low time.&lt;BR /&gt;Is there anything wrong?&lt;BR /&gt;Please suggest me how can I supposed to solve.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 03:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8-gpio-ir-receiver-using-LIRC/m-p/986183#M146456</guid>
      <dc:creator>bbq56go</dc:creator>
      <dc:date>2019-10-31T03:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8 gpio ir receiver using LIRC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-gpio-ir-receiver-using-LIRC/m-p/986184#M146457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JaeHo&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;one can check lirc manual &lt;A class="link-titled" href="http://www.lirc.org/html/configuration-guide.html" title="http://www.lirc.org/html/configuration-guide.html"&gt;LIRC - Linux Infrared Remote Control&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;and post issue on lirc wiki : &lt;A class="link-titled" href="https://wiki.archlinux.org/index.php/LIRC" title="https://wiki.archlinux.org/index.php/LIRC"&gt;LIRC - ArchWiki&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2019 00:36:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8-gpio-ir-receiver-using-LIRC/m-p/986184#M146457</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-11-01T00:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8 gpio ir receiver using LIRC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-gpio-ir-receiver-using-LIRC/m-p/1159970#M162623</link>
      <description>&lt;P&gt;Hi Igor,&lt;BR /&gt;&lt;BR /&gt;I too facing the same problem. If you already fixed the issue could you please share your experience?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 08:34:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8-gpio-ir-receiver-using-LIRC/m-p/1159970#M162623</guid>
      <dc:creator>gpsri</dc:creator>
      <dc:date>2020-09-28T08:34:29Z</dc:date>
    </item>
  </channel>
</rss>

