Node Engraver

Uit MakerSpace Leiden
Naar navigatie springen Naar zoeken springen


IP address 192.168.X.X (LAN, PoE powered)
Protocols HTTP(Web), Telnet, MQTT, Syslog, mDNS (Bonjour/Rendezvous)
Hardware ethernet A8:42:E3:47:55:07 (wired) Address via DHCP, not pegged.
Troubleshooting
  • If you are next to it:
    • Check the display - use the right button to browse through the screens.
  • If the display is black
    • It may be on the screensaver - press some random buttons to wake itup.
  • If you are on the LAN or WiFi of the space (direct or via an SSH tunnel):
    • [telnet] to 192.168.X.X,
    • Connnect over [http] with your web browser
  • Otherwise your options are:
    • Listen to [[mqtt:///#ac/log/engraver mqtt] - topic #ac/log/engraver
    • Tail the syslog on the space local server after logging in over the VPN/SSH.
  • If you have physical access to the PCB:
    • Connect over USB; serial 8N1, 115200 -- using an battery powered laptop. Or, if powered; you must use a Galvanic USB isolator!

See the Network setup overview if you want to power cycle it.

Normal operation

Swipe your card - node should beeb and drop the key.

Or it will give a short intermittent deny signal to tell you the card is rejected. The log will show why.

Bypassing the node

This node cannot be bypassed on the node itself. There is a mechanical bypass - see the drawing below for the Emergency Unlock Lever. Doing this without prior approval from a board member is a sure way to get kicked out.

Trouble Shooting

Check what is on the display. The first QR code will bring you to this page. The second QR code will show you the logs in a browser. You can also telnet to the IP address shown in the 'MORE' display to see the log in real time. See this page for more debugging options.

Swipe ok - but does not want to open door

  1. Do you see waiting for card on the display ? If so - it has not read your card (yet).
  2. Did you hear one or more beebs when you swiped ? If so - your card is picked up ok ?

If you hear beebs:

  1. Did you hear 3 or more beeps when you swiped ? If so - your card is not getting permission from the system.
    1. Does your personal page in mijn.makerspaceleiden.nl show that you have permission ?
  2. Did you get your permissions quite recently ?
    1. Is the internet in the space up and running (as it only periodically updates its database).

The Machine does not want to accept my badge

  1. Do you hear a beeb when swiping ? If so - it has read your card -- and see above issues.

If it did not beeb:

  1. Did it work on the door ?
  2. Does it work on any other machine ?

If so - your badge is fine - but we may have a broken ACNode or a broken reader. Report this to the mailing list - or if you know a little of IT and electronics - go to the troubleshooting section and connect to the log via your webbrowser or via telnet. Then swipe again and see what really happens.

Note that we are, at this time, not sure if these nodes will survive the welding area.

Resetting the Node

If the screen still works; then page through the menu and select the reboot option.

Unplug the ethernet cable in the main patch cabinet. See this page for details.

Wait at least 60 seconds until you try again (the ESP32 is quite slow & it needs to create some cryptographic date before it can start communicating over https/SSL).

Mechanics

Simple lock - 12Volt solenoid (short pulse, any polarity) and a microswitch to detect open/close. The microswitch is Normally open. And is closed when the lock is closed/engaged.

Large pin is an eject pin with a spring; to make sure any door is pushed open.

Will also 'grab' or hold any ring; e.g. a key-ring as is.

Drawing, lock; color blue wire is in fact green Lock

Wiring

  • Red and Black cable - Solenoid
    • To OUT 1 (polarity does not matter)
  • White and Green cable - microswitch
    • To Opto 1 (polarity does not matter)

Both cables are labled at the far end; the connectors only fit one way.

Electronics

PCB and wiring

De node is PoE powered; set to 24 Volt. Blue PCB, Serial # 15, no rework:

Electronic setup/changes

  • Wired for POE
    • 22k resistor for ~12 volt as VPWR
  • RELAY1 bypassed; mosfet and 12 V straight to solenoid. The 'direct' solder pads are connected.
  • 4300 uF / 36V capacitor added near/at the output to the solenoid.
  • VPWR link made with a 22 Ohm resistor to limit the current that can run through the solenoid. So we rely on the capacitor to be charged.
    • NOTE: it is a pretty small resistor; so if you would engage the solenoid for seconds it will probably burn. May be nice to replace it with a 1-2 Watt one.
  • OPTO1 bypassed; straight to dry contact of lock; relying on the open collector pullup resistor of the opto coupler to provide a stable HIGH.
    • A closed microswitch reads as LOW; and indicates that the lock is closed.
    • When open/unlatched it will read HIGH
  • LEDD and LEDC soldered on as red and green
  • Error led and solenoid/`OUT1 is engaged' LEDs moved from the back to the front.

Settings

  • 5V poe for electronics/3v3
  • Second PWR POE used for (just) the solenoid
  • Slow start on both

See this page for more options/settings.

Rework/Specials

The MOSFET of output 2 was removed to fix another board. New MOSFETs ordered. Not sure of the driving transistor.

Software

Current version: https://github.com/MakerSpaceLeiden/AccesSystem/blob/3103d8f30019ce43d545744f1456a6789e715fa8/lib-arduino/ACNode/examples/EngraverNode/EngraverNode.ino#L1

Logic/states:

  1. Buzzing - i.e. solenoid engaged after a valid tag swipe
  2. Grabbable - solenoid was engaged; but the key is still in the lock
  3. In use -- key is taken out of the lock
  4. stolen -- key was pried out of the lock without engaging the solenoid via a tag swipe. Red error led flashes.

LEDs:

  1. Red OUT1 led is on while the solenoid is engaged.
  2. Green LED-D is on when the key is normally in the lock
  3. Red LED-C is on when the key is not in the lock (e.g. it is used & in the lock on the engraver)