Hi friends i am working on a serial communication project in Qt. I am using qextserialport for the serial communication.I am trying to send some data from one computer to another computer and receive it and view it in Hyperterminal. But there seems to be a small problem the data is received on the HyperTerminal only with some BaudRates like (9600,38400,115200.... etc) and when i change the BAUDRATE in the program the BAUDRATE does't change, i think it is taking some default value. I confirmed it by checking the output waveform in the CRO with different BAUD RATES but i get the same waveform for all the different BAUDRATES i have tried. What do you think the problem is, How can i solve my problem so that the BAUDRATE actually changes when i change in the program.

This is the code i am using.
Qt Code:
  1. void frame:: framegeneration()
  2. {
  3. static const char mydata[] = {0x0c, 0x14, 0x03, 0x84, 0x78, 0x9c, 0x3b, 0x76,
  4. 0xec, 0x18, 0xc3, 0x31, 0x0a, 0xf1};
  5. QByteArray data = QByteArray::fromRawData(mydata, sizeof(mydata));
  6. char i1 = port->write(data.toHex(),data.length());
  7. textEdit->append(data.toHex());
  8. }
To copy to clipboard, switch view to plain text mode 

These are the settings for the port in the constructor.
Qt Code:
  1. setupUi(this);
  2. port = new QextSerialPort("COM1");
  3. port->setBaudRate(BAUD19200);
  4. port->setFlowControl(FLOW_OFF);
  5. port->setParity(PAR_NONE);
  6. port->setDataBits(DATA_8);
  7. port->setStopBits(STOP_2);
  8. port->open(QIODevice::ReadWrite | QIODevice::Unbuffered);
To copy to clipboard, switch view to plain text mode 

Thank You