SMS based fees payment system

DESCRIPTION

This project makes it possible for students to pay their fees through their cell phones. It is a client-server application that allows communication with a remote server via SMS. Students need send a message string format via SMS to a designated phone number linked to a MODEM attached to the remote server. The remote server reads the this message and confirms the payment if the content of the message is valid.

Order Now

ABSTRACT

In today’s modern world, computers are used in every facet of life. Computers are not used because they are smarter than we humans but because computers are faster and can easily be employed in solving problems that involve task automation and timely service delivery. Computers are flexible and can be made to execute any kind of task given that an appropriate software program (and hardware) is available for such task. In the field of information management, computers have become invaluable tools for effective management of data. Huge amounts of Information data can now be accessed or archived easily and quickly using a computer system running database software.  The project, which deals on information management, is a Computer/SMS based students’ fees payment system. It provides a means of remote fees payment through the use of SMS messaging. Students simply purchase scratch cards with a concealed pin code. The cost of the scratch cards covers the amount of the fees. The scratch cards can be scratched to reveal the pin code. The student can then send this pin code with some other information such as his/her registration number, department, and year – using a specific format, to a destination number. The destination number is the number of the SIM card used in the MODEM connected to a server computer running the project software. Once the MODEM receives the SMS sent by the student, the software reads this information and extracts the pin code, registration number, department and year data. The software authenticates the pin code, if the pin code is valid; the student’s payment is acknowledged and the information is then stored in a database for future reference. The software is entirely coded using Microsoft visual basic 6.0. Microsoft Access database is used as the main database engine. SMS interface is realized using a Huawei MTN USB data modem and communication with this MODEM is via AT commands.

DESIGN OBJECTIVES

In implementing this project, certain objectives were considered from the onset at the design phase. These are outlined below:

  1. The operation of the project should not have any distance limitation (except where there is no network coverage).
  2. It should work as a non line-of-sight (NLOS) device.
  3. It should be compatible with a variety of mobile phones.
  4. It should be able to function with any type of GSM network.

 

SOFTWARE DESIGN

The project comprises of two basic parts namely:

  • The hardware
  • The software

The hardware part of the project is basically the MTN Huawei fastlink MODEM.

The software design was developed using the basic principle of first drawing out the flow chart before writing the source code.

The objectives of the software design include;

  • To ensure that the memory footprint is as low as possible.
  • To ensure a user friendly and easy-to-setup-and-use software.
  • To reduce the number of errors to be debugged as much as possible.
  • To simplify the codes for easy understanding for future updates.

WORKING PRINCIPLE

The project is basically a software project. Everything that goes on in the program; controlling of the hardware, controlling of database, selecting different parts of text messages and processing them are all organized in this software program. The SMS information management system runs on a computer program called the SMS server, the SMS server has been designed to organize the text messages, process it and store the various parts of text messages in the database. Below is an image of the main program graphical user interface (GUI)

 

GUI of the SMS based fees payment system

GUI of the SMS based fees payment system

 

To aid explanation, the main areas of the graphical user interface have been labeled alphabetically. The software continuously polls the GSM MODEM to check if a new message has been received. If a new message is received, the software reads this message to see if it follows the appropriate format. The student who wishes to pay his / her fees must send an SMS using a particular message format. The user must send a message with the following format:

Fees (space) PIN (space) REG Number (space) Department (space) Year.

The software first checks for the word “FEES” in the message. If a message doesn’t start with the word “FEES”, the message is deleted and is not processed. If the message starts with “FEES”, the software proceeds to process the message. First it extracts the PIN, REG Number, Department and Year from the message and then displays this information on the data grid labeled A on the GUI (Image is shown above). This extracted information is also stored in the database. Also shown on the data grid, is the time and date the message was sent as well as the current status of the message. The status of the message tells if there was an error in the message or not. Errors in messages can arise from usage of invalid PINs, Reg number or incorrect message format. If all goes well, any received message is processed immediately and a reply message is sent to the user, acknowledging his / her fees payment. The “Delete Message” button (labeled B in the image above) can be used to delete selected received messages displayed on the data grid and also in the database. This button is active only when the MODEM check has been passed. The “Configure MODEM and Login” (Labeled C) is used to configure the MODEM and also change the administrator login username and password. Once the program is run, a login dialog box is displayed.

 

Login-dialog-of-the-fees-payment-system-project

Login dialog of the fees payment system project

 

A valid username and password must be entered to enable authorized use of the software. The default username is “admin” and the password is “me”. Clicking on the “Configure MODEM and Login” button displays the dialog box shown below.

Settings-dialog-of-the-fees-payment-system-project

Settings dialog of the fees payment system project

 

The combo box labeled “Enter Port Num” allows the user to set the communication port number of the MODEM. This port number is assigned automatically by windows when the MODEM is plugged into the computer USB port. The port number can be found under MODEM properties in device manager. After selecting a port number, the user must click the “check MODEM” button. Clicking this button allows the software to test for the presence of the MODEM on the selected port number. If a MODEM was found, the software notifies the user through a message box; also, on the main GUI, the MODEM status (labeled G) shows “OK” instead of “Error”. Once a MODEM has been detected, the software goes into full operation; continuously polling the MODEM for new messages and processing the messages. The “Generate PINs” button, when clicked, displays the “Manage PIN Codes” Dialog. This dialog provides a means of managing PIN codes used by the fees payment service. The pin codes are ten digit numbers generated using a random number function in visual basic. Below is an image of the “Manage PIN Codes” dialog.

PIN-codes-management-dialog-of-the-fees-payment-system-project

PIN codes management dialog of the fees payment system project

 

The dialog displays the status of pins; used or unused and also the date each pin was generated. To generate new Pin code, the user must enter the number of codes to generate and then click the “generate” button. Codes can also be deleted from the database by selecting them from the data grid, by status (used) or by date generated.  The “View Payments” button, when clicked, displays the “View payments” dialog. This dialog is shown in the image below. The view payments dialog displays a list of students stored in the database, whose payments where successful. Once a fees payment is successful, the software marks the pin code used for that payment as “USED”. This prevents multiple use of a pin code by several persons. At some point, the list of students can get too long that it might be difficult spotting a particular student’s information from the long list. To fix that problem, the list can be sorted using a group of options on the right side of the dialog. The list can be sorted by name, reg. number and by department.

The view payments dialog used to manage payment records

The view payments dialog used to manage payment records

 

Receipts can be printed as well. To print a receipt, click on the student information from the list and then click the “print button”. A message box will be displayed to confirm. Accepting this action brings up another dialog which allows the selected payment record to be printed on the default printer assigned to the computer.

 

 

 

 

I am an Electical and Electronics Engineer / web designer and developer based in Nigeria. ProjectGICS was conceived out of my passion for Electronic Circuits and anything Computer related. I believe there are many out there that share this passion and would love to take it to greater heights. ProjectGICS is dedicated to students, designers and hobbyists in the field of Electronics and Computer who are eager to learn electronics and computer designs. ProjectGICS is all about circuit designs, programming and construction of things that can be fun, lucrative and can help solve a problem. The Electronic Components and Kits Store allows you shop items for your projects; Allowing you bring your project ideas to life without limitations. I can't wait to hear from you on the successes you have achieved through ProjectGICS.

0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*