Autor Thema: SMS  (Gelesen 20132 mal)

Offline Boswell

  • Newbie
  • *
  • Beiträge: 4
SMS
« am: April 05, 2007, 19:43:36 Nachmittag »
I have read that Easy 800 can send SMS via a GSM modem using Serial Protocol Function. I cannot get this to work.

Does the Serial Protocol work for sending AT commands?

Commands I am trying to use....
AT+CMGS="phone number" return

Hello World! Ctrl Z

How/can this be inputted into the Start and End Sequence of a serial protocol function block?

Regards
Boswell ???

Offline KressSwiss

  • easy god
  • *****
  • Beiträge: 1659
  • Und sie dreht sich doch..."Galileo Galilei"
    • Electronics Planet
Re: SMS
« Antwort #1 am: April 07, 2007, 09:28:16 Vormittag »
Hi Boswell
To my knowledge, SMS applicances can be solved by TIXI Modem.
Regards Hermann

Have a look at appendix.
« Letzte Änderung: April 07, 2007, 09:31:20 Vormittag von KressSwiss »
Achtung:
Angehängte Dateien sind nur für eingelogte User sichtbar!

Offline Boswell

  • Newbie
  • *
  • Beiträge: 4
Re: SMS
« Antwort #2 am: April 10, 2007, 09:28:30 Vormittag »
Thankyou for the reply KressSwiss.

I know of the Tixi, but is expensive. Moeller advertise that the SP function can send SMS with a normal GSM modem. I have connected the 800 to a laptop with Hyper Terminal running, the 800 appears to be sending the AT commands fine but will not work with the modem. I will keep trying.

Regards
Boswell

Offline Mr. Spok

  • Sr. Member
  • ****
  • Beiträge: 652
Re: SMS
« Antwort #3 am: April 11, 2007, 09:18:26 Vormittag »
Hello Boswell,

if you use the orginal Easy-cable to communicat with the modem, then you also must supply electronics with energy in the plug. I think the modem doesn't do this in any case. Also i thing you must work with a pin-changer to connect the modem.

mfG Jan
Für die Richtigkeit und Funktionalität der hier veröffentlichten Beispiele wird keine Gewähr übernommen.
Für Schäden, die durch Verwendung der Beispiele entstehen, wird keine Haftung übernommen.

Offline Mr. Spok

  • Sr. Member
  • ****
  • Beiträge: 652
Re: SMS
« Antwort #4 am: April 11, 2007, 11:17:42 Vormittag »
Hello Boswell,

i have found some informations over SMS with GSM-modems in the internet. The file is in the attachment. I think, to send a SMS only with a GSM-modem is not easy. You must coding the SMS-informations (text and phonenumber).


Jan
« Letzte Änderung: April 11, 2007, 11:19:35 Vormittag von Mr. Spok »
Für die Richtigkeit und Funktionalität der hier veröffentlichten Beispiele wird keine Gewähr übernommen.
Für Schäden, die durch Verwendung der Beispiele entstehen, wird keine Haftung übernommen.

Offline Boswell

  • Newbie
  • *
  • Beiträge: 4
Re: SMS
« Antwort #5 am: April 13, 2007, 18:46:33 Nachmittag »
Thanks for the replies.

I finally got it working! (thanks to the UK Moeller Product guy who e-mailed me today)

Problem was (as Mr Spok suggested) the plug pinout was wrong, even though I was using Moeller doc 02/07 AWA2528-2345, for modem connections!

To help others, the connections that work for me are below

Modem 9 pin Plug                                           Cab cable 9 pin plug
                2-----------------------------------------------------3
                3-----------------------------------------------------2
                5-----------------------------------------------------4 and 5
                8-----------------------------------------------------7

Thanks again
Boswell  :)

Offline adaly

  • Newbie
  • *
  • Beiträge: 11
Re: SMS
« Antwort #6 am: Juni 04, 2007, 20:15:30 Nachmittag »
Thankyou for the reply KressSwiss.

I know of the Tixi, but is expensive. Moeller advertise that the SP function can send SMS with a normal GSM modem. I have connected the 800 to a laptop with Hyper Terminal running, the 800 appears to be sending the AT commands fine but will not work with the modem. I will keep trying.

Regards
Boswell

How did you use Hyper Terminal? I try to do so many times but won't works. Please, could do a sample programming and HP setup for test?
Always ready to learn......

Offline colonia

  • Jr. Member
  • **
  • Beiträge: 20
Re: SMS
« Antwort #7 am: Juni 11, 2007, 16:35:42 Nachmittag »


Dear Adaly,

if  you want to use the hyper terminal and send data from easy to your PC - do it like this:  ;)
 
-          for the connection between easy and the PC Com Port ( COM1)  use the EASY800-MO-CAB

-          configurate the cable as a PC-CAB/printer- CAB

-         chose in the Hyperterminal the same Baudrate, Stop Bit, Data Bit and Parity Bit as the EASY-SOFT : 19200, 1, 8,  none

-          try to send data  with the attached file

Hope I could help you.
Et kütt, wie et kütt.
Et is, wie et is.
Et hätt noch imme jot jejange.

Offline John_Ess

  • Jr. Member
  • **
  • Beiträge: 80
  • I love easy-Forum.net!
Re: SMS
« Antwort #8 am: Februar 25, 2008, 19:39:24 Nachmittag »
Hello Boswell,

Seems like you are the only one who was able to communicate with a modem using SP-command. I yet to see a single example of easy-800 to ANY modem serial protocol.

Can you share a bit of your code with the rest of us ;)

Regards,
John


Offline Boswell

  • Newbie
  • *
  • Beiträge: 4
Re: SMS
« Antwort #9 am: März 04, 2008, 16:59:19 Nachmittag »
Sorry for delay, only just seen this post. I moved onto another solution so forgot how I did this but I just found a test example I did on my laptop.

Using Serial Protocol

Baud 9600
Data bits 8
Stop bit 1
Parity=No Parity

In the Start Sequence I put

AT+CMGS="###########"\CR\LF Where ########### is the mobile phone number you want to text

Then in the End Sequence I put

\SUB
Some general notes....

In the "Comment" you place the message you want to send.
The limitation of this method is that whatever you place in the Start/Stop Sequenses will populate to all SP's therefore you can only send to 1 mobile number, but the comment does not populate so you can have various messages.
With hyperterminal you may have to use AT command to set and flash the baudrate on your gsm modem to 9600 (or 19200).

As this was some time ago and my memory is poor, there may be errors above, let me know how you get on and if needed I'll dig out an 820 and set all this up again.

I think the reason I did it this way was because I couldn't get the AT commands to work correctly when putting the phone number in the phone number field so this field was left blank. It's a shame Moeller didn't make the Serial Protocol function a little bit more flexible.

Hope this helps.

Boswell
« Letzte Änderung: März 04, 2008, 17:05:06 Nachmittag von Boswell »

Offline KressSwiss

  • easy god
  • *****
  • Beiträge: 1659
  • Und sie dreht sich doch..."Galileo Galilei"
    • Electronics Planet
Re: SMS
« Antwort #10 am: März 04, 2008, 17:52:16 Nachmittag »
Hi John
According to the Mail You sent to me I remember to the Moeller trainingscenter. There is an SP example to download. It is a small Programm (Easy822-DC-TC) and also the complete description for the SP-Functionsblock. As a matter of course in English. I'm sure it may help you    ;)

Link to Trainingacenter SP-Functionsblock:
http://trainingscenter.moeller.net/functions/easySoft/easy-800/serial-protocol.html?multiLocaleId=_en&stamp=1204649146138

Regards
Hermann
« Letzte Änderung: März 04, 2008, 18:12:42 Nachmittag von KressSwiss »
Achtung:
Angehängte Dateien sind nur für eingelogte User sichtbar!

Offline John_Ess

  • Jr. Member
  • **
  • Beiträge: 80
  • I love easy-Forum.net!
Re: SMS
« Antwort #11 am: März 04, 2008, 22:14:11 Nachmittag »
Hi Hermann,

Thank you, as a matter of fact I found the same link only recently and I'm plowing through the info.

I didn't make any progress as it seems that I need the  easy800-MO-CAB cable instead for serial communication with my PC HyperTerminal first.

mfG
John

p.s. I repeat my question again:

Does anybody have a working program on how to communicate "Hello world" text from easy800 via 9600bps modem to a remote location equiped with another 9600bps dial-up modem?


Offline John_Ess

  • Jr. Member
  • **
  • Beiträge: 80
  • I love easy-Forum.net!
Re: SMS
« Antwort #12 am: März 04, 2008, 22:23:02 Nachmittag »
Hi Boswell,

Great! Thanks a lot!!!

I overlooked your message and instead repeated myself again :-)
Sorry folks, it's time to try what you described in your last email.

Best regards,
John

Offline John_Ess

  • Jr. Member
  • **
  • Beiträge: 80
  • I love easy-Forum.net!
Re: SMS
« Antwort #13 am: März 05, 2008, 19:09:32 Nachmittag »
I finally got it working! (thanks to the UK Moeller Product guy who e-mailed me today)

Problem was (as Mr Spok suggested) the plug pinout was wrong, even though I was using Moeller doc 02/07 AWA2528-2345, for modem connections!

To help others, the connections that work for me are below

Modem 9 pin Plug                                           Cab cable 9 pin plug
                2-----------------------------------------------------3
                3-----------------------------------------------------2
                5-----------------------------------------------------4 and 5
                8-----------------------------------------------------7


Hi Boswell,
So it seems that the original doc 02/07 AWA2528-2345 is a bit misleading  ;)

I assume you re-wired the connection as per ASCII-drawing above which shows a modified DB9-Male plug of the MO-CAB cable (pins 3,2,4+5,7) to be inserted into modem's DB9-Female socket (pins 2,3,5,8).

But what were the corresponding colours of the "Cab cable 9 pin plug" wires ? 

Can you post pictures of what's inside easy800-MO-CAB shell ???  

Regards,
John

p.s. for comparison see attached pic's of easy800-PC-CAB cable electronics

DB9-F (9-pin female connector of easy800-PC-CAB)

2 = White
3 = Brown
4 = Green
5 = Yellow
7 = Gray
« Letzte Änderung: März 07, 2008, 00:11:56 Vormittag von John_Ess »

Offline John_Ess

  • Jr. Member
  • **
  • Beiträge: 80
  • I love easy-Forum.net!
Re: SMS
« Antwort #14 am: März 07, 2008, 23:59:11 Nachmittag »
Using Serial Protocol

Baud 9600
Data bits 8
Stop bit 1
Parity=No Parity

In the Start Sequence I put

AT+CMGS="###########"\CR\LF Where ########### is the mobile phone number you want to text

Then in the End Sequence I put

\SUB
Some general notes....

In the "Comment" you place the message you want to send.
....
As this was some time ago and my memory is poor, there may be errors above, let me know how you get on and if needed I'll dig out an 820 and set all this up again.

Boswell

Hi Boswell,

I cannot get it working  :(

You said to place the actual text in SP "Comment" .... correct ???
But that just re-names the SP block's name ... hmmmm

Any chances to dig out that prog you wrote some time ago?

Regards,
John