You are on page 1of 6

Adaptability in Mobile Computing Devices

Assignments 1 MCS4060 2010/MCS/051

Mobile Wireless Communication Interfaces

Assignments 1

Assignment 1
Mobile Wireless Communication Interfaces................................................................................................. 1 Research on available latest technologies .................................................................................................... 1 Identify available functionalities to support adaptability ............................................................................. 2 Find APIs available for application awareness in Android ............................................................................ 3 Write simple code samples to demonstrate Application Awareness capabilities ........................................ 4

Mobile Wireless Communication Interfaces Research on available latest technologies


WLAN

WiMAX is similar to the wireless standard known as Wi-Fi, but on a much larger scale and at faster speeds. A nomadic version would keep WiMAX-enabled devices connected over large areas, much like todays cell phones, WiMax is (802.16a) and Wi-Fi (802.11a/g)
WWAN

3G is currently the worlds best connection method when it comes to mobile phones, and especially mobile Internet. 3G stands for 3rd generation as it is just that in terms of the evolutionary path of the mobile phone industry. 4G means 4th generation. This is a set of standard that is being developed as a future successor of 3G in the very near future. The biggest difference between the two is in the existence of compliant technologies. There are a bunch of technologies that fall under 3G, including WCDMA, EV-DO, and HSPA among others. Although a lot of mobile phone companies are quick to dub their technologies as 4G, such as LTE, WiMax, and UMB, none of these are actually compliant to the specifications set forth by the 4G standard. These technologies are often referred to as Pre-4G or 3.9G.
Page | 1

Assignments 1

4G speeds are meant to exceed that of 3G. Current 3G speeds are topped out at 14Mbps downlink and 5.8Mbps uplink. To be able to qualify as a 4G technology, speeds of up to 100Mbps must be reached for a moving user and 1Gbps for a stationary user. So far, these speeds are only reachable with wired LANs.
WPAN

Ultra-wide band wireless radios send short signal pulses over a broad spectrum. For example, a UWB signal centered at 5 GHz typically extends acrosws 4 GHz and 6 GHz. The wide signal allows UWB to commonly support high wireless data rates of 480 Mbps up to 1.6 Gbps at distances up to a few meters. At longer distances, UWB data rates drop considerably. One way to share wireless high-definition video across a home network is via UWB connections. As an alternative to Wi-Fi, UWB's higher bandwidth links can better handle large volumes of content. Several industry standards for wireless video streaming compete with UWB including Wireless HD (WiHD) and Wireless High Definition Interface (WHDI). Because its radios require low power to operate, UWB technology can work well in Bluetooth devices. While Bluetooth 1.0 and 2.0 did not utilize UWB, newer high-speed versions of Bluetooth may. The limited range of UWB signals preclude it being used for direct connections to Internet hotspots. However, some industry efforts have existed to enable cell phones with UWB for peer-to-peer applications

Identify available functionalities to support adaptability


WLAN

Wi-Fi searching application will aware there is no capability of wireless bored band facility when the user is not in the Wi-Fi range , Wi-Fi application also notify when the user come in to the Wifi range Priority on Wi-Fi LAN connection over 3G broadband connections.

Page | 2

Assignments 1

WWAN

Allow video calls when 3G network coverage is available.

WPAN

When mobile phone user use blue-tooth head set if he is not in the going way from the blue-tooth area , application is notify it user to the before leaving the blue-tooth area

Find APIs available for application awareness in Android


WLAN

android.net.wifi Provides classes to manage Wi-Fi functionality on the device. The Wi-Fi APIs provide a means by which applications can communicate with the lowerlevel wireless stack that provides Wi-Fi network access. Almost all information from the device supplicant is available, including the connected network's link speed, IP address, negotiation state, and more, plus information about other networks that are available. Some other API features include the ability to scan, add, save, terminate and initiate Wi-Fi connections.
WWAN

WPAN

All of the Bluetooth APIs are available in the android.bluetoothpackage. Here's a summary of the classes and interfaces you will need to create Bluetooth connections: The Bluetooth APIs let applications: Scan for other Bluetooth devices
Page | 3

Assignments 1

Query the local Bluetooth adapter for paired Bluetooth devices Establish RFCOMM channels/sockets Connect to specified sockets on other devices Transfer data to and from other devices

Write simple code samples to demonstrate Application Awareness capabilities


WLAN Android Wifi Signal Strength

public class WiFiScanReceiver extends BroadcastReceiver { private static final String TAG = "WiFiScanReceiver"; WiFiDemo wifiDemo; public WiFiScanReceiver(WiFiDemo wifiDemo) { super(); this.wifiDemo = wifiDemo; } @Override public void onReceive(Context c, Intent intent) { List<ScanResult> results = wifiDemo.wifi.getScanResults(); ScanResult bestSignal = null; for (ScanResult result : results) { if (bestSignal == null || WifiManager.compareSignalLevel(bestSignal.level, result.level) < 0) bestSignal = result; } String message = String.format("%s networks found. %s is the strongest.", results.size(), bestSignal.SSID); Toast.makeText(wifiDemo, message, Toast.LENGTH_LONG).show(); Log.d(TAG, "onReceive() message: " + message);
Page | 4

Assignments 1

} }

WWAN

WPAN

Enable Bluetooth Next, you need to ensure that Bluetooth is enabled. Call isEnabled() to check whether Bluetooth is currently enable. If this method returns false, then Bluetooth is disabled. To request that Bluetooth be enabled, call startActivityForResult() with the ACTION_REQUEST_ENABLE action Intent. This will issue a request to enable Bluetooth through the system settings (without stopping your application). For example:

if (!mBluetoothAdapter.isEnabled()) { Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT); }

Page | 5

You might also like