<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JSEA</journal-id><journal-title-group><journal-title>Journal of Software Engineering and Applications</journal-title></journal-title-group><issn pub-type="epub">1945-3116</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jsea.2016.96020</article-id><article-id pub-id-type="publisher-id">JSEA-67454</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  An Internet of Things Platform with Google Eddystone Beacons
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Aronee</surname><given-names>Dasgupta</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Roopa</surname><given-names>Nagaraj</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>K.</surname><given-names>Nagamani</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Telecommunication, RV College of Engineering, Bangalore, India</addr-line></aff><pub-date pub-type="epub"><day>17</day><month>06</month><year>2016</year></pub-date><volume>09</volume><issue>06</issue><fpage>291</fpage><lpage>295</lpage><history><date date-type="received"><day>2</day>	<month>April</month>	<year>2016</year></date><date date-type="rev-recd"><day>accepted</day>	<month>14</month>	<year>June</year>	</date><date date-type="accepted"><day>17</day>	<month>June</month>	<year>2016</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Consumer adoption of Internet of Things devices is increasing rapidly. About 66% of consumers mean to buy an associated home gadget by 2019. Beacon technology helps in providing actionable insights to businesses through visual heat maps generated by the consumers and these maps are further processed by machine learning algorithms. Google’s open source Eddystone beacon format released in 2015, mitigates the problem of high cost and provides an open source alternative for developers. The aim of the proposed work is to provide a low cost, reliable, flexible, scalable and open source alternative for small and medium scale enterprises. In the proposed work, an Internet of Things platform is configured and developed. The Raspberry Pi is configured as an Eddystone beacon through a NodeJs server. An android app is developed which is the front end of the platform and web services are deployed on the cloud.
 
</p></abstract><kwd-group><kwd>Internet of Things</kwd><kwd> Raspberry Pi</kwd><kwd> Beacon</kwd><kwd> Eddystone</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The Internet of Things (IoT) is one where physical objects, associated with the web, can gather and trade information. It allows sensing and controlling of objects through existing infrastructure, creates direct integration between physical world and computer based systems, and improves accuracy and efficiency. It requires higher levels of scalability to handle the surge of devices [<xref ref-type="bibr" rid="scirp.67454-ref1">1</xref>] . The IoT in retail market has helped retailers to achieve enhanced customer experiences and increased revenue. It is significantly used to oversee stock, track burglary and promote and advertise stock [<xref ref-type="bibr" rid="scirp.67454-ref2">2</xref>] .</p><p>The product market for IoT in retail is required to enhance because of the expanding utilization of portable applications. The worldwide IoT in retail market is required to develop from USD 14,280.0 million in 2015 to USD 35,640.0 million by 2020 [<xref ref-type="bibr" rid="scirp.67454-ref3">3</xref>] . Beacon technology is intended to drive in-store sales and client reliability. These are small Bluetooth Low Energy (BLE―v4) enabled devices that can be attached to a wall inside a retail store [<xref ref-type="bibr" rid="scirp.67454-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.67454-ref5">5</xref>] . The main reasons for using beacons are to provide customer convenience, enhanced shopping experience, and affordability, compete with large retailers and customer intelligence.</p></sec><sec id="s2"><title>2. Literature Survey</title><p>Several security challenges involved in IoT applications are described in the Wind River publication [<xref ref-type="bibr" rid="scirp.67454-ref6">6</xref>] . The wireless network operator, Lace Company has conveyed Internet of Things system empowered [<xref ref-type="bibr" rid="scirp.67454-ref7">7</xref>] radio frequency (RF), covering more than 30 million individuals and 9000 square kilometers being the primary biggest Low Power Wireless Personal Area Network (LPWPAN) in Russia. The IDC survey from 2014 describes how recent trends in IoT deployment [<xref ref-type="bibr" rid="scirp.67454-ref8">8</xref>] have shifted towards the software suppliers while, in the past the lead was taken by the hardware suppliers.</p><p>There various challenges faced while adopting IoT for Retail are described in [<xref ref-type="bibr" rid="scirp.67454-ref9">9</xref>] . Windows 10 IoT core [<xref ref-type="bibr" rid="scirp.67454-ref10">10</xref>] is an operating system that runs on Raspberry Pi 2, Arrow Dragon Board 410c and Minnow Board Max and is specifically designed for IoT devices. Beacons can generate product catalogs that are location sensitive and indoor maps [<xref ref-type="bibr" rid="scirp.67454-ref11">11</xref>] . According to Wipro [<xref ref-type="bibr" rid="scirp.67454-ref12">12</xref>] , current IT systems in retail are falling short in managing the flow of increasing amount of data. Different solutions including object storage and Big Data appliances are offered to the businesses. Retailing mammoth Walmart [<xref ref-type="bibr" rid="scirp.67454-ref13">13</xref>] intensely utilizes enormous information for buyer experiences and store-level promoting.</p><p>The Intel Retail Sensor Platform [<xref ref-type="bibr" rid="scirp.67454-ref14">14</xref>] is an end-to-end solution intended to help framework integrators and retailers rapidly make and create inventive retail solutions. Estimote alongside PayPal [<xref ref-type="bibr" rid="scirp.67454-ref15">15</xref>] produces a (Universal Serial Bus) USB gadget that is good with a few Point of Sale (POS) frameworks: Vend, Leaf, Erply, Leapset, ShopKeep, Micros and Revel. The Raspberry Pi [<xref ref-type="bibr" rid="scirp.67454-ref16">16</xref>] which is low cost, adaptable, fully customizable and programmable small PC board can be used as a wireless sensor node. Further advantages being high processing power, memory, connectivity and the ability to run Linux. Ranging of beacons [<xref ref-type="bibr" rid="scirp.67454-ref17">17</xref>] can be carried out either by using signal or time measurement. RSSI based ranging constitutes the least power consumption compared to the other.</p><p>Utilization of a single access point in a home environment for ranging is described in [<xref ref-type="bibr" rid="scirp.67454-ref18">18</xref>] interface is used for estimating the location. The final estimation of the location uses Bayesian filtering which uses the sample sets derived through Monte Carlo sampling. Indoor localization systems have more accurate and advanced options as given in [<xref ref-type="bibr" rid="scirp.67454-ref19">19</xref>] . They are Wi-Fi network, mobile phone sensors, navigation systems and map library. The Wi-Fi network and iBeacons can work as a hybrid system providing more accurate solutions. Bluetooth low energy’s feasibility for indoor positioning is discussed in [<xref ref-type="bibr" rid="scirp.67454-ref20">20</xref>] .</p><p>Self-localization can be realized when a smart phone can detect three or more Wi-Fi hotspots’ position [<xref ref-type="bibr" rid="scirp.67454-ref21">21</xref>] . In the RSSI based localization it should made sure that a minimum value is adopted which is between Wi-Fi scan rate and gyroscope scanning rate to ensure not to collect useless data. Location estimation using RSSI measurement model and sensor node’s position estimation using probabilistic model is described in [<xref ref-type="bibr" rid="scirp.67454-ref22">22</xref>] . Accuware Indoor Navigation [<xref ref-type="bibr" rid="scirp.67454-ref23">23</xref>] provides mobile apps with current location information by enabling the navigation.</p></sec><sec id="s3"><title>3. Methodology</title><p>Raspberry Pi 2 is chosen as the Microcontroller unit (MCU) considering the low cost, high processing power, large available memory and ability to run full Linux (Raspbian Jessie). It can be configured as an IoT Beacon and can also be used for data synchronization and data processing of peripheral devices to the network to provide intelligent decisions. Debian packages are installed using apt-get package manager. Libraries BlueZ, Blueman, libbluetooth-dev 4.99-2, Bluetooth and Node-armhf for raspberry pi are configured. Bluez is the linux Bluetooth protocol stack, blueman is Bluetooth management utility for GNOME using bluez D-bus backend. libbluetooth-dev 4.99-2 is the development file for using BlueZ.</p><p>The Bluetooth adapter used for Raspberry Pi is Cambridge Silicon Radio (CSR). The BLE adapter is configured to advertise a sample instancespaceId and namespaceId which are in accordance with the Google Eddystone frame format received from a webserver and the broadcast process is configured as a daemon. An android app is developed, which scans for Eddystone beacons using AltBeacon Library [<xref ref-type="bibr" rid="scirp.67454-ref24">24</xref>] . The app receives the instancespace Id and namespace Id as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>The Internet of Things platform contains the backend cloud application (NodeJs server), front end user interface (in the form of an Android application) and the BLE beacon (configured on a Raspberry Pi 2 running a NodeJs server to broadcast Eddystone frames) with information interchange occurring between the front and backend processes using RESTful API’s. The cloud application sends the Instancespace and Namespace Id to the beacon which are broadcasted through the CSR adapter. RESTful API’s were used as the client application can enter the Representation State Transfer (REST) service with zero knowledge of the API due to the latter being less coupled to HTTP [<xref ref-type="bibr" rid="scirp.67454-ref25">25</xref>] .</p></sec><sec id="s4"><title>4. Experimental Results</title><p><xref ref-type="fig" rid="fig2">Figure 2</xref> is the console log of server running at the Pi, broadcasting Eddystone UID’s. The Mac id of the Bluetooth adapter on the Pi is given as 00:1A:7D:DA:71:0C. <xref ref-type="fig" rid="fig3">Figure 3</xref> shows the screenshot of the android application at the client side. The app receives the namespace id is 0x10101011010101010101and the instancespace id 0xAABBCCDDEEFF from Eddystone beacon.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Dataflow between the different components of the IoT platform</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302264x6.png"/></fig><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Console log of the server running on the Pi</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302264x7.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Screenshot of the android application showing the Instancespacea and Namespace Id received from the beacon</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-9302264x8.png"/></fig></sec><sec id="s5"><title>5. Conclusion</title><p>The Internet of Things platform has been developed which uses the latest open source beacon technology from Google. The developed platform makes use of JavaScript, HTTP, HTML, JSON, NoSQL and NodeJs technologies. The platform is developed from open source libraries and is scalable, flexible, makes uses of existing BLE devices, and is compliant with Bluetooth core specification. The developed platform is economical enough to be deployed by small and medium scale stores dealing in FMCG products. The overall cost of development of the platform is less than INR 3500. The platform aims to bring aboard small and medium scale retail stores aboard the IoT bandwagon, free from the constraints of proprietary technologies, yet being easy enough to be operated by a semi-skilled labor.</p></sec><sec id="s6"><title>Cite this paper</title><p>Aronee Dasgupta,Roopa Nagaraj,K. Nagamani, (2016) An Internet of Things Platform with Google Eddystone Beacons. Journal of Software Engineering and Applications,09,291-295. doi: 10.4236/jsea.2016.96020</p></sec></body><back><ref-list><title>References</title><ref id="scirp.67454-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Evans, D. (2011) The Internet of Things: How the Next Evolution of the Internet [Whitepaper]. Cisco Press, San Jose.</mixed-citation></ref><ref id="scirp.67454-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Markets and Markets (2015) Internet of Things (IoT) in Retail Market by Component (Hardware and Software), Hardware (Gateways, RFID, Sensors), Service (Remote device management, Managed service, and Professional service), Technology, Region—Global Forecast to 2020 [Whitepaper]. Research and Markets Press, New York.</mixed-citation></ref><ref id="scirp.67454-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Sénéclauze, G., Purswani, P., Karekar, S. and Becker, A. (2012) Internet of Things and Its Associated Technologies— Wireless, Miniaturization, Batteries, Networking [Whitepaper]. Atos SE Publishing, Bezons.</mixed-citation></ref><ref id="scirp.67454-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Smart Card Alliance Mobile and NFC Council (2014) Bluetooth Low Energy (BLE): A Technology Primer with Example Use Cases. Smart Card Alliance, Trenton.</mixed-citation></ref><ref id="scirp.67454-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Faragher, R. and Harle, R. (2015) An Analysis of the Accuracy of Bluetooth Low Energy for Indoor Positioning Applications. Journal of Network Science, Cambridge University, 4, 22-26.</mixed-citation></ref><ref id="scirp.67454-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Wind River (2015) Security in the Internet of Things [Whitepaper]. Intel Free Press, Alameda, CA.</mixed-citation></ref><ref id="scirp.67454-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">The Lace Company (2015) LoRa enabled IoT Network in Russia Covering 30 Million People Deployed by The Lace Company [Whitepaper]. Semtech Publishing, Camarillo, CA.</mixed-citation></ref><ref id="scirp.67454-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Gagliordi, N. (2016) IoT Deployments Ramp up in Healthcare, Retail: IDC [Whitepaper]. The International Data Corporation, Framingham, MA.</mixed-citation></ref><ref id="scirp.67454-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Casey, M. (2015) 7 Major Challenges in Adopting IoT for Retail [Whitepaper]. Alled Consultants and Publishing, Austin.</mixed-citation></ref><ref id="scirp.67454-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Teixeira, S. (2015) Microsoft Brings Windows 10 To Makers [Whitepaper]. Microsoft Press, Redmond, WA.</mixed-citation></ref><ref id="scirp.67454-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Smith, C. (2015) Beacons Are Moving out of the Pilot Phase and Helping Retailers and Marketers Revolutionize In-Store Shopping. 8 March.  
http://www.businessinsider.in/Beacons-are-moving-outof-the-pilot-phase-and-helping-retailers-and-marketersrevolutionize-in-storeshopping/articleshow/46495422.cms</mixed-citation></ref><ref id="scirp.67454-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Shetty, H. (2014) The Retail Data Overload: Sifting Through the Clutter [Whitepaper]. Wipro Press Pvt Ltd, Bangalore.</mixed-citation></ref><ref id="scirp.67454-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Armstrong, S. (2015) ComQi. July. http://www.comqi.com/internet-things-reinventing-retail/</mixed-citation></ref><ref id="scirp.67454-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Intel (2015) Increasing Profitability for Brick-and-Mortar Retailers [Whitepaper]. Intel Qi Press, Mountain View.</mixed-citation></ref><ref id="scirp.67454-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Khandelwal, K. (2014) ShoppinPal. 27 January.  
http://www.shoppinpal.com/beacon-technology-what-does-it-mean-for-retail-stores/</mixed-citation></ref><ref id="scirp.67454-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Vujovi?, V. and Maksimovi?, M. (2014) Raspberry Pi as a Wireless Sensor Node: Performances and Constraints. in 37th International Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO), Opatija, 26-30 May 2014, 1013-1018. </mixed-citation></ref><ref id="scirp.67454-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Pu, C.-C., Pu, C.-H. and Lee, H.-J. (2011) Indoor Location Tracking using Received Signal Strength Indicator. Journal of Emerging Communications for Wireless Sensor Networks, 11, 229-256.</mixed-citation></ref><ref id="scirp.67454-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Zàruba, G.V., Huber, M. and Kamangar, F.A. (2006) Indoor Location Tracking Using Rssi Readings from a Single Wi-Fi Journal of Wireless Networks, 11, 221-235.</mixed-citation></ref><ref id="scirp.67454-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Benícek, J. (2015) Indoor Localization and Navigation for Android Platform. Doctoral Thesis, Masaryk University, Brno.</mixed-citation></ref><ref id="scirp.67454-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Dong, Q. and Dargie, W. (2012) Evaluation of the Reliability of RSSI for Indoor Localization. International Conference on Wireless Communications in Unusual and Confined Areas (ICWCUCA), Clermont Ferrand, 28-30 August 2012, 1-6.</mixed-citation></ref><ref id="scirp.67454-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Martin, P., Ho, B.-J., Grupen, N., Mu?oz, S. and Srivastava, M. (2014) An iBeacon Primer for Indoor Localization. 1st ACM Conference on Embedded Systems for Energy-Efficient Buildings, Memphis, TN, November 2014, 190-191. </mixed-citation></ref><ref id="scirp.67454-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Zhu, X.Y. and Feng, Y. (2013) RSSI-Based Algorithm for Indoor Localization. Journal of Communications and Networks, 5, 37-42.</mixed-citation></ref><ref id="scirp.67454-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Giorgetti, G. (2015) Accuware Indoor Navigation [Whitepaper]. AccuwareInc., Tempe, AZ.</mixed-citation></ref><ref id="scirp.67454-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Radius Networks (2015) AltBeacon Library. January.  
https://altbeacon.github.io/android-beacon-library/distance-calculations.html</mixed-citation></ref><ref id="scirp.67454-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">Pautasso, C. (2008) REST vs. SOAP: Making the Right Architectural Decision. SOA Symposium at the University of Lugano, Amsterdam,.</mixed-citation></ref></ref-list></back></article>