beautypg.com

Lanner LEC-2026 User Manual

Page 65

background image

LEC-2026

65

Lanner also provides sample code for bypass control with WDT via

programming. For sample code, look in the LAN_Bypass_Watchdog
directory under Driver and Manual CD.

Follow these procedures to run the program:
1. Compile source code on Linux platform first with the following
command:


# gcc wdbp.c -o wdbp

2. Execute the program:

#./wdbp

3. Commands:

Enable the bypass

# wdbp.exe –f

Set Watchdog Timer. This command will set the time interval at which
the counter will start count down.

# wdbp.exe -wl xxx (xxx: 1-255 sec for timer count down)

Reset Watchdog Timer. This command will reset the watchdog timer’s
counter and the bypass status to non-bypass.
#wdbp.exe -wr xxx (xxx: 1-255 sec for timer count down)