RTCS socket re connect() and return 1704

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

RTCS socket re connect() and return 1704

498 次查看
stuartguo
Contributor I

I run the RTCS on MK60 to transfer data from uart to ethernet , following the order : socket(), bind(), connect(), send() ,shutdown(ABORT_CONNECTION);then re-socket() re-bind() are successful, re-connect() is error and return 1704.

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

379 次查看
soledad
NXP Employee
NXP Employee

Hello Stuart,

Could you please let me know which MQX version are you using??

For MQX 4.2 you can check the eth_to_serial example (C:\Freescale\Freescale_MQX_4_2\rtcs\examples). The eth_to_serial example code demonstrates a simple character passing between UART console and socket.

For MQX for KSDK please check the eth_to_serial example at the path: C:\Freescale\KSDK_1.2.0\middleware\tcpip\rtcs\examples\eth_to_serial

You can use these example as reference.

Have a nice day!

Regards

Sol

0 项奖励
回复