| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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. |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| 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 |
|
#6
| |||
| |||
| 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 |
|
#7
| |||
| |||
| Hi GetModemStatus(nHandle,@lCts,@lDSR,@lRing,@lRLSD) all variable passed by are logical type Regards Luiz |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.