sms framework:
SMS FRAMEWORK
In sms framework we are send sms from the system by using gnokii and ruby .in this we have to install ruby.the following steps shows installation and etc..
Steps in sms framework:
i)update system
ii)install gnokii
iii)install ruby
iv)install mysql-server 5.0.51 (or) any version
v)write the code for send sms to one or more numbers
vi)connect mobile and system
vii)send sms and enjoy……
UPDATE SYSTEM:
after install Ubuntu in u r system update the system using the following cmd in terminal..
sudo apt-get install update
INSTALL GNOKII:
Gnokii is an open source mobile phone tool that can be downloaded free of charge from the web . It was originally developed for Linux but also worked on Linux-like systems such as FreeBSD and Solaris. Today it has been ported to other platforms such as Microsoft Windows and Mac OS. However, some functions are not available in these versions.
Gnokii supports many different features. For example, sending and receiving SMS messages, reading and writing entries of the phone book and calendar, retrieving WAP bookmarks, handling logos, loading ringtones, reading battery charge level and radio signal strength, etc. The actual features supported depend on the model of your mobile phone. Regarding SMS sending and receiving, Gnokii works well with many mobile phones from Nokia, and also those from other manufacturers that support the AT-command mode.
As Gnokii is a command line program, some people find it less intuitive to use. If you are one of them, you may want to try XGnokii or Gnocky, two easy-to-use graphical user interfaces for Gnokii. XGnokii is already included in the Gnokii package, while Gnocky can be downloaded separately from the Gnokii web site..
sudo apt-get install gnokii
to check type “gnokii” in terminal it displays as
For info and which phones support the gnokii see the following wegsite
http://www.developershome.com/sms/gnokiiIntro.asp
for install and configuraion and error clear see the web page http://www.gnokii.org/docs.shtml
INSTALL RUBY:
ruby is an language,Ruby is a language of careful balance.Blended parts of his favorite languages (Perl, Smalltalk, Eiffel, Ada, and Lisp) to form a new language that balanced functional programming with imperative programming.
He has often said that he is “trying to make Ruby natural, not simple,” in a way that mirrors life.
Rails is a web development framework written in the Ruby language. It is designed to make programming web applications easier by making several assumptions about what every developer needs to get started. It allows you to write less code while accomplishing more than many other languages and frameworks
Installing ruby in our system is easy ,but it follows the some cmd line steps in terminal. To install ruby type the cmd in terminal
$ sudo aptitude install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby sqlite3 libsqlite3-ruby1.8
follow the steps in the web site
http://www.ubuntugeek.com/how-to-install-ruby-on-rails-in-ubuntu-810-intrepid.html
install mysql-server 5.0.51 (or) any version:
# To install MySql database:
sudo apt-get install mysql-server
# To start MySql server:
/etc/init.d/mysql start
# To stop MySql server:
/etc/init.d/mysql stop
# To restart MySql server:
/etc/init.d/mysql restart
# To check the status of Sql server:
/etc/init.d/mysql status
Connect mobile and system:
To connct the mobile and sys ON the bluetooth in mobile and system,for system use bluetooth dongle no need of any drivers for bluetooth dongle.
In system the bluetooth sysbol apper as
note:
*in bluetooth symbol click and get preference and select “service”
In this sysmbol right click and select “Browse device” and select the u r mobile and click “connect” ,and accept the msg in mobile and give any passky and click ok,now the mobile and system paired successfully.
Now goto terminal type,
sudo gedit /etc/gnokiirc
gnokiirc(/etc)-gedit file opened and change the settings as follows
- in 27th line default present like
- #port = aa:bb:cc:dd:ee:ff
- change port = aa:bb:cc:dd:ee:ff and we want the mobile id or address to get(when mobile and sys connected only) type in terminal like
- $ hcitool scan
- it gives some address and copy this .
- Paste in the 27th line like port = aa:bb:cc:dd:ee:ff change port = “u r mobile address”
- enable model = AT in 51th line disable #model=6110
- put like because v use bluetooth connection # connection = serial
- remove # from connection = bluetooth
note:
*the id of mobile change depend on mobile model
*don’t use china and goriya.. mobiles or try….
- *get preference from bluetooth symbol and enable input service and disable serial service
*Use Ubuntu 8.04 for bluetooth it is compatable…
send sms and enjoy:
go to terminal for send single sms to single number
type
gnokii –sendsms mobileno
enter the msg and end input press ctr+d
now send succeed..