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
  New Z-Wave driver preview Dean Roddey 152 12,725 07-15-2019, 04:56 PM
Last Post: kfly
  Global Cache Driver gReatAutomation 4 126 07-06-2019, 05:08 PM
Last Post: gReatAutomation
  Somfy RTS Driver jokermac 4 359 05-29-2019, 10:16 AM
Last Post: Dean Roddey
  Problem with B&K Driver / Keypad kblagron 9 891 03-19-2019, 12:00 PM
Last Post: kblagron
  Problem with EventGhost Driver batwater 2 354 03-17-2019, 12:42 PM
Last Post: Dean Roddey
  Zigbee Driver adamalli 12 1,392 01-17-2019, 06:20 AM
Last Post: CouchPotatoe
  CML Driver IDE [copy/paste] does not work lleo 2 656 11-25-2018, 10:01 AM
Last Post: lleo
  How to update the new zwave stick/driver? ghurty 5 889 11-22-2018, 06:56 PM
Last Post: Dean Roddey
  "Client Side Driver Directory Could Not be Cleaned Out" TurboSam 15 2,405 09-27-2018, 01:43 PM
Last Post: TurboSam
  CML Driver IDE docs - where? rbroders 1 855 09-18-2018, 05:41 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)