<?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">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2015.33014</article-id><article-id pub-id-type="publisher-id">JCC-54740</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>
 
 
  Implementation of 6LoWPAN and Its Application in Smart Lighting
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Zucheng</surname><given-names>Huang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Feng</surname><given-names>Yuan</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Institute of Software Application Technology, Guangzhou &amp;amp; Chinese Academy of Sciences (GZIS), Guangzhou, China</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>zucheng10@qq.com(ZH)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>17</day><month>03</month><year>2015</year></pub-date><volume>03</volume><issue>03</issue><fpage>80</fpage><lpage>85</lpage><history><date date-type="received"><day>January</day>	<month>2015</month></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>
 
 
   Smart lighting system based on PLC (Power Line Communication) is lack of extensibility due to low data rate and non-standard communication protocol. 6LoWPAN is an IP-based communication standard for WSN (Wireless Sensor Network) proposed by IETF. We upgraded the SEMS smart lighting system from PLC to 6LoWPAN, PLC nodes were replaced by 6LoWPAN nodes and centralized controllers were replaced by border routers. 6LoWPAN system testing was carried out on the street after the implementation. The results show that smart lighting system based on 6LoWPAN is better than PLC in transmission rate, signal coverage range, compatibility and extensibility. 
 
</p></abstract><kwd-group><kwd>6LoWPAN</kwd><kwd> Smart Lighting</kwd><kwd> PLC</kwd><kwd> WSN</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Smart lighting is a key area in the smart city construction nowadays. The Smart Energy Management System (SEMS) [<xref ref-type="bibr" rid="scirp.54740-ref1">1</xref>] built by Institute of Software Application Technology Guangzhou &amp; Chinese Academy of Sciences (ISCAS) uses PLC link to connect light controller nodes and the centralized controllers. Intellistreets developed a wireless street light control system with the functionality of remote lighting control, notification display and street surveillance. The Street Light Vision (SLV) created Central Management Software (CMS) which supports street light remote control via smart phones. All these systems have a common characteristic that they use a gateway to connect light controller nodes and the system server.</p><p>An increasing number of manufactures take part in the competition of the smart lighting industry. The consequence is that a huge amount of communication patterns is implemented in different brands of products, such as KNX [<xref ref-type="bibr" rid="scirp.54740-ref2">2</xref>], BACnet [<xref ref-type="bibr" rid="scirp.54740-ref3">3</xref>], DALI [<xref ref-type="bibr" rid="scirp.54740-ref4">4</xref>], ZigBee-ZHA/ZBA [<xref ref-type="bibr" rid="scirp.54740-ref5">5</xref>], PLC-Lonworks [<xref ref-type="bibr" rid="scirp.54740-ref6">6</xref>], etc. One critical problem comes up in all these products is that they cannot interoperate with each other (i.e., low compatibility and extensibility). So, this paper is focus on bring up a new solution 6LoWPAN [<xref ref-type="bibr" rid="scirp.54740-ref7">7</xref>] in smart lighting with the properties of high compatibility and extensibility.</p><p>The SEMS is a typical smart lighting system of the existing type. The fallowing sections will describe the architecture of SEMS which is based on PLC, and how it is upgraded to 6LoWPAN. Full performance test was carried out in the real street environment after the 6LoWPAN implementation. Based on the test results, a comparison between 6LoWPAN and PLC will be described in the later section to show advancement of 6LoWPAN.</p></sec><sec id="s2"><title>2. The SEMS Smart Lighting System</title><p>The SEMS smart lighting system architecture contains three layers: sense layer, data process layer and application layer. Sense layer is made up of LED lights (the SEMS mainly uses LED for lighting), PLC light controllers and some sensors. LED is one of the energy saving and adjustable dimming street light. PLC light controllers work as terminal nodes in the system and provide data and/or events then report to the data server through a PLC link. Sensors are used for light sense and moving objects detection. Data process layer includes centralized controllers, data server and related transmission link. Centralized controllers are deployed in switch gears of each street block for data collection from all the terminal nodes within their communication range. Additionally, centralized controllers report all the lights’ information to an associated data server through wireless network GPRS/3G or Internet depend on the network environment. Application layer is an end point user interface, it usually include PC(s), Pads and smart phones. The SEMS structure is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>From <xref ref-type="fig" rid="fig1">Figure 1</xref> we can see that the SEMS smart lighting system consists of two types of networks, one is PLC network, and the other is Internet which is based on IP. These two types of networks are different in architecture, transmission media, link layer protocol and application protocol, so there must be a transformer between each network’s borders. It is the centralized controller in this case. The centralized controllers forward PLC packets to the data server via Internet, they are crucial devices in the system.</p><p>This architecture has a drawback. If, for example, the functionality on the centralized controller had to be extended to support other applications like humidity and temperature collection, the centralized controller would have to support an additional software module. New software modules would then have to be added for each additional protocol that required support. Using this deployment model to address different application requirements presents fundamental challenges in terms of scalability and extensibility (e.g. field upgrade issues).</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> SEMS smart lighting system</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/54740x5.png"/></fig></sec><sec id="s3"><title>3. 6LoWPAN Usage in Smart Lighting</title><p>In the SEMS case, data process layer and application layer are both deployed in IP network. To make the system network architecture unified, the sense layer must support IP network. But IP protocol is not suitable for microcontroller and other low power wireless devices. Many standardization groups have made the effort in low power wireless network in the past (e.g., ZigBee, Z-Wave and Wireless HART), but their ad hoc solutions are not based on IP. In this case, different system cannot communicate with each other. In order to apply IP protocol in constrained wireless network, IETF published 6LoWPAN.</p><sec id="s3_1"><title>3.1. 6LoWPAN Protocol Stack</title><p>6LoWPAN protocol stack is similar to the TCP/IP protocol stack, the physical layer and MAC layer are subordinated to IEEE 802.15.4 standard, the adaption layer is named 6LoWPAN, network layer could be IPv6, ICMP or RPL (Routing Protocol for LLN), transmission layer runs UDP, and the application layer is CoAP (Constrained Application Protocol). The 6LoWPAN protocol stack is shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>6LoWPAN usually runs a sub-network and communicate with other IP network through a border router. Border router uses IP/ICMP [<xref ref-type="bibr" rid="scirp.54740-ref8">8</xref>] or other IPv6 transmission mechanism to connect the 6LoWPAN and IPv4 [<xref ref-type="bibr" rid="scirp.54740-ref9">9</xref>] network as the 6LoWPAN only runs IPv6 based on IEEE 802.15.4. Border router does not need to maintain any application status or run any application protocol in the 6LoWPAN stack because it transfers packets in network layer.</p></sec><sec id="s3_2"><title>3.2. Smart Lighting with 6LoWPAN</title><p>The Smart Lighting system with 6LoWPAN in this paper was upgraded from SEMS. PLC light controllers were replaced by 6LoWPAN light controllers and the centralized controllers were replaced by border routers. The system structure is shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>In this implementation, CC2530 chips were used in light controllers. CC2530 is a SoC solution for low power wireless network based on IEEE 802.15.4, and it runs a light weight operating system Contiki, which developed by Adam Dunkels. Contiki integrate uIP protocol and 6LoWPAN stack, it provides BSD style Socket API, that makes it very easy to develop application based on IP communication. Border router contains an Atmel microprocessor AT91SAM9G45 which integrate with 10/100 Mb/s Ethernet interface and a GPRS model. The border router runs 6lbr routine, which forward 6LoWPAN packets to IPv6 or IPv4 network. By excluding centralized controllers in the smart lighting system, 6LoWPAN network reduces packets forwarding latency and increases throughput compare to the early PLC link.</p></sec><sec id="s3_3"><title>3.3. System Testing</title><p>In order to simulate the 6LoWPAN smart lighting system, a testing model was built and the test was carried out in the real street environment. In this testing model, five 6LoWPAN nodes (C1 - C5) was installed on the street light poles, one border router was placed in one side of the street, the border router connected to a laptop computer via Ethernet link. The deployment of the testing system is shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> 6LoWPAN stack</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/54740x6.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Smart lighting with 6LoWPAN</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/54740x7.png"/></fig><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> 6LoWPAN testing model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/54740x8.png"/></fig><p>The distance between each pole is about 30 m. All these 6LoWPAN nodes were powered by lithium battery. Simulation software was ran on laptop computer and it sent constant packets to one node in a maximum rate to test the 6LoWPAN node’s data receive capability. To test the node’s reliability, the laptop sent packets to the nodes periodically, and nodes replied an ACK packet, the result is the proportion of sent and received packets. Each testing item was lasted for 10 minutes, and the reliability test for each node repeated three times. The test result is shown in <xref ref-type="table" rid="table1">Table 1</xref>.</p><p>The test result from <xref ref-type="table" rid="table1">Table 1</xref> shows that the average data rate is about 44 kbps and the reliability is 95% on average. The 6LoWPAN communication performance is good enough for the street light control and light status collection.</p></sec></sec><sec id="s4"><title>4. Results and Discussion</title><p>The SEMS solution is based on PLC chip form RISECOMM. A full test of the 6LoWPAN smart lighting system carried out after a complete review of the RISE3501E data manual [<xref ref-type="bibr" rid="scirp.54740-ref10">10</xref>]. The results show that 6LoWPAN is better than PLC in data rate, transmission range, reliability, anti-interference, etc. Dominant parameters of the PLC and 6LoWPAN in smart lighting system are listed in <xref ref-type="table" rid="table2">Table 2</xref>.</p><p>Besides the technical data, the preeminent advantage of deploying a 6LoWPAN-based smart lighting system is that one common application platform can be used for different application to gain access to the 6LoWPAN</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Data rate and reliability of 6LoWPAN test</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Nodes</th><th align="center" valign="middle" >C1</th><th align="center" valign="middle" >C2</th><th align="center" valign="middle" >C3</th><th align="center" valign="middle" >C4</th><th align="center" valign="middle" >C5</th></tr></thead><tr><td align="center" valign="middle" >Data rate (kbps)</td><td align="center" valign="middle" >47.1</td><td align="center" valign="middle" >47.1</td><td align="center" valign="middle" >47.1</td><td align="center" valign="middle" >40.5</td><td align="center" valign="middle" >40.5</td></tr><tr><td align="center" valign="middle"  rowspan="3"  >Reliability (%)</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >97</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >84.6</td></tr><tr><td align="center" valign="middle" >100</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >98.5</td><td align="center" valign="middle" >97</td></tr><tr><td align="center" valign="middle" >98.5</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >84.6</td><td align="center" valign="middle" >98.5</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Main Parameters of PLC and 6LoWPAN</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Parameters</th><th align="center" valign="middle" >PLC</th><th align="center" valign="middle" >6LoWPAN</th></tr></thead><tr><td align="center" valign="middle" >Data rate</td><td align="center" valign="middle" >5 kbps</td><td align="center" valign="middle" >50 kbps</td></tr><tr><td align="center" valign="middle" >Transmission range</td><td align="center" valign="middle" >100 m</td><td align="center" valign="middle" >300 m</td></tr><tr><td align="center" valign="middle" >Packets latency</td><td align="center" valign="middle" >1 - 5 s</td><td align="center" valign="middle" >&lt;1 s</td></tr><tr><td align="center" valign="middle" >Interoperation</td><td align="center" valign="middle" >Centralized controller</td><td align="center" valign="middle" >Border router</td></tr><tr><td align="center" valign="middle" >Compatibility</td><td align="center" valign="middle" >Cannot integrate with different brands of node</td><td align="center" valign="middle" >All standard nodes are compatible</td></tr><tr><td align="center" valign="middle" >Security</td><td align="center" valign="middle" >None</td><td align="center" valign="middle" >AES-128</td></tr><tr><td align="center" valign="middle" >Router protocol</td><td align="center" valign="middle" >No standard protocol</td><td align="center" valign="middle" >RPL</td></tr></tbody></table></table-wrap><p>sensor data. This allows third-party developers leveraging back-end management systems to use standard 6LoWPAN interfaces to write productive new applications instead of having to learn a new application programming model each time a new protocol needs to be supported. This translates directly into ease-of-use, ease-of-deployment and accelerated time-to-market.</p></sec><sec id="s5"><title>5. Conclusions and Outlook</title><p>From the above considerations we can see that implementing 6LoWPAN in smart lighting system gains the advantages in transmission rate, signal coverage range and compatibility compare to PLC. The smart lighting system based on 6LoWPAN with the standard IP-based interface will also make it much easier to integrate different types of sensors for environmental monitoring.</p><p>In this implementation, we only got five nodes in the testing model, and we are going to get more nodes for a large scale test in the next stage. Besides the lighting control nodes, we also want the system connecting to more sensors such as temperature sensors, humidity sensors, and air condition sensors to provide more environmental services.</p></sec><sec id="s6"><title>Acknowledgements</title><p>This paper is supported by Lighting Control System Based on Cloud Computing Application Research on Key Techniques of Modular LED Street Lamp (No. 2013HK100062).</p></sec><sec id="s7"><title>Cite this paper</title><p>Zucheng Huang,Feng Yuan, (2015) Implementation of 6LoWPAN and Its Application in Smart Lighting. Journal of Computer and Communications,03,80-85. doi: 10.4236/jcc.2015.33014</p></sec></body><back><ref-list><title>References</title><ref id="scirp.54740-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Institute of Software Application Technology, Guangzhou &amp; Chinese Academy of Sciences (GZIS) (2014) Smart Energy Management System (SEMS). http://sems.gzis.ac.cn/</mixed-citation></ref><ref id="scirp.54740-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Han, N., Wu, Y.-H. and Tang, Y. (2010) Research of KNX Device Node and Development Based on the Bus Interface Module. 29th Chinese Control Conference (CCC), 2010, 4346-4350.</mixed-citation></ref><ref id="scirp.54740-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Park, T. and Hong, S.H. (2010) A New Proposal of Network Management System for BACnet and Its Reference Model. 8th IEEE International Conference on Industrial Informatics (INDIN), 2010, 28-33.  
http://dx.doi.org/10.1109/INDIN.2010.5549470</mixed-citation></ref><ref id="scirp.54740-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Wohlers I., Andonov R. and Klau G.W. (2013) DALIX: Optimal DALI Protein Structure Alignment. IEEE/ACM Transactions on Computational Biology and Bioinformatics, 10, 26-36. http://dx.doi.org/10.1109/TCBB.2012.143</mixed-citation></ref><ref id="scirp.54740-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Dominguez, F., Touhafi, A., Tiete, J. and Steenhaut, K. (2012) Coexistence with WiFi for a Home Automation ZigBee Product. IEEE 19th Symposium on Communications and Vehicular Technology in the Benelux (SCVT), 2012, 1-6.  
http://dx.doi.org/10.1109/SCVT.2012.6399392</mixed-citation></ref><ref id="scirp.54740-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Lin, W.J., Wu, Q.X. and Huang, Y.W. (2009) Automatic Meter Reading System Based on Power Line Communication of LonWorks. International Conference on Technology and Innovation (ITIC 2009), 2009, 1-5.  
http://dx.doi.org/10.1049/cp.2009.1391</mixed-citation></ref><ref id="scirp.54740-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Kushalnagar, N., Montenegro, G. and Schumacher, C. (2007) IPv6 over Low-Power Wireless Personal Area Networks (6LoWPANs): Overview, Assumptions, Problem Statement, and Goals. ITEF-RFC.  
http://www.rfc-editor.org/rfc/rfc4919.txt</mixed-citation></ref><ref id="scirp.54740-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Nordmark, E. (2014) Stateless IP/ICMP Translation Algorithm (SIIT). http://www.rfc-editor.org/info/rfc2765</mixed-citation></ref><ref id="scirp.54740-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Nordmark, E. and Gilligan, R. (2014) Basic Transition Mechanisms for IPv6 Hosts and Routers.  
http://www.rfc-editor.org/info/rfc4213</mixed-citation></ref><ref id="scirp.54740-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">(2014) RiseComm RISE3501E Data Manual. http://www.risecomm.com.cn/</mixed-citation></ref></ref-list></back></article>