RS485 and ser2net


I read some sites with BBB and RS485, but not sure if I unterstand it correctly.

I want to enable UART4 to RS485 and communicate with ser2net.

I already setup the UART1 as RS232 with ser2net and running fine.

But what I have to do, to enable UART4 to RS485. Here it is an example … but it seems that in this code the data will send, but I need ser2net:

Thank you!