Hmm this doesn't look right. I tried unraveling it using the following PDU 
converter:

http://home.student.utwente.nl/s.p.ekkebus/portfolio/resource/sms_pdu.html#PDU_CONVERTER

The first problem is the PDU seems to be missing a leading 00 indicating no 
SMSC info is 
present. So the 11 is iterpreted as the size of the SMSC info and the rest of 
the message 
is attempted to be parsed based upon that bad assumption. I tried adding 00 
before the 
PDU like this:

0011000881463796680002A7023132

It decodes to this:

SMSC#
Sender:64736986
TP_PID:00
TP_DCS:02
TP_DCS-popis:Uncompressed Text
class:2
Alphabet:Default

1d
Length:2

The leading "00" is typically added in smsc_at.c: at2_send_one_message() if no 
smsc
information is provided (the modem has no-smsc set to false). In practice I've 
found
that setting this to true doesn't cause the SMSC information to be added to the 
PDU
nor does it provide the required 00 indicating no SMSC information is present. 
You
should either remove the no-smsc option in your config file or set it to false 
to
solve this problem.

However, even adding the 00 does not solve all of the problem, as your text was 
12 
not 1d, and you indicated you wanted 8bit coding (coding=2) which is what it 
did,
but did not set the correct bit pattern in the PDU accordingly.

I think that proper 8 bit encoding should have produced a PDU that looks like 
this:

0011000891463796680004AA023132

Which decodes to this:

SMSC#
Sender:+64736986
TP_PID:00
TP_DCS:04
TP_DCS-popis:Uncompressed Text
class:0
Alphabet:8bit

12
Length:2

Note the DCS class fields differ (2 means "SIM specific" whereas 0 means 
"Immediate display (alert)"), but that may just be because the above web
tool doesn't let you specify the class field value. But the big issue is 
your PDU indicates the message is encoded with the default alphabet which
is 7bit, but the text appears to have been encoded as 8bit. 3132 is the
ASCII hex equivalent of "12": "1" is ASCII 0x31, "2" is ASCII 0x32.

If it were properly 7bit (default alphabet) encoded it would look like this:

0011000891463796680000AA023119

So you still have soemthing wrong in how the bit that indicates the encoding
is being set in the PDU, but I'm not sure where this problem is considering
it should work in the baseline code. Perhaps just leaving off the coding=2
parameter and making the other config file change will solve the problem by
just letting it use 7bit encoding. Is there some reason it has to use 8 bit
encoding (for example, do you plan to send binary data)? If you only ever
plan to send plain text then 7bit encoding is fine.

J.R.(Sydd)Souza


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of raymond tsang
Sent: Thursday, June 22, 2006 11:50 PM
To: [email protected]
Subject: pdu mode parameter


Hi, I am sending text message from web to cell phone,
my smsc almost working, I am very happy now.
but got these pdu parameter (304) error,
--what should be in the URL?

http://localhost:18322/cgi-bin/sendsms?username=adsmb&password=smb8da&to=64736986&text=12&smsc=orange&coding=2

The pdu string shows: 11000881463796680002A7023132
--Do you have a pdu table reference? and I look up in other places, 
everything
  in the pdu is ok, except the last 4 (3132), it should be just 2 digit 
represent my
  text=12,  right??

Please help a little, everyone, I am almost there, it's almost working...
hhahahahahaha


/////////////////following shows in the bearbox.exe when running
2006-06-23 02:08:14 [3744] [6] DEBUG: AT2[orange]: --> AT+CMGS=14^M
2006-06-23 02:08:14 [3744] [6] DEBUG: AT2[orange]: <-- >
2006-06-23 02:08:14 [3744] [6] DEBUG: AT2[orange]: send command status: 1
2006-06-23 02:08:14 [3744] [6] DEBUG: AT2[orange]: --> 
11000881463796860002A7023
132
2006-06-23 02:08:14 [3744] [6] DEBUG: AT2[orange]: --> ^Z
2006-06-23 02:08:14 [3744] [6] DEBUG: AT2[orange]: <-- >
2006-06-23 02:08:14 [3744] [6] DEBUG: AT2[orange]: <-- +CMS ERROR: 304
2006-06-23 02:08:14 [3744] [6] ERROR: AT2[orange]: CMS ERROR: +CMS ERROR: 
304
2006-06-23 02:08:14 [3744] [6] ERROR: AT2[orange]: CMS ERROR: Invalid PDU 
mode p
arameter (304)

_________________________________________________________________
No masks required! Use MSN Messenger to chat with friends and family. 
http://go.msnserver.com/HK/25382.asp



_______________________________________________
users mailing list
[email protected]
http://www.kannel.org/mailman/listinfo/users

Reply via email to