how to check internet link in frdmk64 (KDS 2.0)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

how to check internet link in frdmk64 (KDS 2.0)

跳至解决方案
1,050 次查看
sudhakarp
Contributor V

hi,

HOW to know LAN connected or not in frdmk64. i mean link is there or not.

thanks and regards,

sudhakar p

标签 (1)
0 项奖励
回复
1 解答
921 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi,

I usually use result = ipcfg_get_link_active(BSP_DEFAULT_ENET_DEVICE); It returns the status of the link (active or not).

Please note that this function should be called after ipcfg_init_device()

Regards,

Carlos

在原帖中查看解决方案

0 项奖励
回复
2 回复数
922 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi,

I usually use result = ipcfg_get_link_active(BSP_DEFAULT_ENET_DEVICE); It returns the status of the link (active or not).

Please note that this function should be called after ipcfg_init_device()

Regards,

Carlos

0 项奖励
回复
921 次查看
DavidS
NXP Employee
NXP Employee

Hi Sudhakar,

I have code at following Community Post that shows how to wait for link/cable attach before issuing DHCP request.

Error[Li005]: no definition for "gsName" when trying to use DHCP

Regards,

David