I am using the uart communication of Arduino mkt wifi1010 to move the machine, and when I bought Arduino portenta H7 the other day and replaced it, it stopped working.
I didn't know the cause myself, but are there any differences in the specifications of UART communication between the two, or differences in the functions that should be used?
No difference except signal level - typically 5V and 3.3V. Search for simple or sophisticated level shifters. RS-485 line drivers help with both long lines and different signal levels.
Sorry for being an amateur.
Does that mean that the code that communicates with the Arduino mkr's TX and RX pins can be used directly on the Arduino portenta?