|
|
User login
Feeds |
problems using sockets with KSMSAddrFamily and KSMSDatagramProtocol
|
|||||
| Sun, 2005-07-31 14:17 | |
|
Hi all,
i need help with this topic,its the only one thing that i need to finish a project. My application need to receive commands via sms. Now i have implemented it using mtm server. But its not a good solution. When receiving message with mtm you are notified after the alert of "MESSAGE RECEIVED" starts. Then its very difficult, or at least i havent been able to do it, to avoid the sound that alerts the user. In addition the screen light starts, ... lot of things. From my oppinion that is not serious, the user of the application should not need to know nothing of this, becoz its a internal job of the application (note i mark the message as unread(FALSE), visible(FALSE), new(FALSE) flags, etc..but it does nothing). I did some improvements with this: when i received the message and i see the message is for the application i start to simulate the pressing of down arrow key. With this dirty trick i avoid a few the sound (the start of the sound its raised but i stop it soon), but as i said, this is only a dirty trick. Finally i was investigating and i found other solutions. You can to open a socket with KSMSAddrFamily and KSMSDatagramProtocol. This is a acceptable solution, but its not free of problems.... I compiled the example and i saw i was needing some headers and libs related with sms utilities: http://www.symbian.com/developer/techlib/v70sdocs/doc_source/reference/cpp/Smsu/index.html smsustrm.h smsuaddr.h smsu.lib I have problems knowing the origin of this librarys. I found them in internet long time ago, i dont remember where exactly. I think there are part of UIQ sdk or communicator sdk. My problem is that compiling this example, that must work, it crash. Im compiling with series60 sdk 2.1 fp2. I tested it on nokia ngage and 6230. On ngage its able to be notified when a sms is received but it crash there,when i call to: CSmsMessage::NewL(iFs, CSmsPDU::ESmsSubmit, buffer, EFalse)); And over 6230 it crashed in the constructor of a TSmsAddr class instantiated as a local parameter. I think both crashes are very rares. I think the problem is a version's problem and that my smsu.lib is not very good... I post here asking for any information about sms utilities, and where to get a good pack with headers and libs, from a trusted source (i havent found a link to download it from symbian.com). And i would like to know too if these sms utilities and these sms family and protocol sockets, are compatibles with all symbian phones from 6.1 version of OS. Any link, any idea, any piece of code, would be great helpful! Thanks. |
|
Forum posts: 53
i also want to suppress the sound of message received....can u plz help me in anyway..
if possible then do send me the code.
waiting 4 ur reply
thanx
Forum posts: 59
i have the same.
did u get the answer to your question related to
from where to get the sdk. and the corresponding libs.