QSerialDevice

Qt Components

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

13
7.9
Description:

So, announces release: QSerialDevice 2.0

QSerialDevice – cross-platform library for serial devices based on Qt4.

Release 2.0 will be the last for the library QSerialDevice.

Recently the project (2.0 branch) has been accepted into Qt as an addon (renamed to QtSerialPort), therefore, the current Gitorious repository is no longer used, and his development frozen. Ie do not send more here merge requests, etc., his repository works only in r/o mode.

The new repository is now available here (only available to registered developers):

git clone ssh://codereview.qt-project.org:29418/playground/qtserialport.git

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

In the future, after the stabilization of the code will create a public repository QtSerialPort, which is an addon for Qt (LGPL + commercial).

Version history:
v 0.4.0 (Outdated)
v 0.3.0 (Outdated)
v 0.2.0 (Outdated)
v 0.1.0 (Outdated)
Last changelog:

9 years ago

More changes.

9

woodywoodpecker

9 years ago

I already copied libraries to the folder where my exe. file in (debug and release folder) but like I said before it gave an error. but I don't try last you said because I don't understan what should I do. Please I really need your help

Report

C

kuzulis

9 years ago

See /examples and /test. And make by analogy.

Report

9

woodywoodpecker

9 years ago

Thank you so much for your help. :)

Report

9

woodywoodpecker

9 years ago

then I add qserialdevice_global.h to include folder. This time no error but after my application opened and when I clicked the button .exe stop running error showed up. Also in my application output, ...exited with code -1073741819 wrote.

Report

C

kuzulis

9 years ago

To start the application you must copy the libraries to the application's executable file (easiest option).

Report

9

Krozac

10 years ago

Hi kuzulis,
thank you very much for share this lib ;)
I have a problem when I try to compile under linux with arm-gcc:

arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.7.2-arm/mkspecs/qws/linux-arm-g++ -I. -I/usr/local/Trolltech/QtEmbedded-4.7.2-arm/$
In file included from ./windef.h:253,
from ./ddk/ntddk.h:44,
from ./ddk/ntddser.h:34,
from nativeserialengine_win.cpp:27:
./winnt.h:2377:2: error: #error "undefined processor type"
In file included from /usr/local/Trolltech/QtEmbedded-4.7.2-arm/include/QtCore/qbytearray.h:48,
from /usr/local/Trolltech/QtEmbedded-4.7.2-arm/include/QtCore/qstring.h:46,
from /usr/local/Trolltech/QtEmbedded-4.7.2-arm/include/QtCore/qobject.h:48,
from /usr/local/Trolltech/QtEmbedded-4.7.2-arm/include/QtCore/QObject:1,
from abstractserialengine.h:27,
from nativeserialengine.h:27,
from nativeserialengine_p.h:4,
from nativeserialengine_win.cpp:24:
./string.h:36: warning: '__cdecl__' attribute directive ignored
./string.h:37: warning: '__cdecl__' attribute directive ignored
./string.h:38: warning: '__cdecl__' attribute directive ignored
./string.h:39: warning: '__cdecl__' attribute directive ignored
./string.h:40: warning: '__cdecl__' attribute directive ignored
./string.h:41: warning: '__cdecl__' attribute directive ignored
./string.h:42: warning: '__cdecl__' attribute directive ignored
./string.h:43: warning: '__cdecl__' attribute directive ignored

I copied the dir include from mingw to compile until here.
Have any suggestion to compile it?

I don't need the windows support.ù
It is available a qserialdevice with only support for linux?

Best regards,

Krozac

Report

C

kuzulis

10 years ago

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.

Report

9

Krozac

10 years ago

Hi Kuzulis,
Thank you very much.
I have to remove all lines with *win* from .pri and .pro AND delete all files named *win*.
Now I can compile test1.pro but when I try to compile guiapp2.pro I have this error:

arm-linux-g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.7.2-arm/lib -o guiapp2 infowidget.o main.o mainwidget.o optionswidget.o tracewidget.o serialdeviceenumerator.o abstractserial.o moc_infowidget.o moc_mainwidget.o moc_optionswidget.o moc_tracewidget.o moc_abstractserial.o -L/usr/local/Trolltech/QtEmbedded-4.7.2-arm/lib -lQtGui -L/usr/local/Trolltech/QtEmbedded-4.7.2-arm/lib -lQtNetwork -lQtCore -lpthread
moc_abstractserial.o: In function `AbstractSerial::metaObject() const':
moc_abstractserial.cpp:(.text+0x0): multiple definition of `AbstractSerial::metaObject() const'
abstractserial.o:abstractserial.cpp:(.text+0x178): first defined here
moc_abstractserial.o: In function `AbstractSerial::ringChanged(bool)':
moc_abstractserial.cpp:(.text+0x1c): multiple definition of `AbstractSerial::ringChanged(bool)'
abstractserial.o:abstractserial.cpp:(.text+0x194): first defined here
moc_abstractserial.o: In function `AbstractSerial::dsrChanged(bool)':
moc_abstractserial.cpp:(.text+0x58): multiple definition of `AbstractSerial::dsrChanged(bool)'
abstractserial.o:abstractserial.cpp:(.text+0x1d0): first defined here
moc_abstractserial.o: In function `AbstractSerial::ctsChanged(bool)':
moc_abstractserial.cpp:(.text+0x94): multiple definition of `AbstractSerial::ctsChanged(bool)'
abstractserial.o:abstractserial.cpp:(.text+0x20c): first defined here
moc_abstractserial.o: In function `AbstractSerial::exception()':
moc_abstractserial.cpp:(.text+0xd0): multiple definition of `AbstractSerial::exception()'
abstractserial.o:abstractserial.cpp:(.text+0x2f4): first defined here
moc_abstractserial.o: In function `AbstractSerial::signalStatus(QString const&, QDateTime)':
moc_abstractserial.cpp:(.text+0xf0): multiple definition of `AbstractSerial::signalStatus(QString const&, QDateTime)'
abstractserial.o:abstractserial.cpp:(.text+0x32c): first defined here
moc_abstractserial.o: In function `AbstractSerial::qt_metacall(QMetaObject::Call, int, void**)':
moc_abstractserial.cpp:(.text+0x128): multiple definition of `AbstractSerial::qt_metacall(QMetaObject::Call, int, void**)'
abstractserial.o:abstractserial.cpp:(.text+0x364): first defined here
moc_abstractserial.o: In function `AbstractSerial::qt_metacast(char const*)':
moc_abstractserial.cpp:(.text+0x21c): multiple definition of `AbstractSerial::qt_metacast(char const*)'
abstractserial.o:abstractserial.cpp:(.text+0x458): first defined here
moc_abstractserial.o:(.rodata+0x0): multiple definition of `AbstractSerial::staticMetaObject'
abstractserial.o:(.rodata+0x0): first defined here
moc_abstractserial.o:(.rodata+0x98): multiple definition of `vtable for AbstractSerial'
abstractserial.o:(.rodata+0x148): first defined here
moc_abstractserial.o:(.rodata+0x110): multiple definition of `typeinfo name for AbstractSerial'
abstractserial.o:(.rodata+0x1e4): first defined here
moc_abstractserial.o:(.rodata+0x124): multiple definition of `typeinfo for AbstractSerial'
abstractserial.o:(.rodata+0x1f8): first defined here
serialdeviceenumerator.o: In function `SerialDeviceEnumerator::qt_metacall(QMetaObject::Call, int, void**)':
serialdeviceenumerator.cpp:(.text+0xa4): undefined reference to `SerialDeviceEnumeratorPrivate::_q_processWatcher()'
serialdeviceenumerator.o: In function `SerialDeviceEnumerator::isBusy() const':
serialdeviceenumerator.cpp:(.text+0xf8): undefined reference to `SerialDeviceEnumeratorPrivate::nativeIsBusy() const'
serialdeviceenumerator.o: In function `SerialDeviceEnumerator::isEnabled() const':
serialdeviceenumerator.cpp:(.text+0x10c): undefined reference to `SerialDeviceEnumeratorPrivate::isEnabled() const'
serialdeviceenumerator.o: In function `SerialDeviceEnumerator::setEnabled(bool)':
serialdeviceenumerator.cpp:(.text+0x120): undefined reference to `SerialDeviceEnumeratorPrivate::setEnabled(bool)'
serialdeviceenumerator.o: In function `SerialDeviceEnumerator::SerialDeviceEnumerator(QObject*)':
serialdeviceenumerator.cpp:(.text+0x25c): undefined reference to `SerialDeviceEnumeratorPrivate::SerialDeviceEnumeratorPrivate()'
serialdeviceenumerator.o: In function `SerialDeviceEnumerator::SerialDeviceEnumerator(QObject*)':
serialdeviceenumerator.cpp:(.text+0x2bc): undefined reference to `SerialDeviceEnumeratorPrivate::SerialDeviceEnumeratorPrivate()'
abstractserial.o: In function `AbstractSerial::setDeviceName(QString const&)':
abstractserial.cpp:(.text+0x520): undefined reference to `AbstractSerialEngine::setDeviceName(QString const&)'
abstractserial.o: In function `AbstractSerialPrivate::initSerialLayer()':
abstractserial.cpp:(.text+0x540): undefined reference to `AbstractSerialEngine::createSerialEngine(QObject*)'
abstractserial.cpp:(.text+0x558): undefined reference to `AbstractSerialEngine::setReceiver(AbstractSerialEngineReceiver*)'
abstractserial.o: In function `AbstractSerial::baudRate(QFlags<AbstractSerial::BaudRateDirectionFlag>) const':
abstractserial.cpp:(.text+0x2cf8): undefined reference to `AbstractSerialEngine::baudRate(QFlags<AbstractSerial::BaudRateDirectionFlag>) const'
abstractserial.o: In function `AbstractSerial::parity() const':
abstractserial.cpp:(.text+0x2e68): undefined reference to `AbstractSerialEngine::parity() const'
abstractserial.o: In function `AbstractSerial::stopBits() const':
abstractserial.cpp:(.text+0x2f54): undefined reference to `AbstractSerialEngine::stopBits() const'
abstractserial.o: In function `AbstractSerial::dataBits() const':
abstractserial.cpp:(.text+0x3040): undefined reference to `AbstractSerialEngine::dataBits() const'
abstractserial.o: In function `AbstractSerial::flowControl() const':
abstractserial.cpp:(.text+0x312c): undefined reference to `AbstractSerialEngine::flow() const'
abstractserial.o: In function `AbstractSerial::deviceName() const':
abstractserial.cpp:(.text+0x3c7c): undefined reference to `AbstractSerialEngine::deviceName() const'
collect2: ld returned 1 exit status
make: *** [guiapp2] Errore 1

Any suggestions?

Best regards,

Krozac

Report

C

kuzulis

10 years ago

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.

Report

9

Krozac

9 years ago

Hi Kuzulis,
I have try to build guiapp in windows + qtsdk 1.1 mingw I think there are the same errors:

mingw32-make: Leaving directory `C:/Users/Luca/Desktop/qserialdevice-linux/test/guiapp-build-desktop'
./debug\serialdeviceenumerator.o: In function `SerialDeviceEnumerator':
qserialdevice\test\guiapp-build-desktop/../../src/qserialdeviceenumerator/serialdeviceenumerator.cpp:268: undefined reference to `SerialDeviceEnumeratorPrivate::SerialDeviceEnumeratorPrivate()'
qserialdevice\test\guiapp-build-desktop/../../src/qserialdeviceenumerator/serialdeviceenumerator.cpp:268: undefined reference to `SerialDeviceEnumeratorPrivate::SerialDeviceEnumeratorPrivate()'
./debug\serialdeviceenumerator.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdeviceenumerator/serialdeviceenumerator.cpp:294: undefined reference to `SerialDeviceEnumeratorPrivate::setEnabled(bool)'
./debug\serialdeviceenumerator.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdeviceenumerator/serialdeviceenumerator.cpp:304: undefined reference to `SerialDeviceEnumeratorPrivate::isEnabled() const'
./debug\serialdeviceenumerator.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdeviceenumerator/serialdeviceenumerator.cpp:518: undefined reference to `SerialDeviceEnumeratorPrivate::nativeIsBusy() const'
./debug\serialdeviceenumerator.o:qserialdevice\test\guiapp-build-desktop/debug/moc_serialdeviceenumerator.cpp:77: undefined reference to `SerialDeviceEnumeratorPrivate::_q_processWatcher()'
./debug\nativeserialengine.o: In function `NativeSerialEngine':
qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:41: undefined reference to `NativeSerialEnginePrivate::NativeSerialEnginePrivate()'
qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:41: undefined reference to `NativeSerialEnginePrivate::NativeSerialEnginePrivate()'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:53: undefined reference to `NativeSerialEnginePrivate::nativeOpen(QFlags<QIODevice::OpenModeFlag>)'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:55: undefined reference to `NativeSerialEnginePrivate::nativeClose()'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:62: undefined reference to `NativeSerialEnginePrivate::nativeClose()'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:68: undefined reference to `NativeSerialEnginePrivate::nativeSetBaudRate(int, QFlags<AbstractSerial::BaudRateDirectionFlag>)'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:74: undefined reference to `NativeSerialEnginePrivate::nativeSetDataBits(AbstractSerial::DataBits)'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:80: undefined reference to `NativeSerialEnginePrivate::nativeSetParity(AbstractSerial::Parity)'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:86: undefined reference to `NativeSerialEnginePrivate::nativeSetStopBits(AbstractSerial::StopBits)'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:92: undefined reference to `NativeSerialEnginePrivate::nativeSetFlowControl(AbstractSerial::Flow)'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:98: undefined reference to `NativeSerialEnginePrivate::nativeSetCharReadTimeout(int)'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:104: undefined reference to `NativeSerialEnginePrivate::nativeCharReadTimeout() const'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:110: undefined reference to `NativeSerialEnginePrivate::nativeSetTotalReadConstantTimeout(int)'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:116: undefined reference to `NativeSerialEnginePrivate::nativeTotalReadConstantTimeout() const'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:122: undefined reference to `NativeSerialEnginePrivate::nativeSetDtr(bool) const'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:128: undefined reference to `NativeSerialEnginePrivate::nativeSetRts(bool) const'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:134: undefined reference to `NativeSerialEnginePrivate::nativeLineStatus() const'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:140: undefined reference to `NativeSerialEnginePrivate::nativeSendBreak(int) const'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:146: undefined reference to `NativeSerialEnginePrivate::nativeSetBreak(bool) const'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:152: undefined reference to `NativeSerialEnginePrivate::nativeFlush() const'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:158: undefined reference to `NativeSerialEnginePrivate::nativeReset() const'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:164: undefined reference to `NativeSerialEnginePrivate::nativeBytesAvailable() const'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:173: undefined reference to `NativeSerialEnginePrivate::nativeWrite(char const*, long long)'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:192: undefined reference to `NativeSerialEnginePrivate::nativeRead(char*, long long)'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:209: undefined reference to `NativeSerialEnginePrivate::nativeSelect(int, bool, bool, bool*, bool*)'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:317: undefined reference to `NativeSerialEnginePrivate::nativeCurrentQueue(NativeSerialEngine::ioQueue) const'
./debug\nativeserialengine.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/nativeserialengine.cpp:324: undefined reference to `NativeSerialEnginePrivate::nativeCurrentQueue(NativeSerialEngine::ioQueue) const'
./debug\abstractserialnotifier.o:qserialdevice\test\guiapp-build-desktop/../../src/qserialdevice/abstractserialnotifier.cpp:7: undefined reference to `NativeSerialNotifier::NativeSerialNotifier(NativeSerialEngine*)'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\guiapp.exe] Error 1
mingw32-make: *** [debug] Error 2
The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project guiapp (target: Desktop)
When executing build step 'Make'

It is missing some code from the *win* *mac* files that I delete all references and files?

Best regards

Report

C

kuzulis

9 years ago

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.

Report

rdelgado

10 years ago

Hello,

I am trying to use the QSerialDevice library, I've downloaded the files and I do the build with QtCreator and everything builds fine. Then I open the writer example but when I try to compile I get the following error:

error: cannot find -lqserialdeviced
error: collect2: ld returned 1 exit status

Do you know how can I fix it to be able to use the QSerialDevice?

Thank you very much and good work!

Report

C

kuzulis

10 years ago

To compile the static library and examples need to open BuildExamples.pro.

Report

rdelgado

10 years ago

Hi,

I tried it and the examples are working now, but I tried to write a simple test code from scratch and I can't make it work.

Do I need to copy the qserialdevice and qserialdeviceenumerator folders to my project in order to use the QSerialDevice.
I've included the abstractserial.h to my project but it won't compile.
I thought that since I build the BuildLibrary it would work on any other project.

What am I doing wrong?

Thanks for the help!

Report

C

kuzulis

10 years ago

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

Report

9

woodywoodpecker

9 years ago

I'm sorry but I can not understand what you mean exactly. I have only (.a) not (.dll) after build .pro file. What should I do next? Copy that file into my project folder?

Report

9

woodywoodpecker

9 years ago

I add what you write above to my project .pro file and add #include <abstractserial.h> but after build it gives me errors like ":: error: cannot find -llibqserialdeviced.a" and ":: error: collect2: ld returned 1 exit status" please help me

Report

C

kuzulis

9 years ago

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

Report

MaX-MoD

10 years ago

very very nice, thanks!

under windows, I find it better than Qextserialport.

will try on linux too, soon.

Report

C

kuzulis

10 years ago

thanks :)

Report

ssaku

10 years ago

Is it possibile to send whole byte by write(...) I want send some array like 0x02,0x04,0x00,0x00,0x00,0xff and how to do it ? I need sends data from 0x00 to 0xff
Thanks for help

Report

ssaku

10 years ago

ehh (char)value

Report

C

kuzulis

10 years ago

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

Report

9

bronkopavel

10 years ago

Hi,

is in the windows code the SDK now required? (Compiler is showing missing header file)?

Bronko

Report

C

kuzulis

10 years ago

What are headers? What you mean?

Report

9 years ago

More changes.

12345678910
13
product-maker nadir22 Nov 28 2012 9 excellent
product-maker qstring Jul 25 2012 9 excellent
product-maker agnitsarkar Mar 15 2012 9 excellent
product-maker EvilTosha Jan 21 2012 9 excellent
product-maker peer Dec 30 2011 9 excellent
product-maker michaudg Jun 29 2011 9 excellent
product-maker woodywoodpecker Jun 25 2011 9 excellent
product-maker Krozac Apr 25 2011 9 excellent
product-maker bronkopavel Mar 01 2011 9 excellent
product-maker torsen Feb 03 2011 9 excellent
product-maker ilpaso Nov 30 2010 9 excellent
product-maker Chief677 Sep 28 2010 9 excellent
product-maker lit-uriy Sep 21 2010 9 excellent
Be the first to comment
nadir22
Mar 21 2012
iframe777
Mar 17 2012
peer
Feb 01 2012
Krozac
Sep 20 2011
wcai
Sep 05 2011
michaudg
Jun 29 2011
MaX-MoD
Mar 02 2011
lit-uriy
Jan 06 2011
ilpaso
Nov 30 2010
bronkopavel
Nov 14 2010
mariuszekpl
Oct 31 2010
NickGaens
Apr 28 2010
kostya2vntu
Mar 19 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
2.0
updated Mar 15 2012
added Sep 15 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 5
System Tags