Use Ethernet port to communicate

Hello,
I have a project where I have to send and receive data from the Ethernet port of the PYNQ-Z2.
Is this possible or this port is only used to communicate with PC ?

1 Like

If you connect your board to a network switch/router that is connected to the internet then you can access the internet.
If you want to directly send traffic on the Ethernet port from Python, you should be able to use the Python “sockets” library.

Cathal

1 Like

I don’t want to send the data over the internet but send it to another card which is connected by a cable.
Is the process the same?

Yes, it should be the same assuming you can run a socket connection on the other board.
Some links that may be useful:
https://docs.python.org/3/library/socket.html
https://docs.python.org/3/howto/sockets.html

Cathal

2 Likes

Thank you very much, I will search with these links.