Where modeling and return RSSI
Moderators: Matt, kyle, Moderators
Where modeling and return RSSI
Hi,
Sorry for my English,I am doing about Indoor Location Sensing.Now ,edge server and emulator can be connected,and draw some demo through designer,but the model is not i want .it just can identify the tag,not locate it. I need rifidi return rssi to eclipse, so i can locate where the tag.
Sorry for my English,I am doing about Indoor Location Sensing.Now ,edge server and emulator can be connected,and draw some demo through designer,but the model is not i want .it just can identify the tag,not locate it. I need rifidi return rssi to eclipse, so i can locate where the tag.
Re: Where modeling and return RSSI
As far as I'm aware, there isn't a way to simulate RSSI using the Emulator. However, if you happen to have an actual reader on hand, it shouldn't be too difficult to configure it to send RSSI to Rifidi.
Re: Where modeling and return RSSI
As I run a demo, I create a reader in the edge server , put a session and a command in the reader.Also I create a reader and some tags,then open the reader ,we can see some information about the tags,the following picture shows.There is an option about RSSI,but the RSSI is 0, Can I understand that RSSI can be got or not? Or RSSi can not be got completely through software. i will be appreciated for your answer,Thank you !nurban wrote:As far as I'm aware, there isn't a way to simulate RSSI using the Emulator. However, if you happen to have an actual reader on hand, it shouldn't be too difficult to configure it to send RSSI to Rifidi.
Re: Where modeling and return RSSI
You can most definitely get the RSSI using the software. However, you cannot simulate the RSSI using the emulator application. You'll need a real reader, the emulator readers will always give you 0.
Re: Where modeling and return RSSI
OK! I got it ! Thank you very much!nurban wrote:You can most definitely get the RSSI using the software. However, you cannot simulate the RSSI using the emulator application. You'll need a real reader, the emulator readers will always give you 0.
Re: Where modeling and return RSSI
Can you tell me how to get the RSSI using the software in details? I need to get the value of RSSI to Achieve positioning!!! Thank you!
Re: Where modeling and return RSSI
First, you'll need to configure your reader to send RSSI along with the other tag data. How you do this depends on the reader you're using. For an Alien reader, you'll need to set TagListFormat to Custom. Then, make sure RSSI is part of your TagListCustomFormat (ex. Tag:%i, Rssi:%m).
On the Rifidi side of things, I believe there is a getRssi() method defined under org.rifidi.edge.adapter.alien.messages.AlienTag that might work, but I can't say I've ever tried it. You can also go about retrieving it yourself, which will require authoring your own method.
On the Rifidi side of things, I believe there is a getRssi() method defined under org.rifidi.edge.adapter.alien.messages.AlienTag that might work, but I can't say I've ever tried it. You can also go about retrieving it yourself, which will require authoring your own method.
Re: Where modeling and return RSSI
You can simulate RSSI with the emulator without too much trouble if you are running in eclipse by hacking up an Alien adapter. The method is crude but it works in a pinch if you don't have access to real hardware and need to test RSSI interactions.
Here's a simple example of what you can do (line 83 of AlienTagReadEventFactory.java):
This will set the RSSI of tags seen on reader Alien_1 to 200 and all other Alien readers to 100. Just make this code change, then swap out the Alien in your run configuration and connect to the emulator like normal.
Eventually we'd like to offer RSSI as a programmable option in the emulator, but until then this will work.
Here's a simple example of what you can do (line 83 of AlienTagReadEventFactory.java):
Code: Select all
if (alienTag.getRssi() != null) {
//retVal.addExtraInformation(TagReadEvent.RSSI, alienTag.getRssi());
double rand = (Math.random() * 200);
if(this.readerID.equals("Alien_1")) {
retVal.addExtraInformation(TagReadEvent.RSSI, 200.0 );
} else {
retVal.addExtraInformation(TagReadEvent.RSSI, 100.0);
}
}
Eventually we'd like to offer RSSI as a programmable option in the emulator, but until then this will work.
Who is online
Users browsing this forum: No registered users and 2 guests