|
for better reading,here are he 3 PDU strings:
1)
05913476061211390B816067960850F50
000FF11C7329A0E2287E7A0F9181DA6EBD33F
2)
059134760612040C91347666890055000070
21926142624046553719E40ED3FD72767A8C06
CDC76879392D06A5C76850B83E4683C8E932A82
C9FD3CBA0797B0E42A7D1691768999ECF41E931
1AC44E97C56510393D4603
3)
059134760612513C0B816067960850F50000FFA
0050003010302EA2074B94E2F83DA693AE81E96
CFE9AEB0B82C0791C373507A4E07CDDF20F2FB6D
66A5C768103A2C0691D36334889C2E83CE61B7BE0
CD297D37450BD0D6AA7C76850585C9683D26334C8
5E96B7D3F339889C1EA341E4B0DB0DA2CBDF743DB
9DC06D1DFF430DB1566CFDF2
|
|
|
|
|
|
I'm sorry, I doesn't have internet access at home now and I have no time at work, try to figure out problem by oneself.
Best, Ed.
|
|
|
|
|
Okay.But...
So why did I give you the PDU String?
|
|
|
|
|
|
A 7 bit sms is 160 characters long, when it is more than 160, the message will be split up. What happens is that the first 5 byte of the message will contain information about the multiparts.
' Check whether the message is a part of a multipart sms message
' Byte Value Description
' 01 00 Information Element Identifier: Concatenated short message, 8bit reference number
' 02 03 Information Element Data Length (always 03 for this UDH)
' 03 A4 Information Element Data: Concatenated short message reference, should be same for all parts of a message
' 04 03 Information Element Data: Total number of parts
' 05 01 Information Element Data: Number of this part (1/3)
|
|
|
|
|
Thanks, good information. I'll return to this question as quick as possible.
Best, Ed.
|
|
|
|
|
hi,
i am trying to figure out how to send multipart sms message using this library, i think i have to set the message header in every message and loop to send the parts.
can you send the C# code on how to use SMSPDULib in sending multipart messages???
thanks
|
|
|
|
|
Hi,
I have a litlle question, working this class in VB.NET ? Do you have any experience?
Than you and merry christmas.
Jan
|
|
|
|
|
I think you need to stop programming.
Best, Ed.
|
|
|
|
|
I have received the PDU from modem which is as follows:
000000FF00067D0B915383867877F77001210150004070012101
passing this PDU to dll gives exception.
The type returned is sms and it gives exception on service center time stamp
|
|
|
|
|
I'm sorry but i haven't time to find answer on your question. I'll glad to see some useful suggestion here from you.
Best, Ed.
|
|
|
|
|
this PDU is service center specific with sender Number length set to zero. In PDU parsing sender length zero is not helded as for service sender number. If that check is implemented than PDU is parsed.
|
|
|
|
|
Thank you in advise. I check it out as soon as possible.
Best, Ed.
|
|
|
|
|
Hi Eduard,
demo looks very good but I can't run it. PDUHelper is missing.
Can I download somewhere this helper or can you provide me it?
Petr
|
|
|
|
|
I'm sorry Petr. I've update demo file, you can download it and enjoy
Best, Ed.
|
|
|
|
|
PDU Helper not exist in solution. Where Can I download? Thanks
|
|
|
|
|
Please try to download new demp attachment. "Lib" folder contains missing assembly.
Best, Ed.
|
|
|
|
|
I compose and send SMS via modem as shown,
SMSPDULib.SMS sms = new SMSPDULib.SMS();
sms.PhoneNumber = "77057231750";
sms.StatusReportIndication = true;
sms.Message = "some msg";
sms.Direction = SMSDirection.Submited;
sms.ValidityPeriod = new TimeSpan(0, 0, 1, 0);
but delivery reports has strange format:
00040B917750271357F01F1970903090552500020020.
This report decoded as:
Service center number:
Service center time stamp: 03.09.2007 9:55:52
Message reference #: 0
Direction: Received
Phone number: +77057231750
Status report indication: False
Message:
But cell phone recognize this as report correctlly.
Whats wrong?
-- modified at 12:55 Monday 3rd September, 2007
For all.
We`re sorry for this russian dialog.
There is no bag in this library, problem with cell phones Motorola, that not fully compliant with the standart. Motorolas phones transform delivery reports to its own format, just simple sms with no needed information (such as status, msg id, etc.
|
|
|
|
|
Try to add + sign before number at PhoneNumber string, property's setter must that the number international.
Я только что допер, что ты должен понимать по-русски, а мне так проще выражаться. Еще может быть проблема в ValidityPeriod, но исправления находятся у меня дома, так что если не забуду, то обновлю исходники. И еще, какой модем ты используешь? Номер сервисного центра ты специально убрал или он не пришел?
|
|
|
|
|
ValidityPeriod я ставил как у тебя в примере, это ничего не меняет. Модем - Моторола L6, Motorola ROKR-E1. Номер сервис центра не приходил. Блин, есть возможность тестить разных операторов- результат один, но нет возможности использовать другой модем, т.е. не хочется покупать другую сотку
Добавление + не помогло.
Начинаю подозревать, что это все-таки тел виноват.
Спасибо за оперативный ответ.
|
|
|
|
|
Слушай, ты попробуй через сотовую трубу отправить с помощью AT команд. Подключаешь трубу к компу по USB (COM), Infrared или Bluetooth, открываешь COM порт и пишешь туда AT команды, как в свой модем.
Я через nokia и sonyericsson отправлял - проблем не было.
В общем если время ждет до вечера, то терпи, вечером выложу, то что у меня дома работает без ошибок.
Не за что
Best, Ed.
|
|
|
|
|
Да я через трубки и пробую, как такового модема у меня нет .
Просто засада в том, что обе трубки - Моторола, которая повидимому отчеты о доставке как-то преобразует. Есть еще труба LG, но это вообще геморой, у нее видимо свой набор команд, мне не хочется под них затачивать прогу. Ты сам через какой телефон отправляешь-принимаешь?
Тимур.
|
|
|
|
|
Я же написал, что nokia и sonyericsson использую
Кстати, через моторола RAZR v3 тоже вроде пробовал.
Дело в том, что я помню как недавно взялся за этот код и через мой соник не поехала смс'ка, и я кучу дефектов даже нашел, но(!) оказывается на трубке банально деньги кончились
Ты говоришь, что проблема с отчетом, а смс доходит до получателя?
Best, Ed.
|
|
|
|
|
Слушай, я только что понял, что проблема у тебя не в отправке, а в том, что отчет не правильный
Я, чесно говоря, класс для отчетов написал просто так и не пользовался им пока, так что в нем могут быть ошибки. Советую тебе сначала посмотреть ссылки (useful links) в статье) и класс отчета, думаю найдешь в чем проблема. А у меня сейчас нет на это времени.
Best, Ed.
|
|
|
|