31
Advanced LAN Bypass User Manual
Chapter 3
L
IBLBPCU
-ADVANCED
LAN BYPASS
LIBRARY
3.7.5.3
lbp_err lbp_nic_wdt_toggle(int segment)
Toggles the toggle pin for a specified segment to strobe the WDT in toggle pin mode.
Please refer to Section 2.5.2 for details on toggle pin mode.
Toggle pin mode needs to be enabled and armed on this segment for this command
to take effect.
Returns 0 on success or the following error codes in the event of an error:
3.7.6
LBP FW Upgrade
3.7.6.1
lbp_err lbp_check_upgrade_image(char *image_file)
Checks the integrity of the FW upgrade image.
This function validates whether the FW upgrade image is compatible with the LAN
Bypass MCU before starting the FW upgrade.
Returns 0 on success or the following error codes in the event of an error:
3.7.6.2
lbp_err lbp_get_fw_mode(int segment, int *mode)
Returns the current FW upgrade status.
This function is intended for debugging purposes during FW upgrade.
Returns 0 on success or the following error codes in the event of an error:
Table 3.22: API function "lbp_start_wdt_by_toggle" Error Codes
Name
Error Code
LBP_ERR_INTERFACE_OPEN
0x89
LBP_ERR_FW_NRDY
0x8A
LBP_ERR_FW_CS
0x8B
LBP_ERR_PARAM_OUT_OF_BOUND
0x93
LBP_ERR_LBP_INIT
0x95
LBP_ERR_COMMAND_NOT_SUPPORT
0x96
Table 3.23: API function "lbp_nic_wdt_toggle"
Name
Error Code
LBP_ERR_PARAM_OUT_OF_BOUND
0x93
LBP_ERR_LBP_INIT
0x95
Table 3.24: API function "lbp_check_upgrade_image" Error Codes
Name
Error Code
LBP_ERR_OPEN_FILE
0x80
LBP_ERR_DATA_FORMAT
0x8C
LBP_ERR_PARAM_NULL_POINTER 0x94
Table 3.25: API function "lbp_get_fw_mode" Error Codes
Name
Error Code
LBP_ERR_INTERFACE_OPEN
0x89
LBP_ERR_FW_NRDY
0x8A
LBP_ERR_FW_CS
0x8B
LBP_ERR_PARAM_OUT_OF_BOUND 0x93
LBP_ERR_PARAM_NULL_POINTER 0x94
LBP_ERR_LBP_INIT
0x95
Summary of Contents for LAN Bypass
Page 1: ...User Manual Advantech Advanced LAN Bypass...
Page 4: ...Advanced LAN Bypass User Manual iv...
Page 10: ...Advanced LAN Bypass User Manual x...
Page 11: ...Chapter 1 1 ADVANCED LAN BYPASS...
Page 14: ...Advanced LAN Bypass User Manual 4...
Page 15: ...Chapter 2 2 OVERVIEW...
Page 26: ...Advanced LAN Bypass User Manual 16...
Page 27: ...Chapter 3 3 LIBLBPCU ADVANCED LAN BYPASS LIBRARY...
Page 51: ...Chapter 4 4 LBPCU...
Page 79: ...Appendix A A OS limitation...
Page 81: ...71 Advanced LAN Bypass User Manual Appendix A OS limitation...