VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

pigpio not work

Wed May 13, 2015 4:30 pm

I download pigpio for use with RFID Reader EM Marine 125KHz http://www.ironlogic.ru/il.NSF/htm/ru_cpz2l
protocol Wiegand 26

Code: Select all

# wget http://abyz.co.uk/rpi/pigpio/pigpio.zip
# unzip pigpio.zip
# cd PIGPIO
# make
# make install
# pigpiod

Code: Select all

# netstat -anp|grep 8888
tcp        0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN      3772/pigpiod

Code: Select all

# wget http://abyz.co.uk/rpi/pigpio/code/wiegand_py.zip
# unzip wiegand_py.zip
# python wiegand.py
Nothing appears on the screen
DATA0 and DATA1 are connected correctly, the power to have the reader, LED light, the reader is OK

bootloader and all packages updated

Code: Select all

# rpi-update
# apt-get update
# apt-get dist-upgrade
in September 2014 it worked raspbian

User avatar
joan
Posts: 14936
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: pigpio not work

Wed May 13, 2015 4:36 pm

Is the daemon running?

What is returned by

pigs pigpv

VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

Re: pigpio not work

Wed May 13, 2015 4:47 pm

Code: Select all

# netstat -anp|grep 8888
tcp        0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN      3772/pigpiod

# ps ax|grep pigpiod
 3772 ?        SLsl  43:50 pigpiod
25792 pts/0    S+     0:00 grep --color=auto pigpiod

# pigs pigpv
^C

#

User avatar
joan
Posts: 14936
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: pigpio not work

Wed May 13, 2015 5:14 pm

Can you ping localhost?

ping localhost

Code: Select all

ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.144 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.198 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.140 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.125 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.106 ms
^C

VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

Re: pigpio not work

Wed May 13, 2015 5:24 pm

ifconfig show only eth0
where lo ?!

User avatar
joan
Posts: 14936
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: pigpio not work

Wed May 13, 2015 5:31 pm

VecH wrote:ifconfig show only eth0
where lo ?!
I don't know, but it's probably stopping the correct operation of the network.

Make sure /etc/network/interfaces contains the lines

Code: Select all

auto lo
iface lo inet loopback
and then restart networking or reboot.

VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

Re: pigpio not work

Wed May 13, 2015 6:01 pm

After upgrading or installing any packages lost file /etc/network/interfaces

User avatar
joan
Posts: 14936
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: pigpio not work

Wed May 13, 2015 6:06 pm

VecH wrote:After upgrading or installing any packages lost file /etc/network/interfaces
I suggest you just create the file and add those two lines.

VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

Re: pigpio not work

Wed May 13, 2015 6:45 pm

Thank you
I restored this file from backup

Return to “Troubleshooting”