Serial Port on real PPC device

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.



Answer this question

Serial Port on real PPC device

  • Alvin Kuiper

    Already did but nothing changed.
  • Kevin Barnes

    All I can think of is that your COM parameters (settings) are incorrect. Consider getting some device-based terminal application and checking if it can talk to the desktop. The fact that your code worked on the emulator does not necessarily mean that it will work on the device

  • barkingdog

    This is very likely. Basically you are only guaranteed to have Tx, Rx and Gnd. The rest of the control pins are optional.

  • Will Riley

    If you believe ActiveSync is the culprit, launch the activesync app on the device and in the option set it to use USB or IR

  • 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

    What is the device What are you using as the serial port What kind of connector What is it connected to

  • RJGibson

    iPAQ rx1955. Direct serial COM1 connected through Y-cable to the PC.
  • 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.


  • Serial Port on real PPC device