On Fri, 4 Jan 2002 12:06:18 -0200 Antonio Augusto Todo Bom Neto <antonio@xultz.wox.org> wrote: > I need to use comm port for a PIC microcontroler programmer, PicStart Plus, but the MPLAB program does not open the port normaly. CodeWeavers Wine runs ok, but is very old, I want to use the last release of wineHQ, 20011226. > > Here is the msgs that wine print with -debugmsg + comm options: > > trace:comm:COMM_Init COM1 = /dev/ttyS0 > trace:comm:COMM_Init LPT1 = /dev/lp0 > trace:comm:COMM_Init COM2 = /dev/ttyS1 > trace:comm:COMM_Init COM3 = /dev/ttyS2 > trace:comm:COMM_Init COM4 = /dev/modem > trace:comm:OpenComm16 COM1, 4096, 16 > trace:comm:OpenComm16 COM1 = /dev/ttyS0 > trace:comm:GetCommState16 cid 0, ptr 0x4070d678 > trace:comm:GetCommState handle 88, ptr 0x40cc5fc0 > trace:comm:GetCommState OK > trace:comm:GetCommState bytesize 8 baudrate 9600 fParity 0 Parity 0 stopbits 1 > trace:comm:GetCommState IXON ~IXOFF > trace:comm:GetCommState ~CRTSCTS > trace:comm:ClearCommError handle 88 cbInQue = 0 cbOutQue = 0 > trace:comm:BuildCommDCB16 (COM1:19200,n,8,1), ptr 0x4104740b > trace:comm:BuildCommDCBAndTimeoutsA (COM1:19200,n,8,1,0x40cc6038,(nil)) > trace:comm:COMM_BuildOldCommDCB (COM1:19200,n,8,1), ptr 0x40cc6038 > trace:comm:COMM_BuildOldCommDCB baudrate (19200) > trace:comm:COMM_BuildOldCommDCB parity (N) > trace:comm:COMM_BuildOldCommDCB charsize (8) > trace:comm:COMM_BuildOldCommDCB stopbits (1) > trace:comm:SetCommState16 cid 0, ptr 0x4104740b > trace:comm:SetCommState handle 88, ptr 0x40cc6040 > trace:comm:SetCommState bytesize 8 baudrate 19200 fParity 0 Parity 0 stopbits 1 > trace:comm:SetCommState ~IXON ~IXOFF > trace:comm:SetCommState CRTSCTS > trace:comm:SetCommEventMask16 cid 0,mask 1 > trace:comm:GetCommModemStatus 4126 -> MS_DSR_ON MS_CTS_ON > trace:comm:SetCommEventMask16 modem dcd construct 30 > trace:comm:EnableCommNotification16 (0, 22, -1, -1) > trace:comm:EscapeCommFunction16 cid=0, function=5 > trace:comm:EscapeCommFunction handle 88, function=5 > trace:comm:EscapeCommFunction SETDTR > trace:comm:WriteComm16 cid 0, ptr 0x40442cec, length 1 > trace:comm:WriteComm16 "\210" > trace:comm:GetCommModemStatus 4126 -> MS_DSR_ON MS_CTS_ON > trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 > trace:comm:GetCommModemStatus 4126 -> MS_DSR_ON MS_CTS_ON > trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 > > ***********************************************8 Then I did the follows: make wine uninstall as root install the RPM packege codeweavers-wine-20010626-4-i386.rpm Then I run the MPLAB and it can to open the port very well, and here is the -debugmsg +comm lines: Invoking /opt/wine/bin/wine.bin -debugmsg +comm MPLAB ... Could not stat /mnt/fd0 (No such file or directory), ignoring drive A: Could not stat /cdrom (No such file or directory), ignoring drive D: Warning: /opt/wine/bin/wine.bin not accessible from a DOS drive Warning: /opt/wine/bin/wine.bin not accessible from a DOS drive Warning: /opt/wine/bin/wine.bin not accessible from a DOS drive trace:comm:COMM_Init COM1 = /dev/ttyS0 trace:comm:COMM_Init LPT1 = /dev/lp0 trace:comm:COMM_Init COM2 = /dev/ttyS1 trace:comm:COMM_Init COM3 = /dev/ttyS2 trace:comm:COMM_Init COM4 = /dev/modem fixme:keyboard:X11DRV_KEYBOARD_DetectLayout Your keyboard layout was not found! Using closest match instead (United States keyboard layout (phantom key version)) for scancode mapping. Please define your layout in windows/x11drv/keyboard.c and submit them to us for inclusion into future Wine releases. See documentation/keyboard for more information. trace:comm:OpenComm16 COM1, 4096, 16 trace:comm:OpenComm16 COM1 = /dev/ttyS0 trace:comm:BuildCommDCB16 (COM1:19200,n,8,1), ptr 0x41125da3 trace:comm:BuildCommDCB16 baudrate (19200) trace:comm:BuildCommDCB16 parity (N) trace:comm:BuildCommDCB16 charsize (8) trace:comm:BuildCommDCB16 stopbits (1) trace:comm:SetCommState16 cid 0, ptr 0x41125da3 trace:comm:SetCommState16 baudrate 19200 trace:comm:SetCommState16 fParity 0 Parity 0 trace:comm:SetCommState16 bytesize 8 trace:comm:SetCommState16 stopbits 0 trace:comm:SetCommEventMask16 cid 0,mask 1 trace:comm:SetCommEventMask16 ioctl 0, msr 4126 at 0x4048034b 0x40480328 trace:comm:SetCommEventMask16 modem dcd construct 30 trace:comm:EnableCommNotification16 (0, 684, -1, -1) trace:comm:EscapeCommFunction16 cid=0, function=5 trace:comm:EscapeCommFunction16 SETDTR trace:comm:WriteComm16 cid 0, ptr 0x40417650, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:comm_notification async notification trace:comm:comm_notification notifying 0684: cid=0, mask=04 trace:comm:GetCommEventMask16 cid 0, mask 1 trace:comm:ReadComm16 cid 0, ptr 0x40416f60, length 2048 trace:comm:ReadComm16 « trace:comm:WriteComm16 cid 0, ptr 0x40416e66, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:ReadComm16 cid 0, ptr 0x40416f60, length 2048 trace:comm:ReadComm16 trace:comm:comm_notification async notification trace:comm:comm_notification notifying 0684: cid=0, mask=04 trace:comm:GetCommEventMask16 cid 0, mask 1 trace:comm:ReadComm16 cid 0, ptr 0x40416f60, length 2048 trace:comm:ReadComm16 trace:comm:ReadComm16 cid 0, ptr 0x40416f60, length 2048 trace:comm:ReadComm16 trace:comm:EnableCommNotification16 (0, 0, -1, -1) trace:comm:EscapeCommFunction16 cid=0, function=6 trace:comm:EscapeCommFunction16 CLRDTR trace:comm:CloseComm16 cid=0 trace:comm:OpenComm16 COM1, 4096, 16 trace:comm:OpenComm16 COM1 = /dev/ttyS0 trace:comm:BuildCommDCB16 (COM1:19200,n,8,1), ptr 0x41125da3 trace:comm:BuildCommDCB16 baudrate (19200) trace:comm:BuildCommDCB16 parity (N) trace:comm:BuildCommDCB16 charsize (8) trace:comm:BuildCommDCB16 stopbits (1) trace:comm:SetCommState16 cid 0, ptr 0x41125da3 trace:comm:SetCommState16 baudrate 19200 trace:comm:SetCommState16 fParity 0 Parity 0 trace:comm:SetCommState16 bytesize 8 trace:comm:SetCommState16 stopbits 0 trace:comm:SetCommEventMask16 cid 0,mask 1 trace:comm:SetCommEventMask16 ioctl 0, msr 4126 at 0x4048034b 0x40480328 trace:comm:SetCommEventMask16 modem dcd construct 30 trace:comm:EnableCommNotification16 (0, 684, -1, -1) trace:comm:EscapeCommFunction16 cid=0, function=5 trace:comm:EscapeCommFunction16 SETDTR trace:comm:WriteComm16 cid 0, ptr 0x4041761a, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:comm_notification async notification trace:comm:comm_notification notifying 0684: cid=0, mask=04 trace:comm:GetCommEventMask16 cid 0, mask 1 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 « trace:comm:WriteComm16 cid 0, ptr 0x40416f84, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:comm_notification async notification trace:comm:comm_notification notifying 0684: cid=0, mask=04 trace:comm:comm_notification async notification trace:comm:comm_notification notifying 0684: cid=0, mask=04 trace:comm:GetCommEventMask16 cid 0, mask 1 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:WriteComm16 cid 0, ptr 0x40416f82, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:GetCommEventMask16 cid 0, mask 1 trace:comm:comm_notification async notification trace:comm:comm_notification notifying 0684: cid=0, mask=04 trace:comm:GetCommEventMask16 cid 0, mask 1 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:comm_notification async notification trace:comm:comm_notification notifying 0684: cid=0, mask=04 trace:comm:GetCommEventMask16 cid 0, mask 1 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 , trace:comm:WriteComm16 cid 0, ptr 0x40416f82, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:comm_notification async notification trace:comm:comm_notification notifying 0684: cid=0, mask=04 trace:comm:GetCommEventMask16 cid 0, mask 1 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ? trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ÿ trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ? trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ÿ trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ; trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ÿ trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ; trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ÿ trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ÿ trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ÿ trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 Ý trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:comm_notification async notification trace:comm:comm_notification notifying 0684: cid=0, mask=04 trace:comm:GetCommEventMask16 cid 0, mask 1 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:WriteComm16 cid 0, ptr 0x40416f82, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:comm_notification async notification trace:comm:comm_notification notifying 0684: cid=0, mask=04 trace:comm:GetCommEventMask16 cid 0, mask 1 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ; trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ÿ trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ; trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 ÿ trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:WriteComm16 cid 0, ptr 0x40416f94, length 1 trace:comm:WriteComm16 t trace:comm:GetCommError16 cid 0, error 0, stat 0 in 0 out 0, stol 30 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:comm_notification async notification trace:comm:comm_notification notifying 0684: cid=0, mask=04 trace:comm:GetCommEventMask16 cid 0, mask 1 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:ReadComm16 cid 0, ptr 0x4041707e, length 2048 trace:comm:ReadComm16 trace:comm:EnableCommNotification16 (0, 0, -1, -1) trace:comm:EscapeCommFunction16 cid=0, function=6 trace:comm:EscapeCommFunction16 CLRDTR trace:comm:CloseComm16 cid=0 Wine exited with a successful status Whit this information I hope to help for the comm debug, I dont know how to help with programming because I dont promgram in "C", only in assembly for microcontrolers. Thank you, Antonio Todo Bom Neto