|
Algorithm 3: Network-switching algorithm from OCC to BLE. |
O2B_Handover ()
Initialization: Communication with camera is in progress;
Begin
if is changed then
if
<
then
Initiation of neighboring cameras;
if
> 1 then
for j = 1; j <
if
>
then
Accept BLE;
Set = ;
Set j = j + 1;
else if
>
Accept Camera (j);
Set = ;
Set j = j + 1;
else
Accept BLE;
Set j = j + 1;
end if
end for
else
Accept BLE;
end if
else
Continue communication with Camera (1);
end if
else
Continue communication with Camera (1);
end if
End
|