I have attached a Times7 5020 antenna to the M7E. We are using a Linux setup. The antenna can see 1 or 2 tags at times that are within 3 ft direct line of site.
With this setup I should be able to see hundreds at a time. Not sure what we are doing incorrectly .
I work with Brad, and below is the code we’re using. We can connect to the reader successfully every time; however, tag reads are inconsistent — sometimes it detects tags, but most of the time it doesn’t find any.
import mercury
import time
from datetime import datetime
def connect_reader(uri, baudrate=115200, retries=5):
last_error = None
for attempt in range(1, retries + 1):
try:
reader = mercury.Reader(uri, baudrate=baudrate)
# Small warm-up delay (important)
time.sleep(0.5)
return reader
except Exception as e:
print(f"[WARN] Reader init attempt {attempt} failed:", e)
last_error = e
time.sleep(1)
raise RuntimeError(f"Failed to initialize reader after {retries} attempts") from last_error
# ---- main ----
reader = connect_reader("tmr:///dev/ttyUSB0")
# Apply configuration AFTER successful connect
reader.set_region("NA")
reader.set_read_plan([1], "GEN2")
reader.set_gen2_target(2)
reader.set_read_powers([(1, 2200)])
print(reader.get_gen2_target())
print("Reader Model :", reader.get_model())
print("Serial Number :", reader.get_serial())
print("Firmware :", reader.get_software_version())
print("Antennas :", reader.get_antennas())
print("Power Range :", reader.get_power_range())
print("Temperature :", reader.get_temperature())
print("\nReading tags...\n")
print(reader.read())
reader.start_reading(lambda tag: print(tag.epc, tag.antenna, tag.read_count, tag.rssi, datetime.fromtimestamp(tag.timestamp)))
time.sleep(1)
reader.stop_reading()
Are you referring to an external power supply..Currently we are using the USBC power from the RasberryPi I have not connected an external power supply.
The issue is the external antenna…It is connected to the board…If we move the rfids withing abou 6” of the board we can see the RFIDs…If we put the RFID tags about 12 “ in front of the antenna we can not see anything..So it seems the antenna is not send / receving ..Any ideas on what might be the issue?