Einzelnen Beitrag anzeigen

Freiwilderer

Registriert seit: 26. Mai 2009
163 Beiträge
 
Delphi 7 Enterprise
 
#12

AW: CPort: Comport auslesen DOS-> Delphi

  Alt 6. Mär 2012, 15:31
hi und nochmals vielen Dank für die Hilfe

das geht leider auch nicht ...
ich habe eben raus gefunden, wie die Verbindung auf dem WinCE Gerät geöffnet wird. und zwar so:
C++
Code:
      GetCommState(hPort,&PortDCB);
      PortDCB.BaudRate           = CBR_9600;
      PortDCB.fBinary            = TRUE;
      PortDCB.fParity            = TRUE;
      PortDCB.fOutxCtsFlow       = TRUE;
      PortDCB.fOutxDsrFlow       = TRUE;
      PortDCB.fDtrControl        = DTR_CONTROL_ENABLE;
      PortDCB.fDsrSensitivity    = FALSE;
      PortDCB.fTXContinueOnXoff  = TRUE;
      PortDCB.fOutX              = FALSE;
      PortDCB.fInX               = FALSE;
      PortDCB.fErrorChar         = FALSE;
      PortDCB.fNull              = FALSE;
      PortDCB.fAbortOnError      = FALSE;
      PortDCB.ByteSize           = 7;
      PortDCB.Parity             = EVENPARITY;
      PortDCB.StopBits           = ONESTOPBIT;
      PortDCB.fRtsControl        = RTS_CONTROL_ENABLE;
      PortDCB.XoffLim            = 2048/5;
      PortDCB.XonLim             = 2048/5;
      SetCommState(hPort,&PortDCB);

      m_CommTimeouts.ReadIntervalTimeout = MAXDWORD;
      m_CommTimeouts.ReadTotalTimeoutMultiplier = 0;
      m_CommTimeouts.ReadTotalTimeoutConstant = 0;
      m_CommTimeouts.WriteTotalTimeoutMultiplier = 0;
      m_CommTimeouts.WriteTotalTimeoutConstant = 3000;
      iPortReturn=SetCommTimeouts(hPort , &m_CommTimeouts);
... kannst mir nicht zufällig sagen, ob meine Delphi Connection da richtig eingestellt ist?
  Mit Zitat antworten Zitat