Let's put an Arduino Ethernet example in W5100S-EVB-PICO and try to operate it.
I removed the 5100S and attached and operated the 6100. 6100 is a chip that operates up to IPv6. With W5100S-EVB-PICO, it is okay to operate only the IPv4 example with the following contents.
First, I installed Arduino IDE 2.0.0 from the Arduino site.
The most recent version, 2.0.0, has a slightly different feel. Please note that the procedure for previous versions is slightly different.
First of all, simple environment setting is required to turn W5100S-EVB-PICO into Arduino.
https://github.com/earlephilhower/arduino-pico
There is a description of the board manager made by Earlephillhower on the github.
He specified to set it up like this. Just add the URL to the Arduino Board Manager URL.
Let's put the URL in <File -> Preferences>.
Then search for Pico in <Tools -> Boards Manager>.
Then Earlephillhower's board manager file appears as above. Let's install it.
And select WIZnet W5100S-EVB-Pico in <board/port menu -> Select other board and port> and select the port currently ported.
And upload the Blink example to check if the board works normally.
Now, let's try to run the Ethernet example. I don't know if this was the case for other Arduino versions as well, but the version 2.0.0 that I downloaded did not include Ethernet in the example.
In <Tool -> Manage Libraries>
When I set the Type to Arduino and searched for Ethernet, there was an Ethernet basic example library and I installed it.
** Ethernet by Various (see AUTHORS files for details) **
I'm done installing
There is an example file in that path.
Then we need to change this example file to fit our board.
The above path is the file that needs to be changed,
How to change the path below.
In my case, the path is a little different, but I replaced the example file as shown here.
And turn on the Arduino again. (Because I can't recognize the example...)
If the operation is completed and the library is formed like this, it is normal.
Let's run a simple ChatServer example.
Run the ChatServer example,
Change the addresses to suit your situation.
Address information can be found with ipconfig /all at the command prompt.
I just changed it to <192.168.1.177 ---> 192.168.0.177>
And in <Setup part>, uncomment the relevant chip.
After compiling and uploading, it is completed (Board/port setting is required again)
After uploading is complete, if you check the serial port, you can see that "Chat server address: xxx.xxx.x.xxx" is output as shown in the image below.
This Address is the address of the Char Server we created. Now we need to chat, and we have tools to install for that.
There are various tools, but I will use a tool called Hercules for simplicity.
You can download it from that link.
When you run it, it looks like this.
Select TCP Client here.
Then, put the server address in Module IP and 23 in Port.
(Port is the value set in the source)
And if you click Connect, "Connected to xxx.xxx.x.xxx" is output as shown in the image below, and the "Send button" is activated.
And I tried typing I'm Alan. This example is an example of sending all incoming client messages to the server back to all clients. "I'm Alan" is entered a total of 3 times.
First, when you write a message for the first time, a reply message of "Hello, client" is returned.
The pink message is the message I sent and the black message is the message I received.
Only received messages are displayed on the serial monitor (server).
Other examples will be discussed in the next article.
Comments