Solved

Carrier Detect dropped with Null Modem cable ?

Posted on 2001-07-10
5
302 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Controlling which port to download from 4 71
Excel object stays open 19 71
How to compare ms sql hashbytes results within vb6 5 55
VB6 ListBox Question 4 32
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

910 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

24 Experts available now in Live!

Get 1:1 Help Now