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.

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

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

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 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

Awesome post, you have

Awesome post, you have pointed out some incredible focuses , I in like manner think this s an exceptionally brilliant site. car detailing orlando

Doris Dobkins is the Money

Doris Dobkins is the Money Saving Expert Author of "Financial Freedom A-Z Home Study Course" and publisher of the free weekly e-zine $mart Money New$. You can subscribe to $mart Money New$ by sending an email cheap designer bags

I have as of late begun a web

I have as of late begun a web journal, the data you give on this website has helped me incredibly. A debt of gratitude is in order for the greater part of your time and work. Sprinkler Installations

This is a really decent site

This is a really decent site post. Not very numerous individuals would really, the way you simply did. I am truly awed that there is such a great amount of data about this subject have been revealed and you've given a valiant effort, with so much class. In the event that needed to know more about green smoke audits, than by all methods come in and check our stuff. AWOL Masters Academy

Decent to be going to your

Decent to be going to your web journal 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 obliged, awesome offer. hoverboards amazon

A debt of gratitude is in

A debt of gratitude is in order for giving late reports with respect to the worry, I anticipate read more. cheap postcard flyers

tariq

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://hilariouspastor99.blog2learn.com/5153182/getting-a-fishing-kayak

internet

Your post was very nicely written. I’ll be back in the future for sure! internet

I have as of late begun a web

I have as of late begun a web journal, the data you give on this website has helped me incredibly. A debt of gratitude is in order for the greater part of your time and work. more info

Amazing article! I need

Amazing article! I need individuals to know exactly how great this data is in your article. It's intriguing, convincing substance. Your perspectives are much like my own concerning this subject. link

I have as of late begun a web

I have as of late begun a web journal, the data you give on this website has helped me incredibly. A debt of gratitude is in order for the greater part of your time and work. web designer bloemfontein

Awesome post, and incredible

Awesome post, and incredible site. A debt of gratitude is in order for the data! The Author Incubator

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 realize what to say with the exception of that I have delighted in perusing. Pleasant website. I will continue going by this web journal all the time. The Author Incubator

I have as of late begun a web

I have as of late begun a web journal, the data you give on this website has helped me incredibly. A debt of gratitude is in order for the greater part of your time and work. More info

This is an awesome motivating

This is an awesome motivating article.I am practically satisfied with your great work.You put truly exceptionally accommodating data. Keep it up. Continue blogging. Hoping to perusing your next post. http://aedsoftware.info/e-on-software.html

Precisely, you're extremely

Precisely, you're extremely sort of us about remark!. http://fenceprofessional.webnode.com/fence-install

Marvelous article! I need

Marvelous article! I need individuals to know exactly how great this data is in your article. It's fascinating, convincing substance. Your perspectives are much like my own particular concerning this subject. Hosting

I have as of late begun a web

I have as of late begun a web journal, the data you give on this website has helped me incredibly. A debt of gratitude is in order for the greater part of your time and work. Hundred Palms Residences EC

Much obliged to you for some

Much obliged to you for some other instructive site. The spot else might just I get that sort of data written in such a flawless strategy? I have an endeavor that I am basically now running on, and I've been at the look out for such information. affordable print

I have as of late begun a web

I have as of late begun a web journal, the data you give on this website has helped me incredibly. A debt of gratitude is in order for the greater part of your time and work. Clash of Clans Hack

I have as of late begun a web

I have as of late begun a web journal, the data you give on this website has helped me incredibly. A debt of gratitude is in order for the greater part of your time and work. packaging materials

The site is looking piece

The site is looking piece ostentatious and it gets the guests eyes. Outline is really straightforward and a decent easy to understand interface. ALQUILER DE CARROS BOGOTA

Extraordinary occupation for

Extraordinary occupation for distributed such a gainful site. Your web log isn't just helpful however it is furthermore truly innovative as well. There have a tendency to be relatively few individuals who can surely compose not all that straightforward posts that imaginatively. Proceed with the decent written work economic prints

domino qiu qiu online

Update my application every month is important to me. It will increase your PC perform. domino qiu qiu online

phuket idc

I don't use SMS anymore. I use Whatsapp instead. phuket idc

Merely a smiling visitant

Merely a smiling visitant here to share the love (:, btw outstanding style. Sex Positions

I have as of late begun a web

I have as of late begun a web journal, the data you give on this website has helped me incredibly. A debt of gratitude is in order for the greater part of your time and work. Ponta do Ouro Casa No Monte

a debt of gratitude is in

a debt of gratitude is in order for the tips and information..i truly welcome it.. our website

much obliged to you for your

much obliged to you for your intriguing infomation. link

"Boredom is a killer—which is

"Boredom is a killer—which is why a cure for boredom can be a lifesaver. The truth is, portable Bluetooth speakers have been the handheld solution to elevate the moment, whether at the beach, the middle of a party, or a lazy afternoon at home for years now—and your brand can get in on that excitement. Right now—with C2BPromo.com, you can put you logo on a wide array of Promotional Bluetooth Speakers, in all different shapes and sizes, from waterproof to resilient wood—with models coming in at 6-7 dollars all the way up to high-end luxury designs. Multiple surfaces on almost every customized Bluetooth speaker can showcase your logo—so no matter which way it’s turned, your name is always center staged." Custom Bluetooth Speaker

This is a great inspiring

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information... Hero Instinct

Business solutions in

Business solutions in Singapore I discovered your this post while hunting down some related data on site search...Its a decent post..keep posting and upgrade the data. singapore web design company

This is very informatics,

This is very informatics, fresh and clear. I feel that everything has been portrayed in methodical way with the goal that peruser could get greatest data and realize numerous things. cheapest printing