Since other services on RUT are already using the RS232 serial port, I cannot guarantee that your solution will work properly. However, you can try.
For Modbus, you will want to use ubus commands mentioned here.
I would also suggest taking a look at other posts on this forum using the search functionality. For instance, the following posts might be helpful: