The GW102 gateway provides two buttons with the functions of, RST system reset and USR user customization. the USR user customization button allows the user to customize the related functions according to the application layer software. In addition, if the system is powered on or reset after long pressing the USR button, the system will boot from the Micro SD card. Users can boot the system from the SD card to update the program in Flash.

The reset buttons are shown below:

gw102-resetkey.png

Functional buttons are shown as follows:
gw102-funkey.png

Shell silkscreen nameDescription
RSTReset,Hardware reset button
FUNUSR,User-defined functions

 

Using the evtest Command to Test USR Keys

root@gw102d512e4:~# evtest /dev/input/event1
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio-keys"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 2 (KEY_1)
Properties:
Testing ... (interrupt to exit)
Event: time 1642542046.009682, type 1 (EV_KEY), code 2 (KEY_1), value 1
Event: time 1642542046.009682, -------------- SYN_REPORT ------------
Event: time 1642542046.179647, type 1 (EV_KEY), code 2 (KEY_1), value 0
Event: time 1642542046.179647, -------------- SYN_REPORT ------------
Event: time 1642542046.479690, type 1 (EV_KEY), code 2 (KEY_1), value 1
Event: time 1642542046.479690, -------------- SYN_REPORT ------------
Event: time 1642542046.519659, type 1 (EV_KEY), code 2 (KEY_1), value 0
Event: time 1642542046.519659, -------------- SYN_REPORT ------------

value1 is pressed and value 0 is released.

作者:SteveChen  创建时间:2025-04-22 22:45
最后编辑:SteveChen  更新时间:2025-04-23 00:39
上一篇:
下一篇: