3

I'm working on an indoor geo-location topic and I'm a newbie with RPi.

I want the RPi to scan Wi-Fi devices (and get their IP addresses) and determine their emission power. I want to associate each IP address with its received power by means of RPi.

Is it possible? Is there any way to do this?

  • I'm newbie with RPi, and I don't know from where to start – Cyrine Nasri Feb 9 '16 at 20:37
  • 1
    Welcome to the Raspberry Pi flavoured corner of the Stack Exchange network! I have suggested an edit to the title and tags to more accurately reflect the body of the question... By the way if you are scanning for devices, if there is more than one WiFi network present and they are using IPv4 addresses (most will) and Network Address Translation or other systems where the devices are using a private range of IP address (e.g. 192.168.x.x or 10.x.x.x) then the IP address is less useful than the MAC (Media Access Control) as that WILL be a unique ID. – SlySven Feb 9 '16 at 22:06
  • I'm using only one WIFI and I need IP/MAC addresses combined for each device: scanning the IP address to get different information and then the MAC represents a unique identifier that will be stored in a server. Is there a way to combine them ? – Cyrine Nasri Feb 10 '16 at 14:59
3

Yes it's possible, a great tutorial is Wi-Fi on the Command Line, but make sure to use an 8dBi, or greater, omni-direcional/uni-directional antenna with your Wi-Fi card. Feel free to ask further questions - I'll be glad to answer.

UPD - as requested - a cite with a main concept :

sudo iwlist wlan0 scan

You'll see output resembling:

Cell 01 - Address: 00:11:22:33:44:55
      ESSID:"network-essid"
      Mode:Master
      Channel:11
      Frequency:2.462 GHz (Channel 11)
      Quality=100/100  Signal level:-47dBm  Noise level=-100dBm
      Encryption key:off
      .
      .
  • 2
    While your answer does point to a tutorial which may answer the question, there isn't enough detail in your answer. Should the tutorial vanish, the answer will be useless. Can you summarise the important points? – goobering Feb 9 '16 at 15:27
  • I want to use RPi as an access point which collect the needed information (ip adresses and received power). Is it possible to use wifi P2P ? – Cyrine Nasri Feb 9 '16 at 15:48
  • @goobering I'm not citing the manual/google/standard - the main point is to use iwXXX - especially iwconfig and iwlist tools to probe an environment step-by-step. The notice about an antenna is from my own personal experience measuring WiFi and BT signals. – Alexey Vesnin Feb 9 '16 at 16:40
  • @CyrineNasri yes it's possible. It depends on your hardware which tactics will succeed : probing or enabling/adding a debug output from a wifi driver, please tell me your desired setup and HW specs - I may be able to help you – Alexey Vesnin Feb 9 '16 at 16:42
  • @AlexeyVesnin - If you could update/expand your answer with the information in your comment that would be great... that is the point that goobering is trying to make. As he said, if the link goes down, then your answer, as it currently stands, will not be much use. So, if you can edit your answer (and not add extra information as comments, as it makes the answer somewhat piecemeal) and cite the main points from the article, then it would make your answer much more useful. Thanks. – Greenonline Feb 9 '16 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.