07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

506 Zhen Ru Dai<br />

17.4 Test Development with U2TP – A Case Study<br />

In this section, a UML test model 4 is specified based on U2TP. For that, a<br />

roam<strong>in</strong>g algorithm for Bluetooth devices [PDGN03] is taken as a case study.<br />

17.4.1 The Application<br />

Bluetooth is an established standard for short-range wireless communication.<br />

The Bluetooth specification enables small devices to <strong>in</strong>teract with<strong>in</strong> a short<br />

range. The standards related to Bluetooth <strong>in</strong>clude both the hardware (radio,<br />

baseband and hardware <strong>in</strong>terface) and the basic protocol layers that allow Bluetooth<br />

software to run on different Bluetooth enabled devices.<br />

The current Bluetooth standard does not support roam<strong>in</strong>g of Bluetooth devices<br />

[Blub]. If a device is los<strong>in</strong>g the l<strong>in</strong>k to its master, no provision is made to<br />

transfer the connection to another master. Nevertheless, roam<strong>in</strong>g with<strong>in</strong> Bluetooth<br />

piconets might be useful when hav<strong>in</strong>g more than one Bluetooth LAN<br />

access po<strong>in</strong>t, <strong>in</strong> order to have a seamless connection when mov<strong>in</strong>g. The need for<br />

a basic roam<strong>in</strong>g support for Bluetooth devices descends from a project [Blua]<br />

situated <strong>in</strong> the medical doma<strong>in</strong>. Its goal is to replace the traditional cable-based<br />

monitor<strong>in</strong>g of patients dur<strong>in</strong>g surgical treatments with a wireless transmission<br />

of the patient’s monitor<strong>in</strong>g data us<strong>in</strong>g Bluetooth hardware devices.<br />

Roam<strong>in</strong>g for Bluetooth The an exist<strong>in</strong>g roam<strong>in</strong>g approach [PDGN03], it is assumed<br />

that all masters (i.e. data receivers) are connected to a fixed network.<br />

The mobile devices (i.e. data send<strong>in</strong>g slaves) are usually mov<strong>in</strong>g along the masters.<br />

If a slave runs the risk of los<strong>in</strong>g connection to its actual master, the connection<br />

must be handed over to the next master. The slave prevents the loss<br />

by periodically check<strong>in</strong>g the quality of the l<strong>in</strong>k to the master by send<strong>in</strong>g a<br />

HCI Get L<strong>in</strong>k Quality command def<strong>in</strong>ed <strong>in</strong> the Bluetooth standard [Blub]. If<br />

the quality drops below a certa<strong>in</strong> threshold value the next master will be chosen.<br />

The slave tries to connect directly to the next master, know<strong>in</strong>g to which master it<br />

has to contact to next. Movements of the slave are tracked by a Location Server,<br />

which updates and provides slave’s spacial <strong>in</strong>formation <strong>in</strong> form of a roam<strong>in</strong>g list<br />

whenever the slave changes its master.<br />

The Activity Diagram <strong>in</strong> Figure 17.5 shows the activities of a slave necessary<br />

for roam<strong>in</strong>g. The slave tries to connect to a master. If the connection is successful,<br />

the updated roam<strong>in</strong>g list is transferred to the slave and data can be sent. In<br />

parallel, the l<strong>in</strong>k quality between slave and master is observed. If the quality gets<br />

bad, the slave will look <strong>in</strong> the roam<strong>in</strong>g list for a new master and try to connect<br />

to that master directly. If, for any reason, no connection can be established, a<br />

warn<strong>in</strong>g message is sent to the user (e.g. by a warn<strong>in</strong>g light or a special sound<br />

<strong>in</strong>dicat<strong>in</strong>g that a problem has occurred). Another warn<strong>in</strong>g message is sent to<br />

4 To clarify the term<strong>in</strong>ologies: With design model, we mean the system design model<br />

<strong>in</strong> UML. When talk<strong>in</strong>g about the test model, we mean the UML model enriched with<br />

U2TP concepts.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!