Communicating with an Alien ALR-8800 RFID reader using Python’s telnetlib

Very simple script that automatically enters the default username and password for the reader. The user can then enter commands and the results will be printed to the screen.

# Program written 17 April 2014
# Enter default username and password
# waits for commands, then prints results

import telnetlib

tn = telnetlib.Telnet("", "23")

print tn.read_until("Username>") # wait till prompted for username

print tn.read_until("Password>") # wait till prompted for password
print tn.read_until("Alien>")

while True:
	tn.write(raw_input()+ "\n") # enter commands
	print tn.read_until('Alien>')

Below is an example of the program running. In this case I sent the ‘get Taglist’ command which causes the reader to try and find tags.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s