MQX 4.1.1 RTCS ipcfg_bind_staticip sometimes returning IPCFG_ERROR_BIND

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MQX 4.1.1 RTCS ipcfg_bind_staticip sometimes returning IPCFG_ERROR_BIND

ソリューションへジャンプ
1,234件の閲覧回数
thiagow
Contributor III

I've a application that has a web interface to configure the network paramters. When I change the IPv4 number to use a static address, sometimes when I call ipcfg_bind_staticip() function passing BSP_DEFAULT_ENET_DEVICE and the number 167772616   ( for setting the 10.0.1.200 ip number)  I receive IPCFG_ERROR_BIND instead the expect success message that is IPCFG_ERROR_OK and the IP number is not set. Strange is that if I try to run the same function again I receive IPCFG_ERROR_OK.   The other strange behavior is that this problem occours about in 30 % of the times.

Did anybody realized this?

ラベル(1)
1 解決策
977件の閲覧回数
soledad
NXP Employee
NXP Employee

Hello thiagow,

Please try unbinding first address by ipcfg_unbind() function and after that bind new ip address by ipcfg_bind_staticip() function.

If you need more than one IP address for your interface, please use functions RTCS_if_bind() instead of ipcfg_bind.

I hope it helps.
Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

2 返答(返信)
978件の閲覧回数
soledad
NXP Employee
NXP Employee

Hello thiagow,

Please try unbinding first address by ipcfg_unbind() function and after that bind new ip address by ipcfg_bind_staticip() function.

If you need more than one IP address for your interface, please use functions RTCS_if_bind() instead of ipcfg_bind.

I hope it helps.
Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

977件の閲覧回数
thiagow
Contributor III

Thanks,

I will test your suggestion and I'll post the results soon.

Best Regards.

0 件の賞賛
返信