Image 01
profile-image

kuzulis

Denis Shienkov Bryansk, Russian Federation
QSerialDevice

Qt Components by kuzulis 143 comments

Hi.

A little unclear about which library it, about what examples and what kind of buffer do you mean? - Jan 24 2013
QSerialDevice

Qt Components by kuzulis 143 comments

Hi.

1. Use QtSerialPort, because in QSerialDevice 2.0 has some bugs.
2. Give a minimal example that reproduces the problem.
- Apr 26 2012
QSerialDevice

Qt Components by kuzulis 143 comments

>got a handle on it. Using the debug DLL doesn't work

Strange, but I'll check it in the future, maybe :) - Mar 13 2012
QSerialDevice

Qt Components by kuzulis 143 comments

>got a handle on it. Using the debug DLL doesn't work

Strange, but I'll check it in the future, maybe :) - Mar 13 2012
QSerialDevice

Qt Components by kuzulis 143 comments

Ok. I will take note of this in the future.

But you could just remove in serialportengine_p_win.cpp here lines:
...
53 #ifndef Q_CC_MSVC
54 # include <ddk/ntddser.h>
55 #else
...
88 #endif - Mar 13 2012
QSerialDevice

Qt Components by kuzulis 143 comments

Do not use waitForReadyRead () - it blocks EventLoop. It can be used only to block the operations of I/O only in a separate thread. See, for example, by analogy to the description of QAbstractSocket http://qt-project.org/doc/qt-4.8/qabstractsocket.html

Look for it in the documentation below in compliance with such as: "Programming with a blocking socket is radically different from programming with a non-blocking socket..."

When using waitForReadyRead() does not make sense in the signal readyRead()! :) - Mar 13 2012
QSerialDevice

Qt Components by kuzulis 143 comments

Version 2.0 is the transition.

For details, see here

http://qt-project.org/wiki/QtSerialPort

It says how to build a library.

Documentation is now done in QDoc, therefore, if you will use QtSerialPort - then run "make docs".
Perhaps this is also true in relation to QSerialDevice.

ReadyRead () signal is working. Maybe you do something wrong.

For QSerialDevice 2.0 see examples in /examples and /tests

- Mar 13 2012
QSerialDevice

Qt Components by kuzulis 143 comments

Значит неправильно собираешь. Это не проблемы библиотеки - а твои: отсутствие минимальных знаний о процессе сборки. Разбирайся что ты делаешь не так. - Jan 21 2012
QSerialDevice

Qt Components by kuzulis 143 comments

use last version:
http://gitorious.org/qserialdevice/qserialdevice/trees/2.0 - Jan 21 2012
QSerialDevice

Qt Components by kuzulis 143 comments

I did not understand from the information that you provide. Write details that you did, how to compile, etc. And what do you want exactly. - Jan 10 2012
QSerialDevice

Qt Components by kuzulis 143 comments

I have everything working.

For example, a test application: qserialdevice-qserialdevice\tests\guiapp\guiapp.pro

I opened a QtCreator, compile and run without problems. - Jan 10 2012
QSerialDevice

Qt Components by kuzulis 143 comments

Tony, I have no way to test for all MacOSX work library. I tested only on Leopard 10.6.6 + QtSDK 4.6.x + Xcode. Especially, the class SerialDeviceEnumerator in MacOSX is not working properly and it is not fully implemented.

Use the new version 2.0 of the library - there are many changes and everything should work fine.

http://gitorious.org/qserialdevice/qserialdevice/trees/2.0 - Dec 31 2011
QSerialDevice

Qt Components by kuzulis 143 comments

Again, you used the wrong version.
The new version 2.0 here:
http://gitorious.org/qserialdevice/qserialdevice/trees/2.0 - Dec 31 2011
QSerialDevice

Qt Components by kuzulis 143 comments

Use version of v2.0.

Click Version Control Link (in the header of the this page). - Dec 30 2011
QSerialDevice

Qt Components by kuzulis 143 comments

Write to me like you're cross-compiling Qt for the ARM (or give the URL to the description of the build Qt Embedded) and maybe I'll try to repeat your experiment. - Sep 20 2011
QSerialDevice

Qt Components by kuzulis 143 comments

I have no idea. Can not help you. I Embedded / ARM not working. - Sep 20 2011
QSerialDevice

Qt Components by kuzulis 143 comments

See reply here:
http://www.qtcentre.org/threads/43607-qSerialDevice-and-WINCE-is-it-possible-to-run-it?highlight=qserialdevice - Aug 03 2011
QSerialDevice

Qt Components by kuzulis 143 comments

Why do you ask stupid questions? You download and check it myself.
And then ask what is not clear. - Jul 25 2011
QSerialDevice

Qt Components by kuzulis 143 comments

To use these methods, you should add (to override) in two methods:
- bool canReadLine() const; [public]
- qint64 readLineData(char *data, qint64 maxlen); [protected]

Take them out of the implementation of source Qt4 (QAbstractSocket) and copy in AbstractSerial.
:)

At a signal readyRead() first calls canReadLine() and if successful have you read the readLine().

PS: Perhaps, too, will have to uncomment the regime Text (which is disabled by default in the library). Look for himself where he is. Although it might not be needed.
- Jul 15 2011
QSerialDevice

Qt Components by kuzulis 143 comments

See /examples and /test. And make by analogy. - Jun 26 2011
QSerialDevice

Qt Components by kuzulis 143 comments

But if you're a novice, the easiest way - use a direct connection through the library classes *. pri files (as in the examples /test/guiapp). - Jun 26 2011
QSerialDevice

Qt Components by kuzulis 143 comments

Yes, and this header too. I forgot about him. - Jun 26 2011
QSerialDevice

Qt Components by kuzulis 143 comments

To start the application you must copy the libraries to the application's executable file (easiest option). - Jun 26 2011
QSerialDevice

Qt Components by kuzulis 143 comments

If you want to use the library as a dynamic that (for Windows):

1. You first need to compile it as dynamic.
Change /src/src.pro:
---
#CONFIG += staticlib
CONFIG += dll
---

2. Build liblary, use BuildLibrary.pro.
After this, you will be ready to Library,
example here: ../build/(debug/release)/qserialdevice(d).dll

3. Copy header files (abstractserial.h, serialdeviceenumerator.h), and library (qserialdevice(d).dll)
to your project directory, example:
---
/yourproject
|-/lib
| |->qserialdevice(d).dll
|-/includes
| |->abstractserial.h
| |->serialdeviceenumerator.h
|-/yoursrc
|->your *.cpp/*.h
|->your.pro
---

4. For compile your project - change your your.pro, example:
---
INCLUDEPATH += ../includes
QMAKE_LIBDIR += ../lib
LIBS += -lqserialdevice(d)
---

5. After compile, for running your application, move (or copy) library qserialdevice(d).dll
to directory with yourapplication.exe

6. Running yourapplication.exe - Jun 25 2011
QSerialDevice

Qt Components by kuzulis 143 comments

Nothing should be removed.

1. Reinstall the new Qt SDK (example, stable SDK for Windows):
http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2010.05.exe
2. Download stable QSerialDevice version 0.4.0 :
https://gitorious.org/qserialdevice/qserialdevice/archive-tarball/0.4.0
3. And build!

PS: In those errors (which you post it above) are analyzed myself, I do not know these errors. - Apr 25 2011
QSerialDevice

Qt Components by kuzulis 143 comments

Hi Krozac.

Oh, a lot of mistakes building... :)

I do not know where you have so many errors. Perhaps the reason is that you have a poorly installed or compiled by myself Qt-Embedded-arm. You first try to collect for their Qt-Embedded-arm any application of the examples of Qt (eg network, etc.).
And if you all get - that means the problem is QSerialDevice, but I can not help you solve it. - Apr 21 2011
QSerialDevice

Qt Components by kuzulis 143 comments

Hmm, strange. The impression that qmake does not handle *. pri / *. pro files. Maybe the problem is that the Embedded?

Try to remove it from *. pri / *. pro files, everything related to ** _win.

I (and others) in such a PC with Linux is compiled without any problems.
I did not use Embedded ARM so I can not help you. - Apr 20 2011
QSerialDevice

Qt Components by kuzulis 143 comments

Do you have (at least) three ways:
1. You can in your project to use copies of the library folder (qserialdevice and qserialdeviceenumerator) and connect them to the project over (with) *. pri files.
(see examples \test\guiapp(guiapp2).
2. You can separately compile (default) static library with the aid of BuildLibrary.pro. For inclusion in the project you only need the header files (abstractserial.h, serialdeviceenumerator.h) and the file library (libqserialdevice(d).a).
3. Also similar to step 2. you can dynamically build the library and use it as in step 2. (ie, the library file will libqserialdevice (d). dll (so)).

--
For using p.2 and/or p.3 in your project file, you must specify:
- INCLUDEPATH += <the path to directory where are the header files>
- QMAKE_LIBDIR += <the path to directory where are the library file>
- LIBS += -l<name of library file>

see examples in /examples directory
- Apr 06 2011
QSerialDevice

Qt Components by kuzulis 143 comments

To compile the static library and examples need to open BuildExamples.pro. - Apr 02 2011
QSerialDevice

Qt Components by kuzulis 143 comments

>c:\qserialdevice\src\qserialdevice\nativeserialnotifier.h(8) :"QtCore/private/qwineventnotifier_p.h": No such file or directory

In your SDK is not private file "qwineventnotifier_p.h". I do this do nothing, this is a feature of this version of SDK. Take it from source Qt this file, list the path to it and compile. Other way I can not see ... - Mar 06 2011
QSerialDevice

Qt Components by kuzulis 143 comments

Check and write me the result. - Mar 05 2011
QSerialDevice

Qt Components by kuzulis 143 comments

It should now compile. I updated the repository.
Uploading from the current master branch:
http://gitorious.org/qserialdevice/qserialdevice/archive-tarball/master - Mar 05 2011
QSerialDevice

Qt Components by kuzulis 143 comments

thanks :) - Mar 02 2011
QSerialDevice

Qt Components by kuzulis 143 comments

Try to search for header files Visual Studio similar files. Plug them and write me the result. - Mar 02 2011
QSerialDevice

Qt Components by kuzulis 143 comments

char data[256];
data[0] = 0x00;
...
data[255] = 0xFF;
...
port->write(data, 256);
... - Mar 01 2011
QSerialDevice

Qt Components by kuzulis 143 comments

What are headers? What you mean? - Mar 01 2011
QSerialDevice

Qt Components by kuzulis 143 comments

>If I need a XON/XOFF flow control I've to set the control and does the class do all the work? I've only to send the datas as shown in the examples?

Yes, after opening use the method: setFlowControl() and continue to do everything as in the examples (by analogy).

> What is the "current branch library"?

http://gitorious.org/qserialdevice/qserialdevice/archive-tarball/master - Nov 30 2010
QSerialDevice

Qt Components by kuzulis 143 comments

Hi.

1. Why are you not able to use method: write() ?? Explain!
2. QByteArray is a container for any data. What do you mean by binary data?
3. If you want to use QDataStream - then try to download the current branch library (the master) and use the same Qt sockets. Try it.

PS: I advise you to look at the examples /examples. It sends and receives binary data. - Nov 29 2010
QSerialDevice

Qt Components by kuzulis 143 comments

> Another question, if I set the BautRate to higher than 115200(e.g. 256000), it will throw a set error. Why?

I do not know. Test yourself. And if you can find the cause - then let me know. - Sep 19 2010
QSerialDevice

Qt Components by kuzulis 143 comments

I do not know why it's so slow.
1. Maybe you have an error (inaccuracy) in the time dimension, because QTime gives an error (inaccuracy) + / - 50-70 ms.
2. Maybe at the reception of data affects charIntervalTimeout, which by default is 50 ms. Try to reduce it.
3. In what operating system you are doing the test? - Sep 18 2010
QSerialDevice

Qt Components by kuzulis 143 comments

SerialDeviceWatcher and SerialDeviceInfo not supported anymore. as They unsuccessfully implemented. More successful is the class SerialDeviceEnumerator which includes the functionality SerialDeviceWatcher anb SerialDeviceInfo. Use SerialDeviceEnumerator. - Sep 18 2010
QSerialDevice

Qt Components by kuzulis 143 comments

Nothing will be lost!
Take a crossover cable and connect them to ports on your computer. Take the examples / writer and / sreader and check.
Can send bytes as you want (at least 8192, at least 16000, at least 100000, and etc) and they will be read.
Can change charIntervalTimeout experimentally for better communication.

What is the actual problem?
What is "Stop/Wait(handshaking)communicating" ? - Sep 17 2010
QSerialDevice

Qt Components by kuzulis 143 comments

Hi.

1. Try download new snapshot (Today I made a lot of changes.)
2. For build in Qt 4.5.x you must replace "qt_safe_select" simply "select". - Sep 14 2010
QSerialDevice

Qt Components by kuzulis 143 comments

In previous versions, was used QIODevice. But while I have a library run stable so from QIODevice had to be abandoned. Also, rejection of QIODevice occurred for other reasons. - Jul 07 2010
QSerialDevice

Qt Components by kuzulis 143 comments

Strange. Data Type PCVOID must be defined in the header of your compiler. Solution - remove the (PCVOID).
---
For interest - go look in the directory / include (or similar) of your compiler in all files *. h - text PCVOID. Will it be found? And in what files?
---
Question: what the compiler uses MinGW, MSVS, other? - Jul 06 2010
QSerialDevice

Qt Components by kuzulis 143 comments

Ну а теперь попробуйте :) - Jun 09 2010
QSerialDevice

Qt Components by kuzulis 143 comments

Ну а при п.1 хотя бы эта ветка имеется:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Serenum]

??? - Jun 02 2010
QSerialDevice

Qt Components by kuzulis 143 comments

А что у вас есть при отсутствии самого у-ва? т.е. какие ветки имеются? к чему я могу привязаться? - Jun 01 2010
QSerialDevice

Qt Components by kuzulis 143 comments

Не не не. Не пользуйтесь этой ссылкой. Она всегда почему-то 2010-04-05. Это глюк сайта какой то.
Используйте лучше SVN клиент. Я вчера только обновлял исходники в SVN. - May 28 2010
QSerialDevice

Qt Components by kuzulis 143 comments

What you mean? - May 26 2010