IOT Lab File
IOT Lab File
PROGRAM: B.Tech(AI)
SEMESTER: 6
Step 5: After the Packet Tracer is launched select the Green button which shows Skills for
All
Step 6: After selecting Green Button, Log into the account with username and password
Using the Device-Type Selection Box, we add the following devices to the workspace. The
category and sub-category associated with the device are listed below:
= Cable Modem: Network Devices > WAN Emulation > Cable Modem
c. Enter the new name of the newly added device into the Display Name field: PC, Laptop,
and Cable Modem.
Step 3: Add the physical cabling between devices on the workspace.
Using the Device-Type Selection Box, add the physical cabling between devices on the
workspace.
a. The PC will need a copper straight-through cable to connect to the wireless router.
Using the Device-Type Selection Box, click Connections (lightning bolt icon). Select the
copper straight-through cable in the Device-Specific Selection Box and attach it to the
FastEthernet0 interface of the PC and the Ethernet 1 interface of the wireless router.
b. The wireless router will need a copper straight-through cable to connect to the cable
modem. Therefore we select the copper straight-through cable in the Device-Specific
Selection Box and attach it to the internet interface of the wireless router and the Port 1
interface of the cable modem.
c. The cable modem will need a Coaxial cable to connect to the internet cloud. So we
select the Coaxial cable in the Device-Specific Selection Box and attach it to the Port 0
interface of the cable modem and the Coaxial 7 interface of the internet cloud.
After both end devices are connected to the network, we verify connectivity to cisco.srv. The
PC and the Laptop will each be assigned an IP (Internet Protocol) address. Internet Protocol
is a set of rules for routing and addressing data on the internet. The IP addresses are used
to identify the devices on a network and allow the devices to connect and transfer data on a
network.
Select DHCP for the IP Configuration heading if you do not see an IP address for the IPv4
Address field. Observe the process as the PC is receiving an IP address from the DHCP
server.
DHCP stands for dynamic host configuration protocol. This protocol assigns IP addresses to
devices dynamically. In this simple network, the Wireless Router is configured to assign IP
addresses to devices that request IP addresses. If DHCP is disabled, you will need to assign
an IP address and configure all the necessary information to communicate with other
devices on the network and the internet.
b. Close IP Configuration. In the Desktop tab, click Command Prompt.
At the prompt, enter ipconfig /all to review the IPv4 addressing information from the DHCP
server. The PC should have received an IPv4 address in the 1928.16.0.x range.
d. Test connectivity to the cisco.srv from the PC. From the command prompt, issue the
command ping cisco.srv. It may take a few seconds for the ping to return. Four replies
should be received.
1) Power off Laptop by clicking the power button on the side of the laptop.
2) Remove the currently installed Ethernet copper module by clicking on the module on the
side of the laptop and dragging it to the MODULES pane on the left of the laptop window.
3) Install the wireless WPC300N module by clicking it in the MODULES pane and dragging
it to the empty module port on the side of the Laptop.
4) Power on the Laptop by clicking the Laptop power button again.
c. With the wireless module installed, connect the Laptop to the wireless network. Click
the Desktop tab and select the PC Wireless.
d. Select the Connect tab. After a slight delay, the wireless network HomeNetwork will be
visible in the list of wireless networks. Click Refresh if necessary to see the list of available
networks. Select the HomeNetwork. Click Connect.
e. Close PC Wireless. Select Web Browser in the Desktop tab. In the Web Browser,
navigate to cisco.srv.
EXPERIMENT 3
c. Click the 3G/4G Cell1 interface. Verify that the Smartphone has an IP address from the
cellular network.
d. Click Bluetooth in the left pane and check the On box for the Port status on the
Smartphone.
b. Select User-Laptop and click Pair. A pop-up window appears and asks for permission.
Click Yes. The two devices are connected via Bluetooth.
c. Return to the User-Laptop. In the Bluetooth panel of the Config tab, highlight
Smartphone and click Tether.
d. At the bottom pane of the Bluetooth configuration, notice that User-Laptop has now
obtained an IP address.
e. To test connectivity, navigate to office.srv. Click Desktop > Web Browser. Enter
office.srv in the URL field. You can fast forward time to speed up the process.
EXPERIMENT 4
h. Connect the other end of the cable to PunchDown1 on the Patch Panel in the
Equipment Cabinet. Click the Equipment Cabinet label in the lower right corner of the office.
d. Exit the Command Prompt. Open a Web Browser and navigate to office.srv. It should
be successful.
EXPERIMENT 5
a. In the Device-Type Selection box, click End Devices > Home. Add a Fan and a Door to
the workspace.
b. Change the display name of the fan to Fan.
c. Change the display name of the door to Door.
d. In the Wireless0 configuration for each device, notice that the SSID is already set to
HomeGateway and that each device received an IP address from the 192.168.25.x network.
You may need to click Fast Forward Time to speed up the process.
Step 3: Configure IoT devices to register with the Home Gateway server.
For each of the three IoT devices, click the Config tab, then Settings in the left panel, if
necessary. Scroll down to the IoT Server options list and click Home Gateway.
Step 4: Verify that the devices are now registered with the Home Gateway server.
From the Tablet, click the Desktop tab > IoT Monitor, and then click Login. You should see
entries for all three of the new IoT devices. Expand the entries to see details for the devices.
Try controlling the devices and look at the results in the workspace.
c. Use the default settings and click Login. A list of IoT devices registered to the Home
Gateway server is displayed.
Step 2: Register IoT devices to the IoT Server at home.com
a. To configure the ceiling fan to register with the new registration server, click Fan to
open the device configuration window.
b. Click the Config tab. Change the IoT Server type from Home Gateway to Remote
Server. Enter home.com as the Server Address. Enter home as the username and home as
the password. Click Connect to continue.
In the Physical Workspace there are containers. Each container, the intercity, city, buildings,
and wiring closets, all have their own set of environmental values. There are 24 default
environmental elements, such as temperature, rain, water level, wind speed, and snow.
Many devices, or Things, affect or respond to the environment in some way. A fire sprinkler
will raise the water level and humidity in a container. An old car will increase various gases
and ambient temperature when turned on. A smoke detector can be used to trigger an alarm
when the smoke in environment increases to a certain point.
a. To open the Environments window, click Environment (Shift+E) on the far right of the
Logical toolbar. The button displays a simulated 24-hour clock.
b. Explore the many environmental elements in the Intercity location.
c. Locate the Ambient Temperature element and notice that the temperature changes
throughout the simulated 24-hour day period.
d. Click Ambient Temperature to open the Ambient Temperature chart. If necessary, scroll
to the top of the Environments window to see the temperature fluctuations over time.
Part 2: Edit Environmental Elements
Step 1: Change to environment edit mode.
With the Ambient Temperature chart open, click Edit next to the Intercity location.
In the next screen, It will ask for some additional features, it is not mandatory to check this
box. Click on Next.
On the next screen, some checkboxes are populated, Check them as per your requirement.
Click on Next.
At this step, you can see installation taking place. The installation will take some time, wait
for it to properly install.
Once the installation gets completed you will see the following dialogue box. Click on Finish.
Upon Finish, the window will close, and You can see VMware Workstation installed icon on
your Desktop.
For the first time opening, if you have not entered the License key, then it will ask for a
license key. You can go for the trial version which is available free for 15 to 30 days. Click on
Continue. Make sure you have Admin rights for this in Windows.
At this stage, you will get the final installation message. Click on Finish.
Now you will get a new panel as shown below. Click browse and navigate to
contiki/examples/hello-world/hello-world.c and press Compile
Node Id 2
Sleep Cycle 8 Hz
Channel 26
Add motes: Add motes to the network grid area by clicking on Motes, then Add motes. Go to
Create a new mote type and then select the mote type from the drop down list. For current
experiment we choose sky mote.
.
Open collect view application: Go to tools and select collect view from drop down list and
then click on sky1, as shown in figure below.
Increase the distance between nodes manually and observe the effect of changing the
transmission range.
EXPERIMENT 9
Add motes: Add motes to the network grid area by clicking on Motes, then Add motes. Go
to Create a new mote type and then select the mote type from the drop down list. For current
experiment we choose sky mote.
Create one RPL sink: Create one RPL sink by browsing the link as shown in figure below.
Then click on compile and then create.
Create five RPL senders: Create another mote type as in previous step. We again choose
sky mote here. Then browse the programme for RPL sender as shown in figure below and
compile.
Start simulation: Start the simulation by using the simulation control window as shown in
figure below and observe the network. Here, sink node is shown by green colour and sender
nodes are depicted by orange colour. Node can be differentiated with different colours by
enabling the mote type option in view tab, present on top of network window.
Open collect view application: Go to tools and select collect view from drop down list and
then click on sky1, as shown in figure below.
This will lead to a window as shown in figure below. In some seconds, all the nodes in the
network will be added to collect view, as visible in left hand side of window.