Door controller and proximity switch detection.

Dependencies:   mbed-rtos mbed VodafoneUSBModem_bleedingedge

This program takes in a digital input - which is a reed switch for a door - and an output to a relay. The door is open with a simple 'text' to the modem on the USB bus (i used k3770 vodafone dongle).

The door will send an alarm message to your nominated numbers at the start of the program if the door is open without a command being sent.

Very simple - and just meant as a demonstration of how to incorporate GSM/3G functionality to a evice.

Revisions of main.cpp

Revision Date Message Actions
16:9245c3a37491 2012-09-26 debug switched on for teseting File  Diff  Annotate
15:262da03e3e20 2012-09-25 Adding a reg state section of code. This makes the door controller continually monitor state before trying to send a message to the modem. File  Diff  Annotate
14:9ee94196b75d 2012-09-25 Uncommented "keepAlive()" call in main to prevent from returning File  Diff  Annotate
12:e622e146b3cd 2012-09-20 some changes to allow debug mode to work properly File  Diff  Annotate
11:769f2b28b236 2012-09-19 Changing mem size in main and atCommanderInterface to allow debuging. File  Diff  Annotate
10:c8a6f2822068 2012-09-18 small changes to show it working File  Diff  Annotate
8:1b4e84f4c451 2012-09-16 adding more debug - fixing sms send - adding proximity switch detection routine and state variables File  Diff  Annotate
7:316c2dac06a5 2012-09-16 changing door controller to sense it's state using the proximity switch File  Diff  Annotate
6:5a892c3d738e 2012-07-25 removing redundant code. File  Diff  Annotate
5:ca4f06634bcb 2012-05-15 updated timgins File  Diff  Annotate
4:99bbdfe42ae0 2012-05-15 updating errors File  Diff  Annotate
3:0a8eebcb0acf 2012-05-15 Adding digital out File  Diff  Annotate
2:bcc9256ecaab 2012-05-15 trying out door opener code File  Diff  Annotate
1:3c9d0c9dffa4 2012-05-15 text changes; File  Diff  Annotate
0:5136cdfaebd0 2012-05-15 changed phone number File  Diff  Annotate