RehrigPacific/CameraProjectInstallInstructions

From VentureResearchWiki
Jump to navigation Jump to search

Install Instructions

Installation Script[edit | edit source]

ssh to venture@hydra

export READER=vr-abcdef
scp -P 2222 readersnap-autoinstall.sh root@${READER}.openvpn:/tmp/r-autoinstall.sh
ssh -p 2222 root@${READER}.openvpn "bash /tmp/r-autoinstall.sh"

Then, ssh into the reader itself.

Choose a configuration file:

For *single* camera, triggered on OBS button IO 1,2,3 use:

curl -sk https://downloads.ventureresearch.com/RehrigPacific/ReaderSnap/singlecamera.toml -o /home/user/ReaderSnap/config.toml

For *dual* camera, triggered on RFID, and on OBS button 1,2,3 use:

curl -sk https://downloads.ventureresearch.com/RehrigPacific/ReaderSnap/dualcamera.toml -o /home/user/ReaderSnap/config.toml

Then continue...

# wifi access point setup
SSID=VR-AP-BC6D wifi-ap-setup.sh
systemctl enable vr-wifi-ap && systemctl restart vr-wifi-ap
systemctl enable readersnap && systemctl restart readersnap
# rfid service setup
nc localhost 2020
set asyncmetadata sys hostname gps
0 commit
get inventory


journalctl -efu readersnap
# test
Evt io 2
Evt rfid 00001111

Troubleshooting[edit | edit source]

Restart ReaderSnap camera service:

systemctl restart readersnap

WiFi AP info (APC/SSID)

root@vr-099474:~# iw dev wlan0-ap info
Interface wlan0-ap
       ifindex 10
       wdev 0x2
       addr 48:65:ee:70:0b:6a
       ssid VR-AP-ATEF                          <<<<<<<<<<<<<<<<<<
       type AP
       wiphy 0
       channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz

WiFi AP - connected devices

root@vr-099474:~# iw dev wlan0-ap station dump
Station 20:4e:f6:e7:e5:e8 (on wlan0-ap)        <<<<<<<<<<<<<<<<<  MAC address of wlan device
       inactive time:  1110 ms
       rx bytes:       26756
       rx packets:     285
       tx bytes:       23428
       tx packets:     196
       tx retries:     0
       tx failed:      0
       signal:         0 dBm
       signal avg:     -52 dBm                 <<<<<<<<<<<<<<<<<  RX signal strength
       tx bitrate:     1.0 MBit/s
       rx bitrate:     24.0 MBit/s
       authorized:     yes
       authenticated:  yes
       preamble:       short
       WMM/WME:        no
       MFP:            no
       TDLS peer:      no

WiFi AP - network-level connected devices, including remote MAC address

root@vr-099474:~# arp -ani wlan0-ap
? (10.10.10.31) at 20:4e:f6:e7:e5:e8 [ether] on wlan0-ap        <<<<<<<<<<< found a device by this MAC at this IP address.
? (10.10.10.30) at <incomplete> on wlan0-ap                     <<<<<<<<<<< incomplete - means device is not found on the network.