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
29:dc1458c071ba 2013-07-17 First commit of the Vodafone door controller. File  Diff  Annotate
27:a265d336f088 2013-02-21 watchdog timer used to restart the device if the modem fails to come up. File  Diff  Annotate
26:b9a0fa0f2469 2013-02-10 2nd attempt at merging -- this is not as easy as it use to be! File  Diff  Annotate
23:28b693d586ee 2013-02-10 small dbg changes File  Diff  Annotate
22:87d73be30243 2013-02-05 Adding alarm feature to the door File  Diff  Annotate
21:7068b39d3006 2012-09-27 Fixed ATCommandInterface.cpp File  Diff  Annotate
20:27f878df6d14 2012-09-27 Merge File  Diff  Annotate
18:ad4ae0caf337 2012-09-27 merging File  Diff  Annotate
17:9b57d29e2eab 2012-09-27 trying some things out to find out where a bug is. File  Diff  Annotate
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