Sending an SMS from Vb .net

C

calvin lin

hi there,

i had download the send sms from the msdn website..
however it send a flash sms to a GSM phone(Nokia 7110)..
may iu know how to disable this flash sms??

thanks
 
P

Peter Foot [MVP]

I don't have the MSDN code handy but the type of sms is dictated by the
Class specified in the TextProviderSpecificOptions structure. If not
specified it will send as Class0 which will result in immediate display, a
normal SMS is Class1

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
P

Peter Foot [MVP]

In the example the provider data is not used - this is the byte array
ProvData. Therefore you should be able to force a class 1 sms by placing the
integer value 1 in the second 4 bytes of this structure. e.g.
BitConverter.GetBytes(1).CopyTo(ProvData, 4)
after the definition of ProvData

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
C

calvin lin

bravo
thanks..
it works...

by the way this is my scenario of my project:

at server side(desktop PC):
actually i had done a program using java(using Kvanttisms API
[http://hee.tranquilized.org/school/kvanttisofta/] ), that is able to
send and receive SMS via a COM port that is connected to a GSM
phone(Nokia 7110)..it has a GUI that can enter the contents to be sent
as a SMS and also display the contents of the incoming sms..

client side(xdaII):
downloaded the SendSMS from msdn,deployed into the xdaII..
able to send SMS..
n had also use your method to disable the flash sms..

new problem:
my java app is unable to read the coded SMS from the xdaII..
it seems to read only PDU mode..
do not have e knowledge to change to TEXT mode..

i had try changing the codes in SmsTerminal.java file in the Kvanttisms
API from PDU mode(from 0) to text mode(to 1), but it still cant work..

need to know how to program to TEXT mode...
 
C

calvin lin

hi,
anyway, i can be flexible..
is it possible to code the msdn SendSMS app to send in PDU mode?
as "SMS_MSGTYPE_TEXT" indicates it is a text message
i need some help or ref..
i am rushing for a project..
any help will be greatly appreciated..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top