Skip to content

Wrong com port settings #1254

@hagsted

Description

@hagsted

Describe the bug
When opening a com port (serial RS232) the port settings are wrong. the settings in windows 10/11 is set to:

  • Baud rate: 9600
  • Data bit: 8
  • Parity: None
  • Stop bit: 1

But the trace reports

  • Baud rate: 9600
  • Data bit: 7
  • Parity: Even
  • Stop bit: 2
22b0:Call USER.200: OPENCOMM(12d7ab00 "COM1",0fa0,00c8) ret=1227:865f ds=12d7
1abc:22b0:trace:comm:OpenComm16 COM1, 4000, 200
1abc:22b0:trace:comm:GetCommState16 cid 0, ptr 7467ECDC
22b0:Ret  USER.200: OPENCOMM() retval=00000000 ret=1227:865f ds=12d7
22b0:Call USER.213: BUILDCOMMDCB(12d7:abca,12d7:ac94) ret=1227:8883 ds=12d7
1abc:22b0:trace:comm:BuildCommDCB16 (COM1:9600,e,7,2), ptr 02F8E83C

This results in no communication between attached device and the program.

Expected behavior
The win16 program should open and start communicating with the device. It is a machine control device, from last century.

Environment (please complete the following information):

  • OS: Windows 11 22h2 and windows 10 22h2
  • Version 2391
4. Upload trace.txt here.
[trace.txt](https://github.com/otya128/winevdm/files/10498082/trace.txt)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions