IRNAS / PiRA-zero-firmware

Firmware for PiRa Zero board
GNU General Public License v3.0
3 stars 4 forks source link

pigpio sometimes fails to connect #19

Open SloMusti opened 6 years ago

SloMusti commented 6 years ago

There is a scenario when pigpio fails and device needs to be rebooted, add an automatic mechanism for that. May be correlated to changing environmental variables through resin.

07.01.18 14:27:47 (+0100) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
07.01.18 14:27:48 (+0100) Can't connect to pigpio at localhost(8888)
07.01.18 14:27:48 (+0100)
07.01.18 14:27:48 (+0100) Did you start the pigpio daemon? E.g. sudo pigpiod
07.01.18 14:27:48 (+0100)
07.01.18 14:27:48 (+0100) Did you specify the correct Pi host/port in the environment
07.01.18 14:27:48 (+0100) variables PIGPIO_ADDR/PIGPIO_PORT?
07.01.18 14:27:48 (+0100) E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
07.01.18 14:27:48 (+0100)
07.01.18 14:27:48 (+0100) Did you specify the correct Pi host/port in the
07.01.18 14:27:48 (+0100) pigpio.pi() function? E.g. pigpio.pi('soft', 8888)
07.01.18 14:27:48 (+0100) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
07.01.18 14:27:48 (+0100) Failed to initialize connection to pigpiod. Retrying...