Thank you
who have provided help here at the forum and Paul Robinson at Echelon support in the UK. You gave use the clues so we could solve the problem.
This is how we finally managed to get the SmartServer to communicate via RS-232 using 38400 bps, 1 start bit, 8 data bits, 1 parity bit, even parity and 1 stop bit:
fd=rs232_open( 38400 );
res=ioctl( fd, FIOSETOPTIONS, OPT_RAW );
res=ioctl( fd, SIO_HW_OPTS_SET, CLOCAL | CS8 | PARENB );
After this it seems necessary to reset the SmartServer to make some of the changes work.
Sven