Download This section consists of 5 questions (8 marks each) and

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Recursive InterNetwork Architecture (RINA) wikipedia , lookup

Lag wikipedia , lookup

Net neutrality law wikipedia , lookup

Zero-configuration networking wikipedia , lookup

Cracking of wireless networks wikipedia , lookup

List of wireless community networks by region wikipedia , lookup

Network tap wikipedia , lookup

Airborne Networking wikipedia , lookup

UniPro protocol stack wikipedia , lookup

Transcript
Section B : Compulsory Questions
Instruction: This section consists of 5 questions (8 marks each) and carries 40% of the
total examination marks. Attempt all questions in this section. Avoid excess
time spent on each question. Suggested time to complete this section: 50
minutes.
B1. a) The following diagram illustrates different embedded applications. Identify the four
categories of embedded applications: (A), (B), (C) and (D).
(4 marks)
b) State any four reasons of converging data networks and control networks.
(4 marks)
B2. The realms of the LonWorks internet server is stored in the file named “WebParam.dat”.
The important information in the file is shown below:
a) What is this file used for?
(2 marks)
b) Modify the file to add the following information of a tenant who lives on the 4th floor:
user name: Peter
(6 marks)
password: jan2009
allowed ip address: 10.1.4.8
Automated Network Technology & Applications (ENG3510) Jan 2009
Page 3 of 8
B3. A WAP network is shown in the following figure:
a) State the full name for the two technical terms, WAP and WML.
b) Describe the operation of a WAP network.
c) Which software is used to read WML?
d) What is the name of WML pages?
B4. a) For the RFID system below, identify the components (A) and (B).
b) State any three capabilities of the component (A).
(2 marks)
(4 marks)
(1 mark)
(1 mark)
(2 marks)
(6 marks)
B5. a) State any four features of gateway used in a Home network.
(4 marks)
b) In a UPnP network, describe what a control point will do when it discovers a new
device connected to the network.
(4 marks)
Automated Network Technology & Applications (ENG3510) Jan 2009
Page 4 of 8
Section C : Long Questions
Instruction: This section consists of 3 questions (20 marks each) and carries 40% of the
total examination marks. Attempt any 2 questions in this section. Suggested
time to complete this section: 50 minutes.
C1. a) Name the four areas in the development of Continental Automated Buildings
Association (CABA) XML Guideline for the use of internet communications
standards in broad facility management.
(4 marks)
b) For the family of XML technologies, state the functions of parser, schema and style
sheet.
(3 marks)
c) For the XML document and its corresponding style sheet below, sketch the output
display when the XML document is read in a web browser.
(6 marks)
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href =
"site.xsl"?>
<site>
<Loc Room="R101">
<setpoint>24</setpoint>
<temperature>25</temperature>
<aircon>on</aircon>
<light>on</light>
</Loc>
<Loc Room="R103">
<setpoint>20</setpoint>
<temperature>22</temperature>
<aircon>on</aircon>
<light>on</light>
</Loc>
<Loc Room="R102">
<setpoint>22</setpoint>
<temperature>24</temperature>
<aircon>off</aircon>
<light>on</light>
</Loc>
</site>
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head><title>System Status</title></head>
<body>
<H1> System Status </H1>
<table border="1">
<tr>
<th>temperature</th><th>setpoint</th><th>aircon</th>
</tr>
<xsl:for-each select="/site/Loc">
<xsl:sort select="temperature"/>
<xsl:if test="aircon = 'on'">
<tr>
<td><xsl:value-of select="temperature"/></td>
<td><xsl:value-of select="setpoint"/></td>
<td>"<xsl:value-of select="aircon"/>"</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
d) Complete the following XML schema for the XML document mentioned in part (c).
(7 marks)
<
(1)
>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Loc">
<xs:
(2)
>
<xs:sequence>
<xs:element name="setpoint" type="xs:integer"/>
<xs:element
(3)
>
<xs:element
(4)
>
<xs:element
(5)
>
</xs:sequence>
<xs:attribute
(6)
/>
</xs:
(2)
>
</xs:element>
<
(7)
>
Automated Network Technology & Applications (ENG3510) Jan 2009
Page 5 of 8
C2. A temperature monitoring system displays the measured temperature value, which is
obtained from by a telnet server through port 13 as shown in the telnet window below
(Fig. C2-1). You, being the system engineer, are responsible to write a VB.NET program
to provide a remote monitoring feature for the system in a PDA via WIFI link (Fig C2-2).
Fig. C2-1
a) What kind of project is created in the
VB.NET development?
(1 mark)
b) Sketch the system architecture. In your
sketch, clearly indicate the hardware used.
(6 marks)
c) Complete the following VB.NET program.
(13 marks)
Fig. C2-2
Sub Connect(ByVal serverIP As String, ByVal port As Int32)
(1a)
' Create a TcpClient.
' The client requires a TcpServer that is connected
' to the same address specified by the server and port combination.
Dim client As New System.Net. (2)
.
(3)
TextBox2.Text = "Connected"
Dim data(255) As [Byte]
' Get a client stream for reading and writing.
Dim stream As System.Net.Sockets.NetworkStream = client.GetStream()
' Buffer to store the response bytes.
data = New [Byte](255) {}
' String to store the response ASCII representation.
Dim responseData As String = String.Empty
(To be continued in next page)
Automated Network Technology & Applications (ENG3510) Jan 2009
Page 6 of 8
' Read the first batch of the TcpServer response bytes.
Dim bytes As Int32 = stream.Read(data, 0, data.Length)
responseData = System.Text.Encoding.ASCII.GetString(data, 0, bytes)
' Extract the temperature value from the data stream
TextBox3.Text = responseData.Substring(responseData.Length - 7, 5)
' Set the Textbox color to red if the temperature is lower than 22,
' to green otherwise
If
(4)
Then
(5)
Else
TextBox3.BackColor = System.Drawing.Color.Green
End If
' Close everything.
(6)
client.Close()
' close the stream
' close the tcpclient
Catch e As ArgumentNullException
TextBox2.Text = "ArgumentNullException: " + e.ToString()
Timer1.Enabled = False
Catch e As System.Net.Sockets.SocketException
TextBox2.Text = "SocketException: " + e.ToString()
Timer1.Enabled = False
(1b)
End Sub
Private Sub ConnectBut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles ConnectBut.Click
(7)
'Start get data timer
End Sub
Private Sub DisconnectBut_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles DisconnectBut.Click
(8)
'Stop get data timer
(9)
'Show the disconnect status
End Sub
Private Sub ExitBut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles ExitBut.Click
(10)
'End the program
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Timer1.Tick
(11)
'Connect to the telnet server and get data
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
(12)
'Set the get data timer to 1 second
'Set the default telnet server IP address
TextBox1.Text =
(13)
TextBox2.Text = ""
'Clear the content of status textbox
End Sub
Automated Network Technology & Applications (ENG3510) Jan 2009
Page 7 of 8
C3. The following diagram illustrates a Zigbee-based “mote” measurement network.
a) Identify the physical topology and briefly describe the properties of the network.
(2 marks)
b) Name the three devices (A), (B), (C) in the diagram and state their functions.(6 marks)
c) The following C code is the interface declaration of the mote sensor program using
the timer and LED indicators on the base board:
/* MyAppM.nc
*/
/**
* This module shows how to use the Timer and LED components
**/
module MyApp_TimerM {
provides {
interface StdControl;
}
uses {
interface Timer;
interface Leds;
}
}
Modify the declaration to use
(i) the sensor board,
(ii) the ADC on the sensor board to measure the light intensity, and
(iii) the serial port to send message.
d) Compare Zigbee and Bluetooth in terms of
(i) application focus,
(ii) speed,
(iii) network size, and
(iv) modulation method.
(4 marks)
(8 marks)
- End of Paper -
Automated Network Technology & Applications (ENG3510) Jan 2009
Page 8 of 8