Professional Documents
Culture Documents
1Anjali Rajan, 1Dr. S. Rajkumar, 2T.S. Shrikrishnan , 2Jemimah Ebenezer, 2R. Jehadeesan
1Nehru College of Engineering and Research Centre, Pampady
2Electronics & Instrumentation Group,
Indira Gandhi Centre for Atomic Research, Kalpakkam
Abstract-In a large scale WSN deployment, external memory, RAM, ADC could be present
reprogramming the WSN nodes with new based on the application requirement.
firmware using In-System Programming (ISP) Usually batteries, both rechargeable and non-
by opening the enclosure of WSN node will be rechargeable, are the main source of power
a tedious job. Instead, reprogramming could supply for sensor nodes. Energy harvesting
be achieved by providing physical access to techniques including solar power and wireless
Joint Test Action Group (JTAG) on the power transfer (WPT) are used to charge
enclosure; but it will compromise the Ingress rechargeable batteries.
Protection (IP) rating of WSN node. Thus, Generally, microcontrollers in the sensor node
Wireless based In-Application Programming can be programmed using ISP/JTAG. Typically,
(WIAP) could be preferred. Near Field microcontrollers supporting ISP have internal
Communication (NFC) is a secure and circuitry to generate any necessary programming
promising short distance radio communication voltage from the system's normal supply voltage,
technology. This paper presents how an NFC and communicate with the programmer via a
transceiver can be utilized to program the serial protocol using clock and data pins.
microcontroller of WSN nodes. It also explains Most programmable logic devices use a
the development of boot loader program for variant of the JTAG protocol, in order to facilitate
WSN node to support WIAP. easier integration with automated testing
procedures. JTAG allows device programmer
Keywords-Wireless Sensor Network, In-System hardware to transfer data into internal non-
Programming, Wireless based In-Application volatile device memory. JTAG programmers are
Programming, Near Field Communication also used to write software and data into flash
memory.
I. INTRODUCTION Large scale or wide area deployment of
WSN include, a multitude of physical
Wireless sensor network (WSN) consists of
environments where continuous, large scale
several nodes each connected to one or more
monitoring and situation analysis are of great
sensors and are used for area monitoring, health
interest. In such situations, reprogramming these
care monitoring, environmental/earth sensing,
microcontrollers by opening the enclosure of
industrial monitoring, etc [1][2]. By introducing
sensor node will be difficult. For instance, to ease
WSN to monitor the plant parameters, it reduces
the reprogramming, if physical access of
the cable laying and maintenance expenditures.
microcontroller pins are provided outside the
Further it aids in scalability and fire proof
enclosure of sensor node, it not only violates the
installations. Sensor node generally comprises of
ingress protection rating, security breach will also
microcontroller, radio transceiver unit and signal
be a serious issue. So, Wireless based In-
conditioning circuit unit. Auxiliary units like
Application Programming (WIAP) is chosen to
reprogram the microcontroller which is the
combination of IAP and a short range wireless security during mobile payment services[6].
communication technology (here, NFC). Based on these aforementioned papers, we have
proposed an approach that uses NFC for Wireless
II. LITERATURE SURVEY based In-Application Programming of
microcontroller in WSN.
Ferro, Silva & Lopes presented a
specification for a compact, portable, data-layer III. COMPARISON OF WIRELESS
that can be used to support seamless dynamic TECHNOLOGY FOR WIAP
reprogramming of WSN, based on the notion of
periodic, non-preemptive tasks running in the There are different protocols for wireless
base OS[3]. Gohane & Khekare developed a communication including Bluetooth, wifi, zigbee,
system that can be used to wirelessly reconfigure Irda, NFC, etc. Table 1 illustrates the selection of
the software module of the industrial embedded NFC over other wireless communication
devices and machines using application protocols. NFC has shorter working distance than
programming interface (API). Using these APIs Bluetooth, which reduces the unwanted
various machine parameters can be assigned to interception. In contrast to ZigBee, NFC has
the software module[4]. Doug & Kenji proposed faster transmitting speed with same set-up time
the opensource platform of JavaMail NFC(JNFC) and power consumption. When compared to
to emulate the functionality of the Android NFC NFC, WiFi cost more power and IrDa need a
P2P API. DroidWSN model has been direct line of sight to connect two devices, and a
implemented for data exchange and even though little longer (0.5s) set-up time. Hence, NFC is
the execution time of emulator was slower, the decided as the most suitable technology for
design was simple and flexible[5]. Cai, Weng, & transferring application code for a wireless based
Liu proposed a research model to utilize NFC to IAP.
improve privacy and mobile authentication
Table 1: Comparison of communication technology
A. NFC Tag
Most commonly used proximity NFC
The ISO/IEC 14443 standard is a four-part transceivers are ST95HF and TRF series like
international standard for contact-less smart cards TRF7970A, TRF7960A, TRF7962A, TRF7963A,
operating at 13.56 MHz in close proximity TRF7964A, etc. Among the TRF series,
(~10cm) with a reader antenna. There are two TRF7970A is preferable since it operates at wider
main communication protocols supported by the
temperature range than others. Table 2 shows configurable parameters like unique node- ID,
comparison based on ISO standards, modes of rate of transmission, etc., numpad and LCD
communication, input voltage range, SPI display are used. The firmware read from the
interface and power dissipation reveals that micro SD card is then transmitted to the WSN
ST95HF has slightly better edge than the other microcontroller through NFC transceiver. It uses
transceivers. magnetic induction to create a radio-wave field
with the target. It helps the target to detect and
ST95HF also have dedicated internal frame access, allowing data to be transferred wirelessly
controller, transmission and reception modes, over a relatively short distance. A four wire loop
optimized power management, tag detection antenna is used for transmission. An antenna
mode and field detection mode. matching circuit is associated between the NFC
transceiver and loop antenna for impedence
matching. Here, target will be the NFC tag which
V. SYSTEM OVERVIEW OF
receives the code and flashes to the
WIRELESS IN-APPLICATION
microcontroller of wireless sensor node. Figure 2
PROGRAMMING
shows the hardware implementation of NFC
programming kit.
A. Hardware Development