Professional Documents
Culture Documents
Vehicle Monitoring System Using RFID: II. E S
Vehicle Monitoring System Using RFID: II. E S
System Essentials
RFID tags, or transponders, carry object-
identifying data.
RFID readers, or transceivers, read and write tag
data.
Databases associate arbitrary records with tag Database
identifying data.
www.ijcsit.com 1444
Durugu Kiranmayi / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 7 (3) , 2016, 1444-1447
www.ijcsit.com 1445
Durugu Kiranmayi / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 7 (3) , 2016, 1444-1447
//seconds=timedifference(s);
//System.out.print(seconds + " seconds."); // Bind values
/*if(temp.equals(s)){ ps4.setString(1, vt);
System.out.println("\nAlready your record inserted"); //ps4.setTimestamp(2, null);
} */ ps4.setTimestamp(2, now);
//else{ cont=1;
temp=s; ps4.executeUpdate();
try { }
Class.forName("com.mysql.jdbc.Driver");
Connection con=DriverManager.getConnection( // Insert
"jdbc:mysql://localhost:3306/vehicle","root","root");
//Connection } catch (SQLException e) {
con=DriverManager.getConnection("jdbc:mysql://localhost:33 e.printStackTrace();
06/vehicle","",""); }
//PreparedStatement ps1=con.prepareStatement("select * from
vehicle_details where RFID_tag=?"); //String query = "update REPORT2 set rfid = ? where sid
=? ";
//PreparedStatement ps2=con.prepareStatement("insert into //pstmt = conn.prepareStatement(query); // create a statement
lupadte_attendance values(?,?,?,?,?,?,?)"); //DateFormatdateFormat = new
SimpleDateFormat("dd/MM/yyyy");
//PreparedStatement ps3=con.prepareStatement("select //DateFormat dateFormat1 = new
s_rfid,status,s_no,attend_date from lupadte_attendance order SimpleDateFormat("kk:mm:ss");
by s_noasc"); //Date date = new Date();//String s1=dateFormat.format(date);
Timestamp now = new Timestamp(new Date().getTime()); //String s2=dateFormat1.format(date);
String sql = "SELECT Vehicle_no from vehicle_details where /ps1.setString(1,s);
RFID_tag='"+s +"'"; //ResultSet rs1=ps1.executeQuery();
Statement stmt = null; System.out.println("record inserted");
String vt = null; } //end try
stmt=con.createStatement(); catch(ClassNotFoundExceptionce){ ce.printStackTrace();
ResultSetrs = stmt.executeQuery(sql); }
if(rs.next()) catch(SQLException se){
{ se.printStackTrace();
vt=rs.getString("Vehicle_no"); }
} catch (Exception e) {
System.out.println("This is not registered");
try { }
// Prepare INSERT through Connection //} // end else
System.out.println("countr value is "+cont);
if(cont==1) } //end rffilewrite method
{
System.out.println("in"); public void serialEvent(SerialPortEvent event) {
// PreparedStatement ps4=con.prepareStatement("insert if (event.getEventType() ==
into report values(?,?,?)"); SerialPortEvent.DATA_AVAILABLE) {
PreparedStatement ps4=con.prepareStatement("insert into try {
in_time values(?,?)"); Thread.sleep(1000);
// Bind values int available = input.available();
ps4.setString(1, vt); byte data[] = new byte[available];
ps4.setTimestamp(2, now); input.read(data, 0, available);
// ps4.setTimestamp(3, null); rffilewrite(new String(data));
cont=2; }
ps4.executeUpdate(); catch (Exception e1) {
} e1.printStackTrace();
else if(cont==2) }
{ }
System.out.println("out");
//PreparedStatement }
ps4=con.prepareStatement("insert into report }
values(?,?,?)");
PreparedStatement ps4=con.prepareStatement("insert into
out_time values(?,?)");
www.ijcsit.com 1446
Durugu Kiranmayi / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 7 (3) , 2016, 1444-1447
VI. OUTPUTS
VII. CONCLUSION
With RFID vehicle monitoring system vehicle information
Fig 1.The RFID Tag value is read in to the software can be automatically gathered for efficient and safe vehicle
management.For every vehicle RFID tag will be given.
RFID readers are present at the IN and OUT gates.
Automatic vehicle identification can increase the security
and prevent loss of vehicles.
REFERENCES:
[1] R.Ranjini1, D.Manivannan2, A Comparative Review on Car Parking
Technologies presented at International Journal of Engineering and
Technology (IJET)
[2] www.rfidjournal.com
[3] ASPIRE FP7 Project Training: Introduction to RFID Technology
[4] Kumar,Chaturvedula.U.P,M.Tech,EmbeddedSystems, RFID Based
Embedded System for Vehicle Tracking and Prevention of Road
Accidents ,International Journal of Engineering Research
&Technology (IJERT)Vol. 1 Issue 6, August-2012
[5] Zeydin Pala1, Nihat Inanc2, UTILIZING RFID FOR
SMARTPARKING APPLICATIONS UDC 65.011.56
[6] http://www.technovelgy.com/ct/technology-article.asp
[7] https://www.youtube.com/watch?v=-Reyu_axkwY
[8] http://www.nedapidentification.com/solutions/cases/why-should-
you-consider-long-range-rfid-for-automatic-vehicle-
Fig 2.The Rfid tag values are stored in database identification.html
www.ijcsit.com 1447