Hello,
Have no troubles with data transfer through COM port using my app running on WM50 Emulator from one side and Hyperterminal on other side's PC. For some reason having problems with the real PPC device. COM port gets opened but when I try to write something over it looks like WriteFile hungs for a specified write's timeout and after expiration returns that everything was just fine but I see no data on terminal or analyzer.
Any comments, ideas
May be I have a conflict with ActiveSync It attempted to do Sync over the COM at the beginning but failed because there is no ActiveSync on the PC.
TIA.

Serial Port on real PPC device
Alvin Kuiper
Kevin Barnes
barkingdog
Will Riley
Paul Tew
The problem was in COM settings for Hardware flow control
I have this settings by default
dcb.fOutxCtsFlow =
TRUE;dcb.fOutxDsrFlow = TRUE;
dcb.fDtrControl = DTR_CONTROL_HANDSHAKE;
dcb.fOutX = FALSE;dcb.fInX =
FALSE;dcb.fRtsControl = RTS_CONTROL_HANDSHAKE;
and even though other side was also set for hardware flow control data from the very first WriteFile just vanished, others looked OK.
If I change my connection settings (to Xon/Xoff or None) everything works fine from the beginning.
Looks like I need to read more about serial communication.
Jeek
RJGibson
NoEgo
You are right the parameters were essential. I still have no clue what was wrong with hardware flow control. Someone suggested that probably PPC UART doesn't have some lines neccesary for full support of this option.
Thanks a lot for your participation.