CT3Comm Library Question

This is a discussion on CT3Comm Library Question within the xharbour forums in Programming Languages category; I am using the CT3Comm library in vXh, but cannot seem to get the com_dcd() function to work at all. I am able to open the port, initialize it, send and receive data, but when I create a loop to look for modem carrier (DCD), it never detects the carrier. I have confirmed the cabling and can see the DCD activate using a com port monitor. Has anyone used this function? I am using a standalone modem on COM1....

Go Back   Application Development Forum > Programming Languages > xharbour

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-09-2008, 10:36 PM
Ed J
Guest
 
Default CT3Comm Library Question

I am using the CT3Comm library in vXh, but cannot seem to get the
com_dcd() function to work at all. I am able to open the port,
initialize it, send and receive data, but when I create a loop to look
for modem carrier (DCD), it never detects the carrier. I have
confirmed the cabling and can see the DCD activate using a com port
monitor. Has anyone used this function? I am using a standalone
modem on COM1.
Reply With Quote
  #2  
Old 08-10-2008, 09:20 AM
Luiz Lafael
Guest
 
Default Re: CT3Comm Library Question

Ed
>I am using the CT3Comm library in vXh, but cannot seem to get the
> com_dcd() function to work at all. I am able to open the port,
> initialize it, send and receive data, but when I create a loop to look
> for modem carrier (DCD), it never detects the carrier. I have
> confirmed the cabling and can see the DCD activate using a com port
> monitor. Has anyone used this function? I am using a standalone
> modem on COM1.


use xhbcomm. it allow use of DCD

Regards
Luiz


Reply With Quote
  #3  
Old 08-10-2008, 10:59 AM
Ed J
Guest
 
Default Re: CT3Comm Library Question

On Aug 10, 9:20*am, "Luiz Lafael" <l...@xharbour.com.br> wrote:
> Ed
>
> >I am using the CT3Comm library in vXh, but cannot seem to get the
> > com_dcd() function to work at all. *I am able to open the port,
> > initialize it, send and receive data, but when I create a loop to look
> > for modem carrier (DCD), it never detects the carrier. *I have
> > confirmed the cabling and can see the DCD activate using a com port
> > monitor. *Has anyone used this function? *I am using a standalone
> > modem on COM1.

>
> use xhbcomm. it allow use of DCD
>
> Regards
> Luiz


Hi Luiz,
Thanks for the info. I cannot see where the library doc shows DCD
function capability. However, in the documentation for the function
GetModemStatus() there is a reference to "rlsd" which I have never
seen before. Perhaps this is the DCD status?
Regards,
Ed
Reply With Quote
  #4  
Old 08-10-2008, 11:23 AM
Ed J
Guest
 
Default Re: CT3Comm Library Question

On Aug 10, 9:20*am, "Luiz Lafael" <l...@xharbour.com.br> wrote:
> Ed
>
> >I am using the CT3Comm library in vXh, but cannot seem to get the
> > com_dcd() function to work at all. *I am able to open the port,
> > initialize it, send and receive data, but when I create a loop to look
> > for modem carrier (DCD), it never detects the carrier. *I have
> > confirmed the cabling and can see the DCD activate using a com port
> > monitor. *Has anyone used this function? *I am using a standalone
> > modem on COM1.

>
> use xhbcomm. it allow use of DCD
>
> Regards
> Luiz


Hi Luiz,
Thanks for the info. I cannot see where the library doc shows DCD
function capability. However, in the documentation for the function
GetModemStatus() there is a reference to "rlsd" which I have never
seen before. Perhaps this is the DCD status?

Also, in the InitPort() function, what is the "@x"
in your example: nHandle := Init_Port('COM1',9600,8,1,0,4000,@x) ?

Regards,
Ed



Reply With Quote
  #5  
Old 08-10-2008, 11:52 AM
Ed J
Guest
 
Default Re: CT3Comm Library Question

On Aug 10, 11:23*am, Ed J <foodwatch2...@yahoo.com> wrote:
> On Aug 10, 9:20*am, "Luiz Lafael" <l...@xharbour.com.br> wrote:
>
> > Ed

>
> > >I am using the CT3Comm library in vXh, but cannot seem to get the
> > > com_dcd() function to work at all. *I am able to open the port,
> > > initialize it, send and receive data, but when I create a loop to look
> > > for modem carrier (DCD), it never detects the carrier. *I have
> > > confirmed the cabling and can see the DCD activate using a com port
> > > monitor. *Has anyone used this function? *I am using a standalone
> > > modem on COM1.

>
> > use xhbcomm. it allow use of DCD

>
> > Regards
> > Luiz

>
> Hi Luiz,
> Thanks for the info. *I cannot see where the library doc shows DCD
> function capability. *However, in the documentation for the function
> GetModemStatus() * there is a reference to "rlsd" which I have never
> seen before. *Perhaps this is the DCD status?
>
> Also, in the InitPort() function, what is the "@x"
> in your example: * *nHandle := Init_Port('COM1',9600,8,1,0,4000,@x)?
>
> Regards,
> Ed


Luiz,
Also, in the GetModemStatus(), what type of memory variable needs to
be passed... Logical, Char, or numeric?

Can you provide a working sample of a simple port opening and modem
status reading? The documentation/syntax is very hard to follow...
Thanks,
Ed
Reply With Quote
  #6  
Old 08-10-2008, 02:57 PM
Pritpal Bedi
Guest
 
Default Re: CT3Comm Library Question

Ed

>I am using the CT3Comm library in vXh, but cannot seem to get the
> com_dcd() function to work at all. I am able to open the port,
> initialize it, send and receive data, but when I create a loop to look
> for modem carrier (DCD), it never detects the carrier. I have
> confirmed the cabling and can see the DCD activate using a com port
> monitor. Has anyone used this function? I am using a standalone
> modem on COM1.


I looked into the sources and found some mistake, thanks for update.
In the meantime use Com_RLSD( nPort ) instead of Com_DCD( nPort ).
Please report if you get the desired result.

Regards
Pritpal Bedi, INDIA-USA


Reply With Quote
  #7  
Old 08-11-2008, 09:38 AM
luiz Rafael Culik Guimaraes
Guest
 
Default Re: CT3Comm Library Question

Hi


GetModemStatus(nHandle,@lCts,@lDSR,@lRing,@lRLSD)
all variable passed by are logical type

Regards
Luiz


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:56 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.