User Manual Orange Pi Zero 3

  Features   |  Use   |    Linux     |  Linux SDK   |  Android   |  Android SRC   |

RU          EN  

Chapt 3. Instructions for use of Debian/Ubuntu Server and Xfce desktop system
Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122  


3.13. Infrared receiving test

  • 1) First, you need to insert the 13pin expansion board into the 13pin interface of the Orange Pi development board. After inserting the expansion board, the development board can use the infrared receiving function


    Img 3.102

  • 2) Install ir-keytable infrared testing software

    orangepi@orangepi:~$ sudo apt update
    orangepi@orangepi:~$ sudo apt-get install -y ir-keytable

  • 3) Then execute ir-keytable to view the information of the infrared device

    a. linux5.4 system output is as follows

    
    orangepi@orangepi:~$ ir-keytable
    Found /sys/class/rc/rc0/ (/dev/input/event1) with:

    Driver: sunxi-rc-recv, table: rc_map_sunxi lirc device: /dev/lirc0 Supported protocols: lirc nec Enabled protocols: lirc nec Name: sunxi ir recv bus: 25, vendor/product: 0001:0001, version: 0x0100 Repeat delay = 500 ms, repeat period = 125 ms

    b. The output of the linux6.1 system is as follows

    
    orangepi@orangepi:~$ ir-keytable
    Found /sys/class/rc/rc0/ with:
    Name: sunxi-ir
    Driver: sunxi-ir
    Default keymap: rc-empty
    Input device: /dev/input/event5
    LIRC device: /dev/lirc0
    Attached BPF protocols: Operation not permitted
    Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp
    xmp imon rc-mm
    Enabled kernel protocols: lirc
    bus: 25, vendor/product: 0001:0001, version: 0x0100
    Repeat delay = 500 ms, repeat period = 125 ms
    

  • 4) Before testing the infrared receiving function, you need to prepare an infrared remote controller dedicated to Orange Pi, other remote controllers do not support it



    Img 3.103

  • 5) Then enter the ir-keytable -t command in the terminal, and then use the infrared remote control to press the button against the infrared receiver of the Orange Pi development board to see the received key code in the terminal

    a. linux5.4 system output is as follows

    orangepi@orangepi:~$ sudo ir-keytable -t
    Testing events. Please, press CTRL-C to abort.
     1598339152.260376: event type EV_MSC(0x04): scancode = 0xfb0413  1598339152.260376: event type EV_SYN(0x00).
     1598339152.914715: event type EV_MSC(0x04): scancode = 0xfb0410

    b. linux6.1 system output is as follows

    
    orangepi@orangepi:~$ sudo ir-keytable -c -p NEC -t
    Old keytable cleared
    Protocols changed to nec
    Testing events. Please, press CTRL-C to abort.
     202.063219: lirc protocol(nec): scancode = 0x45c
     202.063249: event type EV_MSC(0x04): scancode = 0x45c
     202.063249: event type EV_SYN(0x00).
    

     <         > 


  • Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122