RSSI value

All questions related to the usage of Rifidi Emulator

Moderators: Matt, kyle, Moderators

Post Reply
thiagocl
Posts: 1
Joined: Thu Jun 02, 2016 9:15 am
Organization: ufsm

RSSI value

Post by thiagocl » Thu Jun 02, 2016 9:37 am

Hello,

I'm new with the emulator.

I'm trying to get the RSSI value using a program(program code under).

But I have a problem: the retrieved value is always 0.

Why?

How can I obtain the correct value?

Thanks in advance.

Thiago

package classes;

import com.alien.enterpriseRFID.reader.*;
import com.alien.enterpriseRFID.tags.*;
import java.util.*;

/**
*
* @author Aluno
*/
public class AlienClass1ReaderTest {

/**
* Constructor
*/
public AlienClass1ReaderTest() throws Exception {

AlienClass1Reader reader = new AlienClass1Reader();
// reader.setConnection("COM1");

// To connect to a networked reader instead, use the following:

reader.setConnection("127.0.0.1", 20000);
reader.setUsername("alien");
reader.setPassword("password");


// Open a connection to the reader
reader.open();

// Ask the reader to read tags and print them
Tag tagList[] = reader.getTagList();
if (tagList == null) {
System.out.println("No Tags Found");
} else {
for (int i=0; i<tagList.length; i++) {
Tag tag = tagList;

System.out.println("");
System.out.println("Tag Found:\n" + tag.toLongString());
System.out.println("Tag=" + tag.getTagID() +
", Disc=" + tag.getDiscoverTime() +
", Last=" + tag.getRenewTime() +
", Ant=" + tag.getAntenna() +
", RSSI=" + tag.getRSSI() +
", Count=" + tag.getRenewCount());
}
}

// Close the connection
reader.close();
}

/**
* Main
*/
public static final void main(String args[]){

while(true){
try {
AlienClass1ReaderTest test = new AlienClass1ReaderTest();
} catch(Exception e) {
System.out.println("Error: " + e.toString());
}
}
}
}

bppause
Posts: 434
Joined: Sat Oct 03, 2009 12:30 am
Organization: Pramari

Re: RSSI value

Post by bppause » Tue Jun 07, 2016 7:54 pm

Currently emulator does not implement rssi..this only comes by connecting rifidi edge to a real reader that supports rssi

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests