Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Small-Sized and Noise-Reducing Power Analyzer Design

for Low-Power IoT Devices


Ryosuke Kitayama , Takashi Takenaka , Masao Yanagisawa , Nozomu Togawa
Department of Computer Science and Engineering, Waseda University
GreenPlatform Laboratories, NEC Corporation
Email: {ryosuke.kitayama, togawa}@togawa.cs.waseda.ac.jp

interface in a microprocessor and (b) introducing a data-order


correction process. We analyze power/energy consumption of
AbstractPower analysis for IoT devices is strongly required LED block cipher encryption on the IoT device and obtain
to reduce power consumption and realize secure communications, an average power of 146.3mW and energy of 3.84mJ. The
where we need a small-sized power analyzer that can reduce proposed power analyzer is just implemented on a 5cm5cm
a wide frequency range of noises is needed. In this paper, we board but these results only have 5% errors compared to a
propose a small-sized and noise-reduced power analyzer for IoT high-precision oscilloscope.
devices. We utilize a signal averaging method to reduce a wide
frequency range of noises. At that time, how to implement a The rest of this paper is organized as follows: Section 2
synchronous process between a power analyzer and a target IoT
summarizes IoT devices and their power analysis including
several existing works; Section 3 proposes our small-sized
device becomes the key problem. We solve this problem by (a) and noise-reduced power analyzer; Section 4 demonstrates
using synchronization signals generated by a general-purpose I/O several power/energy analysis results using the proposed power
interface of a microprocessor and (b) introducing a data-order analyzer; Section 5 gives several concluding remarks.
correction process. We analyze power/energy consumption of the
encryption process of LED block cipher on the IoT device and
obtain an average power of 146.3mW and energy of 3.84mJ. The II. I OT DEVICE AND POWER ANALYSIS
proposed power analyzer is just implemented on a 5cm5cm
board but these results only have 5% errors compared to a high- As in [7], [10], most of IoT devices consist of sensors,
precision oscilloscope. communication modules and a control module. Depending on
its purpose, an IoT device implements a variety of sensors. As
communication modules, we can use wired communications
I. I NTRODUCTION such as Ethernet, USB and RS-232C and/or wireless commu-
nication such as Wi-Fi, zigbee and Bluetooth. We can use a
IoT is a system that controls thousands of devices with microcontroller as a controller module.
network technologies [7], [4], [12]. Power saving of IoT
devices is quite important for applying them to wider fields, Security is one of the largest problems in IoT [3]. En-
since most of them run under severe conditions and it is cryption is required for communication among IoT devices
difficult to receive stable and unlimited power supply. and encryption processes have to be as light as possible.
Furthermore, most of IoT devices cannot receive stable and
Communications among IoT devices must be encrypted unlimited power supply and thus IoT devices must have several
for security reasons and hence encryption processes on IoT power constraints. Power consumption analysis is strongly
devices need to meet the requirement of the power constraint. required for IoT devices.
Overall, power analysis for IoT devices is strongly required.
Generally, an IoT device consumes a small amount of Several researches have been done on power analyzers
power and then it is difficult to separate signals and noises for IoT devices. Bucci et al. have proposed the measuring
in a easy way. The noises that affect power analysis include system for micro electric power [6]. It can reduce a wide
a wide frequency range of signals and hence reducing these range of noises and measure power consumption of tiny power
wide noises is required in IoT devices. What is more, a size devices. However, this system includes large and complex
of a power analyzer is much limited by the capacity of its circuits and functions. This system satisfies the requirement (1)
installation location. A power analyzer needs to be as small as but does not satisfy the requirement (2) described in Section 1.
possible. In summary, power analyzers for IoT devices require Jiang et al. have proposed the micro power meter for wireless
that (1) they must reduce a wide frequency range of noises sensor network devices [13]. The proposed micro power meter
and (2) their size must be small enough. is small enough and low cost. However it only uses RC
low-pass filters to achieve small-sized micro power meter
Several researches have been done on power analyzers for and hence cannot reduce a wide frequency range of noises
IoT devices [6], [13], [16]. However, none of them meet the simultaneously. It satisfies the requirement (2) but does not
requirements (1) and (2) above at the same time. RC low-pass satisfy the requirement (1). SASEBO can be used to analyze
filtering and signal averaging are commonly used as a noise- power analysis attack to low power devices or smart cards
reducing method [9], [17], [18], [8]. As discussed in Section 2, [16]. We can perform power analysis using SASEBO, but we
the latter one is better to use in IoT devices. The key problem need an outside power analyzer such as a general oscilloscope
here is how to implement a synchronous process where we to analyze the power. SASEBO itself is not enough to analyze
synchronously start the power analysis process and the target power consumption for IoT devices.
IoT device operation repeatedly. Furthermore, the synchronous
process has to be implemented on a power analyzer with a RC low-pass filtering is very often used for electric devices
small circuit and a lightweight program. but it is difficult to reduce low frequency noises and high
frequency noises simultaneously [9], [17]. A signal averaging
Based on this discussion, this paper proposes a small-sized approach is also used very often [18], [8]. This approach can
and noise-reduced power analyzer for IoT devices. We utilize reduce a wide frequency range of noises simultaneously and it
a signal averaging method to reduce a wide frequency range of does not require special circuits nor programs to apply it to a
noises, where we realize a synchronous process by (a) using target IoT device. Signal averaging is better to utilize for IoT
synchronization signals generated by a general-purpose I/O device power analyzers.

978-1-4799-8485-5/15/$31.00 2015 IEEE


6LJQDOVLQFOXGLQJQRLVHV

3RZHU 3RZHU 3RZHU

7LPH 7LPH 7LPH

3RZHU
1RLVHUHGXFHGVLJQDO
7LPH

Fig. 1. Signal averaging.

3RZHUDQDO\VLV
VRIWZDUH
VPDOO

*HQHUDOSXUSRVH 86%
,2LQWHUIDFH IRUFRPPXQLFDWLRQV
DQGSRZHUVXSSO\
6\QFKURQL]DWLRQ 0LFURFRQWUROOHU
VLJQDOOLQH ELW

0HDVXUHPHQWFLUFXLW
YROWDJHDQGFXUUHQW 3&
3RZHU
VXSSO\OLQH
7DUJHW,R7GHYLFH 3RZHUPHDVXUHPHQW
FLUFXLWERDUG
3RZHUDQDO\]HU Fig. 3. Power measurement circuit board.
3RZHU

9&&
Fig. 2. Proposed power analyzer.

9ROWDJH D
PHDVXUHPHQW
Fig. 1 shows an example of noise reduction using a signal 7RWDUJHW
,R7GHYLFH
FLUFXLW

averaging approach. A noise-reduced signal is shown by the


$'
black line and the signals containing noises are shown by the FRQYHUWHU

gray lines in Fig 1. Generally, measurement results include


both signals and noises. If we can synchronously start a mea- *1'
surement process and a target IoT device operation repeatedly, &XUUHQWPHDVXUHPHQWFLUFXLW
the signals must be always the same but the noises must be &38 0HPRU\

random. The signal averaging approach uses this property and,


by averaging the measurement results several times, we can 6KXQW 'LIIHUHQWLDO
DPSOLILHU
s
UHVLVWRU
finally obtain signal results as shown in Fig. 1. *HQHUDOSXUSRVH
86%
,2LQWHUIDFH

III. P OWER ANALYZER FOR I OT DEVICES *1' 7RWDUJHWGHYLFH


6\QFKURQL]DWLRQ 7RSRZHUDQDO\VLV
As discussed in Section 2, a synchronization process is VLJQDOOLQH ELW VRIWZDUH

the key to realize a signal averaging approach. A trigger is


a common way to realize this process [5], where we start Fig. 4. Architecture of power measurement circuit board.
the measurement process when a target signal value becomes
less than a threshold or it becomes larger than a threshold.
However, it is difficult to use a trigger technique in a power B. Power measurement circuit board
analyzer for IoT devices, since IoT devices are small and low-
powered ones and their noises strongly affect a target trigger The power measurement circuit board consists of a mi-
signal. crocontroller, a voltage measurement circuit, and a current
From the reason above, we propose to implement the two measurement circuit. Fig. 4 shows the architecture of power
ideas onto a power analyzer to solve the problem: (a) We use measurement circuit board.
synchronization signals generated by a general-purpose I/O
interface in a microprocesser mounted on a power analyzer; Voltage measurement circuit and current measurement circuit:
(b) We introduce a data-order correction process run on the The voltage measurement circuit is indicated by the dotted
microprocesser. The idea (a) is not difficult to implement black line in Fig. 4. It is composed of a resistor voltage divider
because most of microcontrollers have general-purpose I/O which converts the input signal width for the A/D converter.
interfaces and we can utilize them. The idea (b) can be realized The current measurement circuit is indicated by the dotted
by adding a sequence number to every data and correcting a gray line in Fig. 4. In this figure, the shunt resistor has small
data order appropriately by using it. resistance which is inserted between the target IoT device and
GND. When the current flows through the shunt resistor, a po-
A. Architecture of our proposed power analyzer tential difference occurs at the both terminals. Since the potential
difference is too small, the differential amplifier amplifies it up
Our proposed power analyzer consists of a power mea- to a magnitude that can be read by the A/D converter.
surement circuit board and power analysis software on PC Microcontroller: The microcontroller is indicated by the black line
as shown in Fig. 2. Fig. 3 shows the power measurement
circuit. The size of the power measurement circuit board is in Fig. 4. It reads out the voltage and current signals that are
just 5cm5cm as shown in Fig. 3. A target IoT device receive input to the A/D converters via the voltage measurement circuit
a power supply from a USB port on PC via the power line and the current measurement circuit, respectively. It also trans-
in Fig. 2-.
1 The synchronous signal line shown in Fig. 2- 2 fers data of a measurement result to the power analysis software
also connect the target IoT device and the power measurement on PC. As the microcontroller, we use PIC24FJ64GB004. Its
circuit board, and it transmits 1-bit synchronous signal from clock frequency is 32MHz.
the power measurement circuit board to the target IoT device. Programs implemented on the microcontroller consist of
K
^

W
D. Measurement process
h^

 We connect the target IoT device, the power measurement
s  D
circuit and PC as shown in Fig. 2. Let t[s] be the cycle of
W
A/D conversion and n be the number of measurements for
'
/K
D

W the averaging signal approach. Our measurement process is as
d/d W
follows:

W

h^W 1) Start the measurement: The power analysis software orders
the power measurement circuit board to start the measurement
via USB.
Fig. 5. Power analysis for LED block cipher.
2) Output the synchronization signal: The microcontroller on the
measurement circuit board outputs a synchronization signal to
the target IoT device via the synchronization signal line.
an initialization function, a USB communication function and 3) Start the target IoT device operation: When the target IoT
a power measurement function. The initialization function ini- device detects the state change in the synchronization signal
tializes modules on the microcontroller. The USB communica- line, it starts its operation.
tion function controls USB communications and transfers data. 4) Start A/D conversions: The microcontroller on the power
Microchip Libraries for Applications v2011-07-14 is used to measurement circuit board starts A/D conversion and obtains
implement the USB communication function [14]. The power m 10-bit digital values in every t[s] interval.
measurement function obtains the voltage and current values 5) Add the sequence number to each data: The microcontroller
from the A/D converters, and adds the sequence number of each on the power measurement circuit board adds the sequence
data to correct data ordering. MPLAB C30 C compiler is used number to each data. After that, it transfers the data to the power
to compile the programs [15]. The size of the programs becomes analysis software on PC via USB.
9K bytes. 6) Correct data order: After the power analysis software receives
Most microcontrollers have general-purpose I/O interfaces, data from the power measurement circuit board, it modifies the
which are I/O terminals that can control input/output signals by data order based on their data sequence number.
software. We can use a general-purpose I/O interface of the mi- 7) Obtain power consumption measurement values: By using
crocontroller PIC24FJ64GB004 and use it as a synchronization
Eqn. (1) and (2), we obtain the measurement power values.
signal as follows: Firstly, the microcontroller changes the status
of the register controlling the general-purpose I/O interface and The measurement process continues until its repeat count
enables the synchronization signal; Next, the synchronization reaches n. After that, we apply the signal averaging to all the
signal is transmitted through the synchronization signal line and n measurement results and then we can obtain a noise-reduced
the target IoT device starts its operation; At the same time, our power data.
power measurement circuit measures the current and voltage
data and stores them into the memory; After that, CPU in the
microcontroller read out the data from the memory in order, and IV. P OWER ANALYZING FOR LED BLOCK CIPHER
adds the sequence number of each data; Finally, CPU generates We have analyzed power consumption of encryption pro-
USB packets and send them out. By using the sequence numbers cess of LED block cipher [11] as a target IoT device. LED is
added here, we can realize data-order correction on PC. a lightweight cipher and can be used in an IoT device for its
security purpose.
C. Power analysis software A target IoT device is prepared based on discussion in
The power analysis software consists of a USB com- Section 2. Arduino Pro Mini 328 5V 16MHz is used as a
munication function, a data processing function, and a data control module, and a USB serial communication is used as
correction function. The USB communication function controls a communication module. The target IoT device does not
USB communication to the power measurement circuit board. have sensors. Instead, a 3K parallel resistance circuit is
We use the programs provided by Jan Axelsons Lakeview implemented on it.
Research to implement the USB communication function in
the power analysis software[2]. The data processing function A. Measurement setup
obtains voltage and current values from the A/D convertertion
values, and calculates power consumption. The A/D conver- The program which is proposed by Guo, a developer of
sion values are proportional to voltage or current values and LED block cipher, is used on the target IoT device [11]. It is
Eqns. (1) and (2) show how to convert A/D conversion values written in C and a compiler including in Arduino development
into voltage values and how to convert A/D conversion values environment is used to compile it. We set the key length of
into current values, respectively: LED cipher to 64 bits. The length of plaintext is also set to
8 bytes. Encryption process takes 420,992 cycles. The target
DV [V] = AV ADCV + BV (1) IoT device receives the power supply from PC via the power
measuring circuit. We set t = 27.9s and m = 1024. The
DI [mA] = AI ADCI + BI (2) MSO-X 3104A oscilloscope with the 1147A current probe is
where DV is a voltage value and ADCV is an A/D conversion used for comparison purpose. The MSO-X 3104A is connected
voltage value. DI is a current value and ADCI is an A/D con- to the target IoT device as shown in Fig. 5.
version current value. AV , AI , BV and BI are the parameters
for conversion. We set AV to 0.0583, AI to 0.040365, BV to B. Results of power analysis
0.00 and BI to 7.4072.
Fig. 6 shows the power consumption obtained by the pro-
The data correction function verifies errors of data order, posed power analyzer. Fig. 7 shows the current wave obtained
and fixes them correctly with data order sequence numbers by MSO-X 3104A where the second wave from the top shows
added in the microcontroller. By using the data correction the current wave. Table I shows the comparison results of
function, even in the case of some communication errors or power analysis. Since the voltage of a power supply to the
data losses occur, the proposed power analyzer can effectively target IoT device is 4.74V constantly, power consumption wave
perform a signal averaging process. must be almost the same as the current wave. The wave form

W

Wt



























&,


























d
Fig. 8. FFT analysis of the power analysis result.

TABLE I. R ESULTS OF POWER ANALYSIS FOR LED BLOCK CIPHER .


Fig. 6. Result of power analysis of the LED block cipher using the proposed
power analyzer. MSO-X 3104A Proposed Power analyzer
Power [mW] 138.9 (1.00) 146.3 (1.05)
Energy [mJ] 3.65 (1.00) 3.84 (1.05)
&XUUHQWZDYH

9ROWDJHZDYH R EFERENCES
6\QFKURQL]DWLRQ
VLJQDOZDYH [1] Agilent 1147A 50MHz Current Probe, Agilent Technologies, 2012
[Online]. Available: http://literature.cdn.keysight.com/litweb/pdf/01147-
92007.pdf?id=1000000145-1:epsg:man.
[2] J. Axelson, WinUSB, 2014 [Online]. Available: http://janaxelson.com/winusb.htm.
Fig. 7. Result of power analysis of LED block cipher using MSO-X 3104A. [3] S. Babar, A. Stango, N. Prasad, J. Sen, and R. Prasad, Proposed embedded
security framework for internet of things (IoT), in Proc. 2nd International Con-
ference on Wireless Communication, Vehicular Technology, Information Theory
and Aerospace and Electronic Systems Technology (Wireless VITAE), pp. 15,
of Fig. 6 is almost the same as the one in Fig. 7. In our power 2011.
analyzer, power consumption of LED block cipher encryption [4] D. Bandyopadhyay and J. Sen, Internet of things: applications and challenges
becomes 146.3mW and its energy becomes 3.86mJ as in Table in technology and stanfardization, in Proc. Wireless Personal Communications,
vol. 58, no. 1, pp. 4969, 2011.
I.
[5] C. L. Birkett, C. A. Ray, E. A. Anderson, and R. F. Rea, A signal-averaging
They includes approximately 5.3% error compared to technique for the analysis of human muscle sympathetic nerve activity, Journal
of Applied Physiology, vol. 73, no. 1, pp. 376381, 1992.
MSO-X 3104A oscilloscope. According to [1], the 1147A cur-
rent probe includes a maximum of 2.5mA measurement error. [6] G. Bucci, E. Fiorucci, F.Ciancetta, and M. Luiso, Measuring system for micro-
electric power, IEEE Trans. on Instrumentation and Measurement, vol. 63, no.
Since the voltage of a power supply to the target IoT device 2, pp. 410-421, 2014.
is 4.74V, the average current of LED block cipher measured [7] J. Gubbi, R. Buyya, S. Marusic, and M. Palaniswami, Internet of things(IoT):a
by our proposed power analyzer becomes 146.3mW/4.74V = vision, architectural elements, and future directions, Future Generation Computer
30.86mA. Even if this current value includes 5.3% error, it just Systems, vol. 29, no. 7, pp. 16451660, 2013.
becomes 30.86mA 0.053 = 1.64mA which is less than the [8] M. E. Cain, J. W. Mason, J. L. Anderson, M. M. Scheinman, M. F. Arnsdorf,
maximum error in the 1147A current probe. We consider that and A. L. Waldo, Signal-averaged electrocardiography, Journal of the American
our result on the proposed power analyzer is quite reasonable, College of Cardiology, vol. 27, no. 1, pp. 238248, 1996.
even though its size is quite small and light. [9] G. Casiez, N. Roussel, and D. Vogel, 1e filter: a simple speed-based low-pass
filter for noisy input in interactive systems, in Proc. SIGCHI Conference on
Fig. 8 shows an FFT analysis result for the power analysis Human Factors in Computing Systems, pp. 25272530, 2012.
for LED block cipher using the proposed power analyzer. [10] C. Doukas, I. Maglogiannis, V. Koufi, F. Malamateniou, and G. Vassilacopoulos,
The gray wave shows the result when we have performed Enabling data protection through PKI encryption in IoT m-health devices, in
signal averaging. The black wave shows the result when signal Proc. 2012 IEEE 12th International Conference on Bioinformatics and Bioengi-
averaging has not been performed. As shown in this figure, neering (BIEE), pp. 2529, 2012.
the wide frequency of noises are successfully reduced by [11] J. Guo, T. Peyrin, A. Poschmann, and M. Robshaw, The LED block cipher,
approximately by 10 dB by using the signal averaging. in Proc. Cryptographic Hardware and Embedded Systems (CHES), pp. 326341,
2011.
[12] X. Jia, Q. Feng, T. Fan, and Q. Lei, RFID technology and its application in
internet of things (IOT), in Proc. Consumer Electronics, Communications and
V. C ONCLUSIONS Networks (CECNet), pp. 12821285, 2012.
[13] X. Jiang, P. Dutta, D. Culler, and I. Stoica, Micro power meter for energy
In this paper, we have proposed a small-sized and noise- monitoring of wireless sensor networks at scale, in Proc. 6th International
reduced power analyzer for low-power IoT devices. It uses a Conference on Information Processing in Sensor Networks, pp. 186195, 2007.
signal averaging approach which can reduce a wide frequency [14] Microchip libraries for applications, Microchip Technology Inc, 2011 [On-
range of noises. We have analyzed the power consumption of line]. Available: http://www.microchip.com/pagehandler /en-us/devtools/mla/
the encryption process of LED block cipher and the measured home.html.
power and energy are 146.3mW and 3.86mJ, respectively, [15] MPLAB C30 C compiler users guide, Microchip Technology Inc, 2007
[Online]. Available: http://ww1.microchip.com/downloads/en/devicedoc/
which just include 5.3% errors. c30 users guide 51284f.pdf.
In the future, we will develop a power analyzer that is able [16] Power Analysis Attacks on SASEBO, National Institute of Advanced
Industrial Science and Technology Research Center for Information
to measure tinier power with high accuracy. Security, 2010 [Online]. Available: http://satoh.cs.uec.ac.jp/SASEBO/pdf/
SASEBO PA Report Japanese.pdf.
[17] H. Y. Shih and H. W. T, A low power power sensor for optical communication,
ACKNOWLEDGEMENT in Proc. 2013 Asia-Pacific Microwave Conference (APMC), pp. 46, 2013.
[18] Z. X. Wang, C. S. Chang, T. W. Chua, and W. W. Tan, Ensemble and individual
The authors would like to thank the members of Green Platform Research noise reduction method for induction-motor signature analysis, in Proc. 8th
Laboratories, NEC, for their insightful comments. This research was supported International Conference on Advances in Power System Control, Operation and
in part by SCOPE from the Ministry of Internal Affairs and Communications. Management (APSCOM 2009), pp. 16, 2009.

You might also like