Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 C#3.0 C# C#4.0 sms
How can i send and recieve sms's using Nokia-Gsm Java phone on a windows desktop application??
I need the code written in c#... i am a newbie... :(
Posted 20-Jan-12 23:37pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Check out Send and Read SMS through a GSM Modem using AT Commands[^]
 
This can help you to get started Smile | :)
  Permalink  
Comments
bhuwandevshali at 21-Jan-12 13:37pm
   
thanks man for this useful link... but it still isnt working... the app shows an error for "incomplete response" for my nokia 7230 device... :(
Kim Togo at 22-Jan-12 8:00am
   
You can try a terminal program (like PuTTY), where you manually can type in AT commands and see for you self what AT commands that are not working.
bhuwandevshali at 24-Jan-12 2:25am
   
I need one more help from your side... regarding delivery reports ... can i get the delivery status of the message on my screen?? if yes, how..?/
please dont forward me the link which says to set the 5th bit of CMFG to "1" to get the delivery reports... I want to know the practical implementation of that command...
please help, if you can... :)
bhuwandevshali at 24-Jan-12 2:28am
   
To check if your modem supports this text mode, you can try the following command:
AT+CMGF=1
If the modem reponds with "OK" this mode is supported. Please note that using this mode it is onluy possible to send simple text messages. It is not possible to send multipart, Unicode, data and other types of messages.
Setting up the modem
If the modem contains a SIM card with is secured with a PIN code, we have to enter this pin code first:
AT+CPIN="0000" (replace 0000 with your PIN code).
Please not that in most cases you have only 3 attemps to set the correct PIN code. After setting the PIN code, wait some seconds before issueing the next command to give the modem some time to register with the GSM network.
In order to send a SMS, the modem has to be put in SMS text mode first using the following command:
AT+CMGF=1
In text mode there are some additional parameters that can be set. Using the following command we can read the current values:
AT+CSMP?
The modem will reponse with a string like this:
+CSMP: 1,169,0,0OK
The first value is a combination of some option bits:
bit 7 RP Reply path, not used in text mode
bit 6 UDHI User Data Header Information
bit 5 SRR Set this bit to request a delivery report
bit 3,4 VPF Validity Period, set b4=1 if a VP value is present
bit 2 RD Reject Duplicates, do not return a message ID when a message with the same destination and ID is still pending
bit 0,1 MTI Message Type Indicatorb1=0 & b0=0 -> SMS-DELIVERb1=0 & b0=1 -> SMS-SUBMIT
 

can anybody expalin me this bullsh*t..?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 277
1 Maciej Los 230
2 BillWoodruff 205
3 Sergey Alexandrovich Kryukov 195
4 DamithSL 165
0 OriginalGriff 5,130
1 DamithSL 4,157
2 Maciej Los 3,650
3 Kornfeld Eliyahu Peter 3,460
4 Sergey Alexandrovich Kryukov 2,811


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 23 Jan 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100