C'mon guys, nobody ?
Announcement
Collapse
No announcement yet.
New Text Message & SMS Connector V0.10.2.3
Collapse
This topic is closed.
X
This is a sticky topic.
X
X
-
The plugin may not be installed properly.
Did you choose a modem driver in the SMS Connector configuration ?
Do you have the driver files HomeSeer 2\Scripts\hspi_smsc.vb, hspi_smsc_ztext.vb, hspi_smsc_olitec.vb, hspi_smsc_nokia.vb, hspi_smsc_samsung.vb ?
What does the HomeSeer 2\setttings\hspi_smsc.ini look like ?
It should read something like:
[Modem]
Driver=C:\Program Files\HomeSeer 2\Scripts\hspi_smsc.vb
Speed=2400--
stipus
Comment
-
Thanks for the answers.
Stipus:
1. the driver files, I have in C:\Program Files (x86)\HomeSeer HSPRO\Scripts the folowing: hspi_smsc.vb, hspi_smsc_ztext.vb, hspi_smsc_nokia.vb, hspi_smsc_samsung.vb. I DO NOT have hspi_smsc_olitec.vb but I think I am not going to use this one.
2. I am not able to find any settings folder. The hspi_smsc.ini file you mentioned is located in C:\Program Files (x86)\HomeSeer HSPRO\Config and is looking EXACTLY like this:
[Modem]
Driver=C:\Program Files (x86)\HomeSeer HSPRO\Scripts\hspi_smsc_nokia.vb
InitString=AT
PinCode=
Regards,
Comment
-
Very strange. I did the following:
1. Copy all the hspi_smsc files from Scripts to c:\temp\aa
2. edit the C:\Program Files (x86)\HomeSeer HSPRO\Config\hspi_smsc.ini and changed the Driver path to: C:\temp\aa\hspi_smsc_nokia.vb.
3. save + restart hs.
Now is working and I can send sms. Still, there are 3 problems:
1. Every time I change anything in sms connector config page (under the Interface, Serial, Modem or Sms tab) the driver path in hspi_smsc.ini gets changed back to "C:\Program Files (x86)\HomeSeer HSPRO\ ....." instead of "C:\temp\aa\". This is because in the Modem tab, in the Modem Driver drop down list, all the drivers are still listed with the "C:\Program Files (x86)\HomeSeer HSPRO\Scripts\...." path. Very annoying, I would prefer to make it work in its standard path.
2. Although I can send sms (and it always reaches its destination) I still get the following error in hs log:
11/3/2012 6:03:54 PM - Event - Event Trigger "sms"
11/3/2012 6:03:54 PM - SMS Connector - Sending SMS to 0729559766 : alarma pornita onn
11/3/2012 6:03:54 PM - COM5 WRITELINE - AT+CMGS="0729559766"
11/3/2012 6:03:54 PM - COM5 WAITFOR - > - ResponseTimeout=3000
11/3/2012 6:03:54 PM - COM5 READ - 21 bytes: 65 84 43 67 77 71 83 61 34 48 55 50 57 53 53 57 55 54 54 34 13 [AT+CMGS="0729559766"]
11/3/2012 6:03:54 PM - COM5 READ - 4 bytes: 13 10 62 32 [> ]
11/3/2012 6:03:54 PM - COM5 WAITFOR - > MATCHED
11/3/2012 6:03:54 PM - COM5 WRITEGSM - alarma pornita onn
11/3/2012 6:03:54 PM - COM5 WRITE -
11/3/2012 6:03:54 PM - COM5 WAITFOR - CMGS - ResponseTimeout=3000
11/3/2012 6:03:54 PM - COM5 READ - 18 bytes: 97 108 97 114 109 97 32 112 111 114 110 105 116 97 32 111 110 110 [alarma pornita onn]
11/3/2012 6:03:54 PM - COM5 READ - 1 bytes: 26 []
11/3/2012 6:03:57 PM - COM5 ERROR - WAITFOR CMGS Failed !
11/3/2012 6:03:57 PM - COM5 READ - 18 bytes: 13 10 43 67 77 71 83 58 32 53 13 10 13 10 79 75 13 10 [+CMGS: 5OK]
3.After an while, the phone data connection goes to standby. The plugin does not know how to wake it up and it stops working. I have tried to find a setting somewhere in the phone menu to disable this feature but I didn't find it. Any suggestions?
I very much appreciate all your help,
Regards,
Andrei
Comment
-
For the error message, it looks like your modem is slow to send the CMGS message.
You may edit the driver file to change the wait time
' ----------------------------------------------------------------
' SEND SMS CALLBACK
' Gets called when a TextMessage has to be sent
' ----------------------------------------------------------------
Sub SendSms( param as TextMessage )
hs.Plugin("SMS Connector").QueueSerialAction( "WRITELINE", "AT+CMGS=" & chr(34) & param.Number & chr(34) )
hs.Plugin("SMS Connector").QueueSerialAction( "WAITFOR", ">", 3000 )
hs.Plugin("SMS Connector").QueueSerialAction( "WRITEGSM", param.Message )
hs.Plugin("SMS Connector").QueueSerialAction( "WRITE", chr(26).ToString() , 0 )
hs.Plugin("SMS Connector").QueueSerialAction( "WAITFOR", "CMGS", 3000)
End Sub
Change the timeout on the line WAITFOR CMGS 3000 to 5000
hs.Plugin("SMS Connector").QueueSerialAction( "WAITFOR", "CMGS", 5000)
I'm going to have a look at the driver file location problem. I don't understand why it doesn't work anymore. It worked fine with older versions of HS and a space in the path.
What is your HomeSeer version ?--
stipus
Comment
-
I just installed this plugin and using a Nokia DKU-2 cable and 6230 phone i'm able
too send and recieve sms using the default modem driver (hspi_smsc.vb)
I just need to change the timeout and enable event triggering
Code:edit C:\Program Files\HomeSeer HS2\Scripts\hspi_smsc.vb ' ---------------------------------------------------------------- ' SEND SMS CALLBACK ' Gets called when a TextMessage has to be sent ' ---------------------------------------------------------------- Sub SendSms( param as TextMessage ) hs.Plugin("SMS Connector").QueueSerialAction( "WRITELINE", "AT+CMGS=" & chr(34) & param.Number & chr(34) ) hs.Plugin("SMS Connector").QueueSerialAction( "WAITFOR", ">", 3000 ) hs.Plugin("SMS Connector").QueueSerialAction( "WRITEGSM", param.Message ) hs.Plugin("SMS Connector").QueueSerialAction( "WRITE", chr(26).ToString() , 0 ) hs.Plugin("SMS Connector").QueueSerialAction( "WAITFOR", "CMGS", 8000) <----------This was 3000 End Sub
Last edited by raymonvdm; December 17, 2012, 01:39 PM.
Comment
Comment