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.

Phenomenal article. Extremely

Phenomenal article. Extremely fascinating to peruse. I truly love to peruse such a pleasant article. Much obliged! continue shaking. his response

It was thinking about whether

It was thinking about whether I could utilize this review on my other site, I will connect it back to your site though.Great Thanks. brian holm lawyer san diego

sl786982

Incredible articles and extraordinary design. Your blog entry merits the greater part of the positive input it's been getting. chauffeur service london

Really pleasant post. I just

Really pleasant post. I just discovered your weblog and needed to say that I have truly delighted in skimming your blog entries. After all I'll be subscribing to your food and I trust you compose again soon! national physician database

You are very brave focuses in

You are very brave focuses in this article. I would have never thought to be any of these in the event that I didn"t run over this. Much appreciated!. post Foundation jobs

I have perused your web

I have perused your web journal it is exceptionally useful for me. I need to express profound gratitude to you. I have bookmark your site for future redesigns. next page

Wow, cool post. I’d like to

Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though. Foods That Cause Inflammation

Simply respecting your work

Simply respecting your work and thinking about how you dealt with this website so well. It's remarkable to the point that I can't stand to not experience this important data at whatever point I surf the web! autoradio gps info web site

More importantly, we're

More importantly, we're discovering breakthroughs in medicine with the use of cannabis that has never before been seen. Cannabis is a serious business with seriously incredible growth opportunities. cannabis creative

The trend is so pronounced

The trend is so pronounced that last month Cal State East Bay held a special one-day "Male Initiative" conference for young minority men, funded by the Bill and Melinda Gates Foundation. portrait studio Katy

Pleasant learning picking up

Pleasant learning picking up article. This post is truly the best on this significant theme. helpful resources

It is an incredible site..

It is an incredible site.. The Design looks great.. Continue working like that!. latest technology

I am extremely delighted in

I am extremely delighted in for this web journal. Its a useful subject. It help me all that much to take care of a few issues. Its chance are so awesome and working style so rapid. software outsourcing costa rica

There is such a great amount

There is such a great amount in this article I would never have considered all alone. Your substance gives perusers things to consider in an intriguing way. Much thanks to you for your unmistakable data. http://funoctave.bravesites.com/

Much thanks to you for

Much thanks to you for setting aside an ideal opportunity to distribute this data extremely valuable! cursos profissionais

I truly like your thoughts on

I truly like your thoughts on the issue. I now have an unmistakable thought on what this matter is about.. Health Benefits of Garlic

This is a decent post. This

This is a decent post. This post gives really quality data. I'm certainly going to investigate it. Truly extremely helpful tips are given here. Much thanks to you to such an extent. Keep up the acts of kindness. Friv4

I was perusing your article

I was perusing your article and thought about whether you had considered making a digital book on this subject. You're composing would offer it quick. You have a great deal of composing ability. io games list

The trend is so pronounced

The trend is so pronounced that last month Cal State East Bay held a special one-day "Male Initiative" conference for young minority men, funded by the Bill and Melinda Gates Foundation. what exactly is peer to peer lending

Howdy! A debt of gratitude is

Howdy! A debt of gratitude is in order for the immense data you havr gave! You have touched on crucuial focuses! Thomas Paquin

I simply discovered this site

I simply discovered this site and have high trusts in it to proceed. Keep up the considerable work, its elusive great ones. I have added to my top picks. Much thanks to You. color copies services

this is truly pleasant to

this is truly pleasant to read..informative post is great to read..thanks a considerable measure! charleston head lice removal

They did good work and aimed

They did good work and aimed to provide me with the highest level of customer service to make sure I was a satisfied customer. Glass repair

Truly an extraordinary

Truly an extraordinary expansion. I have perused this brilliant post. A debt of gratitude is in order for sharing data about it. I truly like that. Much obliged so parcel for your assemble. invokana lawsuits

I experience considerable

I experience considerable difficulties my considerations on substance, yet I truly felt I ought to here. Your article is truly awesome. I like the way you composed this data. Protect Your Mouth from Smoking

Pleasant to be going to your

Pleasant to be going to your site once more, it has been months for me. Well this article i"ve been sat tight for so long. I require this article to finish my task in the school, and it has same theme with your article. Much appreciated, incredible offer. double sided tape

A debt of gratitude is in

A debt of gratitude is in order for your understanding for your fabulous posting. I"m happy I have set aside an ideal opportunity to see this. Chelsea

Awesome substance material

Awesome substance material and extraordinary format. Your site merits the majority of the positive input it's been getting. 3d cheap printing places near me

https://www.9597.tw/

I experience considerable

I experience considerable difficulties my considerations on substance, yet I truly felt I ought to here. Your article is truly awesome. I like the way you composed this data. Warehousing Services in Lagos Nigeria

Thank you for some other

Thank you for some other informative website. The place else may just I get that kind of information written in such a perfect method? I have a venture that I am simply now running on, and I’ve been at the glance out for such info. affordable seo services

Hi. I discovered your online

Hi. I discovered your online journal utilizing msn. This is a to a great degree elegantly composed article. I will make certain to bookmark it and come back to peruse a greater amount of your helpful data. A debt of gratitude is in order for the post. I"ll absolutely rebound. view publisher site

Your site is truly cool and

Your site is truly cool and this is an awesome motivating article. Much obliged to you to such an extent. 500g polythene

Its an extraordinary joy

Its an extraordinary joy perusing your post.Its brimming with data I am searching for and I want to post a remark that 'The substance of your post is marvelous' Great work. mystery puzzle Mount Pleasant SC

This is an awesome post. I

This is an awesome post. I like this topic.This site has heaps of advantage.I discovered numerous fascinating things from this site. It helps me in numerous ways.Thanks for posting this once more. Benefits of Cucumbers

Then kind of cut into

Then kind of cut into rectangles, approximately so long as the wipe field and approximately two times as huge. shop rags

I appreciate everything you

I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. serviced apartments tay ho hanoi

You have a decent point

You have a decent point here!I absolutely concur with what you have said!!Thanks for sharing your views...hope more individuals will read this article!!! Electricians Colorado Springs

Positive site, where did u

Positive site, where did u think of the data on this posting? I'm satisfied I found it however, sick be inquiring soon to figure out what extra posts you incorporate. Hero Instinct

I Love your articles guys

I Love your articles guys keep it up. swimming pool leak repair

I as of late ran over your

I as of late ran over your online journal and have been perusing along. I thought I would leave my first remark. I don"t comprehend what to say with the exception of that I have appreciated perusing. Pleasant site, I will continue going by this online journal all the time. blog

Oh my goodness! an amazing

Oh my goodness! an amazing article dude. Thank you However I am experiencing issue with ur rss. Don’t know why Unable to subscribe to it. Is there anyone getting identical rss problem? Anyone who knows kindly respond. Thnkx 먹튀검증

Pretty nice post. I just

Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! click here

Important discussion with

Important discussion with lots of info about drivers from Ubuntu! I have no idea about the issue before today. If you need some Buyessay.org review just knock right now. I hope you will get best quality service. Thanks and have a good day!

Hire a live band to make your

Hire a live band to make your party an unforgettable experience. Hire the band based on the kind of party you are hosting or the type of music you prefer. The website teaches you the tricks of perfect live band hire for party success. souldesire.co.uk

i am continually searching

i am continually searching for some free stuffs over the web. there are likewise a few organizations which gives free specimens. website

I have been looking at a

I have been looking at a couple of your stories and i can state really well done. I will bookmark your online journal Designer shoes uk

but I found rfcomm more

but I found rfcomm more useful when the bluetooth connection breaks. http://mastertramadol.com

A debt of gratitude is in

A debt of gratitude is in order for setting aside an ideal opportunity to talk about this, I feel unequivocally about it and affection adapting more on this point. In the event that conceivable, as you pick up mastery, would you psyche redesigning your online journal with more data? It is greatly useful for me. Electronics

Your web journal furnished us

Your web journal furnished us with significant data to work with. Each and every tips of your post are magnificent. Much obliged for sharing. Continue blogging, it development outsourcing