W5300 DPORTR 값이 이상합니다.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: W5300 DPORTR 값이 이상합니다.
by Eugeny ·
0x2710 is exact hexadecimal representation of the decimal 10000. Thus port number must be correct, but the display radix is different.
Edit: seems the above is the problem in the translator I used, and it was not a question
but a statement.
To my understanding, your application driving W5300 must set DPORT value. Thus value is writable. The datasheet says the following
And WO means write only. This register is not designed to be readable, and value you read is not guaranteed to be correct by design
RE: RE: W5300 DPORTR 값이 이상합니다.
by controlplus ·
Hi, Eugeny
fully understand DPORTR is WO register
and thank you so much.
following is my test configuration.
[PC: TCP Client using port=10000 or others] ----connect to W5300----> [W5300: Listen port 5000]
my question is that how can i figure out client port number running on W5300 side firmware.
RE: W5300 DPORTR 값이 이상합니다.
by Eugeny ·
For TCP server mode you must set up socket’s source port for W5300 to listen on. When client successfully connects to W5300, socket’s destination port number is set automatically, you do NOT need to set it manually. This DPORTR port number is used by the W5300 socket to send packets to the client matching client’s socket properties so that client can understand its exact socket it received packet for.
This is really not covered by the datasheet. Datasheet only says that you must set source port, but nothing about what to do with destination port. The answer is: you do not need to do anything on destination port, it is already set properly when connection from the client is established.
RE: W5300 DPORTR 값이 이상합니다.
by controlplus ·
Currently, communication between W5300 TCP server and PC client is normal.
DPORTR and destination port (PC client port) are different (except MSB), but communication is fine.
Wireshark shows exact port numbers.
I was just wondering if there is a way to know the port number of the PC client from the W5300 side firmware.
As you mentioned it wasn’t explained in the datasheet.
Thank you for your answer.