I'm using Sony K770i and Sony VGN-CR11GH laptop and running Ubuntu 8.04 Hardy Heron on this project.
We are going to use the mobile phone as SMS sending/receiving device and use MySQL as data storage and use Ruby On Rails to manage the data.
1.Install the needed softwares
sudo apt-get install gnokii
sudo apt-get install gnokii-smsd
sudo apt-get install gnokii-smsd-mysql
2.Connect the phone
Connect the phone via USB and type dmesg, In my case, my phone connected either in /dev/ttyACM0 or /dev/ttyACM1.
3. Edit /etc/gnokiirc to change the phone device and model to AT
# Set port to the physical port used to connect to your phone.
# Linux version is:
port = /dev/ttyACM0
# Set model to the model number of your phone. For the
# Symbian phones use:
# model = symbian
# For other non-Nokia phones and when you want to use AT
# mode use:
model = AT
Save the file
4. Test the phone
gnokii --identify
bazet@bazet:~$ gnokii --identify
GNOKII Version 0.6.22
Couldn't read /home/bazet/.gnokiirc config file.
Couldn't read /home/bazet/.gnokiirc config file.
IMEI : 351600030678710
Manufacturer : Sony Ericsson
Model : AAD-3022082-BV
Product name : AAD-3022082-BV
Revision : R8BC004 071211 1434
5. Try to send SMS
echo "test " | gnokii --sendsms 0146412911
6. If you can execute step 1 to 5 without any problems, you're on track.
Monday, December 29, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment