easy-forum

English Support - Hardware => easy topics (general) => Thema gestartet von: Boswell am April 05, 2007, 19:43:36 Nachmittag

Titel: SMS
Beitrag von: Boswell 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 ???
Titel: Re: SMS
Beitrag von: KressSwiss 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.
Titel: Re: SMS
Beitrag von: Boswell 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
Titel: Re: SMS
Beitrag von: Mr. Spok 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
Titel: Re: SMS
Beitrag von: Mr. Spok 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
Titel: Re: SMS
Beitrag von: Boswell 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  :)
Titel: Re: SMS
Beitrag von: adaly 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?
Titel: Re: SMS
Beitrag von: colonia 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.
Titel: Re: SMS
Beitrag von: John_Ess 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

Titel: Re: SMS
Beitrag von: Boswell 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
Titel: Re: SMS
Beitrag von: KressSwiss 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
Titel: Re: SMS
Beitrag von: John_Ess 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?

Titel: Re: SMS
Beitrag von: John_Ess 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
Titel: Re: SMS
Beitrag von: John_Ess 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
Titel: Re: SMS
Beitrag von: John_Ess 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
Titel: Re: SMS
Beitrag von: hookshy am Februar 10, 2009, 18:42:19 Nachmittag
hi, I'm Gabriel
I have at home a modem GSM Siemens MC35 and I olso try to send SMS with Serial Protocol function from an Easy 800 .
I did' t succeded yet ,and I want to tell you what I now may be we will find toghether a way to  make this work.
I am comunicating and sending SMS with the moden from the Pc .
To initiate a send job to modem the sintax will Be:
AT+CMGS="Phone nunmber"OD
[OD is Carriage return in Hexa]
Then I have to start a new send task :
My messange 1A
[1A is Substitute]
Both CR [OD] and SUB [1A] are very important to be placed at the end , I supose in Easy it must be writen in end sequence.

I do not think the example from Moeller using SP function block will work , my opinion is that you must use to SP function ,first one to tel the modem what you want him to execute and the next one with mesege and end of task.


Titel: Re: SMS
Beitrag von: John_Ess am Februar 10, 2009, 19:29:26 Nachmittag
Hi Gabriel,

What cable are you using to communicate between Easy-800 and GSM modem?
Please attach some code so we ALL can look at it together.

Regards,

John
Titel: Re: SMS
Beitrag von: hookshy am Februar 14, 2009, 14:01:23 Nachmittag
I am using Easy800 pc Cab conected to another male 9 pin cable for serial comunications.
Cables are very good for comunication pc-modem GSM.
I don't understand what cods you whant me to send you?
Gabi
Titel: Re: SMS
Beitrag von: John_Ess am Februar 14, 2009, 19:12:26 Nachmittag
I am using Easy800 pc Cab conected to another male 9 pin cable for serial comunications.
Cables are very good for comunication pc-modem GSM.
I don't understand what cods you whant me to send you?
Gabi

See my post in "Kommunication" section where I try to figure out differencies between "modem" easy-MO-CAB and "programming" easy-PC-CAB cables.
For some reason Moeller recommends using strictly MO-CAB to communicate with modems and ANY other serial devices. Nobody but you so far was able to communicate with modem via PC-CAB.

From your post it seems that you are the very first one (at least in this forum) to establish a communication between EASY and Siemens MC35 modem using a standard "programming" cable PC-CAB.

That is why I asked you to explain the whole working setup in details - including your *.e60 easySoft code - if you don't mind of course  :)

Best regards,

John