REAL TIME SHIPMENT TRACKING SYSTEM USING RFID

This paper presents a viable system for online shipment tracking using RFID technology. It aims to find the location where exactly it is at an instance of time, from the time of shipment to the time of delivery. The system has a developed web-based database-driven application that facilities its management and provides useful information about the shipment. A complete prototype of the proposed system was implemented and tested to validate the system functionality. The results show that the system is promising for on line shipment tracking


Introduction
Online shopping nowadays is huge due to free trade and globalization. In 2014, United Parcel Service (UPS) shipping company [1] delivered about 4.6 billion packages. People and companies need to trace their packages to know when they will be arrived and where they are now. Due to huge competitions, many companies pay a lot of money to provide new and better services. Companies try to develop remarkable systems to be used by the customers and themselves to efficiently manage packages and track them. Different approaches have been used for this purpose; the most commonly used one is the barcode technology. It is cheap and simple to use, however it is easy to damage and if it is damaged, it will be unrecognizable [2][3]. A QR code is almost as the bar code, and it the ability to carry much data than the barcode, however it is slow to scan the data.
Radio Frequency Identification (RFID) technology that helps a lot in accelerating processes and completing tasks in time. Nowadays, RFID technology is commonly used almost everywhere and it is still expanding more and more due to the continuous drop in its price and the continuous improvements in its functionality. It provides better solutions for many of today's problems [4][5][6][7]. RFID system contains three components: Transponder (tag/smart label) including data memory and antenna, Read/write unit (reader) with antenna and Processing Software [8][9][10].
To trace a package, a checkpoint is a place where packages arrive to register its status, arrival time and send a feedback about its status and new location. After that, it is either forwarded to the next checkpoint or kept there to deliver it to the receiver. Most of companies use this method to track packages, because of its simplicity and reliability. At any checkpoint, a computer is connected to RFID tag reading device. The RFID reader then reads the tag and starts sending the package's information to a computer connected to the system.


After the package is registered in the system, the package will pass through several checkpoints.


As the package reaches a checkpoint, that checkpoint will be considered as the package's last location.
 That checkpoint' computer communicate with the server.


The new data (including the status and location) will be sent to the server.


The database will be updated with the new data.
The rest of the paper is organized as follows. Section 2 presents the system specification. It includes marketing and engineering requirements and mapping table to show the relationship between engineering and marketing requirements. The design of the system is presented in the section 3. An analytical hierarchy process (AHP) I S S N 2 2 7 7 -3061 V o l u m e 1 7 N u m b e r 1 I n t e r n a t i o n a l j o u r n a l o f C o m p u t e r s a n d T e c h n o l o g y 7164 | P a g e M a r c h , 2 0 1 8 http://cirworld.com/ and the concept fan are illustrated in section 4. Section 5 gives the developed database and the website. Section 6 illustrates the developed system tests. Section 7 concludes the paper.

The proposed system overview
In shipping management system, there is usually a process to ship a package/parcel from sender to receiver. Figures 1 and 2 show the block diagram and the system overview to carry out the shipment management system. After receiving the package from the sender, the first thing to do is registering the package. In registration stage, the details of the package are stored in a database. The carriers will access database in order to deliver the package by giving them access to the database. At each checkpoint, package's information will be updated in the database. In addition, it will be updated when the package is delivered to the receiver. Figures 3-5 show the flowcharts from the point of view of customer, company, and the carrier to depict the details of on line shipment tracking system.

The system specification and synthesis
The system requirements can be classified as marketing requirements and Engineering requirements. The marketing requirements explain the features the customer needs from the proposed system. For example, the system should be accurate, easy to use, have a fast response, durable, secure. However, the requirements of engineering point of view are to translate the marketing requirements into technical requirements. These technical requirements are the system should contain a simple interface, able to access the database easily and promptly, have another alternative plan to keep the system functioning, be easy to maintain, use an authentication to access the implemented database, be reliable and be able to trace at certain checkpoint along route. Table 1 illustrates the comparison between the marketing and engineering requirements. It uses symbols to depict the affection of each requirement of the others. A positive correlation (↑) means that both goals, the marking and Engineering requirements can be obtained, but negative correlation (↓) means that both goals cannot be obtained. The symbol (-) means that the marketing and engineering requirements have no relation. Positive + and negativesymbols to indicate increasing or decreasing based on the desirability of the each requirement.  The packages to be identified and recognized, there are different techniques that can be used such as barcode, Quick Response (QR) Code, and Radio Frequency Identification (RFID). The disadvantages of barcode technique as mentioned earlier are their short ranges, impossible to read many packages at the same time, and it cannot read if it is damaged by get dirty. The advantages of QR are low cost and simple in use. In the other hand, it takes long time to scan the packages compared to RFID and barcode [11]. Since the packages can travel long distances based on the destination and it becomes more difficult to trace, this unit is critical part. Two approaches can be used to trace the packages:  Global Positioning System (GPS).
GPS is more accurate in terms of location. In the other hand, it has higher cost than using checkpoint marking. GPS required a new device to be installed in order to work. Checkpoint marking has the advantage of less cost and reliability [12][13][14].

Concept Fan and Analytical Hierarchy Process (AHP)
The graphical demonstration of different available design alternatives is called concept fan. As shown in Fig. 6, it is used to show different possible components and technologies as alternatives to choose among them to construct the required system. AHP is defined as a technical methodology that can be used to compare different alternatives to choose the remarkable one of them. In this paper, different parameters have been addressed and AHP is performed to find the best applicable approach/component. The used criteria are the cost of the system, the response of the system in terms of seed, how to reuse the system, reusability, and the maximum range that can used [15]. The geometric mean for data set {a1, a2, …, an} and the weight for each criterion Ci are calculated based on the following formula 1 and 2.    Table 3 shows the shipment identification matrix where RFID has the highest score, 0.505; therefore, it is the most remarkable choice to identify the shipment. Table 4 illustrates the comparison conducted to get weights for the same criteria used for shipment tracking. Table 5 illustrates the comparison conducted to get weights for the same criteria used for shipment tracking. Table 4 shows the shipment-tracking matrix, Checkpoint Marking criterion has the higher score than GPS; therefore, it is most remarkable choice Checkpoint Marking for shipment tracking.

The developed system database and website
This section presents details about the developed database used, its specification, and ER model, the used software programs to implement them. The database and the website are the main parts of the system for customers to trace their packages in an efficient way.

Database
The vital data related to the packages such as the package number, the sender name and its address, and the destination address should be addressed in a very proper. The most proper way is to store them in database. In this paper, Structured Query Language (SQL) is used to manage the database, SQL is a programming language interacting with the data to get information, modify it or even update it. In addition, XAMPP is used to construct the database. XAMPP is shown in Fig. 7, which is an offline tool to enable us to use Apache and to run MySQL. By running MySQL, there is built-in software called phpMyAdmin as an interface to make it easy to deal with the database being created. Further, it has many documentations and tutorials. It can create, edit and manage a database. phpMyAdmin is shown in Fig. 8.

Database specification
The first step to design a database is to write the full specification. A package has a unique ID (RFID Tag), sender information, receiver information, weight, dimension, description, status, date of shipping and arrival date. The package has a status like damaged, lost, in transit, delivered, delayed, sent to carrier or received from carrier.
The package itself belongs to one customer. The package will pass through different checkpoints. Each branch of the company is basically a checkpoint. In each checkpoint, the package status and location will be updated and forwarded to next checkpoint. The company is using different carriers. Each package has one carrier at a time. The carrier can access the information and update package's checkpoint and status. Customer and carrier both can have more than one package.
The shipping company consists of managers, employees, checkpoints and warehouses. Each employee is working in one checkpoint at a time. If that employee is moved to another checkpoint, his information will be I S S N 2 2 7 7 -3061 V o l u m e 1 7 N u m b e r 1 I n t e r n a t i o n a l j o u r n a l o f C o m p u t e r s a n d T e c h n o l o g y 7172 | P a g e M a r c h , 2 0 1 8 http://cirworld.com/ part of the new checkpoint. Employees are responsible for registering packages. In addition, employees are able to access and change information about the package. In addition, an employee will access the system using his/her username and password through a website. Furthermore, employees will register carriers to give them access to some functions in the database. The company will contact carriers to provide them the information about the packages. Each carrier has a username and password to access a database. The carrier can provide the expected delivery time and the cost of shipping.
Every package reaches a warehouse of a checkpoint should be immediately registered in the system or its status should be updated. Shipping company will make a list of carriers and their prices according to shipping type and weight. The company will add its profit according to the expenses.
The second step is to extract the nouns and verbs. Each noun is considered as separate entity and each verb is a relation between those entities. In database, each entity is a table and each table has columns to describe attributes of that entity and rows to describe data. Each row is called a record, which is a set of data as shown in Fig. 9.

ER-Diagram
ER-Diagram is necessary to understand the relations between entities. As shown in the Fig. 9, there are seven entities: Customer, Package, Carrier, Employee, Payment, Location, and Checkpoint. Each entity has a primary key which is a unique id used to identify each record. Inside entity, there is a group of attributes. The attributes are the required fields to be filled with data about each record. For example, Customer entity has a record about one of the customers. This customer will have a primary key (CUS_ID), a first and last name (CUS-FNAME, CUS-LNAME), address, phone and email. Each entity has relations with other entities. There are different types of relations such as one-to-one, one-to-many and many-to-many.
This ER diagram was implemented using phpMyAdmin. The database was created. In order to access this database, php code is used to implement it.

The Developed Website
A website has been developed in this paper to help customers to trace their packages by entering the ID number of the package to know its last status. In addition, they can get benefits from other services available on the that website to use, for example checking the allowed goods to be shipped, prices and many other services. The website was designed using html, php and few of java scripts programming languages. Fig. 10 is showing the developed web page for tracking shipments.

IMPLEMENTATION AND TESTING
To verify and validate the desired function of the developed system, a model for the system is implemented and tested. The function of RFID technology is investigated first to check if it reads the package information stored in the tags successfully or not. CF-RU5106 RFID with active tags of type EPC C1G2 is chosen and set as illustrated in Fig. 11. Number of different tags have been read correctly as shown in Fig. 12. Both of shipping company and carrier employees are supposed to access the database, so they will have user names and passwords. The password is encrypted using MD5 hashing [17] to make it secure. An administrator, to give them access to the database, should register each of those employees. When they try to get access, their I S S N 2 2 7 7 -3061 V o l u m e 1 7 N u m b e r 1 I n t e r n a t i o n a l j o u r n a l o f C o m p u t e r s a n d T e c h n o l o g y 7174 | P a g e M a r c h , 2 0 1 8 http://cirworld.com/ passwords are converted to hash values using hashing function. Hash values will be compared to the hash values stored in the database. If they are matched, they will be given access. Employees now can use their access to register new customers or packages or update their information. The carrier now can update some of the information of packages. For example, the carrier can update expected delivery date and the cost. Different scenarios for shipment registration, shipment tracking, checkpoint update, and the shipment status are shown in Figures 13-21 have been conducted to test the performance of the whole system.

Conclusion
In this paper, an on line complete system for tracking packages using RFID technology has been designed. The developed system comprises database, website, and a user-friendly interface to follow the packages, knowing the status of the packages of being damaged or lost and its location until reaching its proper destination. The complete system has been tested for verifications, and achieved results were promising.