Re: QextSerialPort and modem
and what is this->portInformations->portName value?
Re: QextSerialPort and modem
This is class where i hold all the port informations as a number of data bits, stop bits etc
Re: QextSerialPort and modem
Re: QextSerialPort and modem
Sorry mate i get it wrong it was late when i read your post, the portName is QString with port name chosen by user. The portInformations is object of class where i hold all port informations it has only public members. Sorry agin for my mistake.
Best Regards
kaszewczyk
Re: QextSerialPort and modem
what is the exact value of portName used when calling:
Code:
this->port = new QextSerialPort(this->portInformations->portName);
are you sure that port exists on your system? and/or it is enabled in bios?
Re: QextSerialPort and modem
Yes, i am sure because i can use system Hyperterminal with that port :)
Re: QextSerialPort and modem
Please show us what is in this->portInformations->portName.
For higher number of COM ports You must specify port name as "\\.\COMnn". I don't remember what is boundary value. Of course You can use this long name of COM port with all numbers.
Re: QextSerialPort and modem
This PortInformations look like this:
Code:
class PortInformations{
public:
//etc...
}
This could be a problem because the modem is on COM40 but i dont know how to add "\\.\" to QString cus i cand doing by operator + ?
Re: QextSerialPort and modem
portName.prepend("\\\\.\\") ?
Re: QextSerialPort and modem
Quote:
Originally Posted by
kaszewczyk
This PortInformations look like this:
Code:
class PortInformations{
public:
//etc...
}
This could be a problem because the modem is on COM40 but i dont know how to add "\\.\" to QString cus i cand doing by operator + ?
Code:
QString CreatePortName
( int portNumber
) {
return QString("\\\\.\\%1").
arg(portNumber
);
}
Re: QextSerialPort and modem
Thanks it work :)
Best Regards
kaszewczyk
Re: QextSerialPort and modem
It would have been solved much earlier too if you had given us the information :)
I gave up asking, two more people asked the same question and yet you still held out.
Maybe next time?