jiuzhuaxiong / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

Does not detect serial port disconnecton of Arduino #174

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of QextSerialPort are you using?
1.2RC ... 3be3fbf31edf6c91c7838f585b77acd787811296

What steps will reproduce the problem?
1. Connect Ardunio
2. Start app, send/receive data using write() and check isOpen()
3. Disconnect Arudino

What is the expected output? What do you see instead?

Expected: Write failures, isOpen() return false, bytesToWrite() > 0
Actual: Write of size zero (as when ok), isOpen() return true, bytesToWrite() 
== 0 always-

What version of the product are you using? On what operating system?

Win7 Pro 64bit. Qt 4.6.1.

Please provide any additional information below.

Original issue reported on code.google.com by marcus.l...@orzone.com on 10 Dec 2013 at 7:53

GoogleCodeExporter commented 8 years ago
FWIW, I don't have a non-USB serial device to test with, so I'm not sure if 
this is Arduino-specific or otherwise. 

Also, portDiscovered/Removed do not seem to be called either.

I'm kind of at a loss how to detect these issues.

Original comment by marcus.l...@orzone.com on 10 Dec 2013 at 7:54

GoogleCodeExporter commented 8 years ago
BTW, the port disappears from scanPorts() when not connected, so Windows 
handles things properly.

Original comment by marcus.l...@orzone.com on 10 Dec 2013 at 11:54