|
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.
|
|
|
|
|
Да я смотрел доки. То, что приходит, никак докам не соответствует. В то же время на каком-то форуме нашел pdu-шку отчета - она твоим классом разобрана была правильно. Так что скорее всего это телефон.
|
|
|
|
|
Я тебе советую сделать наследника типа MotorolaSMSReport class, и там реализовать эту специфичную штуку. А AT командой ATI1 (или ATI2) получать марку телефона и использовать нужный класс
Best, Ed.
|
|
|
|
|
Все дело в том, что в мотороловский репорт - это вовсе не репорт, это просто смс с прбелом в теле сообщения, которое не содержит идентификатоа сообщения, о котором отчет. Так что гиблое дело, тем более что мотороловский модем не умеет репорты сливать сразу в порт, минуя память. Надо тело менять. Попробую сонерик или симак какой-нибудь.
|
|
|
|