LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices



Reply
 
Search this Thread
Old 06-07-2010, 06:09 PM   #1
aztroboy
LQ Newbie
 
Registered: Jun 2010
Posts: 19

Rep: Reputation: 0
Question Getting the RSSI information in C


Hello everyone!

I'm studying socket programming in wireless devices and one of the main issues that I'm facing right now is getting the RSSI information from a client.

I'm running scripts on a WRT54GL router with OpenWRT. As far as I understand, getting the RSSI information is possible with "wl rssi <client MAC>". So I thought I could use a popen(); to run a command and get the output within the program.I tried it and it prompts:

Code:
root@mesh: wl rssi 00:23:08:B3:04:8C
rssi is -56
However, I noticed that even though I turned off the laptop's WLAN NIC, it still prompted something!!. Moreover, if I enter an imaginary MAC address, it still shows something:

Code:
root@mesh: wl rssi 11:22:33:44:55:66
rssi is -61
I found that this is not a reliable method, since after making another test that consisted in moving away from the router while running "wl rssi 00:23:08:B3:04:8C" every second, the values didn't change too much.

**
I also tried this method: http://bit.ly/aeiahG. I ran the code on the router, but I'm not sure where to specify the RSSI from a target client.




So I would like to ask: Is there a way to get the RSSI information from an specific client in C?.


Thank you.
 
Old 06-09-2010, 04:49 PM   #2
aztroboy
LQ Newbie
 
Registered: Jun 2010
Posts: 19

Original Poster
Rep: Reputation: 0
bump! anyone?
 
Old 09-06-2011, 11:41 AM   #3
usmanca
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
Hi,
Any success in reading RSSI from the client ?

Regards,
 
Old 09-13-2011, 03:29 AM   #4
Bladerunner1989
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
Hi,
I think you can try iwspy - it gives all you need. However, as far as I understand not all cards support it. Use command
Code:
sudo iwspy <interface name> <ip-address to monitor>
. However, it doesn't work on my card AR5413, so I have to find some other solution.
 
  


Reply

Tags
openwrt, programming, socket, wrt54g


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ioctl call for obtaining the RSSI saioha Linux - Wireless Networking 11 03-27-2012 12:47 PM
How to find out indone information and datablocks information in a file system chaitanya1982 Linux - Newbie 1 09-24-2008 02:58 AM
need information venu Linux - Certification 4 10-07-2006 02:37 PM
Hiding machine information and root information geletine Linux - Security 6 07-14-2006 08:57 AM
More Information gutter007 Linux - General 2 01-31-2001 08:25 PM


All times are GMT -5. The time now is 01:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration