What minimum socket size should I select for the UDP socket
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: What minimum socket size should I select for the UDP socket
by Coccoliso ·
The magic packet is a broadcast frame containing anywhere within its payload 6 bytes of all 255 (FF FF FF FF FF FF in hexadecimal), followed by sixteen repetitions of the target computer’s 48-bit MAC address, for a total of 102 bytes but the size of the buffer of the W5500 can be set in steps of 1K then the minimum size for this use remains 1K.
Sn_RXBUF_SIZE = 1
Sn_TXBUF_SIZE = 1
As usual in receiving the first 8 bytes of the buffer are:
4 the ip address of the sender
2 port of the sender
2 the number of received bytes number to process