[PD-dev] [ pure-data-Bugs-1944125 ] comport: stop bit settings

SourceForge.net noreply at sourceforge.net
Wed Apr 16 17:24:54 CEST 2008


Bugs item #1944125, was opened at 2008-04-16 15:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1944125&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: externals
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Thomas Grill (xovo)
Assigned to: Nobody/Anonymous (nobody)
Summary: comport: stop bit settings

Initial Comment:
It seems that the comport object doesn't handle stop bit settings correctly (at least under Windows). I have frequent crashes with keyspan drivers (which seem to be buggy too) because of that.

x->dcb.StopBits has three possible settings
0 for 1 stop bit, 1 for 1.5 bits, 2 for 2 bits

There seems to be a mismatch between the set_serial function, with
x->stop_bits = x->dcb.StopBits;
and the set_stopflag function, where there's only a a check whether nr == 1.

A quick and dirty fix that works for me is to set (in set_serial):
x->stop_bits = (x->dcb.StopBits)?1:0;

but that's no real solution.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1944125&group_id=55736




More information about the Pd-dev mailing list