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
 
  • Filter
  • Time
  • Show
Clear All
new posts

    C'mon guys, nobody ?

    Comment


      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


        I think it's a bug, as I have the same issue. The plugin page doesn't like the spaces in "Program Files". If you manuall go and edit the INI file it will work though.
        Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

        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


            beerygaz: what do you mean by manually edit ?
            To replace the spaces in "Program Files (x86)" with what ?

            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


                  @ Stipus:
                  1. Changing the timeout on the line WAITFOR CMGS 3000 to 5000 did the trick. Now I get no errors.
                  2. My hs is 2.5.0.20
                  3. I have noticed that if I keep the phone with the charger plugged in the data connection never gets in standby - so this is another problem solved.

                  thanks,

                  Comment


                    Hello stipus, for PDU you can use the code from my old plugin!

                    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
                      How do i create an event trigger for multiple type of sms ? For one type off sms it is working
                      Last edited by raymonvdm; December 17, 2012, 01:39 PM.

                      Comment


                        hi all I have got the plugin working and I am receiving info in the log, now all I need to know is how to make it do something like operate a device as the is nothing in events to be able to trigger. probably just me being dumb but I cant find it

                        Comment


                          If you create a new event under "actions" you should be able to see "send text message"

                          Comment


                            Devices required

                            Hi all

                            Has anyone made a device for this that monitors the signal strength.

                            Cheers

                            Edd

                            Comment


                              Originally posted by tommyd75 View Post
                              If you create a new event under "actions" you should be able to see "send text message"
                              Cheers

                              Comment


                                Hi, Stiptus

                                I also get the "Program Files" error :

                                03.10.2013 13:01:53 - Error - Running script: File not found: C:\Program Files

                                I think it has to do with the space between Program and Files.

                                How to solve this error ???

                                Regards, Fischi

                                Comment

                                Working...
                                X