Changes

Jump to: navigation, search

Orange Pi 5 Plus

339 bytes added, 09:31, 7 June 2023
Test method for infrared receiving
<ol style="list-style-type: decimal;">
<li><p>First run the '''evtest''' command in the command line, and then select the device serial number corresponding to the '''febf0030.pwm'''</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''evtest'''</p>
<p>No device specified, trying to scan all of /dev/input/event*</p>
<p>Not running as root, no devices may be available.</p>
<p>Available devices:</p>
<p>'''/dev/input/event0: febf0030.pwm<span style="color:#FF0000">class10</span>'''</p>
<p>/dev/input/event1: rk805 pwrkey</p>
<p>/dev/input/event2: rockchip,dp0 rockchip,dp0</p>
<p>/dev/input/event10: SONiX USB Keyboard System Control</p>
<p>/dev/input/event11: PixArt USB Optical Mouse</p>
<p>Select the device event number [0-11]: '''0 #Select the serial number corresponding to Febf0030.pwm here<span classstyle="markcolor:#FF0000">Febf0030.pwmclass10</span> here'''</p>  
<p>Input driver version is 1.0.1</p>
<p>Input device ID: bus 0x19 vendor 0x524b product 0x6 version 0x100</p>
<p>Input device name: &quot;febf0030.pwm&quot;</p>
<p>Supported events:</p>
:<p>Event type 0 (EV_SYN)</p>:<p>Event type 1 (EV_KEY)</p>::<p>Event code 2 (KEY_1)</p>::<p>Event code 3 (KEY_2)</p>::<p>Event code 4 (KEY_3)</p>::<p>Event code 5 (KEY_4)</p>::<p>Event code 6 (KEY_5)</p>::<p>Event code 7 (KEY_6)</p>::<p>Event code 8 (KEY_7)</p>::<p>Event code 9 (KEY_8)</p>::<p>Event code 10 (KEY_9)</p>::<p>Event code 11 (KEY_0)</p>::<p>Event code 28 (KEY_ENTER)</p>::<p>Event code 102 (KEY_HOME)</p>::<p>Event code 103 (KEY_UP)</p>::<p>Event code 105 (KEY_LEFT)</p>::<p>Event code 106 (KEY_RIGHT)</p>::<p>Event code 108 (KEY_DOWN)</p>::<p>Event code 113 (KEY_MUTE)</p>::<p>Event code 114 (KEY_VOLUMEDOWN)</p>::<p>Event code 115 (KEY_VOLUMEUP)</p>::<p>Event code 116 (KEY_POWER)</p>::<p>Event code 139 (KEY_MENU)</p>::<p>Event code 143 (KEY_WAKEUP)</p>::<p>Event code 158 (KEY_BACK)</p>::<p>Event code 217 (KEY_SEARCH)</p>::<p>Event code 388 (KEY_TEXT)</p>
<p>Properties:</p>
<p>Testing ... (interrupt to exit)</p>|}</li>
<li><p>Then need to prepare an infrared remote control shown in the figure below</p>
 {| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big><p>'''<span style="color:#FF0000">Note: The Linux system provided by the Orange School only supports the remote control provided by the Orange School. The remote control of the TV or air conditioner cannot be used。used.</span>'''</p></big>|}
<div class="figure">
<p>[[File:media/image445.png|346x92px]]</p></li>
<li><p>Then you can see that '''evtest''' will print the received key value</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>......</p>
<p>Event code 217 (KEY_SEARCH)</p>
<p>Event: time 1684152330.761986, -------------- SYN_REPORT ------------</p>
<p>Event: time 1684152330.944243, type 1 (EV_KEY), code 116 (KEY_POWER), value 0</p>
<p>Event: time 1684152330.944243, -------------- SYN_REPORT ------------</p>|}</li></ol>
<span id="the-method-to-use-rtc"></span>
 
== The method to use RTC ==

Navigation menu