【i.mx.rt1061】 how to use the two enet port independently

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

【i.mx.rt1061】 how to use the two enet port independently

1,002 Views
bobhi009
Contributor I

Hi:

    SDK ver: 2.6.2_evkb_imxrt1061 

I want to use lwip to implement 2 independent tcp servers, each server uses an independent network port.

But the tcp client cannot connect to the server of the enet2 network port , when the Enet1 port is not plugged into the network cable.

bobhi009_0-1631700778814.png

I tracked the code and found, the problem was caused by the value of flags.

the flags&TCP_ACK is "0" when the Enet1 port is not plugged into the network cable.

So, how to use the two enet port independently. 

0 Kudos
3 Replies

989 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
According to your statement, we can find the client doesn't send an ACK after receiving the previous ACK from the server during the three-way handshake process, in another word, the establish process fail to complete.
So the problem may be related to the client and it'd be better if you can capture the TCP transmit frame.
Have a great day,
TIC

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

985 Views
bobhi009
Contributor I

Hi:

    Thanks for your replay.

I found that the client can not recv the ack from server when the Enet1 port is not plugged into the network cable.

bobhi009_0-1631762894924.png

 

 

0 Kudos

979 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply, however, it's hard to figure the issue out by relying on the above figue.
So I was wondering if you can introduce the testing environment, for instance, EVK board, demo code, deploy the TCP client, etc.
Looking forward to your reply.
Have a great day.
TIC

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos