Multihop Data Transfer Service For Bluetooth Low Energy
Multihop Data Transfer Service For Bluetooth Low Energy
transferring over only a single hop. In the paper, we suggest the GAP
GAn
mechanism enabling the multihop data transfers between the
nodes in BLE networks. To ensure portability, the suggested
� An
/
Host-co orn:oil� Interface
integral components of BLE stack. We discuss in details the '1l::19 lY
suggested multihop service, its implementation and present the
LL
results of evaluation, which confirm feasibility and reveal
features of the suggested solution. To the best of our knowledge, PHY
this paper reports the first implementation of the multihop data
transfer over the BLE networks. o - Application layers
GAP AD
I. INTRODUCTION
Structure
Bluetooth Low Energy (BLE) is the energy-efficient short
range wireless communication protocol, which was introduced GAP
in 2010 as a part of Bluetooth Core Specification version 4.0 AdvData
[1]. The major purpose of BLE developing was to enable
products with lower current consumption, lower complexity, Advertising
and lower cost than the ones possible with the classic PDU (ADV_'ND,
ADV_NONCONN_IND
Bluetooth technology [2], [3]. During development of BLE and or ADV_SCAN_'ND)
shortly after its introduction, it was predicted that the protocol Advertising r=C7'r-'--r--r--'-�
will find wide application area and will dominate the Wireless Channel
Sensor Network (WSN) application market by 2015 [4]. PDU
Authorized licensed use limited to: Harokopio University. Downloaded on May 05,2024 at 18:40:23 UTC from IEEE Xplore. Restrictions apply.
978-1-4799-0846-2/13/$31.00 ©2013 IEEE 319
2013 13th International Conference on ITS Telecommunications (ITST)
Authorized licensed use limited to: Harokopio University. Downloaded on May 05,2024 at 18:40:23 UTC from IEEE Xplore. Restrictions apply.
320
2013 13th International Conference on ITS Telecommunications (ITST)
identifiers (CID) in the L2CAP packets (see Fig. 2). The TABLE T. GATT CHARACTERISTICS OF MH TRANSFER SERVICE
supported types of traffic are: the signalling traffic
Characteristic Permissions Size, Description
(CID=Ox0005), the traffic for attribute protocol (ATT) bytes
(CID=Ox0004) and the traffic for security manager (SM) route_entry Write 14 Used to transfer data about the routes.
(CID=Ox0006) [1], [3]. The SM manages authentication and Includes address of the target node,
pairing of devices, bounding, and encryption [2]. The attribute address of the next-hop node and the
protocol ATT defines client-server mechanisms, which enable total number of hops to the target node.
discovering, reading, and writing of the attributes. The generic own addr Read 6 Address of this node.
dst addr Write&Read 6 Address of the final target device for the
attribute profile (GATT) is based on ATT and provides the
block of data.
framework for discovering the various characteristics (i.e. the data Write >20 Part of data to be sent to dst addr.
data units) and the services (i.e. sets of characteristics and
references to other services) [2], [5]. The actual user BLE TABLE 11. FORMAT OF MH SERVICE INTERNAL STRUCTURES
application usually operates on top of GAP and GATT layers
Structure Structure b Description
(see Fig. 1). Note that although the general structure of the Size ,
a
name entries bytes
stacks for BLE and classical Bluetooth is similar, the
SeekTbl SeekAdr 6 Address of the node to which the route
functionality of the layers differs dramatically. Also the
should be found
specification prescribes each Bluetooth device to have a unique NumHops 2 Maximum number of hops
48-bit IEEE 802-2001 address for distinguishing and SeekTime 2 Remaining time to seek route to SeekAdr
addressing the device [1]. RouteTbl FinalDstAdr 6 Address of the final destination node
NHAddr 6 Address of the next-hop node towards
As one can see, the BLE only enables the communication FinalDstAdr
between the devices located within direct communication range HumHops 2 Number of hops up to FinalDstAdr
and does not support any MH data transferring [2], [5], [7]. DataBuf FinalDstAdr 6 Address of the final destination node
c
Data var Data to be transmitted to FinalDstAdr
The number of entries in each structure depends on implementation
III. SUGGESTED MECHANISM FOR MULTTHOP DATA b.
For a single entry.
TRANSFERTNG TN BLE NETWORKS
Depends on the implementation.
Authorized licensed use limited to: Harokopio University. Downloaded on May 05,2024 at 18:40:23 UTC from IEEE Xplore. Restrictions apply.
321
2013 13th International Conference on ITS Telecommunications (ITST)
Initialization
AddMyAdrto RouteTbll start �� s�n�� I Scann ng
N i
Advertising [New MH data arrived]
Add those to DataBufl
[DataBuf is empty]
[else]
get SeekAdr,
NumHops and
Time from
SeekTbll
[StartAdv is false]
Connected as master
r-_____-" "''-j
I fail]
GAIT Discover MH service
connection
[ N ew MH data arrived]
Add lhose 10 DataBufl
Fig. 6. State diagram of the suggested BLE MH service (Note: MyAdr is the address of the current node)
discovers the MHTS on the slave and writes in the slave's Fig. 7. lllustration of MH Service operation. Node A discovers the route and
sends data to node D through nodes B and C.
route_entry characteristic the data about the route to the sought
node (see Table 2). The slave node inserts the data received in all, the service obtains the address of the next-hop node from
the route_entry in its RouteTbl and excludes the address of the the RouteTbl. The address is then included in the special field
found node from its SeekTbl. of MHTS's advertising data (see Figs. 5 and 7). Once receiving
the advertising frame, the node with this address establishes
C. Multihop Data Transfering connection with the advertiser. The slave node (i.e., former
Once the MHTS has data to send to a distant node and advertiser) discovers the MHTS on the master and reads the
own addr from the master to ensure that the connection has
knows the route, the data transfer procedure is initiated. First of
Authorized licensed use limited to: Harokopio University. Downloaded on May 05,2024 at 18:40:23 UTC from IEEE Xplore. Restrictions apply.
322
2013 13th International Conference on ITS Telecommunications (ITST)
TABLE TIT. MAIN CHARACTERISTICS OF CC2540 SoCS & RADIO IV. IMPLEMENTATION AND EVALUATION OF THE MULTIHOP
MODULES USED IN TESTS [9 ] DATA TRANSFERING SERVICE
Device type System-on-Chip (BLE transceiver +
8051 microcontroller)
For evaluating the feasibility and the features of the
Microcontroller specification Clock: 32 MHz suggested BLE MHTS, we have implemented and tested it in a
Flash: 256 kB real-life experiment. The service was developed on top of the
RAM: 8 kB Texas Instruments' (TI) BLE stack (version l.3.1), which was
Radio protocol and stack version BLE (TI-BLE v1.3.1) running on the TI CC2540 systems-on-chips (SoCs)[9]. The
Operating radio band 2.4 GHz main characteristics of the CC2540 SoCs are summarized in
Modulation GFSK
Table 3.
Spectrum spreading FHSS
Over-the-air data rate, kbitls 1000 Table 3 reveals that the CC2540 SoCs combine both the
Transmit power range, dBm -23..4 8051-based microcontroller core and the BLE-compatible radio
Receive sensitivity, dBm -87 (standard mode)
transceiver. The TI BLE stack provides the solution, which
Supply voltage, V 2-3.6
enables the microcontroller core to control the BLE transceiver
Sleep current consumption ., IJ.A 0.9
WIth actIve tImer.
and implements the functionalities of both the BLE Host and
the Controller (refer to Fig.l). The suggested MHTS was
implemented on top of the GATT and GAP layers provided by
the stack.
To test the MHTS we used four hardware modules based
on the CC2540 SoCs (see Fig. 8). The nodes were placed at a
distance of around one meter from each other. The frame
source filtering was used to force the nodes to transfer the data
over the three hops (see Fig.7: e.g., node B is accepting the
packets only from nodes A and C, but not from node D). For
broadcasting the MHTS's advertisements (see Fig.5) we used
the ADV_IND events with the minimum allowed advertising
.-e-:.....- ... �-
As one can see in Fig. 5, the advertising data of the MHTS One of the consequences of supporting both the
can contain simultaneously two different addresses - the one of advertiser/connection slave and the scanner/connection master
a node the route to which must be discovered and the address roles for the same node is the high consumption of the
of a neighbouring node, through which the advertising node resources. The total size of program code of the BLE stack
wants to send the data. (with maximum code optimization by the compiler) was
around 136 kB, which is around 52% of the total available
Authorized licensed use limited to: Harokopio University. Downloaded on May 05,2024 at 18:40:23 UTC from IEEE Xplore. Restrictions apply.
323
2013 13th International Conference on ITS Telecommunications (ITST)
code memory (see Table 3). Also, while supporting both roles, transfer in the BLE networks. To the best of our knowledge,
the BLE stack and the underlying OSAL operation system the suggested MH service is the first solution enabling MH
(OS) reserved around 7.6 kB of the random access memory data transfer between any nodes in BLE networks. Also, to the
(RAM), which is 95% of the total RAM. Even though the extent of our knowledge, the suggested solution is the first one,
2772 B of RAM is reserved for OS's memory heap and around which has been implemented and tested in practice.
1100 B can be further reused by the MHTS, one can see that
The suggested MH service is designed as a service, which
the total amount of data memory available for the service is
uses only integral components of the BLE stack. The service
rather scarce. Therefore, for our tests we limited the maximum
can be implemented on any BLE device, which can act as a
number of the entries in the SeekTbl and RouteTbl to five and
scanner and as an advertiser, and can establish the connections
the maximum size of data buffer to one kilobyte. Nonetheless,
in the data channels. To prove the feasibility of the MH data
we do not consider this issue to be critical because the
transfer using the suggested solution, we have implemented
available for a node RAM can be easily increased by adding an
and tested the service using the CC2540 SoCs from Texas
external memory chip.
Instruments. In our experiments, we successfully used the
Although our experiments confirmed the feasibility of MH developed MH service implementation to transmit the data
data transferring in BLE networks in general and specifically over two and three hops. Nonetheless, the presented in the
the suitability of the suggested MH service for this purpose, paper results show that the MH data transfer in the BLE
those have revealed one significant limitation for MH data networks requires quite significant time.
transferring in BLE. Even though in our experiments we used
Although we have proved that MH data transfer in BLE
the minimum possible values for advertising and connection
networks is possible and have introduced a solution for this,
intervals, the total time for finding the way and sending one
there are still many open problems. First of all, in our test we
data block of 13 bytes over three hops in practice ranged from
could use only four nodes, which is definitely not enough to
20 to 30 seconds (25 s in average). Note that the time for
reveal all possible networking effects. To reveal those, the
sending more than one packet does not increase significantly.
extensive study including the simulation of the multi-node
E.g., the average time for fmding the way and sending 40
BLE networks is required. One of the major challenges here is
I3-byte packets was 28 s. Meanwhile, once the route is known,
the absence of simulators capable to simulate BLE at the time.
the time for sending the data over the three hops is between 6
Another very important issue is how it is possible to provide
and 9 seconds. There are two major reasons for this. First of
sufficient security during MH BLE communication and how to
all, once two nodes establish the connection, those have to use
handle mobility of nodes. Finally, as energy efficiency is one
the appropriate ATT mechanisms firstly to discover the MH
of the major targets for BLE, it is necessary to study how
service and then to fmd the associated with the service
efficient the suggested approach is and how the sleeping nodes
characteristics. This requires sending back and forth multiple
in the BLE networks will affect the MH data transfer.
frames. Meanwhile, as discussed e.g., in [2], [5], the TI BLE
stack can send only a few frames in one connection event. Nonetheless, we suppose that even in the current form the
Therefore, e.g., the transmission of the route_entry over each suggested MH data transfer mechanism for the BLE networks
hop requires as many as 12 connection events (i.e. 90 ms for can be used in practice and can enable the development of
minimum possible connlnterval value) after the connection novel and exciting applications.
establishment. The transmission of data over each hop requires
2l+2*n connection events (i.e. I57.5+I5*n ms), where n is the REFERENCES
number of the packets (up to 22-byte payload). As easy to see, [1] Bluetooth Specification.Core Package version 4.0, 2010.
if not to consider the time spent for advertising, the discovery [2] K. Mikhaylov, N. Plevritakis, and J. Tervonen, "Performance analysis
and comparison of Bluetooth Low Energy with IEEE 802.15.4 and
of a route and transmission of a single data block of up to 22
SimpliciTT," J. Sens. Actuator Networks, vol. 2, no. 3, pp. 589-613,
bytes over the three hops will require at least 787.5 ms. Aug. 2013.
[3] R. Heydon, Bluetooth LolV Energy: the developer's handbook. Upper
Nonetheless, in our experiment the major time the nodes
Saddle River, NJ: Prentice Hall PTR, 2012.
were spending in the advertising mode. It could require up to [4] "WTRS Wireless Sensor Network Technology Trends Report," West
ten seconds from the start of advertising up to the Technologies Research Solutions, Mountain View, CA, USA,
establishment of connection between an initiator and an WT062510CNTS, Jun. 2010.
advertiser. We suppose that the major reason for this is the [5] C. Gomez, J. Oller, and 1. Paradells, "Overview and Evaluation of
Bluetooth Low Energy: An Emerging Low-power Wireless
specifics of the implementation of these procedures in TI BLE
Technology," Sensors, vol. 12, no. 9, pp. 11734-11753, Aug. 2012.
stack (some features of the stack are discussed e.g., in [2], [5] ). [6] M. Haatanen, "Self-organizing routing protocol for Bluetooth Low
Energy sensor networks," B.Sc. thesis, Oulu Univ. Appl. Sc., Oulu,
VI. CONCLUSIONS Finland, 2012.
Bluetooth Low Energy (BLE) is the novel energy-efficient [7] E. Mackensen, M. Lai, and T. M. Wendt, "Performance analysis of an
Bluetooth Low Energy sensor system," in Proc. 1st into Symp. Wireless
short-range wireless communication protocol. The previous Syst. (iDAACS-SWS'12), Offenburg, Germany, 2012, pp. 62-66.
studies (e.g., [2]) have shown that compared with the other [8] H. Wang, M. Xi, J. Liu, and C. Chen, 'Transmitting IPv6 packets over
technologies, BLE provides an inexpensive and power-efficient Bluetooth low energy based on BlueZ," in Proc. 15th Int. Conf. on Adv.
solution for wireless communication. Commun. Technol. (lCACT'13), Pyeongchang, ROK, 2013, pp. 72-77.
[9] "2.4-GHz Bluetooth Low Energy system-on-chip," Texas Instruments,
In the paper, we have suggested, discussed the practical 2013.
implementation, and presented some evaluation results for the
special multihop (MH) service, which enables MH data
Authorized licensed use limited to: Harokopio University. Downloaded on May 05,2024 at 18:40:23 UTC from IEEE Xplore. Restrictions apply.
324