Click here to Skip to main content
13,196,730 members (71,596 online)
Rate this:
Please Sign up or sign in to vote.
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 22:37pm

1 solution

Rate this: bad
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 :-)
bhuwandevshali 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 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 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 24-Jan-12 2:28am
To check if your modem supports this text mode, you can try the following command:
AT+CMGF=1 <enter>
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" <enter> (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 <enter>
In text mode there are some additional parameters that can be set. Using the following command we can read the current values:
AT+CSMP? <enter>
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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171019.1 | Last Updated 23 Jan 2012
Copyright © CodeProject, 1999-2017
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