Generic reader and readzone

Questions about developing the edge server core as well as applications

Moderators: Matt, kyle

Post Reply
Francesco
Posts: 3
Joined: Tue Jan 21, 2014 11:29 am

Generic reader and readzone

Post by Francesco » Wed Jan 22, 2014 5:18 am

Hello,

I'm very new at RIFIDI. I want to use a Motorola Handheld to send data to Rifidi-EdgeServer. I turn the edgeserver up and running. I create a Generic reader, set its Port property to 9999, create a session and start it. When I use the handheld to send message I see edgeserver prompting this:

Code: Select all

osgi> 09:19:28,807  INFO org.rifidi.edge.sensors.sessions.AbstractServerSocketSensorSession:127 - Generic_1 listening on port 9999.  Maximum number of concurrent readers supported: 10
09:19:48,627  INFO org.rifidi.edge.sensors.sessions.AbstractServerSocketSensorSession:138 - Accepted client at /192.168.0.71
09:19:48,838  INFO org.rifidi.edge.sensors.sessions.ServerSocketSensorSessionReadThread:68 - Socket: /192.168.0.71:1362 closed. Exiting AbstractServerSocketSensorSessionReadThread
So, I suppose handheld and edgeserver communicate each other. Now I want to see data handheld will send to edgeserver. I copy the Rifidi-SDK/org.rifidi.app.example in my workspace and change the Examples/readzones/readzone-dockdoor.properties as follow:

Code: Select all

readerID=Generic_1
antennas
Generic_1 implements the handheld. Now, how to run my ExampleApp in the edgeserver and show data sent by handheld?

karthik9891
Posts: 16
Joined: Tue Jun 14, 2016 2:02 am

Re: Generic reader and readzone

Post by karthik9891 » Fri Jun 17, 2016 5:35 am

Hello,

I'm too struck in the same place as you are. Any idea on how to make this work?

Matt
Posts: 362
Joined: Fri May 02, 2008 11:56 am
Organization: Pramari

Re: Generic reader and readzone

Post by Matt » Tue Jun 28, 2016 1:45 am

If your handheld is sending tags back to the server in the way specified in the User doc (be sure to add a "\n" to the end of every tag message, this will be corrected for the soon-to-be released 3.5.1 docs), one quick way to check if tags are coming in is

Code: Select all

recenttags Generic_1
or

Code: Select all

currenttags Generic_1
If you see tags there you know your app is sending them back correctly. After that try to get the app working.

-Matt

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests