Sending SMS from WinCC OA

Find and share HowTos to various installations / configurations!
Search

Post Reply
7 posts • Page 1 of 1
chandra
Posts: 32
Joined: Fri Oct 06, 2017 12:25 pm

Sending SMS from WinCC OA

Post by chandra »

Hello Everyone

If I want to send SMS at a time to two phone numbers how to add one more number here.

Code: Select all

main()
{
  string number, message, sErrorText, SMSDP;
  int error;
  number  = "436767890026";
  message = "This is a test, sending SMS messages";
  sendSMS(number, message, error, sErrorText, SMSDP = "_SMS_1");
 
  if (error == 0) // If the return value equals 0, the reading was
                  // executed successfully.
  {
    DebugN("The SMS message: "+message+"; was sent successfully to the number: "+number);
  }
  else
  {
     DebugN(error, sErrorText);
  }
}

Gertjan van Schijndel
Posts: 634
Joined: Mon Aug 02, 2010 10:37 am

Re: Sending SMS from WinCC OA

Post by Gertjan van Schijndel »

To send a SMS to multiple recipients you will have to send the message multiple times (unless you some forwarding services, which delivers the message to your distribution list).

This 'sendSMS' function uses AT commands to send the message. There is no AT command to send a SMS to multiple recipients.

Indrani125
Posts: 38
Joined: Wed Aug 07, 2019 10:50 am

Re: Sending SMS from WinCC OA

Post by Indrani125 »

Hi,I tried with same script but getting v24 error and [-2]["Timeout: No response from SMS driver!"].do we need to any configuration from sms option inside com?can you tell in generalize way how to do that so that I can send sms via wincc oa?

User avatar
tmalone
Posts: 134
Joined: Mon Nov 22, 2010 11:21 pm

Re: Sending SMS from WinCC OA

Post by tmalone »

Just a comment. You need a special modem connected to the OA server. These modems are not supported by all Wireless vendors in the USA (only AT&t?)

User avatar
kilianvp
Posts: 285
Joined: Fri Jan 16, 2015 10:29 am

Re: Sending SMS from WinCC OA

Post by kilianvp »

it is much easier to use an internet provider and send the SMS via a REST API. For this you can use netPost()/netGet().

Indrani125
Posts: 38
Joined: Wed Aug 07, 2019 10:50 am

Re: Sending SMS from WinCC OA

Post by Indrani125 »

Hi,
Can you please explain implementation steps in general using netPost()/netGet() how sms can be sent to a particular number?do we need any kind of license for that?

User avatar
adaneau
Posts: 272
Joined: Tue Feb 21, 2012 9:49 am

Re: Sending SMS from WinCC OA

Post by adaneau »

Hi,

Example with Orange. You of course need account at the selected provider.

https://www.codeproject.com/Articles/25 ... nge-SMS-AP

This is similar with WinCC OA . NetPost on the sent resource, netget on the receive resource.

BR
Alexandre

Post Reply
7 posts • Page 1 of 1