Unable to change from dhcp bind to static ip when no dhcp server - device busy

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

Unable to change from dhcp bind to static ip when no dhcp server - device busy

1,290 次查看
admin
Specialist II

Hi all,

I'm experiencing problems when trying to apply a static ip. The device is configured from start up to poll an ip from a DHCP server (by ipcfg_bind_dhcp). Changing to a fixed IP (using ipcfg_unbind and ipcfg_bind_staticip) is no problem if a server exists in the network however otherwise both functions return IPCFG_BUSY.

When going deeper into the code it looks like that the request_semaphore is not freed and polling for it fails.

What am I doing wrong?

Many thanks in advance

Ren

标签 (1)
标记 (5)
0 项奖励
回复
1 回复

940 次查看
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Ren,

Have you tried to use ipcfg_bind_dhcp_wait() instead? Make sure that the second parameter is TRUE. This will cause to try auto-ip in case the DHCP request fails.

Hope this helps,

Regards,

Garabo

0 项奖励
回复