Re: smsc_at2.c PDU coding
Andreas Fink <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
On Freitag, November 8, 2002, at 02:13 Uhr, Stipe Tolj wrote: > From: Stipe Tolj <[email protected]> > Date: Fre Nov 8, 2002 2:13:12 Uhr Europe/Zurich > To: "[email protected]" <[email protected]> > Subject: smsc_at2.c PDU coding > > Hi list, > > I have some problems with an Siemens M20. So I came across the gsmlib > project at http://www.pxh.de/fs/gsmlib/index.html. > > When sending the same payload "tes" to same number on same device > /dev/ttyS1. > > Debug output of gsmlib's gsmsendsms: > > <-- +CSMS: 1,1,1 > <-- > <-- OK > --> AT+CMGS=17 > <-- > --> 0015000B811037353312F60000A803F4F21C? > <-- > <-- +CMGS: 84 > <-- > <-- OK > > > Debug output of smsc_at2.c: > > AT2[m20]: --> AT+CMGS=17^M > AT2[m20]: <-- > > AT2[m20]: send command status: 1 > AT2[m20]: --> 0011000C919471533323610000A703F4F21C > AT2[m20]: --> ^Z > AT2[m20]: <-- > > AT2[m20]: <-- +CMGS: 89 > AT2[m20]: <-- OK > > can someone explain to me why the PDU string is differently?! I've decoded the stuff here. Here's the output: 2002-11-08 08:37:45 [0] INFO: Decoding: 15000B811037353312F60000A803F4F21C 2002-11-08 08:37:45 [0] INFO: [TP_MTI:1:SMS-SUBMIT][TP_MMS:0][TP_SRR:0][TP_UDHI:0][TP_RP:0][TP_VPF:2] 2002-11-08 08:37:45 [0] INFO: SMS SUBMIT PDU 2002-11-08 08:37:45 [0] INFO: destination in pdu: [TON:0][NPI:ISDN][ADR:01735333216] 2002-11-08 08:37:45 [0] INFO: PID: 0 2002-11-08 08:37:45 [0] INFO: DCS: 0 2002-11-08 08:37:45 [0] INFO: VP is relative: 168 2002-11-08 08:37:45 [0] INFO: User Data Len: 3 2002-11-08 08:37:45 [0] INFO: TEXT: tes 2002-11-08 08:37:45 [0] INFO: tp_mr: 0 2002-11-08 08:37:45 [0] INFO: tp_udhi: 0 2002-11-08 08:37:45 [0] INFO: tp_udh: and the second one 2002-11-08 08:37:09 [0] INFO: Decoding: 11000C919471533323610000A703F4F21C 2002-11-08 08:37:09 [0] INFO: octet 1: 17 2002-11-08 08:37:09 [0] INFO: [TP_MTI:1:SMS-SUBMIT][TP_MMS:1][TP_SRR:0][TP_UDHI:0][TP_RP:0][TP_VPF:2] 2002-11-08 08:37:09 [0] INFO: SMS SUBMIT PDU 2002-11-08 08:37:09 [0] INFO: destination in pdu: [TON:INT][NPI:ISDN][ADR:491735333216] 2002-11-08 08:37:09 [0] INFO: PID: 0 2002-11-08 08:37:09 [0] INFO: DCS: 0 2002-11-08 08:37:09 [0] INFO: VP is relative: 167 2002-11-08 08:37:09 [0] INFO: User Data Len: 3 2002-11-08 08:37:09 [0] INFO: TEXT: tes 2002-11-08 08:37:09 [0] INFO: tp_mr: 0 2002-11-08 08:37:09 [0] INFO: tp_udhi: 0 2002-11-08 08:37:09 [0] INFO: tp_udh: So the difference is only in the "MMS" (More Messages to be Sent) field and the type of number. In the first case its submitted as national number in the second as international. Also the validity period differ by one. both PDU's have "tes" as content. Andreas Fink Global Networks, Inc. ------------------------------------------------------------------ Tel: +41-61-6666333 Fax: +41-61-6932729 Mobile: +41-79-2457333 Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland Web: http://www.global-networks.ch/ [email protected] ------------------------------------------------------------------ Member of the GSM Association