Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: CID Plugin Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MAWilsonPE
Newbie
Newbie
Avatar

Joined: May 30 2008
Location: United States
Online Status: Offline
Posts: 18
Posted: June 16 2008 at 11:35 | IP Logged Quote MAWilsonPE

I am trying to get the CID plugin to work. I have read and re-read the CID links but can't get it to fire.

I downloaded the plugin and put the PH_CID.ocx and phcid.ini into the plugins directory. I registered the CID plugin and got an OK with: regsvr32 "c:\program files\powerhome\plugins\ph_cid.ocx"

I am using the phcid.ini as supplied:
[Config]
port=3
settings=9600,N,8,1

CIDInit=AT#CID=1
;CIDInit=AT+VCID=1
;CIDInit=AT#CID=2
;CIDInit=AT%CCID=1
;CIDInit=AT%CCID=2
;CIDInit=AT#CC1
;CIDInit=AT*ID1
;CIDInit=AT#CLS=8#CID=1
;Remove the ; to activate the appropriate CID Init String. Only 1 CIDInit line should be uncommented.

format=1
;format=1 is normal CID modem. format=2 is NetCallerID box

lookupnames=0
;Set lookupnames=1 to have names in the [Names] section substituted for phone company supplied name.

[Hangup]
answer=ata
hangup=ath
prefix=***
;The above section control the ability to automatically hangup on numbers flagged as telemarketers.
;Add the prefix defined above to the beginning of names below to flag them for hangup.

[Names]
18885551212=Test Name
18885551313=***Telemarketer


I have confirmed that my modem is COM3 and can access it using Hyperterminal. When I type in AT#CID=1 it responds OK and the caller ID shows up when I call in.

Should I be able to type any of the command lines above and get an OK response from Hyperterminal? When I type in "port=3" or "settings=9600,N,8,1" the cursor jumps back to the beginning of the same line and does not respond "OK". When I type in "format=1" I get "Error".

I setup the plugin: ID=PH_CID, Plugin Type=ActiveX, Launch Data=PH_CID.phcid, Initialization Data=C:\Program Files\Powerhome\plugins\phcid.ini

I created a trigger Setup and macro Setup to initialize the modem on Powerhome startup using these two formulas: ph_comopen(4,3,9600,N,8,1,1,0,0,0,0,1,1,"?","CID") and ph_comsendstring(4,"at#cid=1\013"). The ph_comopen did not work until I changed the "N" to just N

Why to I set the modem setting here as well as in the phcid.ini file? Am I now initializing it twice?

According to the Help File ph_comopen calls the macro CID when data is received. Does this work with the plugin? or will it conflict?

I created the Generic Plugin trigger: ID=PH_CID, Description=Caller ID, Action Type=Macro, Action=CID, Trigger Type=Generic Plugin, Trigger ID=PH_CID, Trigger ID Number=Command 1, Trigger Value=Option 1, Boolean=1

Powerhome now starts up and runs Setup without error. When running I cannot connect to the modem with Hyperterminal which tells me that Powerhome has it tied up.

Still, the macro CID does not fire with an incoming call according to the Event Log. What am I missing?

Other info: Toshiba Tecra laptop with Toshiba software modem.

Thanks for your help, Mike
Back to Top View MAWilsonPE's Profile Search for other posts by MAWilsonPE
 
MAWilsonPE
Newbie
Newbie
Avatar

Joined: May 30 2008
Location: United States
Online Status: Offline
Posts: 18
Posted: June 16 2008 at 17:12 | IP Logged Quote MAWilsonPE

OK, I think I have found part of the problem. I have mixed and matched the old macro way of getting CID data with the new CID plugin. I have disabled the SETUP macro so it no longer tries to open the com port on start-up. So that leaves me with the plugin setup, the generic plugin trigger setup, or the .ini file being wrong. Any thoughts?
Back to Top View MAWilsonPE's Profile Search for other posts by MAWilsonPE
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: June 16 2008 at 19:40 | IP Logged Quote TonyNo

Quote:
Should I be able to type any of the command lines above...

Nope. Only the "AT" commands are for the modem.

All of that looks correct to me. Can you post what your modem sends when a call comes in using Hyperterminal?
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
MAWilsonPE
Newbie
Newbie
Avatar

Joined: May 30 2008
Location: United States
Online Status: Offline
Posts: 18
Posted: June 16 2008 at 21:26 | IP Logged Quote MAWilsonPE

Here is the info posted by Hyperterminal when a call comes in:

OK
at#cid=1
OK

RING

DATE=0616

TIME=2122

NAME=Cell Phone NC

NMBR=704651xxxx

RING

RING

I first typed at&f to get it to echo. I added the x's to the number...

To see if this is working I am looking at the Event Log. Seems to me I should see the macro CID called there. Should I also see the generic plugin trigger execute in the Event Log?
Back to Top View MAWilsonPE's Profile Search for other posts by MAWilsonPE
 
MAWilsonPE
Newbie
Newbie
Avatar

Joined: May 30 2008
Location: United States
Online Status: Offline
Posts: 18
Posted: June 17 2008 at 11:58 | IP Logged Quote MAWilsonPE

I was searching in the modem properties for anything that might seem out of whack. When I tried to set the Advanced Properties I get the error: "You must have write privileges in the registry for this device in order to modify the device's advanced settings." Could this have anything to do with my trouble?

I doubt it, when I check the Plugin in the Help->About it says that the plugin PH_CID is enabled so it should be working. Perhaps my trigger is not working. Thoughts?

Edited by MAWilsonPE - June 17 2008 at 12:31
Back to Top View MAWilsonPE's Profile Search for other posts by MAWilsonPE
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: June 17 2008 at 13:53 | IP Logged Quote TonyNo

Are you using Vista?
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
MAWilsonPE
Newbie
Newbie
Avatar

Joined: May 30 2008
Location: United States
Online Status: Offline
Posts: 18
Posted: June 17 2008 at 14:31 | IP Logged Quote MAWilsonPE

Nope, Windows XP Pro
Back to Top View MAWilsonPE's Profile Search for other posts by MAWilsonPE
 
MAWilsonPE
Newbie
Newbie
Avatar

Joined: May 30 2008
Location: United States
Online Status: Offline
Posts: 18
Posted: July 09 2008 at 09:06 | IP Logged Quote MAWilsonPE

I spent 2 hours with Dave remotely operating my PC last nite and he got it to work. Thanks Dave for your efforts, you support your product like no other!

Dave found the problem in the caller ID protocol used by may carrier, Windstream (formerly Alltel) and my particular modem (Toshiba laptop modem) and has created a new CID plugin to address it. He now has a ver 1.9 available for your use. If you can't get yours to work this might help.

Thanks again Dave!
Back to Top View MAWilsonPE's Profile Search for other posts by MAWilsonPE
 
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: August 03 2009 at 07:32 | IP Logged Quote krommetje

Hey TonyNo,

I have bought a USR Robotics modem with caller ID and would like to know what initstring to use:
Code:


+VCID=<pmode>

can be 0 1 or 2

0 Disable Caller ID reporting. (Default.)
1 Enables Caller ID with formatted presentation to the DTE. The modem presents the data items in a <Tag><Value> pair format. The expected pairs are date, time, name, and caller code (telephone number),
2 Enables Caller ID with unformatted presentation to the DTE.


then I've got this:

Code:

+VRID - Report Retrieved Caller ID (CID)

This command reports the data associated with the Caller ID services in the Incoming Call Line ID (ICLID) data format for the last received call.

Syntax

+VRID=<pmode>

Defined Values

<pmode> Decimal number corresponding to the selected option.

0 Reports Caller ID with formatted presentation to the DTE. The modem presents the data items in a <Tag><Value> pair format. The expected pairs are date, time, name, and caller code (telephone number),
1 Reports Caller ID with unformatted presentation to the DTE.

Reporting Supported Range of Parameter Values

Command: +VRID?
Response: +VRID: (<pmode> range)
Example: +VRID: (0,1)



can you shed some light in this?

Peter
Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: August 03 2009 at 09:01 | IP Logged Quote BeachBum

I use CIDInit=AT#CID=1 with my USR. You can use HyperTerminal to test the CID with your modem. You might want to test VCID=1. That seems to work on my other modem. I did not have to define +VRID.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: August 07 2009 at 06:21 | IP Logged Quote krommetje

I am getting this in the eventlog:

Code:


An error occurred while calling function PHPI_InitData for Plugin: CID. The return code is: 1.

Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: August 07 2009 at 07:49 | IP Logged Quote krommetje

Wait a minute: Plug-In couldn't init because an Incoming Connection was configured (VPN) and took possession of the modem... The plug-in now works but no CID yet..

Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: August 07 2009 at 08:17 | IP Logged Quote TonyNo

From one of Dave's posts...

Quote:
I checked the code for the CID plugin and a 1 is returned from the PHPI_InitData function if the Initialization field is left blank or points to an INI file that does not exist. A 1 is also returned if the port is set to - 1. The last reason a 1 can be returned is that the specified port could not be intialized, which is probably what your problem is. Usually the only thing that will keep the port from initializing is that the port is already open and in use by another application. Make sure that nothing else is trying to monitor COM 4 and then verify everything works with HyperTerminal. If it works with HyperTerminal, it should work with PowerHome.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: January 16 2010 at 08:24 | IP Logged Quote krommetje

TonyNo,

what I don't get is, that my CallerID in my Modem works,
I have seen this in the logfiles of Activefax I installed
on the server. When I stop Activefax (both program and
service) and unload from memory, reinit PH and start the
plug-in, the plug-in loads but no ID is shown, not even a
ring or anything else happens....

see this screencap:







Edited by krommetje - January 16 2010 at 09:22
Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 16 2010 at 10:59 | IP Logged Quote TonyNo

So, no errors either?
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: January 16 2010 at 11:40 | IP Logged Quote krommetje

No, no errors whatsoever.... that is what puzzles me...
will try to play around a bit...keep ya posted
Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: August 07 2010 at 11:33 | IP Logged Quote krommetje

Nope, I am still fighting this issue....
A RING, nor a number... it looks like the trigger doesn't fire...

The plug-in Loads OK like it says in the About screen...
The number is sent also because it works in ActiveFax....

I am in the dark here!!!!

what is the name of beelzebub is going on here????

Edited by krommetje - August 07 2010 at 11:34
Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 
Gadgets
Senior Member
Senior Member
Avatar

Joined: January 28 2008
Location: Canada
Online Status: Offline
Posts: 178
Posted: September 02 2010 at 20:35 | IP Logged Quote Gadgets

krommetje wrote:


what is the name of beelzebub is going on here????


beelzelbub? I have not gotten the CID to work since I upgraded the computer and PH to ver 2. The caller ID works on the modem, but the plugin errors out when a call comes in. I go long stretches without working on it because of time restraints, but I do miss it.

__________________
Friends, don't let friends install Norton Products
Back to Top View Gadgets's Profile Search for other posts by Gadgets Visit Gadgets's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: September 02 2010 at 23:25 | IP Logged Quote BeachBum

As I recall Dave wrote you a unique plug-in to handle Canadian calls. That being the case maybe there has to be one for version 2.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: September 03 2010 at 23:06 | IP Logged Quote dhoward

Peter,

I took a look at your screenshot above and looked at the actual code in the caller ID plugin and the trigger won't fire unless both a NMBR and a NAME are received. From your screenshot, it looks as if your caller id only sends a NMBR and not a NAME. If that is the case, the caller ID plugin (in its current incarnation) will not work for you. I may take a small break from the beta and make some mods to this plugin to handle more situations including yours.

Gadgets,

Im not sure what is going on in your situation. Im inclined to think it has something to do with Windows 7 so would love to hear if anyone on either Vista or Win 7 has been successful in getting the Caller ID plugin to work. Otherwise, we can try the soon to be written improved version of the plugin and see where that gets us .

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

Page of 2 Next >>
  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum