beautypg.com

Appendix d: programming lan bypass, Appendix d, Programming lan bypass – Lanner FW-7540 User Manual

Page 42

background image

37

Programming LAN Bypass

Appendix D

Network Application Platforms

Appendix D:

Programming LAN Bypass

The bypass function is used to link two independent

Ethernet ports when the system fails or powers off. This

means if your system is equipped with a LAN Bypass

function, a system failure or power-off event will not

interrupt your network traffic. There are typically two

statuses for the bypass, one is “Normal” state and the

other is “Bypass” status. Lanner provides three methods to

enable the LAN Bypass function:

Note: This Bypass in FW-7540 complies with

Lanner Generation 2 bypass

With the BIOS menu

1.

Bypass Settings

System Status

LAN Bypass for Port1 and Port 2 LAN Bypass

1&2 when

power off

PWR ON

Enabled

Disabled

Enabled

Bypass

Non-Bypass

PWR OFF

Bypass

Bypass

Bypass Settings

System Status

LAN Bypass for Port1 and Port 2 LAN Bypass

1&2 when

power off

PWR ON

Enabled

Disabled

Disabled

Non-Bypass Non-Bypass

PWR OFF

Non-Bypass Non-Bypass

A sample program to control the GPIO

2.

A watchdog timer can also be used to control the LAN

3.

Bypass function when the system fails or powers off.

For sample code, look for 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)

Note: For more information, refer to the README

file contained within the program’s folder.