A RFID middleware