Note: AWDS needs to link your AADHAR cards so that a better management of the water supply to area can be done.
BSD 3-Clause License
Copyright (c) 2018, Rohan Verma
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- Linux 64 bit , Windows 7 SP1/8/8.1/10 64 Bit
- Android SDK
- iOS SDK
- Windows Phone 8.1/10 SDK
- Apache Cordova
- arm-g++-linux-eabi (ARM Cross Compiler for Debian Jessie)
- Apache Server with PHP 5.4 support
- Atmel Studio 7
- Avrdude command line tool
- Domain name + Hosting
- Install the Atmel Studio 7 then import or open the Firmware in the Project Folder as follows:
- Above will be displayed when we will build the solution, to build the “Firmware Project” press F7.
- | - |
---|---|
Check the file sketch_nov27.hex then burn it to device using avrdude command line utility. |
-
Other files with same name are files for recording eeprom data on to the chip.
-
Dependencies contain standard prototypes for eeprom read, eeprom write and eeprom clear.
-
Dependencies also contain standard prototypes for interrupt in software mode and also external interrupts.
-
Entire firmware size should be less than 256KB in case if modified in future.
-
EEPROM is only 4KB so needs to be erased periodically for making space on device
avrdude -v -p atmega2560 -c arduino -P /dev/ttyUSB0 -b 57600 -D -U flash:w: sketch_nov27.hex:i
- -b This option sets the baud rate for communicating with the board
- -p This specifies the target type. The configuration file for avrdude has a long list of supported targets, with all the important parameters for each.
- -P Specifies the communication port. As soon as the device is hooked up to your USB, it should be assigned a file in /dev/, and this is the string that needs to be passed to the -P option. The easiest way to find this is just dmesg | grep ttyUSB*
avrdude -v -p -c arduino -P .COMxx -b 57600 -D -U flash:w: sketch_nov27.hex:i
where COMxx is port no. eg. COM34
On command line do following
$ cordova create <app_name>
$ cd <app_name>
$ cordova build
Below is a config.xml file, fill in your domain/server address on which app is hosted:
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.iot" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>IOTone</name>
<description>
An IOT app
</description>
<author email="rohanverma2@acm.org" ">
IOTone team
</author>
<content src=”<YOUR_DOMAIN_NAME_ON_WHICH_APP_IS_HOSTED>” />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
</widget>