User Tools

Site Tools


project:brmdoor:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
project:brmdoor:start [2023/01/14 19:10] – Replaced brmdoor fried Raspi 3B+ for Raspi 2B with changed casing abyssalproject:brmdoor:start [2023/01/14 20:03] – Brmdoor - outside view of PN532 shield update abyssal
Line 238: Line 238:
  
 General GPIO PIN assignments are configurable, communication (SPI/I2C) must follow the definition in Raspberry Pi General GPIO PIN assignments are configurable, communication (SPI/I2C) must follow the definition in Raspberry Pi
-pinouts. Raspi pinouts for all versions: http://pi4j.com/pins/model-3b-rev1.html+pinouts. Raspi pinouts for all versions: https://pi4j.com/1.2/pins/model-2b-rev1.html 
 + 
 +(Follow whatever Rpi is installed for pinout as power sources keep killing them time to time)
  
 Numbering scheme used by brmdoor for lock and open switch (based on BCM GPIO numbering, different from P1 Numbering scheme used by brmdoor for lock and open switch (based on BCM GPIO numbering, different from P1
Line 246: Line 248:
 PIN assignemnts (physical PINs on P1 header, with BCM GPIO numbers used in config): PIN assignemnts (physical PINs on P1 header, with BCM GPIO numbers used in config):
  
-  * 5V power into Raspberry: physical #1 +  * Raspberry power - via USB
-  * Ground from power source to Raspberry: physical #9+
   * 5V power out into Adafruit PN532 reader: #4   * 5V power out into Adafruit PN532 reader: #4
   * Ground for Adafruit PN352: physical #6   * Ground for Adafruit PN352: physical #6
   * BERA-E lock open/close: physical #22, BCM GPIO #25   * BERA-E lock open/close: physical #22, BCM GPIO #25
-  * Open/close switch input PIN: physical #15, BCM GPIO #22 +  * Open/close switch input PIN: physical #15, BCM GPIO #22 (/sys/class/gpio/gpio22/value)
-  * Ground for open/close switch: physical #25+
   * SPI pins for Adafruit PN532 reader - SPI PINs on Raspberry - physical #19, #21, #23, #24   * SPI pins for Adafruit PN532 reader - SPI PINs on Raspberry - physical #19, #21, #23, #24
- +  * electrical measurement (ask Jenda) : physical #12 signal, ground physical #14 
-After upgrade to Raspi 3B+, pin assignments along with colors: +  * grounds not mentioned just connect to any ground
- +
-Order of pins on reader: +
-  * IRQ +
-  * RST +
-  * SCK   orange +
-  MISO  brown +
-  * CS    grey +
-  * MOSI  white +
- +
-Raspi pin color, number (physical numberingto function: +
- +
-  * 19 MOSI - white +
-  * 21 MISO - brown +
-  * 23 SCK - orange +
-  * 24 CS - grey+
  
  
Line 321: Line 306:
  
 {{:project:brmdoor:s_pxl_20230114_183754736.jpg?600|}} {{:project:brmdoor:s_pxl_20230114_183754736.jpg?600|}}
 +
 +==== Outside view of PN532 shield (14 Jan 2022) ====
 +
 +{{:project:brmdoor:s_pxl_20230114_195316653.jpg?600|}}
 +
 +{{:project:brmdoor:s_pxl_20230114_195345155.jpg?600|}}
 ===== Brmdoor HOWTO (displayed after you login as root, in /etc/motd) ===== ===== Brmdoor HOWTO (displayed after you login as root, in /etc/motd) =====
 <code> <code>
Line 388: Line 379:
  
 Add following to your ~/.ssh/config, edit your key if necessary (the key needs to be added on brmbar and on brmdoor): Add following to your ~/.ssh/config, edit your key if necessary (the key needs to be added on brmbar and on brmdoor):
 +
 +You need to have access to ''data.brmlab.cz'' and ''brmdoor'' as well.
 +
 +You need ssh that supports ''ProxyJump'' (should not be a problem unless you have reeeeeaaaaaly old system).
  
 <code> <code>
-Host = brmbar-external + 
-VerifyHostKeyDNS = no +Host data.brmlab.cz 
-Hostname = hrach.eu +User root 
-Port = 22715 +Port 22 
-User = brmlab +IdentityFile = ~/.ssh/whatever_your_key_is
-IdentityFile = ~/.ssh/id_rsa +
-ForwardX11 = no +
-UsePrivilegedPort = no+
 Protocol 2 Protocol 2
  
-Host = brmdoor-external +Host = brmdoor-via-data 
-ProxyCommand ssh brmbar-external nc -q1 %h 22 +ProxyJump data.brmlab.cz 
-Hostname = 192.168.77.247 +Hostname = 192.168.77.30 
-Port = 22715+Port = 22
 User = root User = root
-IdentityFile = ~/.ssh/id_rsa+IdentityFile = ~/.ssh/whatever_your_key_is
 ForwardX11 = no ForwardX11 = no
 UsePrivilegedPort = no UsePrivilegedPort = no
 Protocol 2 Protocol 2
 +</code>
  
 +Then using
 +
 +<code>
 +ssh brmdoor-via-data
 </code> </code>
  
-Then ssh brmdoor-external will get you brmdoor shell.+will get proxyjump over data into brmdoor.
  
project/brmdoor/start.txt · Last modified: 2023/09/17 20:35 by abyssal