Pagamenti contactless su dispositivi Ingengico

In molti negozi sono disponibili già da tempo i device abilitati per il pagamento contactless tipo quello visibile qua sotto


Purtroppo nessuno ha mai spiegato ai commessi come usarli, la procedura è la seguente:

1) premere il tasto verde
2) inserire l’importo
3) premere il tasto verde
4) avvicinare la carta contactless

Sul display comparirà la conferma della transazione, verra stampato solo uno scontrino che resta al negoziante e riceverete un sms con la conferma di pagamento.

Cosa molto interessante è che per gli importi inferiori ai 25€ non è necessario inserire il pin.

OpenWRT extRoot & openVPN

Install extRoot
OpenWRT – Rootfs & Swap on USB Storage

Install openVPN

Setup OpenVPN using OpenWRT

Config firewall

* OpenVPN on the OpenWRT

openVPN routing problem explanation and solution

OpenVPN and iroute

How To Assign Static IP Addresses to OpenVPN Clients In pfSense

Low power foto-webcam

I’m working on a new project, a low power foto-webcam. The idea come from website, they are installing this systems in remote area from many years. However, they use to leave the system always turned on, instead I want to turn the system ON only when the camera have to take the picture.

I’m doing this with a STM32L0 evaluation board and a Mosfet to turn the system ON/OFF.

Here is the picture of the first prototype (the camera power supply is not yet implemented)

I will write further details and post my script.

OpenWRT check wireless link status

You can check if your interface is connected to an AP with

iw wlan0 link

and the output is something like this

SSID: blabla
freq: 2432
RX: 196892 bytes (1278 packets)
TX: 19107 bytes (125 packets)
signal: -35 dBm
tx bitrate: 57.8 MBit/s MCS 5 short GI

bss flags: short-preamble short-slot-time
dtim period: 0
beacon int: 100