gnokii-users
[Top][All Lists]
Advanced

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

Re: multipart sms on motorola razr


From: Benjamin Chodroff
Subject: Re: multipart sms on motorola razr
Date: Thu, 27 Nov 2008 14:45:39 -0500

I set smsc_timeout = 60 to avoid the timeout and the segmentation
fault has returned.

Ben


On Thu, Nov 27, 2008 at 1:27 PM, Benjamin Chodroff
<address@hidden> wrote:
> Thanks - no more segfault when sending, but now the command is timing
> out when sending. Suggestions? See below.
>
> SMSD is not reading the multipart incoming text messages. It skips
> them as if they weren't on the device...
>
> Ben
>
> address@hidden:~/gnokii/gnokii$ echo "one two three four five six
> seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen
> seventeen eighteen nineteen twenty twenty-one twenty-two twenty-three
> twenty-four twenty-five"|./gnokii --sendsms +xxxxxxxxxxx -l 200
> GNOKII Version 0.6.28cvs
> Couldn't read /home/bec/.gnokiirc config file.
> Couldn't read /home/bec/.gnokiirc config file.
> LOG: debug mask is 0x1
> LOG: rlpdebug mask is 0x1
> LOG: xdebug mask is 0x1
> Config read from file /etc/gnokiirc.
> Lockfile /var/lock/LCK..ttyACM0 is stale. Overriding it...
> phone instance config:
> model = AT
> port = /dev/ttyACM0
> connection = serial
> initlength = default
> serial_baudrate = 19200
> serial_write_usleep = -1
> handshake = software
> require_dcd = 0
> smsc_timeout = 10
> rfcomm_channel = 0
> sm_retry = 0
> Initializing AT capable mobile phone ...
> Serial device: opening device /dev/ttyACM0
> Serial device: setting RTS to high and DTR to high
> Message sent: 0x00 / 0x0004
> 41 54 5a 0d                                     | ATZ
> write: [ATZ<cr>]
> read : [ATZ<cr><cr><lf>OK<cr><lf>]
> Message received: 0x00 / 0x000a
> 02 41 54 5a 0d 0d 0a 4f 4b 0d                   |  ATZ   OK
> Received message type 00
> Message sent: 0x00 / 0x0005
> 41 54 45 31 0d                                  | ATE1
> write: [ATE1<cr>]
> read : [ATE1<cr><cr><lf>OK<cr><lf>]
> Message received: 0x00 / 0x000b
> 02 41 54 45 31 0d 0d 0a 4f 4b 0d                |  ATE1   OK
> Received message type 00
> Message sent: 0x00 / 0x000a
> 41 54 2b 43 4d 45 45 3d 31 0d                   | AT+CMEE=1
> write: [AT+CMEE=1<cr>]
> read : [AT+CMEE=1<cr><cr><lf>OK<cr><lf>]
> Message received: 0x00 / 0x0010
> 02 41 54 2b 43 4d 45 45 3d 31 0d 0d 0a 4f 4b 0d |  AT+CMEE=1   OK
> Received message type 00
> Message sent: 0x06 / 0x0007
> 41 54 2b 47 4d 4d 0d                            | AT+GMM
> write: [AT+GMM<cr>]
> read : [AT+GMM<cr><cr><lf>+GMM:
> "GSM900","GSM1800","GSM1900","GSM850","MODEL=V3"<cr><lf><cr><lf>OK<cr><lf>]
> Message received: 0x06 / 0x0047
> 02 41 54 2b 47 4d 4d 0d 0d 0a 2b 47 4d 4d 3a 20 |  AT+GMM   +GMM:
> 22 47 53 4d 39 30 30 22 2c 22 47 53 4d 31 38 30 | "GSM900","GSM180
> 30 22 2c 22 47 53 4d 31 39 30 30 22 2c 22 47 53 | 0","GSM1900","GS
> 4d 38 35 30 22 2c 22 4d 4f 44 45 4c 3d 56 33 22 | M850","MODEL=V3"
> 0d 0a 0d 0a 4f 4b 0d                            |     OK
> Received message type 06
> Message sent: 0x06 / 0x0008
> 41 54 2b 43 47 4d 49 0d                         | AT+CGMI
> write: [AT+CGMI<cr>]
> read : [AT+CGMI<cr><cr><lf>+CGMI: "Motorola CE, Copyright
> 2004"<cr><lf><cr><lf>OK<cr><lf>]
> Message received: 0x06 / 0x0036
> 02 41 54 2b 43 47 4d 49 0d 0d 0a 2b 43 47 4d 49 |  AT+CGMI   +CGMI
> 3a 20 22 4d 6f 74 6f 72 6f 6c 61 20 43 45 2c 20 | : "Motorola CE,
> 43 6f 70 79 72 69 67 68 74 20 32 30 30 34 22 0d | Copyright 2004"
> 0a 0d 0a 4f 4b 0d                               |    OK
> Received message type 06
> Message sent: 0x61 / 0x0009
> 41 54 2b 43 53 43 53 3f 0d                      | AT+CSCS?
> write: [AT+CSCS?<cr>]
> read : [AT+CSCS?<cr><cr><lf>+CSCS: "ASCII"<cr><lf><cr><lf>OK<cr><lf>]
> Message received: 0x61 / 0x0021
> 02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCS?   +CSC
> 53 3a 20 22 41 53 43 49 49 22 0d 0a 0d 0a 4f 4b | S: "ASCII"    OK
> 0d                                              |
> Received message type 61
> Initialisation completed
> Message sent: 0x61 / 0x000a
> 41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?
> write: [AT+CSCS=?<cr>]
> read : [AT+CSCS=?<cr><cr><lf>+CSCS:
> ("8859-1","ASCII","GSM","UCS2","UTF8")<cr><lf><cr><lf>OK<cr><lf>]
> Message received: 0x61 / 0x0041
> 02 41 54 2b 43 53 43 53 3d 3f 0d 0d 0a 2b 43 53 |  AT+CSCS=?   +CS
> 43 53 3a 20 28 22 38 38 35 39 2d 31 22 2c 22 41 | CS: ("8859-1","A
> 53 43 49 49 22 2c 22 47 53 4d 22 2c 22 55 43 53 | SCII","GSM","UCS
> 32 22 2c 22 55 54 46 38 22 29 0d 0a 0d 0a 4f 4b | 2","UTF8")    OK
> 0d                                              |
> Received message type 61
> Message sent: 0x00 / 0x000e
> 41 54 2b 43 53 43 53 3d 22 47 53 4d 22 0d       | AT+CSCS="GSM"
> write: [AT+CSCS="GSM"<cr>]
> read : [AT+CSCS="GSM"<cr><cr><lf>OK<cr><lf>]
> Message received: 0x00 / 0x0014
> 02 41 54 2b 43 53 43 53 3d 22 47 53 4d 22 0d 0d |  AT+CSCS="GSM"
> 0a 4f 4b 0d                                     |  OK
> Received message type 00
> Message sent: 0x23 / 0x0009
> 41 54 2b 43 53 43 41 3f 0d                      | AT+CSCA?
> write: [AT+CSCA?<cr>]
> read : [AT+CSCA?<cr><cr><lf>+CSCA: 
> "+13123149810",145<cr><lf><cr><lf>OK<cr><lf>]
> Message received: 0x23 / 0x002c
> 02 41 54 2b 43 53 43 41 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCA?   +CSC
> 41 3a 20 22 2b 31 33 31 32 33 31 34 39 38 31 30 | A: "+13123149810
> 22 2c 31 34 35 0d 0a 0d 0a 4f 4b 0d             | ",145    OK
> Received message type 23
> General Data Coding
> dcs: 0x0
> Length: 0xbe
> user_data_length: 0xa7
> ValidityIndicator: 2
> user_data: 
> 6F771944BFBF4174B4BC5C0699DF7539C89CB69741F3341E342FDBCB6E50397D46D341EEB4BB0CA297DDA032BB6C2FBB41F47B996D2F83E8E8B49C5E2EBB41E6775D4E2F97DD2073DA4C2F97DDA0791A4F2F97DDA079D95E76D3CB6537A89C3EA3E9E5B21BE44EBBCBF472D90DA2DFCB6E7A1E44BF97DDF47CEBED2E83E8F7B29B9E6FD1EF6F10FD5E76D3F32D3A5A5E2E83E8F7B29B9E6F99DF7539887E2FBBE9F996396D2F03
> SMS is too long? 167
> Will need 2 sms-es
> Sending sms #0
> Adding ConcatMsg header
> General Data Coding
> dcs: 0x0
> Length: 0xa0
> user_data_length: 0x8c
> ValidityIndicator: 2
> user_data: 
> 050003CE0201DEEE32887E7F83E86879B90C32BFEB7290396D2F83E6693C685EB697DDA072FA8CA683DC697719442FBB416576D95E7683E8F732DB5E06D1D16939BD5C7683CCEFBA9C5E2EBB41E6B4995E2EBB41F3349E5E2EBB41F3B2BDECA697CB6E50397D46D3CB6537C89D7697E9E5B21B44BF97DDF43C887E2FBBE9F9D6DB5D06D1EF65373DDFA2DFDF
> Sending
> Message sent: 0x63 / 0x000a
> 41 54 2b 43 4d 47 46 3d 30 0d                   | AT+CMGF=0
> write: [AT+CMGF=0<cr>]
> read : [AT+CMGF=0<cr><cr><lf>OK<cr><lf>]
> Message received: 0x63 / 0x0010
> 02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d |  AT+CMGF=0   OK
> Received message type 63
> PDU mode set
> Sending initial sequence
> Message sent: 0x64 / 0x000c
> 41 54 2b 43 4d 47 53 3d 31 35 34 0d             | AT+CMGS=154
> write: [AT+CMGS=154<cr>]
> read : [AT+CMGS=154<cr><cr><lf>> ]
> Message received: 0x64 / 0x0010
> 01 41 54 2b 43 4d 47 53 3d 31 35 34 0d 0d 0a 3e |  AT+CMGS=154   >
> Received message type 64
> Got response 0
> Sending frame: 
> 07913121139418F051000B912161359372F20000AAA0050003CE0201DEEE32887E7F83E86879B90C32BFEB7290396D2F83E6693C685EB697DDA072FA8CA683DC697719442FBB416576D95E7683E8F732DB5E06D1D16939BD5C7683CCEFBA9C5E2EBB41E6B4995E2EBB41F3349E5E2EBB41F3B2BDECA697CB6E50397D46D3CB6537C89D7697E9E5B21B44BF97DDF43C887E2FBBE9F9D6DB5D06D1EF65373DDFA2DFDF
> Message sent: 0x21 / 0x0145
> 30 37 39 31 33 31 32 31 31 33 39 34 31 38 46 30 | 07913121139418F0
> 35 31 30 30 30 42 39 31 32 31 36 31 33 35 39 33 | 51000B9121613593
> 37 32 46 32 30 30 30 30 41 41 41 30 30 35 30 30 | 72F20000AAA00500
> 30 33 43 45 30 32 30 31 44 45 45 45 33 32 38 38 | 03CE0201DEEE3288
> 37 45 37 46 38 33 45 38 36 38 37 39 42 39 30 43 | 7E7F83E86879B90C
> 33 32 42 46 45 42 37 32 39 30 33 39 36 44 32 46 | 32BFEB7290396D2F
> 38 33 45 36 36 39 33 43 36 38 35 45 42 36 39 37 | 83E6693C685EB697
> 44 44 41 30 37 32 46 41 38 43 41 36 38 33 44 43 | DDA072FA8CA683DC
> 36 39 37 37 31 39 34 34 32 46 42 42 34 31 36 35 | 697719442FBB4165
> 37 36 44 39 35 45 37 36 38 33 45 38 46 37 33 32 | 76D95E7683E8F732
> 44 42 35 45 30 36 44 31 44 31 36 39 33 39 42 44 | DB5E06D1D16939BD
> 35 43 37 36 38 33 43 43 45 46 42 41 39 43 35 45 | 5C7683CCEFBA9C5E
> 32 45 42 42 34 31 45 36 42 34 39 39 35 45 32 45 | 2EBB41E6B4995E2E
> 42 42 34 31 46 33 33 34 39 45 35 45 32 45 42 42 | BB41F3349E5E2EBB
> 34 31 46 33 42 32 42 44 45 43 41 36 39 37 43 42 | 41F3B2BDECA697CB
> 36 45 35 30 33 39 37 44 34 36 44 33 43 42 36 35 | 6E50397D46D3CB65
> 33 37 43 38 39 44 37 36 39 37 45 39 45 35 42 32 | 37C89D7697E9E5B2
> 31 42 34 34 42 46 39 37 44 44 46 34 33 43 38 38 | 1B44BF97DDF43C88
> 37 45 32 46 42 42 45 39 46 39 44 36 44 42 35 44 | 7E2FBBE9F9D6DB5D
> 30 36 44 31 45 46 36 35 33 37 33 44 44 46 41 32 | 06D1EF65373DDFA2
> 44 46 44 46 1a                                  | DFDF
> write: 
> [07913121139418F051000B912161359372F20000AAA0050003CE0201DEEE32887E7F83E86879B90C32BFEB7290396D2F83E6693C685EB697DDA072FA8CA683DC697719442FBB416576D95E7683E8F732DB5E06D1D16939BD5C7683CCEFBA9C5E2EBB41E6B4995E2EBB41F3349E5E2EBB41F3B2BDECA697CB6E50397D46D3CB6537C89D7697E9E5B21B44BF97DDF43C887E2FBBE9F9D6DB5D06D1EF65373DDFA2DFDF^Z]
> SMS Send failed (Command timed out.)
> Serial device: closing device
>
>
> On Thu, Nov 27, 2008 at 12:02 PM, Daniele Forsi <address@hidden> wrote:
>> 2008/11/27 Benjamin Chodroff wrote:
>>
>>> I am trying to send a multipart sms on the motorola razr but I always
>>> get a segfault.
>>
>> it's fixed in the CVS version.
>>
>> This is the commit message:
>>
>> CVSROOT:        /cvsroot/gnokii
>> Module name:    gnokii
>> Changes by:     Pawel Kot <pkot>        08/11/16 13:38:10
>>
>> Modified files:
>>       .              : ChangeLog
>>       common         : gsm-sms.c
>>
>> Log message:
>>       Fix segfault on sending long sms
>>
>> CVSWeb URLs:
>> http://cvs.savannah.gnu.org/viewcvs/gnokii/ChangeLog?cvsroot=gnokii&r1=1.1740&r2=1.1741
>> http://cvs.savannah.gnu.org/viewcvs/gnokii/common/gsm-sms.c?cvsroot=gnokii&r1=1.184&r2=1.185
>> --
>> Daniele Forsi
>>
>>
>> _______________________________________________
>> gnokii-users mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/gnokii-users
>>
>




reply via email to

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