RE: com port communication with a device

"Peter Gore" <[email protected]> Wed, 6 Jun 2007 07:25:19 +0100
Newsgroups gmane.comp.lang.delphi.jedi
Message-ID <[email protected]>
Why not use Turbopower Async Pro, Its open source and works OK for me.
Check it out here
 
http://sourceforge.net/projects/tpapro/
 
Regards
Peter Gore

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of niko svako
Sent: 30 May 2007 11:35
To: [email protected]
Subject: [Delphi-JEDI] com port communication with a device



How can I write a program which are communication with a device which is
connected to comport? The device reuirements are below:
- The data format of the interface is 4800 baud,
- 1 start bit,
- 8 data bits,
- 1 stop bit,
- no parity.
- For the protocol,XON/XOFF should be set. Data are transmitted and
received
as ASCII characters.

For this communication I can use some codes and some components. But I was
not able to do this.
hComm = CreateFile("COM1",
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
0,
NULL);

I am thinking that my problem is about handshaking(1 start bit, ASCII,
XON/XOFF) ... etc.

But I did not solve this. Can you help me about this problem.

Best regards.

niko svako.

[Non-text portions of this message have been removed]



 

__________ NOD32 2310 (20070605) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com



[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Delphi-JEDI/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/Delphi-JEDI/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/