Вы находитесь на странице: 1из 27

PARUL POLYTECHNIC INSTITUTE

INFORMATION TECHNOLOGY DEPARTMENT


SUB CODE: SUBJECT NAME: MOBLE COMPUTING

PRACTICAL-1

AIM: 1. To understand architecture of Mobile computing

Mobile Computing’s Architecture is based on the number of the Functions. The O.S. is one
of them. An Operating System is required to run the software components on the Hardware. The
middleware components will deployed in mobile devices. It has also a protocols and layers structure,
which used for transmission and reception of data in a network of the mobile Devices and systems.
Mobile Computing Architecture has Different Areas, which is listed below.
• Programming Languages
• Operating Systems
• Middlewares
• Architectural Layers
• Protocols
• Layers

1. Programming Languages:
A variety of programming languages is used in the mobile computing architecture.
One popular language for the mobile devices is Java, due to its platform independent
characteristics. Java uses its own compiler. (J2ME and JavaCard are most used languages in
mobile devices as a part of Java.)

2. Operating Systems:
An Operating System enables the user to run an application without considering the
hardware specification and functionalities. The OS provides management functions for tasks
and memory, also for the scheduling multiple tasks in system.
An OS provides the communication between different layers of the hardware devices.

3. Middleware:
Middleware are the software components that link the application components with
the network distributed components. Here listed the few examples of it.
• To Discover the nearby Bluetooth Device.
• To Discover the nearby hot spot
• To Achieve device synchronization with the server or an enterprise server
• To Retrieve data from a network database
• For Service Discovery
• For Adaptation of the application to the Platform and services availability

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 1
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

4. Architectural Layers:
It deals with defining various layers between the user applications, interfaces, device
and network hardware. A well-defined architecture is necessary for Systematic
Computations and access to data and software objects in the layers. An application deploys
the software components and APIs. The Client APIs can b considered at a layer in the
architecture.
The middleware components layers deals with the number of services. And OS is a
layer in between the application and the Hardware. It facilitates to running the Program,
hiding the h/w information and provides many O.S. functions. (An application can use
functions directly.)

5. Protocols:
Interchanges between two diversified and distributed components need protocols and
standards. MC services use a number of mobile Communication protocols like
GSM900/1800/1900, UMTS, WPAN, etc.

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 2
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

6. Layers:
There are different layers in network interchange of information, like WAP protocols
Layers. It also follows OSI 7 layers format.

SR Type of Layers For purpose Example


No.
1 Physical Sending & Receiving TDMA, CDMA
Signals technology
2 Data Link --- Multiplexing

3 Networking Linking to the ----


Destination
4 Wireless Transport Layer Security Establishing End-to-End ---
Connectivity
5 Wireless Transaction Protocol --- ---

6 Wireless Session Protocol --- ---

7 Wireless Application Environment Running web application Mobile e-business

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 3
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

PRACTICAL-2

AIM: 2. To setup wireless LAN.

You can use a wireless network (WLAN) to share Internet access, files, printers,
game consoles, and other devices among all the computers in your home. After you’ve
completed the initial wireless router setup and added your computers and devices to the
network, you can use your home network to surf the web or to play online games—whether
you're sitting in your living room or relaxing in your backyard. It's easier than ever to set up
a wireless network.

HOW YO SETUP?

The Windows 7 operating system fully supports wireless networking. For Windows
Vista users, we recommend installing Windows Vista Service Pack 2. For Windows XP
users, we recommend Windows XP Service Pack 2.

A broadband (DSL or cable) Internet connection to set up a wireless network, you


need a broadband Internet connection provided by an Internet service provider (ISP). Two
common broadband technologies are 1) Digital Subscriber Line (DSL) and 2) Cable
technology. These require a DSL modem or a cable modem.

• A router converts the signals coming across your Internet connection into a wireless
broadcast, sort of like a cordless phone base station. Newer DSL and cable modems come
with integrated wireless networking capability and are called modem routers. If you do need
to purchase a wireless router, be sure that you buy a wireless router and not a wireless
access point. The Linksys router is a popular router for wireless networks as it is simple to
set up. The 802.11G or 802.11N is the best as they offer excellent performance and are
compatible with almost everything. This is called an ad hoc network.

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 4
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

• Follow these steps to set up your wireless network.

1. Connect to the Internet


Make sure that your Internet connection and your DSL or cable modem are working.
Your wireless network depends on this connection.

2. Connect your wireless router


These are the steps for connecting a stand-alone wireless router to your DSL modem
or cable modem. If you have a modem router, follow your ISP’s instructions for connecting
your network.

• First, locate your cable modem or DSL modem and unplug it to turn it off.

Next, connect your wireless router to your modem. Your modem should stay
connected directly to the Internet. Later, after you've hooked everything up, your computer
will wirelessly connect to your router, and the router will send communications through
your modem to the Internet.

Next, connect your router to your modem:

[ Note: The instructions below apply to a Linksys wireless router. The ports on your router
may be labeled differently, and the images may look different on your router. Check the
documentation that came with your equipment for additional assistance. Or do a Bing search
on “(your manufacturer/model) wireless router setup” to find images and instructions. ]

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 5
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

• If you currently have your computer connected directly to your modem:


Unplug the network cable from the back of your computer, and plug it into the port labeled
Internet, WAN, or WLAN on the back of your router.
• If you do not currently have a computer connected to the Internet: Plug
one end of a network cable (included with your router) into your modem, and plug the other
end of the network cable into the Internet, WAN, or WLAN port on your wireless router.
• If you currently have your computer connected to a router: Unplug the
network cable connected to the Internet, WAN, or WLAN port from your current router, and
plug this end of the cable into the Internet, WAN, or WLAN port on your wireless router.
Then, unplug any other network cables, and plug them into the available ports on your
wireless router. You no longer need your original router, because your new wireless router
replaces it.

Next, plug in and turn on your cable or DSL modem. Wait a few minutes to give it
time to connect to the Internet, and then plug in and turn on your wireless router. After a
minute, the Internet, WAN, or WLAN light on your wireless router should light up,
indicating that it has successfully connected to your modem.

3. Configure your wireless router

Using the network cable that came with your wireless router, you should temporarily
connect your computer to one of the open network ports on your wireless router (any port
that isn't labeled Internet, WAN, or WLAN). If you need to, turn your computer on. It should
automatically connect to your router.

Next, open Internet Explorer and type in the URL or address to configure your router.

[NOTE: Do this on the computer that you are using to set up your wireless network. The
computer automatically links you to the router’s page. If you type the router’s URL on a
different computer, typing the address in the navigation bar will not take you to your
router’s configuration page.]

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 6
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

On the router configuration page, you might be prompted for a password. The address
and password you use varies depending on what type of router you have, so refer to the
instructions included with your router or on the manufacturer’s website.

For quick reference, this table shows the default addresses, user names, and
passwords for some common router manufacturers. If the address is not listed here, you can
read the documentation that came with your router or go to the manufacturer's webpage to
find it. There may be multiple website addresses you can use.

Router Address Username Password

3Com http://192.168.1.1 admin admin


D-Link http://192.168.0.1 admin admin
Linksys http://192.168.1.1 admin admin
Microsoft http://192.168.2.1 admin admin
Broadband
Netgear http://192.168.0.1 admin password
Actiontec http://192.168.0.1 username password

Internet Explorer shows your router's configuration page, along with the modem IP
address and other information. Most of the default settings should be fine, but you need to
configure three things:

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 7
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

Your wireless network name, known as the SSID. This name identifies your
network, and it appears in a list of available wireless networks. You should change the
default SSID that your ISP provided and give your network a unique name that none of your
neighbors are using. This helps you identify your network, and it can help keep your
wireless network secure by preventing it from overlapping with other wireless networks that
might be using the default SSID.

Wi-Fi Protected Access (WPA or WPA2), which can help protect your wireless
network. It’s important to help secure your wireless network by setting up a network
security key, which turns on encryption. With encryption, people can't connect to your
network without the security key, and all information sent across your network is encrypted
so that only computers with the key to decrypt the information can read it. This can help
prevent attempts to access your network and files without your permission. Wi-Fi Protected
Access (WPA or WPA2) is the recommended wireless network encryption method.
Wireless encryption (WEP) is not as secure. Windows 7, Windows Vista Service Pack 2,
and Windows XP support WPA2. When you set up most routers are asked to provide a
password phrase that the router uses to generate several keys. Make sure that your password
phrase is unique and long. Some routers and modem routers now come with a function
called Quick Security Setup (or QSS) that automatically issues you a key when you press a
button on the router. Be sure to keep a hard copy and a digital copy of your network security
key and password phrase, in case you lose or misplace them. You can recover a lost network
key or reset it on your router, but these are complicated processes that are different for every
router and they sometimes entail setting up your network again.

Your administrative password, which controls your wireless network. Just like
any other password, it should not be a word that you can find in the dictionary, and it should
be a combination of letters, numbers, and symbols. Be sure to save a hard copy and a digital
copy of this password, too, because you'll need it if you ever have to change your router's
settings.

The exact steps you follow to configure these settings will vary depending on the type
of router you have. After each configuration setting, be sure to click Save Settings, Apply,
or OK to save your changes.

Now, before connecting your computers and devices to the network, you should
disconnect the wireless network cable from your computer.

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 8
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

4. Connect your computers, printers, and other devices to the


wireless network
You can connect multiple computers, printers, and many other peripheral devices,
such as an Xbox, Xbox 360, TV, cell phone, iTouch, or iPad, to your network. Before you
connect them to your network, make sure that the computer or device you want to add has
built-in wireless networking or a network adapter. Many newer devices have built-in
wireless capability. If the computer or device you want to add does not have built-in
wireless network support, plug the network adapter into your USB port and place the
antenna on top of your computer (in the case of a desktop computer) or insert the network
adapter into an empty PC card slot (in the case of a laptop). Windows automatically detects
the new adapter and may prompt you to insert the CD that came with your adapter. The on-
screen instructions guide you through the configuration process.

5. Share files, printers, and more


Now that your computers and devices are connected, you can begin sharing files,
printers, games, and much more. One of the top reasons for setting up a home network is to
share a printer. Another is to share files. The steps for doing this, however, aren’t always
obvious.

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 9
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

PRACTICAL-3

AIM: 3. To understand Mobile Transport Layer.

The Transport Layer provides end-to-end communication services for applications


within a layered architecture of network components and protocols. The transport layer
provides convenient services such as connection-oriented data stream support, reliability,
flow control, and multiplexing.

Transport layers are contained in both the

• TCP/IP model, which is the foundation of the Internet,


• Open Systems Interconnection (OSI) model of general networking.

The definitions of the Transport Layer are slightly different in these two models. This
article primarily refers to the TCP/IP model, in which TCP is largely for a convenient
application programming interface to internet hosts, as opposed to the OSI model definition
of the Transport Layer.

The most well-known transport protocol is the Transmission Control Protocol (TCP).
It lent its name to the title of the entire Internet Protocol Suite, TCP/IP. It is used for
connection-oriented transmissions, whereas the connectionless User Datagram Protocol
(UDP) is used for simpler messaging transmissions. TCP is the more complex protocol, due
to its stateful design incorporating reliable transmission and data stream services. Other
prominent protocols in this group are the Datagram Congestion Control Protocol (DCCP)
and the Stream Control Transmission Protocol (SCTP).

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 10
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

PRACTICAL-4

AIM: 4. To understand Mobile Network Layer.

DESIGNING:

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 11
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

CODING:

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 12
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

Private Sub cmdcircle_Click()


Shape1.Shape = 3
End Sub

Private Sub cmdexit_Click()


End
End Sub

Private Sub cmdline_Click()


Shape1.Shape = 0
End Sub

Private Sub cmdovl_Click()


Shape1.Shape = 2
End Sub

Private Sub cmdscircle_Click()


Shape1.Shape = 1
End Sub

Private Sub Command1_Click()


Shape1.Shape = 4
End Sub

Private Sub Command2_Click()


Shape1.Shape = 5
End

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 13
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

OUTPUT:

PRACTICAL-5

AIM: 5. To understand Mobile Languages

DESIGNING:

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 14
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

CODING:

Private Sub cmdstart_Click()


starttime = Now
Timer1.Enabled = True
Prepared by: Gandhi Harshit A
LAB MANUAL, REV: 00 PAGE NO: 15
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

End Sub

Private Sub cmdstop_Click()


Timer1.Enabled = False

End Sub

Private Sub Command2_Click()


End
End Sub

Private Sub Timer1_Timer()


Label1.Caption = Format$(Now - starttime, "HH:MM:SS")

End Sub

OUTPUT:

PRACTICAL-6

AIM: 6. To understand Mobile Operating Systems

CODING:

Private sub Form_Load()


Dim w1 as Integer
Do

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 16
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

w1=Inputbox(“Enter the week day”)


if w1>0 and w1<0 then
Select case w1
Case1
Msgbox”This is Sunday”

Case2
Msgbox”This is Monday”

Case3
Msgbox”This is Tuesday”

Case4
Msgbox”This is Wednesday”

Case5
Msgbox”This is Thursday”

Case6
Msgbox”This is Friday”

Case7
Msgbox”This is Saturday”

Case else
Msgbox”This is Sunday”

End select
End if
Loop while not w1>0 and w1<7

End sub

OUTPUT:

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 17
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

PRACTICAL-7

AIM: 7. To study call processing in CDMA Mobile Technology

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 18
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

EX. Registration Form which displays all fields entry on Submit button’s Click event.

PROGRAM:
Private Sub Check1_Click()
txtTrackHobbies.Text = ""
txtTrackHobbies.Text = txtTrackHobbies.Text + "," + "Reading"
End Sub

Private Sub Check2_Click()


txtTrackHobbies.Text = txtTrackHobbies.Text + "," + "Singing"
End Sub

Private Sub Check4_Click()


txtTrackHobbies.Text = txtTrackHobbies.Text + "," + "Painting"
End Sub

Private Sub chkHobbie4_Click()


txtTrackHobbies.Text = txtTrackHobbies.Text + "," + "Surfing"
End Sub

Private Sub cmbCountry_Click()


lstState.Clear
If cmbCountry.Text = "India" Then
lstState.AddItem "Gujarat"
lstState.AddItem "Maharastra"
lstState.AddItem "UP"
lstState.AddItem "MP"
End If
If cmbCountry.Text = "USA" Then
lstState.AddItem "NJ"
lstState.AddItem "Ohio"
lstState.AddItem "WD"
End If
If cmbCountry.Text = "UK" Then

lstState.AddItem "Warwickshier"
'lstState.AddItem ""
End If
End Sub

Private Sub cmdSubmit_Click()


List1.Clear

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 19
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

'List1.AddItem ("First Name " + " " + txtFirstName.Text + " " + txtLastName.Text + " " +
txtTrackGender.Text + " " + txtTrackHobbies.Text + " " + cmbCountry.Text + " " + lstState.Text)
List1.AddItem "First Name :" + " " + txtFirstName.Text
List1.AddItem "Last Name : " + " " + txtLastName.Text
List1.AddItem "Gender:" + " " + txtTrackGender.Text
'List1.AddItem "Hobbies:" + " " + txtTrackHobbies.Text
'List1.AddItem "Country:" + " " + cmbCountry.Text
'List1.AddItem "State :" + " " + lstState.Text
List1.AddItem "Hobbies:"
If Check1.Value = 1 Then
List1.AddItem " " + Check1.Caption
End If
If Check2.Value = 1 Then
List1.AddItem " " + Check2.Caption
End If
If chkHobbie4.Value = 1 Then
List1.AddItem " " + chkHobbie4.Caption
End If
If Check4.Value = 1 Then
List1.AddItem " " + Check4.Caption
End If
List1.AddItem "Country:" + " " + cmbCountry.Text
List1.AddItem "State :" + " " + lstState.Text
End Sub

Private Sub Form_Load()


cmbCountry.AddItem "India"
cmbCountry.AddItem "USA"
cmbCountry.AddItem "UK"
End Sub
Private Sub optGender_Click(Index As Integer)
txtTrackGender.Text = "Female"
End Sub

Private Sub optGender2_Click(Index As Integer)


txtTrackGender.Text = "Male"
End Sub

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 20
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 21
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

PRACTICAL-7

AIM:. Data Transfer with two list box.

DESIGN:

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 22
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

Program:

Private sub Command1_click ()


List2.Additem (List1.Text)
List1.Removeitem (List1.Listindex)
End sub

Private sub Command2_click ()


List1.Additem (List2.Text)
List1.Removeitem (List2.Listindex)
End sub

Private sub Command3_click ()


List1.Additem (Text1.Text)
Text1.Text=””
End sub

Private sub Command4_click ()


List1.Clear
End sub

Private sub Command5_click ()


List2.Additem (Text2.Text)
Text2.Text=””
End sub

Private sub Command6_click ()


List2.Removeitem
End sub

Private sub Command7_click ()


List2.Clear
End sub

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 23
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 24
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

PRACTICAL-8

4. DEVLOPE A MENU WITH MDI FORM.

DESIGN:

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 25
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

PROGRAM:

Private Sub Calculator_Click()


frmcalc.Show
End Sub

Private Sub MDIForm_Load()

End Sub

Private Sub Registration_Click()


frmreg.Show
End Sub

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 26
PARUL POLYTECHNIC INSTITUTE
INFORMATION TECHNOLOGY DEPARTMENT
SUB CODE: SUBJECT NAME: MOBLE COMPUTING

Prepared by: Gandhi Harshit A


LAB MANUAL, REV: 00 PAGE NO: 27

Вам также может понравиться