gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text vs PDU mode & the SMSC


From: Pawel Kot
Subject: Re: Text vs PDU mode & the SMSC
Date: Thu, 10 Dec 2009 14:51:08 +0100

Hi,

On Thu, Dec 10, 2009 at 14:09, Richard Herselman <address@hidden> wrote:
> 1. Is there any way to force gnokii to send SMSs using text mode and not PDU
> mode? The device seems to supports both, but our network operator only
> supports text mode, so trying PDU mode won't ever work.

gnokii does not support text mode.

> 2. Is there any way to permanently set the SMSC number, e.g. in the gnokii
> config file, or otherwise customize the AT commands that gnokii sends (short
> of trying to hack the source code)?

No, there's currently no way to do it.

> I've been unable to have gnokii retrieve
> the SMSC from the SIM card, even though the "SIM message centre" setting
> shows the correct number when I install the same SIM card in my Nokia phone.
>
> Running "gnokii --getsmsc" gets me:

Perhaps it is stored under 0th location? Or some other? Ugly hack is
to define some script like:
$ cat gnokii-sendsms
#!/bin/sh
gnokii --sendsms $1 --smsc 1234567890
EOF

> [...snip...]
> Received message type 23
> No. 1: "" (default name)
> SMS center number is
> No default recipient number is defined
> Messages sent as Text
> Message validity is Unknown
> Error: The given memory location is invalid.
> Serial device: closing device
>
> With regards to my first question, here is the output from running "gnokii
> --sendsms 0821234567 --smsc +27829119", where it shows "PDU mode set", no
> matter what I try:
>

> Sending frame:
> 05917228199111000A8180422669700000AA10D4F29C0E9A36A7A076793E0F9FCB Message
> sent: 0x21 / 0x0043
> 30 35 39 31 37 32 32 38 31 39 39 31 31 31 30 30 | 0591722819911100
> 30 41 38 31 38 30 34 32 32 36 36 39 37 30 30 30 | 0A81804226697000
> 30 30 41 41 31 30 44 34 46 32 39 43 30 45 39 41 | 00AA10D4F29C0E9A
> 33 36 41 37 41 30 37 36 37 39 33 45 30 46 39 46 | 36A7A076793E0F9F
> 43 42 1a                                        | CB             write:
> [05917228199111000A8180422669700000AA10D4F29C0E9A36A7A076793E0F9FCB^Z]
> SMS Send failed (Command timed out.)
> Serial device: closing device

You may want to increase smsc_timeout to get non timeout outcome.

take care,
-- 
Pawel Kot




reply via email to

[Prev in Thread] Current Thread [Next in Thread]