|
| 1 | +End to End Smart Agriculture IoT Sample Application |
| 2 | +=================================================== |
| 3 | + |
| 4 | +This example is part of the Digi's End-to-End Smart Agriculture IoT demo. It |
| 5 | +demonstrates how to use the XBee Gateway and the XBee 3 modules to exchange |
| 6 | +data, communicate with Digi Remote Manager and use the BLE interface to talk to |
| 7 | +mobile apps applied to the smart agriculture vertical. |
| 8 | + |
| 9 | +In theory, the XBee 3 module this example runs in corresponds to a irrigation |
| 10 | +station and is connected to the following peripherals but, for demonstration |
| 11 | +purposes, they are emulated: |
| 12 | + * Temperature sensor. |
| 13 | + * Moisture sensor. |
| 14 | + * Battery level sensor. |
| 15 | + * Electronic irrigation valve. |
| 16 | + |
| 17 | +The example performs the following actions: |
| 18 | + * Listen for BLE connections to execute the provisioning process (initial |
| 19 | + configuration of the irrigation station properties). |
| 20 | + * Listen for data coming from the XBee Gateway to set the value of the |
| 21 | + irrigation valve. |
| 22 | + * Read the value of the sensors and report them to the XBee Gateway every |
| 23 | + minute. |
| 24 | + |
| 25 | +Read the [demo documentation][doc] for more information. |
| 26 | + |
| 27 | +Requirements |
| 28 | +------------ |
| 29 | + |
| 30 | +To run this example you need: |
| 31 | + |
| 32 | +* An XBee 3 radio module with MicroPython support. |
| 33 | +* One carrier board for the radio module (XBIB-C board). |
| 34 | +* An XBee Gateway device running the corresponding Python application of the |
| 35 | + demo. |
| 36 | +* A smartphone running the corresponding mobile app. of the demo. |
| 37 | +* A Digi Remote Manager account with your XBee Gateway added to it. |
| 38 | + Go to https://myaccount.digi.com/ to create it if you do not have one. |
| 39 | + |
| 40 | +Setup |
| 41 | +----- |
| 42 | + |
| 43 | +Make sure the hardware is set up correctly: |
| 44 | + |
| 45 | +1. Plug the XBee 3 radio module into the XBee adapter and connect it to your |
| 46 | + computer's USB port. |
| 47 | + |
| 48 | +Run |
| 49 | +--- |
| 50 | + |
| 51 | +The example is already configured, so all you need to do is build and launch |
| 52 | +the project. Then, read the demo documentation for more information about how |
| 53 | +to test the demo. |
| 54 | + |
| 55 | +Required libraries |
| 56 | +-------------------- |
| 57 | + |
| 58 | +* hdc1080 |
| 59 | + |
| 60 | +Supported platforms |
| 61 | +------------------- |
| 62 | + |
| 63 | +* Digi XBee3 Zigbee 3 - minimum firmware version: 1006 |
| 64 | +* Digi XBee3 802.15.4 - minimum firmware version: 2003 |
| 65 | +* Digi XBee3 DigiMesh 2.4 - minimum firmware version: 3002 |
| 66 | + |
| 67 | +License |
| 68 | +------- |
| 69 | + |
| 70 | +Copyright (c) 2020, Digi International, Inc. |
| 71 | + |
| 72 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 73 | +of this software and associated documentation files (the "Software"), to deal |
| 74 | +in the Software without restriction, including without limitation the rights |
| 75 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 76 | +copies of the Software, and to permit persons to whom the Software is |
| 77 | +furnished to do so, subject to the following conditions: |
| 78 | + |
| 79 | +The above copyright notice and this permission notice shall be included in all |
| 80 | +copies or substantial portions of the Software. |
| 81 | + |
| 82 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 83 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 84 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 85 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 86 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 87 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 88 | +SOFTWARE. |
| 89 | + |
| 90 | + |
| 91 | +[doc]: https://www.digi.com/resources/documentation/digidocs/90002422 |
0 commit comments