Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SMS Driver
#1
I have a scheduled task that sends an SMS in the morning with the daily weather from a third-party weather driver:

[Image: Screen-Shot-2019-07-10-at-09-06-31.jpg]

I build the forecast that I want to send and assign variables to each element, then build the full forecast. I then send the SMS message to two cell phone numbers that are stored in the CQC Variable Driver.

The issue is that it always sends the SMS to the first phone number. I added a 5 second pause and then tried to have it send to the second one, but it does not always send the SMS to the second phone number.

Am I missing something here? Longer pause?


[Image: Screen-Shot-2019-07-10-at-09-00-57.jpg]
Reply
#2
I had a similar need but I didn't have access to a GSM modem so I did an email to the email-to-text address of my carrier.

System::EMail
    P1=mstega <-- This is the email account for sending
    P2=443xxx0169@txt.att.net <--- the email address
    P3=Doorbell <-- The subject
    P4=DING <-- The text message, mine was just the literal, you would use a replacement token
Mark Stega
Reply
#3
(07-10-2019, 08:11 AM)Mark Stega Wrote: I had a similar need but I didn't have access to a GSM modem so I did an email to the email-to-text address of my carrier.

System::EMail
    P1=mstega <-- This is the email account for sending
    P2=443xxx0169@txt.att.net <--- the email address
    P3=Doorbell <-- The subject
    P4=DING <-- The text message, mine was just the literal, you would use a replacement token

Thanks. I've used that before but I want to be able to send/receive stuff to/from CQC even if my Internet connection is down.
Reply
#4
Does that driver has any sort of 'busy' field indicating it's working on a call? It may ignore a new one if it's working on an existing one. If it has some sort of busy field you can wait for it to clean then send the other one.

Just to see if it's something like that, bump the sleep to 30 seconds. You wouldn't want to do that for real, but if it works then, then most likely it's something to do with sending them fairly quickly.
Dean Roddey
Explorans limites defectum
Reply
#5
(07-10-2019, 12:29 PM)Dean Roddey Wrote: Does that driver has any sort of 'busy' field indicating it's working on a call? It may ignore a new one if it's working on an existing one. If it has some sort of busy field you can wait for it to clean then send the other one.

Just to see if it's something like that, bump the sleep to 30 seconds. You wouldn't want to do that for real, but if it works then, then most likely it's something to do with sending them fairly quickly.

Thanks, I'll check it out.
Reply
#6
You say "but it does not always send the SMS to the second phone number."

Has it ever sent to this number?

Does it work if you disable the first sms send command?

If not then I'd double check the number, command syntax etc. If it does only sometimes then i'd say that its your service provider. they may be rate limiting your messages to stop spam via SMS.
Mykel Koblenz
Illawarra Smart Home
Reply
#7
After reading an AT Commands manual, you have to wait for the modem to respond to (i.e., to send) the first SMS before you can feed it another command.

AFAIK, you cannot check the status of the modem after a command with the current CQC SMS driver so, you have to put in a "pause" between SMS commands. The current driver only allows for:

[Image: Screen-Shot-2019-07-11-at-15-51-04.jpg]
Reply
#8
If it's not awkward you could always use two modems and two drivers, one talking to each.
Dean Roddey
Explorans limites defectum
Reply
#9
Not following you here ?
Reply
#10
Use two different modems, and install two instances of the driver, pointing one at each modem. Pass one message to one driver and another to the other and just let them send in parallel.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ClickPLC driver now failing after upgrade znelbok 2 552 09-21-2020, 10:48 PM
Last Post: znelbok
  Pentair driver tom 5 1,276 08-02-2020, 11:29 PM
Last Post: kblagron
  Marantz receiver driver (IP) dlmorgan999 6 1,305 05-15-2020, 03:32 PM
Last Post: dlmorgan999
  Variables Driver Client gReatAutomation 4 1,017 04-25-2020, 12:46 PM
Last Post: gReatAutomation
  Reconfig of Driver Causes Built In Triggers to Fire gReatAutomation 2 788 03-25-2020, 04:09 PM
Last Post: gReatAutomation
  Lutron RadioRA2 Driver and Lutron Visor Control gReatAutomation 29 8,826 03-19-2020, 01:03 PM
Last Post: gReatAutomation
  Timers Driver / Field Time Image / Seconds gReatAutomation 1 740 03-16-2020, 05:48 PM
Last Post: Dean Roddey
  Problem with Accesssing Variables Driver Client Interface kblagron 5 1,399 03-05-2020, 02:24 PM
Last Post: kblagron
  ISYv2 Driver - FanLinc simplextech 4 1,496 02-04-2020, 06:55 PM
Last Post: simplextech
  SMS Driver / Sending MMS gReatAutomation 2 1,070 02-02-2020, 05:57 PM
Last Post: simplextech

Forum Jump:


Users browsing this thread: 1 Guest(s)