cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting Two Microcontrollers to a Single PC via Ethernet Switch

Raja_Kaaliraj
Associate III

I am using an Ethernet switch with three ports. The first Ethernet port (IP address 192.168.1.206) is connected to a CPU. The second Ethernet port is connected to an STM32H743ZIT6 board, and the third Ethernet port is connected to another STM32H743ZIT6 board. The first STM32H743ZIT6 board (sender) has an IP address of 192.168.1.100, and the second STM32H743ZIT6 board (receiver) has an IP address of 192.168.1.101.

In my code Transmit and Receive is not working . please help and give me a solution or hint 

.

2 REPLIES 2
Andrew Neil
Evangelist III

@Raja_Kaaliraj wrote:

The first Ethernet port (IP address 192.168.1.206)  ...


it's not the switch port which has the IP address - it's the thing which is connected to that port.

 


@Raja_Kaaliraj wrote:

... is connected to a CPU.


You mean a PC ?

How are your IP addresses being assigned - Static? DHCP? Other?

 


@Raja_Kaaliraj wrote:

In my code Transmit and Receive is not working . please help and give me a solution or hint 


So what testing/investigation/debugging have you done to see what's going on?

Is your code even running at all?

What code is it?

What if you get rid of the switch, and just try with 1 microcontroller connected straight to the PC?

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

Andrew Neil
Evangelist III

@Raja_Kaaliraj wrote:

 an STM32H743ZIT6 board


What "STM32H743ZIT6 board", exactly?

Give full details:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228 

 


@Raja_Kaaliraj wrote:

another STM32H743ZIT6 board. 


The same as the first board, or something else?