The Initial Connection


From SynCE-Wiki

Some handshake steps have to be performed before a stable initial connection between the device and the host is established. This handshake is fully implemented in VDCCM.

  1. The device connects to the host on TCP port 990.
  2. After esteblishing this TCP connection, the device sends four bytes {0x00, 0x00, 0x00, 0x00} via that connection to the host.
  3. The host has to respond with four bytes also {0x03, 0x00, 0x00, 0x00}.
  4. The device answers that response by again sending four bytes {0x04, 0x00, 0x00, 0x00} to the host.
  5. The host must not send a response to that answer. Instead, the device transmits the DeviceInfoPackage to the host.
  6. The connection is established.

  7. To keep the connection up, the host has to send ping packages consisting of {0x01, 0x00, 0x00, 0x00} to the device periodically (ActiveSync does this every 40th second).
  8. The device responds to a ping by sending the four bytes {0x02, 0x00, 0x00, 0x00}.