CN105636112A - Method for obtaining MAC address and signal strength RSSI value of wireless device - Google Patents

Method for obtaining MAC address and signal strength RSSI value of wireless device Download PDF

Info

Publication number
CN105636112A
CN105636112A CN201610029212.1A CN201610029212A CN105636112A CN 105636112 A CN105636112 A CN 105636112A CN 201610029212 A CN201610029212 A CN 201610029212A CN 105636112 A CN105636112 A CN 105636112A
Authority
CN
China
Prior art keywords
router
rssi value
mac address
wireless device
signal intensity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610029212.1A
Other languages
Chinese (zh)
Inventor
黄晓宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Smart Space Information Technology Co Ltd
Original Assignee
Guangzhou Smart Space Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Smart Space Information Technology Co Ltd filed Critical Guangzhou Smart Space Information Technology Co Ltd
Priority to CN201610029212.1A priority Critical patent/CN105636112A/en
Publication of CN105636112A publication Critical patent/CN105636112A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method for obtaining the MAC address and the signal strength RSSI value of a wireless device. The method comprises following steps: A, providing a router as a detection device; B, providing a software system supporting device; operation a software system; obtaining detection data from the detection end of the router; further processing the obtained data; and obtaining the RSSI value and the MAC address from the data detected by the router. According to the method for obtaining the MAC address and the signal strength RSSI value of the wireless device provided by the invention, the bottom layer driver is rewritten by the selected router; a developed package capture program is matched; therefore, when the wireless device starts a wireless function, the MAC address and the signal RSSI value of the wireless device can be obtained even through the wireless device does not access a network; and the hardware device address and the signal RSSI value can be obtained more frequently after the wireless device accesses the network.

Description

The method obtaining wireless device MAC Address and signal intensity RSSI value
Technical field
The present invention relates to RSSI detection technique field, particularly relate to a kind of method obtaining wireless device MAC Address and signal intensity RSSI value.
Background technology
At present, along with the development of wireless location technology, indoor positioning technologies becomes the focus that people pay close attention to. Existing indoor positioning technologies mainly has: light track and localization technology, A-GPS location technology, ultrasonic locating technology, WiFi technology etc. Location technology based on WiFi has wide coverage, and information transfer rate is fast, it is achieved the concern of the advantage extremely people such as less costly.
Existing mobile positioning technique is according to its applied environment, substantially can be divided into two classes: a class is outdoor positioning technology on a large scale, mainly has several as follows: GPS positioning mode, cellular unit mark (Cell2ID) positioning mode, TOA positioning mode, TDOA positioning mode, AOA positioning mode, AOA/TOA mixed location method etc.; Another kind of is short distance indoor positioning technologies, typical in light tracing-positioning system, A2GPS location, radio wave and ultrasound wave integrated positioning, REID (RFID) and RSSI location etc.
Light track and localization generally requires that the linearly of followed the tracks of target and detector is visual and tracking target is opaque, by the collaborative work of fixing infrared camera and a lot of infrared light-emitting diode, completes track and localization. Due to its technical characterstic, high-precision light projection to be realized, it is desirable to possess the equipment of complexity and costliness. A2GPS is a kind of improvement GPS location technology that may be used for indoor, and it requires integrated gps receiver in mobile phone and the delay code that the substantial amounts of related device parallel search of need is possible, completes location. Due to the price of present stage GPS and embed it in the technical costs in mobile phone, determine the restricted gender of A2GPS application. Radio wave and ultrasonic synergistic location technology utilize the time difference of electromagnetic transmission and sonic transmissions to find range, and precision is higher and less costly, and determining it has certain market potential. But its measurement distance is shorter and sound absorption phenomena impair can be occurred to range measurement accuracy, if needing to realize the location of relatively long distance, it is necessary to extend out multistage amplifier circuit in ultrasound probe front end. Radio-frequency recognition system is mainly made up of three parts: electronic tag, card reader and transmit the miniature antenna of radiofrequency signal between label and card reader. When label is placed in after card reader sends and obtain energy near the electromagnetic field of fixed frequency and produce electrification reset, originally it is in the label of " resting state " to be activated and will modulate containing message codes such as self category identification code mark, manufacturer logos carrier wave is launched through card internal antenna, processes identification for card reader.
Generally, the position error of A2GPS is within the scope of 5��50 meters; RFID, light are followed the tracks of and hyperacoustic position error is within 1��2 meter. Wherein, radio wave and ultrasonic synergistic location, precision higher up to several centimetres to the order of magnitude of tens centimetres on. Require that the precision of Location Based Service to reach, within 50 meters, to reach within 150 meters when 95% when 67% according to FCC (FCC). Therefore, above-mentioned several alignment systems all can apply to the location of real system, but when practical application, it is necessary to balance cost is selected with demand.
In above-mentioned indoor positioning technologies, also having one is RSSI location technology. It is to utilize electromagnetic wave in transmitting procedure, and received signal power intensity and transmission range also exist certain variation relation, find out this variation relation in specific environment, just can be used for positioning. At present, many wireless chips that transmit/receive can provide RSSI detected value, as long as can communicate between chip in principle, it becomes possible to estimate distance therebetween. So, based on the location of RSSI, when positioning for real-time system, very convenient. But owing to being subject to the obstruction of the barriers such as various objects such as floor, wall and human body, electromagnetic wave can also exist reflection, diffraction and diffraction so that RSSI value change at random is bigger. Therefore, adopting a small amount of beaconing nodes to carry out RSSI location, often positioning precision is not high.
Comparatively rough due to gps location, and undesirable in particular space inner position effect, and particularly indoor positioning this part, gps cannot be accurately positioned substantially. The technical scheme of present main solution indoor positioning has bluetooth, ZigBee, bluetooth realizes location mainly by ibeacon, ZigBee mainly uses particular communication agreement to carry out computed range, and wireless location mainly relies on acquisition IEEE802.11 communications protocol to position. Bluetooth location needs to develop specific mobile phone app and positions, and ZigBee needs specific hardware to position, and wireless location needs equipment actively to connect wireless network.
Accordingly, it is desirable to provide a kind of method obtaining wireless device MAC Address and signal intensity RSSI value is to solve above-mentioned technical problem.
Summary of the invention
For solving above-mentioned technical problem, the technical solution used in the present invention is to provide a kind of method obtaining wireless device MAC Address and signal intensity RSSI value, by to the transformation of router bottom layer driving and the packet capturing program adapted developed, make wireless device open radio function and just can detect address and the signal intensity of hardware when not accessing network, and after hardware accesses network, it is possible to more frequently being obtain hardware address and the signal intensity of wireless device.
The technical scheme of the method for acquisition wireless device MAC Address provided by the invention and signal intensity RSSI value, including step:
A, offer router are as detection equipment, including three steps:
A1, choose router as hardware detection basis;
A2, according to select router rewrite bsp driver, and generate rely on storehouse accordingly;
A3, for above-mentioned bsp driver provide embedded OS;
B, offer software system prop up holding equipment, run software system, obtain detection data from router test side, and then the data got are processed, thus will the data that detect from router obtain out RSSI value and MAC Address, specifically include following steps:
B1, operation software system so that router bottom layer driving adjusts monitoring pattern, to capture 802.11 management frames and Frame generation packet;
B2, choose libpcap rely on storehouse, run compiler explain described packet;
B3, on explaining that packet out is uploaded onto the server;
RSSI value in packet and MAC Address are obtained out by B4, server.
In a preferred embodiment of the invention, described embedded OS is based on the openwrt system of linux kernel.
In a preferred embodiment of the invention, what described router adopted is the router chip of high pass series.
In a preferred embodiment of the invention, what described router adopted is the router supporting two network interfaces.
The invention has the beneficial effects as follows: the method for acquisition wireless device MAC Address provided by the invention and signal intensity RSSI value, bottom layer driving is rewritten according to the router chosen, and the packet capturing program of supporting exploitation, make wireless device when starting radio function, even if not accessing network also to be able to obtain hardware address and signal RSSI value, and can more frequently being obtain address and the signal RSSI value of hardware device after accessing network.
Accompanying drawing explanation
Fig. 1 is the flow chart of a preferred embodiment of the method obtaining wireless device MAC Address and signal intensity RSSI value of the present invention.
Detailed description of the invention
Below in conjunction with diagram, technical scheme is described in detail.
Shown in Figure 1, the method obtaining wireless device MAC Address and signal intensity RSSI value of the present invention, including step:
A, offer router are as detection equipment, including three steps:
A1, choose router as hardware detection basis;
A2, according to select router rewrite bsp driver, and generate rely on storehouse accordingly;
A3, for above-mentioned bsp driver provide embedded OS;
B, offer software system prop up holding equipment, run software system, obtain detection data from router test side, and then the data got are processed, thus will the data that detect from router obtain out RSSI value and MAC Address, specifically include following steps:
B1, operation software system, router bottom layer driving is made to adjust monitoring pattern, to capture 802.11 management frames and Frame generation packet, normal ap mode cannot be carried out this operation of packet capturing, our program is to call chip drives to adjust monitoring pattern, to realize this function of packet capturing;
B2, choose libpcap rely on storehouse, run compiler explain described packet;
B3, on explaining that packet out is uploaded onto the server;
RSSI value in packet and MAC Address are obtained out by B4, server.
In a preferred embodiment of the invention, described embedded OS is based on the openwrt system of linux kernel, what described router adopted is the router chip of high pass series, and main cause is that openwrt system is better to compatibility and the Exploitation degree of the router chip of high pass series.
The present invention is the adaptation that the hardware condition according to router does system, for instance in a preferred embodiment of the invention, and router supports two network interfaces, and corresponding needs does adaptation at bsp driver, to adapt to the router of an even network interface.
The method of acquisition wireless device MAC Address provided by the invention and signal intensity RSSI value, bottom layer driving is rewritten according to the router chosen, and the packet capturing program of supporting exploitation, make wireless device when starting radio function, even if not accessing network also to be able to obtain hardware address and signal RSSI value, and can more frequently being obtain address and the signal RSSI value of hardware device after accessing network.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make, or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention.

Claims (4)

1. the method obtaining wireless device MAC Address and signal intensity RSSI value, it is characterised in that include step:
A, offer router are as detection equipment, including three steps:
A1, choose router as hardware detection basis;
A2, according to select router rewrite bsp driver, and generate rely on storehouse accordingly;
A3, for above-mentioned bsp driver provide embedded OS;
B, offer software system prop up holding equipment, run software system, obtain detection data from router test side, and then the data got are processed, thus will the data that detect from router obtain out RSSI value and MAC Address, specifically include following steps:
B1, operation software system so that router bottom layer driving adjusts monitoring pattern, to capture 802.11 management frames and Frame generation packet;
B2, choose libpcap rely on storehouse, run compiler explain described packet;
B3, on explaining that packet out is uploaded onto the server;
RSSI value in packet and MAC Address are obtained out by B4, server.
2. the method for acquisition wireless device MAC Address according to claim 1 and signal intensity RSSI value, it is characterised in that described embedded OS is based on the openwrt system of linux kernel.
3. the method for acquisition wireless device MAC Address according to claim 1 and signal intensity RSSI value, it is characterised in that what described router adopted is the router chip of high pass series.
4. the method for acquisition wireless device MAC Address according to claim 1 and signal intensity RSSI value, it is characterised in that what described router adopted is the router supporting two network interfaces.
CN201610029212.1A 2016-01-14 2016-01-14 Method for obtaining MAC address and signal strength RSSI value of wireless device Pending CN105636112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610029212.1A CN105636112A (en) 2016-01-14 2016-01-14 Method for obtaining MAC address and signal strength RSSI value of wireless device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610029212.1A CN105636112A (en) 2016-01-14 2016-01-14 Method for obtaining MAC address and signal strength RSSI value of wireless device

Publications (1)

Publication Number Publication Date
CN105636112A true CN105636112A (en) 2016-06-01

Family

ID=56050478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610029212.1A Pending CN105636112A (en) 2016-01-14 2016-01-14 Method for obtaining MAC address and signal strength RSSI value of wireless device

Country Status (1)

Country Link
CN (1) CN105636112A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108668227A (en) * 2018-04-27 2018-10-16 广州仁星数位时代科技有限公司 A kind of characteristic recognition method, device and server based on block chain

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101351022A (en) * 2007-07-16 2009-01-21 艾威梯软件技术(北京)有限公司 Method and equipment for ordering radio equipment based on signal intensity
CN102083204A (en) * 2010-12-31 2011-06-01 中国科学技术大学苏州研究院 Positioning and tracking system method of active nodes in linear environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101351022A (en) * 2007-07-16 2009-01-21 艾威梯软件技术(北京)有限公司 Method and equipment for ordering radio equipment based on signal intensity
CN102083204A (en) * 2010-12-31 2011-06-01 中国科学技术大学苏州研究院 Positioning and tracking system method of active nodes in linear environment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王殿君: "一种基于WLAN 的RSSI 值获取方法", 《机床与液压》 *
许倩: "基于OpenWrt系统路由器的功能模块的开发", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108668227A (en) * 2018-04-27 2018-10-16 广州仁星数位时代科技有限公司 A kind of characteristic recognition method, device and server based on block chain

Similar Documents

Publication Publication Date Title
CN102184436B (en) Method for sensing position of object in Internet of things
US20060114104A1 (en) RFID reader management system and method
CN102043151B (en) Mobile terminal and method for positioning based on radio frequency identification
US20080157970A1 (en) Coarse and fine location for tagged items
CN103813448A (en) Indoor positioning method based on RSSI
US9226114B2 (en) Method and system of incorporating passive-based proximity data for position determination
CN104144497A (en) Detection method and system for user entry and exit region on basis of Bluetooth beacon devices
US10521627B2 (en) RFID module for through boundary location accuracy
CN104144496A (en) Indoor positioning method and system based on beacon devices
Krukowski et al. RFID-based positioning for building management systems
KR100993332B1 (en) Mobile-terminal for providing variation of in-out door position and method thereof
CN112308998A (en) Indoor positioning intelligent inspection system and method based on Bluetooth
Kwiecień et al. Reliability of bluetooth smart technology for indoor localization system
CN111866701B (en) Positioning method, communication system and positioning system
Dong et al. GPSMirror: Expanding Accurate GPS Positioning to Shadowed and Indoor Regions with Backscatter
CN105636112A (en) Method for obtaining MAC address and signal strength RSSI value of wireless device
KR20080098908A (en) Method and system of understanding indoor position using zigbee
JP2017529516A (en) Method and device and system for positioning user equipment
US20120296594A1 (en) Pressure detection arrangement and method
US20160377699A1 (en) Positioning System and Method
US7382317B1 (en) Two-stage location system
KR100991020B1 (en) System for tracking moving object's location in a given space using ubiquitous sensor network
CN205038337U (en) Indoor location based service system based on CSS accurate positioning
Motakabber et al. Development of a position detection technique for UWB chipless RFID tagged object
KR101176834B1 (en) Method and Apparatus for estimation of target object position using magnetic field sensor, and Recording medium thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160601

RJ01 Rejection of invention patent application after publication