May 8th, 2005, 06:49 AM
#1
Problem with Comm control (trying to make Caller ID app)
Hi everyone. Long time no see.
I need a little help with the Comm control. I found this topic with code for detecting Caller ID.
http://www.vbforums.com/showthread.php?t=103953
The problem is, when ever I try to run the code it errors on this line:
saying: Runtime error 8012. The Device is not open.
I have no idea how to solve this. Other options are all set correctly (Com port, etc)
May 8th, 2005, 01:28 PM
#2
Re: Problem with Comm control (trying to make Caller ID app)
Does this help?
VB Code:
MSComm1.PortOpen = True
DoEvents
May 8th, 2005, 01:40 PM
#3
Re: Problem with Comm control (trying to make Caller ID app)
I assume that you designated which COM port and set the settings?
In your device manager do you have any yellow exclamation points on the port in question?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
May 8th, 2005, 01:45 PM
#4
Frenzied Member
Re: Problem with Comm control (trying to make Caller ID app)
Alternatively, what does hyperterminal say about the com port - does it recognise it as existing?
May 8th, 2005, 02:53 PM
#5
Re: Problem with Comm control (trying to make Caller ID app)
I don't believe MSComm control supports CallerID at all.
May 8th, 2005, 03:00 PM
#6
Frenzied Member
Re: Problem with Comm control (trying to make Caller ID app)
You have to have a modem capeable of detecting it as caller ID comes in between rings. You should see
RING
01753 678345
RING
01753 678345
In the receive string on the comm port. Alternatively on a ring you interrogate an S register on the modem for a number.
May 8th, 2005, 03:19 PM
#7
Re: Problem with Comm control (trying to make Caller ID app)
Yes, a "capable modem" is a mandatory requirement, but MSComm control must also support this feature and I don't think it was designed for that purpose, though. Few years back I gave up on it and went for a third party to save time (and aggravations ) ...
May 8th, 2005, 03:33 PM
#8
Re: Problem with Comm control (trying to make Caller ID app)
Here is a project that works on my machine, but we're having trouble deploying on my friends machine. It's from psc.
http://www.Planet-Source-Code.com/vb...48942&lngWId=1
You also need this to have it talk, as well as the SpeechTAPI module, unless you already have a \Windows\Speech folder on your system. I googled and found it.
It's also in the faq at the bottom of the link.
Attached Files
May 9th, 2005, 09:25 AM
#9
Junior Member
Re: Problem with Comm control (trying to make Caller ID app)
While very simple to use MSComm control to "talk" AT commands to a modem, it is extreamly specifiic to Modem model & Brand.
For anything to be used more than once and /or on different systems, TAPI is the best choice. Unimodem or AT commands are too modem specific.
MS has some sample TAPI apps.
May 9th, 2005, 09:32 AM
#10
Re: Problem with Comm control (trying to make Caller ID app)
I agree that TAPI library is the best ... there is however one little "problem" with it: very complex and difficult to use so it does require serious level of expertise in this area.
May 14th, 2005, 03:49 PM
#11
Junior Member
Re: Problem with Comm control (trying to make Caller ID app)
If the portopen fails it is because either the port doesn't exist, you have it open already in your program or another application (or device driver) is using it.
May 14th, 2005, 03:54 PM
#12
Re: Problem with Comm control (trying to make Caller ID app)
See if you can open it in HyperTerminal. Do you have any fax software running?
Something is probably using the port. Did my upload work for you?
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width