Should it be possible to send sms's of more than 160 characters ?

110 views
Skip to first unread message

ninebladed

unread,
Aug 19, 2009, 6:23:34 AM8/19/09
to pyhumod
Hi

I am running pyhumod-0.02 on ubuntu 9.04 with an E220.

Should it be possible to send an sms with more than 160 characters ?
(i.e. behind the scenes, multiple concatenated sms's)

Below is the error message I get when I attempt to send messages of
more than 160 characters.

~/pyhumod-0.02$ uname -a
Linux t180u 2.6.28-15-generic #48-Ubuntu SMP Wed Jul 29 08:54:56 UTC
2009 i686 GNU/Linux
~/pyhumod-0.02$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import humod
>>> m=humod.Modem()
>>> m.show_model()
'E220'
>>> m.show_revision()
'11.116.04.01.25'
>>> m.enter_text_mode()
>>> m.send_text('+44778xxxxxxx', 'This is just a test')
33
>>> m.send_text('+44778xxxxxxx', 'This message is 162 characters long AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "humod/at_commands.py", line 137, in send_text
result = self.ctrl_port.send(contents+chr(26))
File "humod/humodem.py", line 161, in send
return self.return_data(at_cmd)
File "humod/humodem.py", line 182, in return_data
errors.check_for_errors(input_line)
File "humod/errors.py", line 35, in check_for_errors
raise AtCommandError, input_line
humod.errors.AtCommandError: +CMS ERROR: 305
>>>

oozie

unread,
Aug 22, 2009, 5:14:40 AM8/22/09
to pyh...@googlegroups.com
Hi ninebladed,

On Wed, Aug 19, 2009 at 11:23 AM, ninebladed<daco...@googlemail.com> wrote:
>
> Hi
>
> I am running pyhumod-0.02 on ubuntu 9.04 with an E220.
>
> Should it be possible to send an sms with more than 160 characters ?
> (i.e. behind the scenes, multiple concatenated sms's)
>
> Below is the error message I get when I attempt to send messages of
> more than 160 characters.

>[...]
> humod.errors.AtCommandError: +CMS ERROR: 305

I'm afraid that sending concatenated SMS is only possible in the PDU
mode. PyHumod in it's current version only implements the simple text
mode SMS support.

I will look into it in the future versions, but will have to invest
some time first in learning about the PDU mode SMS messaging. I will
keep you posted.

--
best regards,
oozie
http://pyhumod.ooz.ie/

ninebladed

unread,
Aug 23, 2009, 4:22:13 AM8/23/09
to pyhumod
Hi oozie

I see. I didn't realise PDU mode was required for 160+ messages.

I have no experience with PDU forming so I can't offer much help other
than a few links courtesy of those nice people at Google.

Thanks for all your good work so far.

Regards

ninebladed


http://gsmmanager.cvs.sourceforge.net/viewvc/gsmmanager/gsm_manager/pdu.py?revision=1.6&view=markup

http://www.dreamfabric.com/sms/

http://mobiletidings.com/2009/02/11/more-on-the-sms-pdu/

http://www.exothermia.net/monkeys_and_robots/2009/04/24/python-code-to-decode-sms-pdu/
http://code.google.com/p/python-sms/source/checkout

http://rednaxela.net/pdu.php

PDYSPY http://www.nobbi.com/download.html



On Aug 22, 10:14 am, oozie <oo...@ooz.ie> wrote:
> Hi ninebladed,
>

ninebladed

unread,
Sep 2, 2009, 1:43:40 PM9/2/09
to pyhumod
Hi oozie

I just came across this code snippet,
http://code.google.com/p/phonetooth/source/browse/trunk/phonetooth/sms.py

At a glance, it looks to be a very comprehensive collection of PDU
forming code.
I do wonder if it could be used in pyhumod, GPL and functionality
permitting.

Regards

ninebladed


On Aug 23, 9:22 am, ninebladed <dacou...@googlemail.com> wrote:
> Hi oozie
>
> I see. I didn't realise PDU mode was required for 160+ messages.
>
> I have no experience with PDU forming so I can't offer much help other
> than a few links courtesy of those nice people at Google.
>
> Thanks for all your good work so far.
>
> Regards
>
> ninebladed
>
> http://gsmmanager.cvs.sourceforge.net/viewvc/gsmmanager/gsm_manager/p...
>
> http://www.dreamfabric.com/sms/
>
> http://mobiletidings.com/2009/02/11/more-on-the-sms-pdu/
>
> http://www.exothermia.net/monkeys_and_robots/2009/04/24/python-code-t...http://code.google.com/p/python-sms/source/checkout

oozie

unread,
Sep 6, 2009, 10:19:07 AM9/6/09
to pyh...@googlegroups.com
Hi ninebladed,

On Wed, Sep 2, 2009 at 6:43 PM, ninebladed<daco...@googlemail.com> wrote:
> Hi oozie
>
> I just came across this code snippet,
> http://code.google.com/p/phonetooth/source/browse/trunk/phonetooth/sms.py
>
> At a glance, it looks to be a very comprehensive collection of PDU
> forming code.
> I do wonder if it could be used in pyhumod, GPL and functionality
> permitting.

As usual apologies for a very late answer.

The code is a good read, thanks. While functionality is certainly
there, I'd like to keep PyHumod 100% BSD licensed.
I understand that you need PDU SMSes so I will try to shift this
towards the top of the priority list. Hopefully I'll have some more
time to sit down on that in the upcoming weeks.

Dave Coutts

unread,
Sep 11, 2009, 2:50:17 PM9/11/09
to pyh...@googlegroups.com
Hi oozie

pdu sms functionality would be great but please don't feel under any pressure to get it done.
I appreciate the work you have put into pyhumod so far.

Regards

ninebladed

2009/9/6 oozie <oo...@ooz.ie>
Reply all
Reply to author
Forward
0 new messages