Solved

Carrier Detect dropped with Null Modem cable ?

Posted on 2001-07-10
5
301 Views
Last Modified: 2012-05-05
Hi... it'll probably jump out when I debug the code but has anyone got a 'must be' answer for the fact that my CD Holding has gone low even though I have a null modem cable attached to another RS-232 device. I know the cable is OK because i have used Terminal.exe (W3.x) and it works fine....

hope someone has an idea

Stu
0
Comment
Question by:nvms
  • 3
  • 2
5 Comments
 
LVL 17

Expert Comment

by:inthedark
ID: 6270849
Is the a comm control question?  In which case what are your port/handshaking settings?
0
 

Author Comment

by:nvms
ID: 6271582
9600,N,8,1 None (the remote dial-up hardware does not have hardware handshaking)...  
0
 
LVL 17

Accepted Solution

by:
inthedark earned 50 total points
ID: 6271635
So how will you control flow betweem the systems:
comm1.handshaking=comNone ' or commxon/xoff

So how will you avoid buffer overflow ?

In the old days you could tell dos to ignore carrier detect in the settings like....
9600,N,8,1,CS0

But this is no longer documented.

0
 

Author Comment

by:nvms
ID: 6271764
Hi !! well for some reason CD is now being detected. Win 2000 being a bugger ? Anyway, I am using an Xmodem protocol (which I am about to post a query on) this sends 128 bytes at a time then waits for a ACK or NAK response. This avoids the problems with buffer overflow. Thanks for your comments..

Stewart

0
 
LVL 17

Expert Comment

by:inthedark
ID: 6272262
You send an invoice to Bill Gates re: language referrence ommissions.  If every body did this MS may be a bit more thorough when creating the documentation.

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now