[Qt-interest] QSerialExtPort - Am i missing something
Donal
donaloconnor at gmail.com
Sun Jan 18 03:05:15 CET 2009
Hey, Figured out what wrong.
Must use \\\\.\\CNCA0 if the port is CNCA0 in com0com program. Wierd one.
Dont worry i'll be back with more problems!
Donal
On Sat, Jan 17, 2009 at 11:43 PM, Donal <donaloconnor at gmail.com> wrote:
> Hey,
>
> Under windows I successfully compiled the QSerialExtPort library and
> resulted in a .a and .dll.
>
> I placed both files in the directory of a project using QSerialExtPort.
>
> I successfully compiled the qespta example program using the library.
> To test my set up i downloaded a Null-Modem emulator (com0com) and set up 2
> virtual com ports, 25 and 26 that were virtuall connected to eachother.
> Tested this with hyperterminal of both ports at different baud rates and
> all worked.
>
> So then i decided to set up 25 under hyperterminal and use that example
> program on 26 as follows:
>
> port = new QextSerialPort("COM26");
>
> port->setBaudRate(BAUD19200);
>
> port->setFlowControl(FLOW_OFF);
>
> port->setParity(PAR_NONE);
>
> port->setDataBits(DATA_8);
>
> port->setStopBits(STOP_2);
>
> On hyper terminal I set up the COM25 with same settings. However I don't
> get output or input from the program or see anything on hyperterminal.
>
> Thinking that it couldn't handle this null-modem emulator I hooked up a
> linux device to my serial port that gave linux terminal. Works under
> hyperterminal
> but not under this program.
>
> Now the program has to be opening the port since if I attempt to open the
> com port with hyperterminal it says port in use.
>
> Under debug I get:
> *
> Debug: is open: 0 *
>
> *Debug: trasmitted : -1*
>
> Obviously failing to transmit and nothing received.
>
>
> I am thinking of moving to a linux development environment altogether as
> further down the road I could end up running into a lot of stupid issues
> like this.
>
> Just wondering if anyone has any hints?
>
> THanks!
>
> Donal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090118/841a9099/attachment.html
More information about the Qt-interest-old
mailing list