Hi Chelo,
I have configured my serial port (computer) with 9600 baudios, 8 bits of data, without parity and one bit stop.
If I open the with:
_rs232_fd = rs232_open(9600);
the read and write is properly with rs232_read () and rs232_write functions().
Now I configure my serial port (computer) with 9600 baudios, 8 bits of data, odd parity and one bit stop.
In this case I use the next configuration:
_rs232_fd = rs232_open(9600);
int
options = rs232_ioctl(_rs232_fd,IOCTL_SIO_HW_OPTS_GET, 0);
rs232_ioctl(fd, IOCTL_SIO_HW_OPTS_SET, (options | PARENB | PARODD));
After reboot the SmartServer the variable options has the value 0. The value 0 show me that the serial port has been opened properly. With the use of rs232_ioctl () function I update IOCTL_SIO_HW_IPTS_SET with the value 192 bit in this case I can not read or write information.
I have updated my computer with the last servipack of the SmartServer.
Is there another way to change the parity of the serial port?
Best regards,
Alex