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());
}
}
}
}
RSSI value
Moderators: Matt, kyle, Moderators
Re: RSSI value
Currently emulator does not implement rssi..this only comes by connecting rifidi edge to a real reader that supports rssi
Who is online
Users browsing this forum: No registered users and 1 guest