- CommV24 assertion failure

From: [at]} <Alexander>
Date: Fri, 5 May 2006 21:56:23 +0700

----boundary-LibPST-iamunique-1942525379_-_-
Content-type: text/plain

Hello, Rex!

RC> What's wrong with this module?

  Nothing's wrong, as you will see.
  

RC> I can't get past the first step. The parameters (4800 baud, 8
RC> bits, 1 stop bit) should be valid. Running on Win XP. Thanks.

RC> CommV24.Open( 'COM1', 4800, {CommV24.stop15}, c);
RC> (* 8 bits is default; stop15 is actually 1 stop bit *)

  CommV24.stop15 is not actually 1 stop bit. It is one and a half stop
  bits. 1 stop bit is default too, so correct opts parameter value in
  your case is {}.

  Here's an excerpt from "Comm/Docu/V24.odc":
---
CONST stop15, stop2
Number of stop bits (1.5 or 2). These flags may be included in the
opts set of procedure Open. At most one of them may be included.
If _none_ is included, _one_stop_bit_ is chosen.
---
  Here's an excerpt from "Win32 Programmer's Guide":
---
When a DCB structure is used to configure the 8250, the following
restrictions apply to the values specified for the ByteSize and
StopBits members:  
- The number of data bits must be 5 to 8 bits.
- The use of 5 data bits with 2 stop bits is an invalid combination,
as is 6, 7, or 8 data bits with 1.5 stop bits.
---
  You were trying to setup port to send 8 data bits with 1.5 stop
  bits, so you got an error. This is not CommV24's limitation.
---=====---
 Alexander
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy----boundary-LibPST-iamunique-1942525379_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMF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g0KXHBhcg0KLS0tIEJsYWNrQm94XHBhcg0KLS0tIHNlbmQgc3ViamVjdCBI
RUxQIG9yIFVOU1VCU0NSSUJFIHRvIGJsYWNrYm94QG9iZXJvbi5jaH19AKS+oxAZnW4A3QE=
----boundary-LibPST-iamunique-1942525379_-_---
Received on Fri May 05 2006 - 16:56:23 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:02 UTC