



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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
1 / 6
This page cannot be seen from the preview
Don't miss anything!




18 | P a g e
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
The group information, i.e. the group members names and registration numbers are shown on a panel.
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.
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
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.
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.
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’.
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.
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.
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.