Difference between revisions of "Omegix/USB Auth 1.7"

From Makers Local 256
Jump to: navigation, search
m (added issue with i2c)
m (added python scripts)
Line 25: Line 25:
 
* http://www.ebay.de/itm/Cooqrobot-PN532-NFC-RFID-Reader-Writer-Module-starter-kits-with-tags-For-Arduino-/161010274918?pt=Wissenschaftliche_Ger%C3%A4te&hash=item257cf5d266
 
* http://www.ebay.de/itm/Cooqrobot-PN532-NFC-RFID-Reader-Writer-Module-starter-kits-with-tags-For-Arduino-/161010274918?pt=Wissenschaftliche_Ger%C3%A4te&hash=item257cf5d266
 
* http://www.hobbytronics.co.uk/raspberry-pi-raspbian-distro
 
* http://www.hobbytronics.co.uk/raspberry-pi-raspbian-distro
 +
 +
= Python Approach =
 +
* usbScan.py
 +
** Script will continuously scan for new USB devices, and call ldap Check.  If ldap check successful, call DoorUnlock.
 +
* nfcScan.py
 +
** same as usbScan.py, except for NFC (and RFID)
 +
* ldapCheck.py
 +
** Take in value, see if it's in the LDAP
 +
* DoorUnlock.py
 +
** Throw pins high and low on the GPIO to trigger relays that will be tied to a powerbolt1000. 
 +
** Monitor pins wired to reed switches to ensure door is closed before re-locking.
  
  
 
[[Category:Put Category Here]]                                                  <!--MAKE AS MANY CATEGORIES AS YOU NEED-->
 
[[Category:Put Category Here]]                                                  <!--MAKE AS MANY CATEGORIES AS YOU NEED-->

Revision as of 09:21, 15 May 2013

Creator:
User Name
Status:
Your Status
Born On:
18:03, 9 May 2013 (CDT)
Last Updated:
09:21, 15 May 2013 (CDT)

Overview

  • RaspberryPi
    • Running Rasbpian
      • ssh raspberrypi.local

Steps Taken

  1. Installed Raspbian on a 16GB SD memory card
  2. Followed this guide to get I2C available
    • Used this article to determine that I had a 256MB Model B RaspberryPi. This is important, because when checking i2cdetect I have to use "-y 0" instead of the "-y 1".

Troubleshooting

  • Ran into this error when running DannyO's (hubcitylabs) poll.py script:

quick2wire/i2c.py", line 72, in transaction

   ioctl(self.fd, I2C_RDWR, addressof(ioctl_arg))

Resources

Python Approach

  • usbScan.py
    • Script will continuously scan for new USB devices, and call ldap Check. If ldap check successful, call DoorUnlock.
  • nfcScan.py
    • same as usbScan.py, except for NFC (and RFID)
  • ldapCheck.py
    • Take in value, see if it's in the LDAP
  • DoorUnlock.py
    • Throw pins high and low on the GPIO to trigger relays that will be tied to a powerbolt1000.
    • Monitor pins wired to reed switches to ensure door is closed before re-locking.