User Tools

Site Tools


products:w5100s:application:udp_function

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
products:w5100s:application:udp_function [2018/03/28 13:44]
ekkim
products:w5100s:application:udp_function [2018/03/28 13:46]
ekkim
Line 83: Line 83:
 == Check received data == == Check received data ==
 Check the reception of UDP data from destination. User can also check for received data via TCP communication. It is strongly recommended to use the second method because of the same reasoning from TCP. Please refer to the “TCP SERVER” section. Check the reception of UDP data from destination. User can also check for received data via TCP communication. It is strongly recommended to use the second method because of the same reasoning from TCP. Please refer to the “TCP SERVER” section.
-[[http://​wizwiki.net/​wiki/​doku.php?​id=products:​w5500:​application:​tcp_function|TCP SERVER]]+[[http://​wizwiki.net/​wiki/​doku.php?​id=products:​W5100S:​application:​tcp_function|TCP SERVER]]
  
 <code c> <code c>
Line 212: Line 212:
 http://​www.iana.org/​assignments/​multicast-addresses).\\ http://​www.iana.org/​assignments/​multicast-addresses).\\
 When selecting, the upper 23bit of 6bytes ‘Group hardware address’ and the 4bytes ‘Group IP address’ must be the same. For example, if the user selects the ‘Group IP address’ to “244.1.1.11,​” the ‘Group hardware address’ is selected to “01:​00:​5e:​01:​01:​0b.” Please refer to the “RFC1112” (http://​www.ietf.org/​rfc.html).\\ When selecting, the upper 23bit of 6bytes ‘Group hardware address’ and the 4bytes ‘Group IP address’ must be the same. For example, if the user selects the ‘Group IP address’ to “244.1.1.11,​” the ‘Group hardware address’ is selected to “01:​00:​5e:​01:​01:​0b.” Please refer to the “RFC1112” (http://​www.ietf.org/​rfc.html).\\
-In the W5500, IGMP processing to register the multicast-group is internally (automatically) processed. When the user opens the Socket n with multicast mode, the “Join” message is internally transmitted. If the user closes it, the “Leave” message is internally transmitted. After the SOCKET opens, the “Report” message is periodically and internally transmitted when the user communicates.\\ +In the W5100S, IGMP processing to register the multicast-group is internally (automatically) processed. When the user opens the Socket n with multicast mode, the “Join” message is internally transmitted. If the user closes it, the “Leave” message is internally transmitted. After the SOCKET opens, the “Report” message is periodically and internally transmitted when the user communicates.\\ 
-The W5500 support IGMP version 1 and version 2 only. If user wants use an updated version, the host processes IGMP directly by using the IPRAW mode SOCKET.+The W5100S ​support IGMP version 1 and version 2 only. If user wants use an updated version, the host processes IGMP directly by using the IPRAW mode SOCKET.
  
 == SOCKET Initialization == == SOCKET Initialization ==
Line 263: Line 263:
 { {
 /* copy upper_size bytes of source_addr to destination_address */ /* copy upper_size bytes of source_addr to destination_address */
-upper_size = (gSn_TX_MASK + 1) – dst_mask;+upper_size = (gSn_TX_MASK + 1) dst_mask;
 memcpy((0x0000 + source_addr),​ (0x0000 + dst_ptr), upper_size);​ memcpy((0x0000 + source_addr),​ (0x0000 + dst_ptr), upper_size);​
 /* update source_addr*/​ /* update source_addr*/​
 source_addr += upper_size; source_addr += upper_size;
 /* copy left_size bytes of source_addr to gSn_TX_BASE */ /* copy left_size bytes of source_addr to gSn_TX_BASE */
-left_size = len – upper_size;+left_size = len upper_size;
 memcpy( source_addr,​ gSn_TX_BASE,​ left_size); memcpy( source_addr,​ gSn_TX_BASE,​ left_size);
 } }
Line 295: Line 295:
 Refer to the “Unicast & Broadcast.” section. Refer to the “Unicast & Broadcast.” section.
 [[http://​wizwiki.net/​wiki/​doku.php?​id=products:​w5100s:​application:​udp_function#​unicast_and_broadcast|Unicast & Broadcast]] [[http://​wizwiki.net/​wiki/​doku.php?​id=products:​w5100s:​application:​udp_function#​unicast_and_broadcast|Unicast & Broadcast]]
- 
  
products/w5100s/application/udp_function.txt · Last modified: 2018/03/30 16:53 by matthew