Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Listening to COM ports

4 posts in Objects Last posting was on 2004-11-02 22:42:42.0Z
<Arnoud> Posted on 2004-10-28 07:43:09.0Z
From: <Arnoud>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Listening to COM ports
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: d576bc4c.kabel.telenet.be
X-Original-NNTP-Posting-Host: d576bc4c.kabel.telenet.be
Message-ID: <4180a30d$1@forums-1-dub>
Date: 28 Oct 2004 00:43:09 -0700
X-Trace: forums-1-dub 1098949389 213.118.188.76 (28 Oct 2004 00:43:09 -0700)
X-Original-Trace: 28 Oct 2004 00:43:09 -0700, d576bc4c.kabel.telenet.be
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8064
Article PK: 735331

Hi All,

I need to build an app that listens to a number of COM ports and starts
communication with another device that initiated the call.
Anybody done anything like this?
Do I require a 3rd party product for this?

Any help to get me going will be greatly appreciated.

Arnoud


Chris Pollach Posted on 2004-10-28 11:25:59.0Z
From: "Chris Pollach" <PollachC@SCC-CSC.gc.ca>
Newsgroups: sybase.public.powerbuilder.objects
References: <4180a30d$1@forums-1-dub>
Subject: Re: Listening to COM ports
Lines: 18
Organization: The Supreme Court of Canada
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: firewall.scc-csc.gc.ca
X-Original-NNTP-Posting-Host: firewall.scc-csc.gc.ca
Message-ID: <4180d747$1@forums-1-dub>
Date: 28 Oct 2004 04:25:59 -0700
X-Trace: forums-1-dub 1098962759 209.47.227.130 (28 Oct 2004 04:25:59 -0700)
X-Original-Trace: 28 Oct 2004 04:25:59 -0700, firewall.scc-csc.gc.ca
X-Authenticated-User: pbtenbeta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8065
Article PK: 735330

In NT and higher, just open the COM port with FileOpen ( ) and then do a
FileRead ( )!

<Arnoud> wrote in message news:4180a30d$1@forums-1-dub...
> Hi All,
>
> I need to build an app that listens to a number of COM ports and starts
> communication with another device that initiated the call.
> Anybody done anything like this?
> Do I require a 3rd party product for this?
>
> Any help to get me going will be greatly appreciated.
>
> Arnoud
>
>


"Davy De Permentier" <no_spam Posted on 2004-10-28 12:22:19.0Z
From: "Davy De Permentier" <no_spam@my_e_mail>
Newsgroups: sybase.public.powerbuilder.objects
References: <4180a30d$1@forums-1-dub>
Subject: Re: Listening to COM ports
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 194.78.25.49
X-Original-NNTP-Posting-Host: 194.78.25.49
Message-ID: <4180e47b@forums-1-dub>
Date: 28 Oct 2004 05:22:19 -0700
X-Trace: forums-1-dub 1098966139 194.78.25.49 (28 Oct 2004 05:22:19 -0700)
X-Original-Trace: 28 Oct 2004 05:22:19 -0700, 194.78.25.49
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8066
Article PK: 735332

We used external functions to do this (see below), but changed it using
FileOpen, FileWrite, FileRead powerbuilder functions. Peace of cake and it
makes the code much easier and more clear.

HTH,
Davy

Function Long CloseHandle ( Long hObject ) LIBRARY "kernel32.dll"

Function Long GetCommState (Long nCid, REF DCB lpDCB) LIBRARY "kernel32.dll"
Alias For "GetCommState"

Function Long SetCommState (Long nCid, DCB lpDCB) LIBRARY "kernel32.dll"
Alias For "SetCommState"

Function Long BuildCommDCB (String lpDef, REF DCB lpDCB) LIBRARY
"kernel32.dll" Alias For "BuildCommDCBA"

Function Long WriteFile (Long hFile, REF String lpBuffer, Long
nNumberOfBytesToWrite,REF Long lpNumberOfBytesWritten, Long lpOverlapped)
LIBRARY "kernel32.dll"

<Arnoud> wrote in message news:4180a30d$1@forums-1-dub...
> Hi All,
>
> I need to build an app that listens to a number of COM ports and starts
> communication with another device that initiated the call.
> Anybody done anything like this?
> Do I require a 3rd party product for this?
>
> Any help to get me going will be greatly appreciated.
>
> Arnoud
>
>


Shenn Sellers Posted on 2004-11-02 22:42:42.0Z
Reply-To: "Shenn Sellers" <ssellers@co.riverside.ca.us>
From: "Shenn Sellers" <ssellers@co.riverside.ca.us>
Newsgroups: sybase.public.powerbuilder.objects
References: <4180a30d$1@forums-1-dub>
Subject: Re: Listening to COM ports
Lines: 24
Organization: Riverside County Waste Management
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 208.45.168.113
X-Original-NNTP-Posting-Host: 208.45.168.113
Message-ID: <41880d62$1@forums-1-dub>
Date: 2 Nov 2004 14:42:42 -0800
X-Trace: forums-1-dub 1099435362 208.45.168.113 (2 Nov 2004 14:42:42 -0800)
X-Original-Trace: 2 Nov 2004 14:42:42 -0800, 208.45.168.113
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8070
Article PK: 735338

If you would rather go the third party route, we have been using a controler
found at http://www.jspayne.com/io/home.html for years.

--
Shenn Sellers
Riverside County Waste Management
NOSPAM_ssellers@co.riverside.ca.us

<Arnoud> wrote in message news:4180a30d$1@forums-1-dub...
> Hi All,
>
> I need to build an app that listens to a number of COM ports and starts
> communication with another device that initiated the call.
> Anybody done anything like this?
> Do I require a 3rd party product for this?
>
> Any help to get me going will be greatly appreciated.
>
> Arnoud
>
>