AT commands to Motorola g18 modem

AT commands to Motorola g18 modem SearchSearch
Author Message
Anonymous
 
Posted on Wednesday, April 21, 2004 - 09:08 pm:   

Hi Bruce

I have a problem with sending an sms with this modem. I think it is a general AT command problem.
Here is the deal:
I want to send and sms, with and embedded platform. First I would like to get it to work from the PC via the serial port.
First I tested the modem with a handset and the sms was delivered to the receiving phone.
Then I found a PC soft named DockLight. The initialisation of the modem works fine and after sending the AT+cmgs=22<CR><LF> it responses as expected with a ">"
But when a transmit the sms byte-string it returns an error. The strin is: 0691xxxxxxxxxx11000A91yyyyyyyyyy00000009E8329BFD4697D9EC371A.
x is gateway phone number.
y is receivers phone number.

I hope you / or another will help me.

I write to you because when I tried your Nowsms 5.50 trial version the sms went through like a charm :-))

I am looking forward to hear from you / someone.

Best regards
Flemming
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2355
Registered: 10-2002
Posted on Thursday, April 22, 2004 - 05:20 pm:   

Flemming,

What you refer to as a "gateway phone number" is the phone number of the operator SMSC.

It sounds like you are attempting to submit the message for delivery through an invalid SMSC number. At least that would be by best guess.

-bn
Flemming
Unregistered guest
Posted on Thursday, April 22, 2004 - 07:34 pm:   

Hi Bruce,

Thank you for your quick answer.

SMSC, is that the same as SCA or service center address?

hmm.. I believe no harm will be done if I add the number for your eyes.

The string is: "0691540493909911000A91yyyyyyyyyyyy00000009E8329BFD4697D9EC371A".

The SMSC is: +4540390999.
+45 is the danish country code. I have tried to add the "+" without any luck. The modem responses with an exact copy of the string and imidiately after with "ERROR".

How does NowSms get the smsc from the simcard?

I hope you have the time to help me a little more.

Best regards
Flemming
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2390
Registered: 10-2002
Posted on Saturday, April 24, 2004 - 01:59 am:   

Hi Flemming,

Some ideas ...

Use 00 instead of an SMSC address for the default service center.

Assuming that service center number is ok, then it looks right.

You might want to try not including a validity period.

Another weird thing, I am suspicious of your calculation of the length for the destination address. There are 12 y's in your string, but the length specified is 10 (0x0A). I could accept an address-length of 11 or 12 in this situation, but not 10.

-bn
Flemming
Unregistered guest
Posted on Sunday, April 25, 2004 - 12:32 pm:   

Hi Bruce,

Once again thanks for replying so fast and for spending some time helping me.

I have tried some of your ideas: No SMSC and no VP.
You are correct about my error in calculating the lengt of the destination address. I have tried many things and appearantly forgot to correct the length last time I changed something. Also the length of the data was wrong :-/.

BUT now it works like a charm. With the string: 0001000A91yyyyyyyyyy00000AE8329BFD4697D9EC37 I got the sms delivered to the destination address. YES BABY.

YOU ARE THE MAN!

Now I can continue my work on this project thanks to you!

With the wish of a pleasant day.

Best regards
Flemming