Announcement

Collapse
No announcement yet.

Trigger event after receiving sms

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trigger event after receiving sms

    Hi,

    What's the right way to trigger an event after receiving a sms?
    When I recieve a sms the log shows:

    5-5-2009 22:55:14 - COM1 READ - 14 bytes: 13 10 43 67 77 84 73 58 32 34 83 77 34 44 [+CMTI: "SM",]
    5-5-2009 22:55:14 - COM1 READ - 4 bytes: 32 51 13 10 [ 3]

    When I receive a call the log shows:

    5-5-2009 22:57:40 - COM1 READ - 14 bytes: 13 10 43 67 82 73 78 71 58 32 86 79 73 67 [+CRING: VOIC]
    5-5-2009 22:57:40 - COM1 READ - 14 bytes: 69 13 10 13 10 43 67 76 73 80 58 32 34 43 [E+CLIP: "+]
    5-5-2009 22:57:40 - COM1 READ - 14 bytes: 51 49 54 52 54 50 52 56 53 53 52 34 44 49 [316xxxxxxxx",1]
    5-5-2009 22:57:40 - COM1 WATCH - \+CLIP:\s\x22(?<CALLERID>[^\x22]+)\x22 MATCHED
    5-5-2009 22:57:40 - COM1 READ - 4 bytes: 52 53 13 10 [45]
    5-5-2009 22:57:41 - COM1 EVENT - CALLERID +316xxxxxxxx
    5-5-2009 22:57:41 - Info - Speak ():You have a call from +316xxxxxxxx

    Receiving a call seems to work fine, receiving a sms doesn't work.

    Specs:
    Siemens M20 modem
    HS 2.3.0.19
    hspi_smsc.vb script (original, nothing changed)

    I just want that HS triggers an event after receiving a sms from my phone.

    Any suggestions?

    #2
    I've also got a M20, and I managed to get it to work.

    This is what you will need todo.

    step 1) Add this to the Modem Init String : AT+CNMI=1,2,0,1,1
    step 2) Create an event named RXSMS, and let it do something . Set it to trigger "Manual Only"
    step 3) change in the hspi_smsc.vb the following (it's at the bottom of the script)
    If param("message") = "itisme" Then
    hs.TriggerEvent( "RXSMS" )
    End If
    step 4) Send an SMS with the following text in it: itisme
    With a bit of luck the script named RXSMS will start.

    Groetjes.

    Wifi

    Comment


      #3
      receiving sms

      Thanks!
      Worked for me as well, using it with Nokia 6310i

      Comment

      Working...
      X