Sirit IN-510 reader emulation problems on Ubuntu 8.04

Discuss Virtual Reader implementations

Moderators: Matt, kyle, Moderators

Post Reply
feathers
Posts: 2
Joined: Wed May 26, 2010 9:43 am

Sirit IN-510 reader emulation problems on Ubuntu 8.04

Post by feathers » Wed May 26, 2010 10:21 am

I'm running the RifidiEmulator-1.6 on Ubuntu 8.04. I'm experiencing two major problems with the Sirit IN-510 reader:

1. The reader does not listen on port 50008
2. The reader does not recognize any command or request sent to port 50007

The following netstat(1) output suggests that the reader does not listen for client notification connections on port 50008:

Code: Select all

~ $ sudo netstat -alp | egrep '50007|50008'
tcp6       0      0 localhost:50007         [::]:*                  LISTEN      15946/emulator  
The following telnet(1) session suggests that the reader somehow fails to parse every/any command sent to it:

Code: Select all

~ $ telnet -e~ 127.0.0.1 50007
Telnet escape character is '~'.
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '~'.
~toggle crlf

telnet> toggle crlf
Will send carriage returns as telnet <CR><LF>.
reader.login(login=admin, pwd=readeradmin)
error.parser.unknown_command

version.sw
error.parser.unknown_variable
NOTE: The commands/requests also fail without enabling <CR><LF>.

I'm running with Java 1.6:

Code: Select all

~ $ java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
Would appreciate assistance from anyone who might know how to remedy the above issues.

feathers
Posts: 2
Joined: Wed May 26, 2010 9:43 am

Re: Sirit IN-510 reader emulation problems on Ubuntu 8.04

Post by feathers » Fri May 28, 2010 3:15 pm

Checking the source code itself, I see that the Sirit IN-510 emulation is a work-in-process. Only six commands are supported, as indicated by the reader.xml file:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<ReaderCommand version="1.0">

	<ReaderCompany>Sirit</ReaderCompany>
	<Reader>INfinity 510</Reader>
	
	<Command>
		<queryName>info.name</queryName>
		<displayName>ReaderName</displayName>
		<commandState>Interactive</commandState>
		<commandHandlerDetails>
			<handlerClass>org.rifidi.emulator.reader.sirit.commandhandler.SiritInfo</handlerClass>
			<handlerMethod>info_name</handlerMethod>
			<argumentType>String</argumentType>
		</commandHandlerDetails>
		<actionTag>EDITABLE</actionTag>
		<category>NONE</category>
		<defaultValue>unknown</defaultValue>
	</Command>
	
	<Command>
		<queryName>setup.operating_mode</queryName>
		<displayName>OperatingMode</displayName>
		<commandState>Interactive</commandState>
		<commandHandlerDetails>
			<handlerClass>org.rifidi.emulator.reader.sirit.commandhandler.SiritSetup</handlerClass>
			<handlerMethod>setup_operatingMode</handlerMethod>
			<argumentType>String</argumentType>
		</commandHandlerDetails>
		<actionTag>EDITABLE</actionTag>
		<category>NONE</category>
		<defaultValue>standby</defaultValue>
	</Command>
	
	<Command>
		<queryName>setup.default_login_level</queryName>
		<displayName>DefaultLoginLevel</displayName>
		<commandState>Interactive</commandState>
		<commandHandlerDetails>
			<handlerClass>org.rifidi.emulator.reader.sirit.commandhandler.SiritSetup</handlerClass>
			<handlerMethod>setup_defaultLoginLevel</handlerMethod>
			<argumentType>String</argumentType>
		</commandHandlerDetails>
		<actionTag>EDITABLE</actionTag>
		<category>NONE</category>
		<defaultValue>admin</defaultValue>
	</Command>
	
	<Command>
		<queryName>tag.db.get</queryName>
		<displayName>GetDatabase</displayName>
		<commandState>Interactive</commandState>
		<commandHandlerDetails>
			<handlerClass>org.rifidi.emulator.reader.sirit.commandhandler.SiritTag</handlerClass>
			<handlerMethod>tag_db_get</handlerMethod>
			<argumentType>String</argumentType>
		</commandHandlerDetails>
		<actionTag>IGNORE</actionTag>
		<category>NONE</category>
		<defaultValue></defaultValue>
	</Command>
	
	<Command>
		<queryName>antennas.detected</queryName>
		<displayName>DetectedAntennas</displayName>
		<commandState>Interactive</commandState>
		<commandHandlerDetails>
			<handlerClass>org.rifidi.emulator.reader.sirit.commandhandler.SiritAntennas</handlerClass>
			<handlerMethod>antennas_detected</handlerMethod>
			<argumentType>String</argumentType>
		</commandHandlerDetails>
		<actionTag>EDITABLE</actionTag>
		<category>NONE</category>
		<defaultValue>1 2</defaultValue>
	</Command>
	
	<Command>
		<queryName>reader.is_alive</queryName>
		<displayName>isAlive</displayName>
		<commandState>Interactive</commandState>
		<commandHandlerDetails>
			<handlerClass>org.rifidi.emulator.reader.sirit.commandhandler.SiritReader</handlerClass>
			<handlerMethod>reader_isAlive</handlerMethod>
			<argumentType>String</argumentType>
		</commandHandlerDetails>
		<actionTag>IGNORE</actionTag>
		<category>NONE</category>
		<defaultValue></defaultValue>
	</Command>
</ReaderCommand>
c.f.: https://67.207.137.86/svn/rep-external/ ... reader.xml

And I believe that some of these six commands are not working. [e.g. tag.db.get() did not work for me]

kyle
Posts: 220
Joined: Tue Apr 22, 2008 10:12 pm
Name: Kyle
Organization: Pramari
Location: Hartford, CT
Contact:

Re: Sirit IN-510 reader emulation problems on Ubuntu 8.04

Post by kyle » Tue Jun 01, 2010 8:42 am

Yes the vitual Sirit reader does not support all the commands. We do not have plans to continue work on this virtual reader at the moment as the focus of our core developers is on building out the edge server API and SDK.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests