Using Socket-less commands with RP2040 and W5100S

This project will demonstrate how to use W5100S socket-less commands.
ORIGINAL POST
By Viktor
components
Hardware Components
W5100S-EVB-Pico
X 1
Software Apps and online services
WIZnet RP2040-HAT-C
details

W5100S-EVB-Pico-arp-ping.PNG

Did you know that using W5100S it is possible to execute ARP and PING requests without opening a socket?

Socket-less commands (SLC) for ARP and PING requests can be extremely useful when testing network environment or checking device connection status. These functions are supported only in W5100S & W6100 and can be operated by controlling following registers:

  • SLCR – SOCKET-less Command,
  • SLIR – SOCKET-less Interrupt,
  • SLIMR – SOCKET-less Interrupt Mask,
  • SLIRCLR – SOCKET-less Interrupt Clear,
  • SLDIPR – SOCKET-less Destination IP Address,
  • SLDHAR – SOCKET-less Destination Hardware Address,
  • PINGIDR – PING ID,
  • PINGSEQR – PING Sequence Number.

To learn more about W5100S refer to this link, more information about socket-less commands can be found here.

In this project I will demonstrate how to run these commands.

1. SW Environment

I used Win 10 and followed instructions in WIZnet repo for software environment setup.

2. SLC for ARP request

Operation flow is shown in WIZnet application note Figure 1 (below).

ARP operation flow, source: WIZnet W5100S Application Note

Viktor Shin
Created January 21, 2022

Using Socket-less functions with RP2040 and W5100S

This project will demonstrate how to use W5100S socket-less commands.

IntermediateProtip2 hours41
Using Socket-less functions with RP2040 and W5100S

Things used in this project

Hardware components

W5100S-EVB-Pico
WIZnet W5100S-EVB-Pico
×1

Software apps and online services

WIZnet RP2040-HAT-C

Story

W5100S-EVB-Pico-arp-ping.PNG

Did you know that using W5100S it is possible to execute ARP and PING requests without opening a socket?

Socket-less commands (SLC) for ARP and PING requests can be extremely useful when testing network environment or checking device connection status. These functions are supported only in W5100S & W6100 and can be operated by controlling following registers:

  • SLCR – SOCKET-less Command,
  • SLIR – SOCKET-less Interrupt,
  • SLIMR – SOCKET-less Interrupt Mask,
  • SLIRCLR – SOCKET-less Interrupt Clear,
  • SLDIPR – SOCKET-less Destination IP Address,
  • SLDHAR – SOCKET-less Destination Hardware Address,
  • PINGIDR – PING ID,
  • PINGSEQR – PING Sequence Number.

To learn more about W5100S refer to this link, more information about socket-less commands can be found here.

In this project I will demonstrate how to run these commands.

1. SW Environment

I used Win 10 and followed instructions in WIZnet repo for software environment setup.

2. SLC for ARP request

Operation flow is shown in WIZnet application note Figure 1 (below).

ARP operation flow, source: WIZnet W5100S Application Note

Viktor Shin
Created January 21, 2022

Using Socket-less functions with RP2040 and W5100S

This project will demonstrate how to use W5100S socket-less commands.

IntermediateProtip2 hours41
Using Socket-less functions with RP2040 and W5100S

Things used in this project

Hardware components

W5100S-EVB-Pico
WIZnet W5100S-EVB-Pico
×1

Software apps and online services

WIZnet RP2040-HAT-C

Story

documents
Code
w5100s_arp_ping.c
Main file with test code
arp_ping.c
File containing functions to operate W5100S ARP and PING SLC.
arp_ping.h
Header file for arp_ping

COMMENTS

Please Login to comment
  Subscribe  
Notify of
POSTED BY
Reusable S/W