Gnokii + smsd

This page describes how to send, receive and store SMS messages automatically using a MySQL database.

aptitude install gnokii gnokii-smsd gnokii-smsd-mysql

Enable bluetooth on your mobile phone, and set it to be discoverable (eg. not hidden). Run the following command to find the phone's hardware address:

hcitool scan

Run the following command as root:

rfcomm bind /dev/rfcomm0 xx:xx:xx:xx:xx:xx

Replace the x's with the hardware address found earlier.

Create a file called .gnokiirc in your home directory:

[global]
model = 6021
# connection = bluetooth
# port = xx:xx:xx:xx:xx:xx
connection = serial
port = /dev/rfcomm0

In my case the model was the Nokia 6021. For generic AT command support, use "AT" as model. The lines commented out are for using direct bluetooth, but I found rfcomm more useful when the bluetooth connection breaks. When you turn off & on bluetooth on your phone, smsd (which we will use later on) will never succeed retrying when using direct bluetooth support, while with rfcomm, smsd just fails and exits, so you can detect this and restart smsd in a loop.

You can try communicating with you phone using a terminal program like minicom. Use /dev/rfcomm0 as serial port with these settings: 9600 bps, no parity, no flow control.

Before starting smsd for the first time, we should create the database needed for smsd. Using phpmyadmin, go to privileges, add a new user, and on the same page, choose the option to create a database with the same name as the user. Next, use the import tab to import the file "/usr/share/doc/gnokii-smsd-mysql/sms.tables.mysql.sql".

Also before starting smsd, please note that all SMS messages in the inbox of your phone are automatically transferred to the database and deleted from your phone, so you should take precautions if you want to keep messages on your phone.

Start smsd like this:

smsd --module mysql -u user -p password -d databasename

Incoming SMS messages will be placed in the inbox table. Create a record in the outbox table, with the processed flag to "0", to send an SMS. The processed flag will turn to "1" if the message was sent. You can use the processed flag of the inbox for your own use. It is set to "0" initially.

sterling silver rings

I think I don't need SMS anymore. There is whatsapp to use nowadays. sterling silver rings

A debt of gratitude is in

A debt of gratitude is in order for offering this quality data to us. I truly delighted in perusing. Will clearly going to impart this URL to my companions. video submission

good posts

Amazing!! this is a decent article ,as a staff Fantastic work. I read the whole article and i feel your involvement in writing..All are great points.Thank you for every one of you by giving such and such great article. Accountants East Grinstead

Tax Return

We serve for a variety of clients needs ranging from prom nights to executive movements while maintaining a high quality service standard. Tax Return

imranuddin

I love the blog. Great post. It is very true, people must learn how to learn before they can learn. lol i know it sounds funny but its very true. . . http://www.bestmattress-reviews.org

devidmiller5060

My friend mentioned to me your blog, so I thought I’d read it for myself. Very interesting insights, will be back for more! ESR wheel

台中當鋪

How many minimum memory needed to apply this in my laptop? 台中當鋪

KRW Hail Claims Lawyers

I never used SQl before, I always Oracle. May be next time I'll learn how to utilize it well. KRW Hail Claims Lawyers

hafridi

Hey – great blog, just looking around some blogs, seems a really nice platform you are using. I’m currently using WordPress for a few of my blogs but looking to change one of them over to a platform similar to yours as a trial run. Anything in particular you would recommend about it? amazon source crossword clue

clínicas de micropigmentação capilar

It helps me so much to make a directory of some messages and save it safely. clínicas de micropigmentação capilar

The article has actually

The article has actually peaks my interest. I am going to bookmark your web site and maintain checking for brand new information. Berlin attractions

good

You have been sharing a lot of useful information through this site regarding the updates and the modes of using the applications in a Linux database. Since I am a beginner in using this, these posts are helping me a lot. sinatra jack daniels for sale

shiprabrock

Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates. ESR wheel

devidmiller5060

You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site. Ohsas 18001 pisa

imranuddin

So luck to come across your excellent blog. Your blog brings me a great deal of fun.. Good luck with the site. e-ticaret tasarım 

devidmiller5060

Yes, great US Military force. Also, in his post you have given a chance to listen about US Military. I really appreciate your work. Thanks for sharing it. British Retail Consortium

imranuddin

wow this good but ,I like your post and good pics may be any peoples not like because defrent mind all poeple , facebook

devidmiller5060

You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site. mom w gerber

hafridi

Hey – great blog, just looking around some blogs, seems a really nice platform you are using. I’m currently using WordPress for a few of my blogs but looking to change one of them over to a platform similar to yours as a trial run. Anything in particular you would recommend about it? Foose wheels

devidmiller5060

Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... סלסלת פירות

shiprabrock

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. VMware Certified Professional

Craig Rocky

What a good blog you have here. Please update it more often. This topics is my interest. Thank you. . . Foose wheels

devidmiller5060

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it. corso sicurezza lavoratori grosseto

shiprabrock

his is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the excellent work. Optionfair review

hafridi

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! shopbrumano

Thank you Linux.PC for

Thank you Linux.PC for sharing about the Gnokii + smsd at bestessay.org Finally I know how to send, receive and store SMS messages automatically using a MySQL database. Well, thanks for the impressive post.

shiprabrock

You may have high-quality articles or content on your website assuring you that it will help to attract the targeted customers. But the problem may arise in case the content used in the articles is duplicate or similar to some other content already available on the World Wide Web. If you want to increase the page ranking of your website, it is necessary to develop original and fresh content. best plagiarism checker

Wow that really refreshing to

Wow that really refreshing to know these things. I am extremely glad for the codes presented here on this sms storage and other functions. Once i complete my cheap essay writing work i would like to give it a good try as early as possible with the codes.

devidmiller5060

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. telecharger real racing 3

martingarix229

wow this good but ,I like your post and good pics may be any peoples not like because defrent mind all poeple , facebook

For First Packers and Movers

For Superlative Packers and

Most of it are just the basic

Most of it are just the basic program. Most especially that people tend to make use of the system that requires to be well protected. - Bath Planet