Author Topic: Sending SMS using AT+Commands  (Read 11412 times)

Tito

  • Newbie
  • Posts: 48
  • Think
    • View Profile
Sending SMS using AT+Commands
« on: August 10, 2012, 11:47:18 AM »
Hi, I do manage to Send & Receive SMS through Hyperterminal by using WAVECOM GSM modem with standard cable. While trying in FMD88-10 no respone on sending SMS which i try out initially,
My GSM modem setting as follows:-
BaudRate = 115200, Databits =8, Party = none, Stop bits = 1

The code as follows:-

SETBAUD 1,9
Print #1 "AT+CMGS="+CHR$(34)+"+6XXXXXXXX"+CHR$(34)
Print #1 "TESTING SMS" +CHR$(26)


i do manage to transfer the program into board. Without power off on i do pull out the usb - serial cable from board and plug in GSM serial cable.

In my coding by triggering input 1 will directly execute my custom function to send sms.

The GSM cable DB15 to DB9 i did fabricate myself on this configuration due to my standard cable female to female at serial port.

DB9       DB15
2            6
3            3
5            9

« Last Edit: August 10, 2012, 11:51:18 AM by Tito »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Sending SMS using AT+Commands
« Reply #1 on: August 10, 2012, 02:48:34 PM »
Note that the Tx and Rx pin of the PLC's RS232 port and that of the PC Hyperterminals are opposite.

It may be better if you just make a null modem cable between two Male DB9 connector and then attach to the standard cable. The null modem cable has the following pin out:

  2 - 3
  3 - 2
  9 - 9

Your GSM modem may also need to short pin 7 & 8 and pin 4 and 6 on the DB9 connector that is attached to the standard cable. The PLC side does not care about these pins.

Doing so will ensure that the signal from the PLC goes to the correct pin of your GSM modem.  
« Last Edit: August 10, 2012, 02:49:00 PM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

Tito

  • Newbie
  • Posts: 48
  • Think
    • View Profile
Re:Sending SMS using AT+Commands
« Reply #2 on: August 11, 2012, 10:04:21 AM »
Hi, i did the connection as this

2 - 3
3 - 2
5 - 5 instead of 9 to 9

Finally i did fabricate the cable from summary DB15 to DB 9

DB 15                     DB9
2                            2
6                            3
7+8 (short)
9                            5
11+12(short)

its works perfectly. Thanks for your supports