Wednesday, 22 February 2012

Tutorial VB 3: Understanding Dialogs and Menus


In this tutorial sharing about Menus and Dialogs. So, let start designing a simple
Notpad application. Please notice that this tutorial focuses only on the controls not the code.


Tuesday, 21 February 2012

Week 5: Create user-warden interface using Visual basic 6.0





Objective:
Design the form layout with coding for main menu interface

Content / Procedure:

  • Create interface in the form layout according the requirement
  • Key-in the coding for the form layout
  • Compile and start running to simulate

Result and Analysis:
This interface is the main menu after log in the system. It give the warden as user get information summary for the system. Some the information such as total report, report sorted by different block, satus report and also the notification for new report. Function button at the bottom are linking button to next interface . Vb component   have been use  such as command button, frame and label. Command button use as link button to the next interfaces. For the frame, it use to create some interactive and meanwhile label use for notification and all the report statistic.

Conclusions:
For the conclusion, created a button that known as the main menu interface for monitoring overall of the system by Warden.



Sunday, 19 February 2012

Week 4: Create user-warden interface using Visual basic 6.0


Objective:
Design the form layout with coding for complaint report interface.

Content / Procedure:

  • Create interface in the form layout according the requirement
  • Key-in the coding for the form layout
  • Compile and start running to simulate

Result and Analysis:
Generally about the interface- this interface receiving the complaint from user. From this interface layout some information such as the room no got problem, status report, user phone number that make the report, user message deliver to the warden. In other hand warden able to assign the technician/ maintenance to make some work for the report. Warden can type the work order to the technician or may forward all the report that receive from user/student.

Coding for the interface :
Form_load( )
.Commport=2
.setting=115200,N,8,1
.Handshake=ComRTS
.RTSEnable=True
.Rthreshold=1
ImputMode=ComInputModeText
InputLen=300
Portopen=True
End with

Command_Click( )
MsComma1.output="AT"&VbCrLf
sleep 500
MSComma1.output="AT+CMGF=1"&VbCrLf
sleep 500
MSComm1.output="AT+CMGF="&Chr(34)&TextNumber.Text&Chr(34)&VbCrLf
sleep 1000
MSComm1.ouput=Textmessage.Text&Chr(26)
Sleep 2000

Conclusions:
As the conclusion stated that the Complaint report interface, it use for warden to monitor the report from user and assigning the technician to make work.


Saturday, 18 February 2012

Tutorial VB 2: Understanding controls - buttons and textboxes


In this tutorial will show  how to develop a simple calculator application using VB.NET, and examine some controls, and their properties. These are the form, text box, and command button.


Part 1

Part 2

Part 3

Part 4

Part 5

Tutorial VB 1: Understanding the IDE


In this tutorial, understand a little bit about the IDE, and what does it provide, so later on it will be easier for us to work on applications.


Thursday, 16 February 2012

Week 3: Create user-warden interface using Visual basic 6.0



Objective:

Design the form layout with coding for SMS setting interface

Content / Procedure:
  • Create interface in the form layout according the requirement
  • Key-in the coding for the form layout
  • Compile and start running to simulate


Result and Analysis:

In order to create SMS setting, a few VB6.0 component been use such as command button, text and combo box. For this interface, generally is all about the technician information or data, from here warden able to take a look phone number of each technician that has been store in their database. Also this interface allows the warden to add new data maybe for new maintenance purpose and remove the data of maintenance if warden didn’t needed. The combo box component has been use for display all the dropdown list of the mainteinance name. From there the warden able to select the name desired. After all, once warden select the name, in the text component will show the phone number of maintenance. The number taken from the database storage after added the data in database. For the command button there have 2 functions, 1st to add new mai data and the 2nd to remove the technician data selected. For the command button 1 when user or warden selects the transformation to the other form of VB will happen. The command button 2 for remove function. Before user or warden remove technician data from the data base, user need to select at the combo box component as per required.

Conclusions:

The SMS setting interface for adding, checking and removing all the technician data.

Figure 1 : SMS setting layout for technician details

Figure 2 : Add details and remove details

Figure 3 : Complete Layout

Wednesday, 8 February 2012

Week 2: Set up LAN/Wi-LAN



Objective:
  • Set up network using wireless router
  • Check connectivity
Content / Procedure:
  • Plug in cable cat 5e from server to LAN port 1 at router
  • Set IP address 192.168.1.1 for server 
  • Ping server IP from client Laptop to check conectivity
Result and Analysis:

Server will show 100 mbps when get LAN connectivity.  After identify connectivity, set IP address 192.168.1.1 manually for server in network connection then go to internet protocol properties(TCP/IP) . Set subnet mask 255.255.255.0 then finish the process. To check weather connectivity can be establish or not, from client laptop attach cat 5 to LAN port 2 at router . Client laptop, open the command prompt then ping server IP 192.168.1.1. If client can ping server IP the result should get reply from 192.168.1.1 :bytes 32 times<1ms TTL=128 and Ping statistic for 192.168.1.1 packects : sent=4 receive =4 loss=0 from. From the result, verification the connection establish able to make.

Conclusions:
Checking data packet from client to server shown the connectivity of server in the network that created.



Figure1: LAN properties


Figure 2: TCP/IP


Week 1 : Testing and commissioning GSM/GPRS modem




Objective:
  • To establish the connection between server and the GSM/GPRS modem
  • To test the command and sending message to mobile phone using hyper terminal

Content / Procedure:
  • Use USB converter to serial port to link up server and GSM
  • Establish the connection using hyper terminal 
  • Set up communication port for GSM/GPRS modem
  • Set up parameter for the communication properties
  • Apply the AT command 

Result / Analysis:

The USB converter has been use in this project because of the GSM/GPRS modem itself  only be able to connect with serial. So the USB converter to serial extremely need to connect the server to GSM/GPRS modem. After hardware been connected, hyper terminal application take over to drive the connection. To make sure the connectionreally establish, hardware and software communication port of number must be same. Communication port known as COM port can verify through the device manager. From there, the number of COM port will be know. Then later on, set up the connection using the hyper terminal same with. In hyper terminal, to make sure all the parameter in properties of connection according to require. The most important parameter are baundrate value is 115200 bits per sec should be select and flow control must be select to hardware. This parameter is required in order to establish the connection . ASCII format also need to set in ASCII set up in order ASCII format working. Make sure all the parameter selected as required. After all the connection and parameter has been setup, the command can be apply in hyper terminal window. To see weather GSM/GPRS modem connection status, command AT+CMGS to send be use to check this matter. Hyper terminal will show 'OK' if the message been send to phone target. If hyper terminal not show 'OK' means the message not deliver to target. It may cause of the SIM card password still enable. It needs to disable the password first using command AT+CPIN in order message can be deliver to target. The message is indicating that all the connection of GSM/GPRS modem with server success.

Conclusion:
Hyper terminal is the application we can use to give a command to send a message to mobile phone. The connection consider estalish when the mobile phone able to receive the message from the GSM/GPRS modem exactly same message send from the hyper terminal.



Figure 1: Modem MOD 9001D RS232 GSM/GPRS Modem



Module connection with Hyper Terminal.

1. To connect server to GSM/GPRS modem, RS232 converter has been use to establish the connection.
Once the server has been connect to GSM/GPRS modem through the converter, check the computer device  manager to verify the port connected with the GSM/GPRS modem.

(1). Establish connection.

 -  Establish or Open Hyper Terminal from All Programs --> Accessories --> Communication --> Hyper Terminal
 -  Enter the Name the connection and select the icon as figure 2
 -  Basically this step only for testing the command send to the GSM/GPRS modem through the server


         Figure 2: Connection Description




(2). Setting up usage port.



Figure 4: Device manager



(3). Setting up port parameters.




(4). Setting up property in File Menu of Hyper Terminal




  2.  Input word “AT” then press “Enter” key, it should be response word “OK” means work property. All  commands are executed by pressing “Enter” key.







References: VB.Net programming




VB.NET Programming By mkaatr

This ebook is a quick introduction to VB.NET programming language. It explains the very basics of the language with screen shots showing what is expected to see during development process.


http://mka-soft.com/index.php/ebooks-download

Overview of the project




The development of i- Hostel management system will contain of 4 users Admin, Maintenance, Warden and Student.  Beside aided by the web base system itself this project also using SMS for maintaining hostel purposes. This SMS will be using by the students for reporting any of damaged that happen in the hostel or specifically in the students room itself. The SMS is sent by GSM that been used in this system. The GSM method been used to estimate the maintaining problem to the hostel and help the management such as Warden to manage the problem. This method will also help the student for easy doing their report if any damaged happen to them and also help the Warden and Maintenance to get the report as soon as possible beside to check manually.