SMS can be send from and receive in PC without the help of Internet.

Nowadays one of the most developed fields in mobile communication technology is SMS (Short Message Service). The Short Message Service (SMS) is the is the technology that allows to send and receive text messages to and from mobile telephones, Personal Digital Assistants (PDAs) and personal computers.
SMS is a type of an Instant Messaging (IM) type of communications service and it enables users to exchange messages in real time with other users. Users can use this technology and communicate with each other by typing with a PC, wireless device, cell phone, PDA. They can also use a combination of these devices to communicate. Cell-phone users can use the SMS to send short messages to other cell-phone users. Even retailers can use SMS technology to alert users of important information delivered directly to cell phones. And corporations can use any number of instant-message techniques to communicate directly with customers, vendors and employees. As a convenient and low-cost mobile communication technology, Short Messaging Service (SMS) is experiencing very rapid growth. It is reported that 700 million mobile phone users worldwide sent 20 to 30 billion SMS messages every month in 2001.

Objective
The SMS we receive from the mobile phone can be viewed in PC and can send message from PC. To obtain this a mobile phone must be connected to PC running with windows9x. The mobile must be connected to PC by a serial cable or by an USB cable and the PC must be installed with Visual Basic6.0. 
The SMS can send and received from the PC by using AT COMMANDS. AT COMMANDS are Attention Commands. With the help of AT COMMANDS the Battery level, Memory, Mobile Identification Number, Serial number, Network Strength can be identified. 
Example:
By giving AT + CMGL, the messages from the inbox of the mobile phone will be listed.


Also to check whether the mobile phone is connected to PC in correct manner
· Start–> Programs–>Communication–>HyperTerminal
· Go to Connection–>Description. In description, dialog box type name in name textbox and click OK button.
· Select the port in connect to dialog box and click OK button.
· A new window will be opened, in window type AT+CMGL=1 to set flag.
· Then by giving AT + CMGL, it retrieves messages from inbox of the mobile phone.

Program

In Visual Basic6.0, open starndard.exe project. Also, select Microsoft Communication Control6.0 (mscomm control) from Components menu and also arrange textbox and command button as listed in the form

Code

Dim cmd

Private Sub cmdsend_Click ()
cmd = "at+cmgs="""
cmd = cmd & Text1.Text & """, 129"
MS.Output = cmd & Chr(13)
MS.Output = text2.Text & vbCrLf
MsgBox ("SEND")
End Sub

Private Sub cmdview_Click()
On Error Resume Next
MS.PortOpen = True
Text3.Text = ""
MS.Settings = "2400, n, 8, 1"
MS.Output = "at+cmgr=1" & vbCr
Do
buf = MS.Input
Text3.Text = Text1.Text & buf
Loop Until (InStr(Text3.Text, "OK")) > 0 Or (InStr(Text3.Text, "ERROR")) > 0
MS.PortOpen = False
End Sub

Private Sub Form_Load ()
MS.CommPort = 1
MS.PortOpen = True
MS.Settings = "2400, n, 8, 1"
MS.Output = "at+cmgf=1" & vbCr
MS.PortOpen = False
End Sub

By running the VB form, the port 1is assigned when form is load. By clicking the view button we can list the SMS from the inbox of the mobile phone in the textbox present inside view frame, and in send frame by entering the mobile phone number in the textbox provided and type the message in appropriate textbox. Then by clicking the send button, the message will be send to proper mobile number that we entered.
With the help of AT COMMANDS, we can get MobileRevisionNumber, MobileIdentificationNumber, PhoneBookEntry, MemoryStatus, BatteryLevel, SignalStrength, and Message from Inbox, Outbox etc. Thus from this project we can send SMS from and receive SMS in the PC.

Note

This project is tested for Samsung X100 and Samsung C100 mobile phones.

 

Advertisements