Difference between revisions of "Omegix/Home Automation/Arrival Sensor"
From Makers Local 256
(making arrival sensor notes) |
(→Approaches: updating notes on position reporting device) |
||
(One intermediate revision by one user not shown) | |||
Line 11: | Line 11: | ||
**** Processor (to calculate distance from Geofence) | **** Processor (to calculate distance from Geofence) | ||
*** Pseudo Code | *** Pseudo Code | ||
− | ***# When inside of geofence, record time stamp, send message on cellular network | + | **** On a Timer |
− | + | ****# When inside of geofence, record time stamp, call function to send message on cellular network | |
****# When powered off, IsReportMade flag should be reset. | ****# When powered off, IsReportMade flag should be reset. | ||
****# If time outside geofence is greater than time inside geofence, set IsReportMade flag to false. | ****# If time outside geofence is greater than time inside geofence, set IsReportMade flag to false. | ||
− | + | **** Functions | |
+ | ***** ReportPosition() | ||
+ | *****# If IsReportMade flag is false, send message on cellular network, set IsReportMade flag to true. | ||
+ | *****# If IsReportMade flag is true, do not send message | ||
= Online Resources = | = Online Resources = |
Latest revision as of 13:23, 7 April 2016
Approaches
- Using Smart Phone As a position reporter
- Use Mesh IoT network to detect addition of specific node (No GPS Solution)
- Use GPS device that reports position via a 3G cellular network
- Only On when car is on via ODBII or lighter jack
- Components
- Voltage Regulator
- GPS
- Cellular Interface
- Memory (to store Geofence Locations)
- Processor (to calculate distance from Geofence)
- Pseudo Code
- On a Timer
- When inside of geofence, record time stamp, call function to send message on cellular network
- When powered off, IsReportMade flag should be reset.
- If time outside geofence is greater than time inside geofence, set IsReportMade flag to false.
- Functions
- ReportPosition()
- If IsReportMade flag is false, send message on cellular network, set IsReportMade flag to true.
- If IsReportMade flag is true, do not send message
- ReportPosition()
- On a Timer
- Components
- Only On when car is on via ODBII or lighter jack
Online Resources
- Tasker \ Autolocation
- Kirk's Suggestions