@kuzulis I've had a look at socat, and that looks to work! I now have a small example where I can write/read from a serial port. On the other end I am using screen, and my program picks up data as expected!
Thanks for the pointer to socat! Didn't know about it..