How to use RS232 in that case?

You'll need to check the specification of the device you're connecting to.
Things to look for are:
Bit rate,
Number of data bits,
Number of stop bits,
Parity (odd, even, none)
Flow control (hardware or xon/xoff).