Page 1 of 2

new ALPHA version available for Windows

PostPosted: Wed Nov 03, 2010 8:03 am
by berndnoetscher
Lot of changes including a lot of bug fixes.

Please give it a try.

Re: new ALPHA version available for Windows

PostPosted: Sun Nov 14, 2010 5:20 pm
by tseyfarth
Mr B,
Does this now have Serial?

TY
Tim

Re: new ALPHA version available for Windows

PostPosted: Mon Nov 15, 2010 10:13 am
by berndnoetscher
tseyfarth wrote:Mr B,
Does this now have Serial?

TY
Tim


Yes, there is a serial example included.

Re: new ALPHA version available for Windows

PostPosted: Wed Nov 24, 2010 5:28 am
by tseyfarth
Thanks Mr B.

I could not find where you set the port number in the code. I do see the baud rate, but nothing else. Can you tell me where you set up the serial port, ie port number, baud rate, bits etc ?

Thank you
Tim

Re: new ALPHA version available for Windows

PostPosted: Wed Nov 24, 2010 9:08 am
by berndnoetscher
tseyfarth wrote:Thanks Mr B.

I could not find where you set the port number in the code. I do see the baud rate, but nothing else. Can you tell me where you set up the serial port, ie port number, baud rate, bits etc ?

Thank you
Tim


Check out the file with the declare statements in the project.

Re: new ALPHA version available for Windows

PostPosted: Wed Nov 24, 2010 3:51 pm
by tseyfarth
Thank you Mr B.

What I meant was, I cannot see where in the sample code, "you" set up the serial port. ie, in the sample there is nothing set for the serial port number, parity, stop bit etc. I only see the baud rate set at 4800. Does the object default to some standard settings? The essentials has not been updated to show anything with Serial Port.

BTW, for an Alpha, you've come a long way very fast.
Nice, very nice!

Tim

Re: new ALPHA version available for Windows

PostPosted: Thu Nov 25, 2010 8:45 am
by berndnoetscher
[quote="tseyfarth"]Thank you Mr B.

What I meant was, I cannot see where in the sample code, "you" set up the serial port. ie, in the sample there is nothing set for the serial port number, parity, stop bit etc. I only see the baud rate set at 4800. Does the object default to some standard settings? The essentials has not been updated to show anything with Serial Port.

BTW, for an Alpha, you've come a long way very fast.
Nice, very nice!

Tim[/quote

The defaults are set within QextSerial c++ classes. Check out the source codes, couldn't find it in a few minutes. Anyway, you need to set your own settings.

Re: new ALPHA version available for Windows

PostPosted: Thu Nov 25, 2010 5:19 pm
by tseyfarth
Thank you for your response.

I don't mean to sound stupid, but I am having a terrible time working through this.

The defaults are set within QextSerial c++ classes. Check out the source codes, couldn't find it in a few minutes. Anyway, you need to set your own settings.


I looked in the source for your IDE/Sample code. Other than the single line in the sample code
Code: Select all
sp.SetBaudRate("Baud4800")


There are no other settings.
Looking in the QtDesigner, there is no code there either and nothing familiar like VB where you might drag an object onto a form. This is to be expected but looked anyway.

So the ignorant question is, where is the source code to look at for QextSerial c++ class?

Thank you again!
Tim

Re: new ALPHA version available for Windows

PostPosted: Fri Nov 26, 2010 7:59 am
by Slowdown
Hi Tim,
What Bernd is trying to say look at,
Declare Function "Q7BSerialPort" QString PortName();

Declare Sub "Q7BSerialPort" void SetPortName(const QString & n);

Declare Function "Q7BSerialPort" QString BaudRate();
Declare Sub "Q7BSerialPort" void SetBaudRate(const QString & n);

Declare Function "Q7BSerialPort" QString DataBits();
Declare Sub "Q7BSerialPort" void SetDataBits(const QString & n);

Declare Function "Q7BSerialPort" QString FlowControl();
Declare Sub "Q7BSerialPort" void SetFlowControl(const QString & n);

Declare Function "Q7BSerialPort" QString Parity();
Declare Sub "Q7BSerialPort" void SetParity(const QString & n);

Declare Function "Q7BSerialPort" QString StopBits();
Declare Sub "Q7BSerialPort" void SetStopBits(const QString & n);

I can't test it for you but perhaps something like this,
Code: Select all
sp.SetDataBits("DataBits8")
sp.SetParity("ParityN")

Doing this from my head and don't know if this works

Re: new ALPHA version available for Windows

PostPosted: Fri Nov 26, 2010 8:42 am
by berndnoetscher
You may use the KBasic docs about serial port, because it uses the kbasic source for the serial port.
In your project folder is a directory called "cpp" it contains all serial port C++ source codes.