|
|
||
|---|---|---|
| serveurNfcNodeJsVma405 | ||
| autostart | ||
| node.yml | ||
| readme.md | ||
| splash.png | ||
| vma405.jpg | ||
| vma405.js | ||
readme.md
VMA 405
côté usb, | 39 | 37 | 35 | 33 | 31 | 29 | 27 | 25 | 23 | 21 | 19 | 17 | 15 | 13 | 11 | 9 | 7 | 5 | 3 | 1 | côté sdcar reseau | 40 | 38 | 36 | 34 | 32 | 30 | 28 | 26 | 24 | 22 | 20 | 18 | 16 | 14 | 12 | 10 | 8 | 6 | 4 | 2 |
| 39 | 37 | 35 | 33 | 31 | 29 | 27 | 25 | SCK|MISO|MOSI| 17 | 15 | 13 | 11 | GND| 7 | 5 | 3 | vcc|
| 40 | 38 | 36 | 34 | 32 | 30 | 28 | 26 | NSS| RST| 20 | 18 | 16 | 14 | 12 | 10 | 8 | 6 | 4 | 2 |
|VMA405 |PI 3 B+ | |
|VCC | 1 | marron |
|RST 22 rouge
GND 9 orange
MISO 21 jaune
MOSI 19 vert
SCK 23 bleu
NSS 24 violet
IRQ pas utilisé
splash screen
sudo cp splash.png /usr/share/plymouth/themes/pix/splash.png
sudo cp splash.png /usr/share/plymouth/themes/pix/splash.png
-
sudo nano /boot/config.txt
disable splash=1 -
sudo nano /boot/cmdline.txt
consoleblank=0 loglevel=1 quiet logo.nologo
-Pour afficher l'image
sudo apt install fbi
- Créer un service
sudo nano /etc/systemd/system/splashscreen.service
[Unit]
Description=Splash screen
DefaultDependencies=no
After=local-fs.target
[Service]
ExecStart=/usr/bin/fbi -d /dev/fb0 --noverbose -a /home/sysop/splash.png
StandardInput=tty
StandardOutput=tty
[Install]
WantedBy=sysinit.target
- active le service
sudo systemctl enable splashscreen.service sudo systemctl start splashscreen.service
/ext/xdg/openbox/autostart
#/etc/xdg/openbox/
DISPLAY=:0 xdotool getactivewindow key F5
# stop veille/économie dénergie
xset dpms 0 0 0 && xset s noblank && xset s off
#Touches pour sortir du serveur X => CTRL-ATL-Backspace
setxkbmap -option terminate:ctrl_alt_bksp
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
# vidage du cache chromium
rm -fr /home/sysop/.cache/chromium
rm -fr /home/sysop/.config/chromium/Default/
# orientation de l'écran
xrandr --output DSI-1 --rotate right
# lance chromium avec un user agent spécifique hostname,password,periph,ip (provenant en partie de .chromium_env)
cd /home/sysop/serveurNfcNodeJs/
node serveur_nfc.js