Graphical User Interface-Network Programming-Project (Bluetooth PAN) Report, Study Guides, Projects, Research of Network Programming

This is project report. It was submitted as part of project in Network Programming course to supervisor and course instructor was Prof. Tausiq Dasgupta at Babasaheb Bhimrao Ambedkar University. It includes: Graphical, User, Interface, Bluetooth, Implementation, PAN, GUI, Command, Matlab, Window

Typology: Study Guides, Projects, Research

2011/2012

Uploaded on 07/31/2012

dhanush
dhanush 🇮🇳

4

(3)

36 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Bluetooth PAN Implementation
GUI
18 | P a g e
Chapter 2: Graphical User Interface
For this network simulation, Graphical User Interface (GUI) seemed a much better
option, instead of writing commands in the command line interface. Using GUI makes
things simpler for the end user. On the other hand, use of command line interface can
be quite difficult and frustrating.
Matlab’s GUI designer can be accessed by writing the following command in the
command window:
>> guide
We stated with a blank GUI, with different buttons and text boxes for user to choose
different options and enter data. The final result is:
Figure 9: GUI for PAN implementation
In the following pages, we will explain the different elements of the GUI.
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Graphical User Interface-Network Programming-Project (Bluetooth PAN) Report and more Study Guides, Projects, Research Network Programming in PDF only on Docsity!

18 | P a g e

Chapter 2: Graphical User Interface

For this network simulation, Graphical User Interface (GUI) seemed a much better option, instead of writing commands in the command line interface. Using GUI makes things simpler for the end user. On the other hand, use of command line interface can be quite difficult and frustrating.

Matlab’s GUI designer can be accessed by writing the following command in the command window:

guide

We stated with a blank GUI, with different buttons and text boxes for user to choose different options and enter data. The final result is:

Figure 9: GUI for PAN implementation

In the following pages, we will explain the different elements of the GUI.

19 | P a g e

Group Information:

The group information, i.e. the group members names and registration numbers are shown on a panel.

Work Design Information:

The work design information, as mentioned in the former chapter is shown in a list box, inserted on a panel. The information in the list box can be read by using the scroll bar, provided by the list box.

Status Bar:

The status bar is created by using the edit text box. This text box shows the status of the network, connection authentication reports, assigned IP addresses, failures and errors. The tag given to this box is ‘edit1’.

21 | P a g e

Start Simulation Option:

This is a push button which is assigned the tag ‘start’. This starts the simulation by assigning a device an IP and declares it as the master of the piconet. Also the count for number of nodes, the structure containing each nodes’s Name, IP address and Pincode, and some flags are initialized.

New Connection Panel:

A panel is created for all the new connection information, this shows the pin generated by the Master device, the device name of the new device that is requesting for connection and the pincode that the slave device enters.

New Connection Option:

This option generates a random key that is displayed by the Master device for the requesting user for verification. The ‘New Connection’ push button’s tag is ‘newconn’ and the tag for the edit box that represents the Master generated pincode is ‘pin_code’.

Connect Option:

This option gets the information from the user, i.e. its pincode and name from the edit text boxes tagged as ‘pincode’ and ‘name’ respectively.

22 | P a g e

The push button, ‘Connect’ is assigned the tag ‘conn’ and in its function call back, first the serial number of the requesting user is checked, i.e. if its less than 8, since a piconet can have 7 slaves at the utmost.

If the above condition is satisfied, then it is further checked that the pincode entered by the user matches with the one displayed by the Master node. The connection is granted if this condition is true and the user is assigned an IP, and its name and pincode are stored in the nodes info structure. Otherwise, the connection is rejected.

Sending to Device Panel:

This panel is designed to get the name of the device, the user wants to send data to. It has an edit text box to get the name of the device and is given the tag ‘sending’. The push button ‘Send’ with tag ‘clisel’ sends the data to the selected device.

Termination of Connection Panel:

This panel is designed to get the name of the device, the user wants to terminate. It has an edit text box to get the name of the device and is given the tag ‘deviceterm’. The push button ‘Terminate Connection’ with tag ‘term’ terminates the connection of the selected device with the piconet and removes the selected node’s info from the nodes info structure.