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,296件の閲覧回数
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 返信

946件の閲覧回数
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 件の賞賛
返信