
QT_comport
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
This application allow work with serial (com) ports in asynchronous mode. Format data for input/output: Hex, Decimal, Binary, ASCII. Based on qextserialport.
This soft was successfully tested in opensuse 11 and Windows xp.
9 years ago
fix: windows setup program bug
add: calc CRC16
add: calc CRC for MODBUS RTU
add: open and save commands for dataOut
add: calc CRC for NMEA 0183, showing input data in NMEA format
9 years ago
fix: windows setup program bug
add: calc CRC16
add: calc CRC for MODBUS RTU
add: open and save commands for dataOut
add: calc CRC for NMEA 0183, showing input data in NMEA format
banlinhtienphong
9 years ago
Report
gorin
9 years ago
Steps:
1) create *.pro file: qmake -tp vc qt_comport.pro
2) open project in vs and build.
Soft:
qt4.7.4&vs2008express
I can recommend:
reseat vs2008 or build project in qtcreator
Report
gorin
9 years ago
Report
gorin
9 years ago
Report
EraJma
9 years ago
When i trying to open several ports (about 100) to detect a device, my app fails and needs to be killed when no device is connected.
I modified the method "bool Qthreadcomport::open(QIODevice::OpenMode mode)" to start the tread only if the port is opened and the problem go away.
Please, someone could confirm or advise?
Report
maronezzi
9 years ago
const QString portname = "/dev/ttyUSB";
but doesn't work.
Thanks
Report
gorin
10 years ago
Report
remnant24c
10 years ago
Your Source is good. but I found some error, truly my compiler(gcc3.4) found it.
I think your Qt_comport. pro file have a mistype:
code line 29 win32 { -> win32:{
and in the crc_form.cpp
code line 153
emit testCopy(line_out->text())
->
QString strCopy;
strCopy = line_out->test();
emit testCopy( strCopy );
have a nice day.
Report
lighterapprentice
11 years ago
the LPT goes (Win and Linux)
is a good idea and/or any others idea ?
One is good program Idea. Extension capable.
happy new year :-)
Report
gorin
11 years ago
1) port settings;
2) number of bits in seconds, provided your communications protocol;
3) OS;
3) data pack for testing, or log file with comments.
Write me on this site, or mail "help | about" in qt_comport.
Report
s-valve
11 years ago
now I use Qt Creator and all works fine.
But I figure out a problem with the data reading.
If the program receives more than 8 Bytes it does not read out the buffer correctly. Sometimes it reads all received Bytes correctly but mostly it shows that a lot of bytes are received in a next message and it shows the other Bytes. Or it lost the first Bytes. And very often it put the old Bytes to the front of the text line with new Bytes. There is no discernible pattern.
Any idea?
best regards, M
Report
s-valve
11 years ago
I've downloaded the source and tried to changed the configuration of the output to release. But now my Qt IDE crashes. Is it only possible to compile your app as debug or which settings needs to be done to enable a release output?
brgds, M
Report