To read RSSI from WiFi Sensor
Asked Answered
O

2

1

Please help me how to write a code in Java to read the Received Signal Strength Indicator from the WiFi sensor. I tried to do so using socket programming but all my tries weren't get what I want. now I am looking in J2me I may get good answer but I see i may need some advices. Thank you

Overijssel answered 22/8, 2011 at 2:1 Comment(1)
offhand I'd guess that you'd need to do some JNI with C; find out how to do it in C and then work on the JNI part.Stroll
I
0

Are you using Windows? WlanAPI should be able to tell you this information which it receives from the WiFi interface so you want to make sure that the WiFi interface on your computer supports whatever bands you need. You neeed to build your own wrappers around the native APIs though.

Interpretation answered 22/8, 2011 at 6:2 Comment(1)
Thanks OneDeveloper but I think I need time to read then will let you know.Overijssel
M
0

there is an opensource project with the name PlaceLab which i used for reading the RSSI and BSSID of Access Point for my thesis.. At that time it was hosted at http://www.placelab.org but seems like it isn't accessible anymore but there a project page at SourceForge, here: http://sourceforge.net/projects/placelab/ from where I think you can get the Java wrapper and Spotter.dll with it's source written in C++ ...

Meath answered 22/8, 2011 at 2:18 Comment(3)
I couldn't find what you means .... but I found code the needs a time to understand it.Overijssel
I am trying to execute this code. public static int calculateSignalLevel(int rssi, int numLevels) { if (rssi <= MIN_RSSI) {return 0;} else if (rssi >= MAX_RSSI) { return numLevels - 1; } else { int partitionSize = (MAX_RSSI - MIN_RSSI) / (numLevels - 1); return (rssi - MIN_RSSI) / partitionSize; } } but how could I get the function values ...Overijssel
what do you mean by function values?Meath
I
0

Are you using Windows? WlanAPI should be able to tell you this information which it receives from the WiFi interface so you want to make sure that the WiFi interface on your computer supports whatever bands you need. You neeed to build your own wrappers around the native APIs though.

Interpretation answered 22/8, 2011 at 6:2 Comment(1)
Thanks OneDeveloper but I think I need time to read then will let you know.Overijssel

© 2022 - 2024 — McMap. All rights reserved.