gotthardp / python-mercuryapi

Python wrapper for the ThingMagic Mercury API
MIT License
123 stars 63 forks source link

LLRP Reader Connection attempt is failed #93

Closed BrunoGiubilei closed 5 years ago

BrunoGiubilei commented 5 years ago

hey hi, i try to use the sample in README and i get this error.

Traceback (most recent call last): File "./leitor.py", line 3, in reader = mercury.Reader("tmr://192.198.0.139") TypeError: LLRP Reader Connection attempt is failed

above, its the code im try to execute

! /usr/bin/python

import mercury reader = mercury.Reader("tmr://192.198.0.139")

reader.set_region("EU3") reader.set_read_plan([1], "GEN2") print(reader.read())

gotthardp commented 5 years ago

Well, this looks like a networking issue. Can you ping that IP address?

BrunoGiubilei commented 5 years ago

@gotthardp yes

ping 192.168.0.139 PING 192.168.0.139 (192.168.0.139) 56(84) bytes of data. 64 bytes from 192.168.0.139: icmp_seq=1 ttl=255 time=0.881 ms 64 bytes from 192.168.0.139: icmp_seq=2 ttl=255 time=0.615 ms 64 bytes from 192.168.0.139: icmp_seq=3 ttl=255 time=0.692 ms

BrunoGiubilei commented 5 years ago

can i debug the script?

gotthardp commented 5 years ago

Not the script itself, but you can use other tools to check if they can connect or not.

BrunoGiubilei commented 5 years ago

i check connection using a java binary and i get this error

image

gotthardp commented 5 years ago

This may be due to a firewall, or you need to activate/enable the reader to listen to external devices.