CN103561119B - Obtain method, device and the equipment of Media Access Control address - Google Patents

Obtain method, device and the equipment of Media Access Control address Download PDF

Info

Publication number
CN103561119B
CN103561119B CN201310368647.5A CN201310368647A CN103561119B CN 103561119 B CN103561119 B CN 103561119B CN 201310368647 A CN201310368647 A CN 201310368647A CN 103561119 B CN103561119 B CN 103561119B
Authority
CN
China
Prior art keywords
mac address
partition holding
address
setting interface
storage
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.)
Active
Application number
CN201310368647.5A
Other languages
Chinese (zh)
Other versions
CN103561119A (en
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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310368647.5A priority Critical patent/CN103561119B/en
Publication of CN103561119A publication Critical patent/CN103561119A/en
Application granted granted Critical
Publication of CN103561119B publication Critical patent/CN103561119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of method, device and equipment for obtaining Media Access Control address, belong to network technique field.Methods described includes:The address of partition holding, searches the partition holding in the terminal according to where medium access control MAC Address;The MAC Address is obtained from the partition holding.The present invention passes through partition holding described in the address search of partition holding where MAC Address, and obtain MAC Address in the partition holding, can reach can also get the purpose of MAC Address under without Wi Fi connection status, the mode for obtaining MAC Address is extended, the success rate for obtaining MAC Address is improved.

Description

Obtain method, device and the equipment of Media Access Control address
Technical field
It is more particularly to a kind of to obtain MAC (Medium Access Control, medium the present invention relates to network technique field Access control) address method, device and equipment.
Background technology
With the continuous progress of society, network is wirelessly accessed by increasingly by smart machines such as mobile terminals The favor of many people.Such a mode for accessing network is while bringing huge convenient, and there is also many safety is hidden Suffer from.In order to ensure access network mobile terminal legitimacy, effectively prevent unwarranted mobile terminal network visiting, when with When family is by mobile terminal network visiting, next hot technology when the port access authentication based on MAC Address becomes is carried out. And when carrying out the port access authentication based on MAC Address, need to first get the MAC Address of mobile terminal.Therefore, how to obtain MAC Address, is the key for carrying out the port access authentication based on MAC Address.
At present, mobile terminal is added first in the associated documents for be built in its own system and obtained when obtaining MAC Address The authority of Wi-Fi (Wireless Fidelity, the Wireless Fidelity) state of access, Wi-Fi states include opening and close shape State;Obtained in addition after the authority for accessing Wi-Fi states, orientation management Wi-Fi service module is navigating to management Wi- After Fi service module, it is attached with management Wi-Fi service module;Afterwards, management Wi-Fi service module is passed through Obtain the MAC Address in network interface card.For example:Management Wi-Fi service module detects whether that addition is obtained in associated documents and visited The authority of Wi-Fi states is asked, if detecting the authority for the addition of in associated documents and obtaining and accessing Wi-Fi states, Wi- is detected Fi states;After Wi-Fi states are detected for opening, management Wi-Fi service module obtains mobile whole from network interface card The MAC Address at end, and the MAC Address is sent to mobile terminal.
During the present invention is realized, inventor has found that current technology at least has problems with:
When wireless network signal is unstable, the probability of acquisition for mobile terminal to MAC Address is relatively low, and for that can not connect To for the mobile terminal of wireless network, MAC Address can not be got at all.
The content of the invention
The problem of in order to solve in background technology, the embodiments of the invention provide a kind of acquisition Media Access Control address Method, device and equipment.The technical scheme is as follows:
There is provided a kind of method for obtaining Media Access Control address, in terminal, methods described bag for first aspect Include:
The address of partition holding according to where MAC Address, searches the partition holding in the terminal, and the medium is visited The address of partition holding where asking control MAC Address is used for the position for positioning the partition holding;
The MAC Address is obtained from the partition holding;
Wherein, it is described to obtain the MAC Address from the partition holding, including:
The Storage Item with MAC Address keyword is searched in the partition holding;
Obtain the storage content in the Storage Item found.
Alternatively, the Storage Item of the lookup with MAC Address keyword in the partition holding, including:
Determine the keyword of each Storage Item in the partition holding;
The Storage Item of starting storage mark with MAC Address and termination storage mark had into MAC as what is found The Storage Item of address key words.
Wherein, methods described also includes:
For the MAC Address distribution system attribute of acquisition, and the MAC Address of acquisition is stored to system property arranged In table.
Alternatively, methods described also includes:
The access request to setting interface is received, the setting interface is stored in the system property list for acquisition The MAC Address.
Alternatively, methods described also includes:
Determine whether the setting interface is provided with access rights;
When it is determined that the setting interface is provided with access rights, authentication is carried out, and in authentication by rear, Permit the access request to the setting interface.
Second aspect, obtains the device of Media Access Control address, in terminal, it is characterised in that described device bag Include:
Searching modul, for the address of the partition holding according to where MAC Address, searches the storage point in the terminal Area, the address of partition holding where the medium access control MAC Address is used for the position for positioning the partition holding;
Acquisition module, for obtaining the MAC Address from the partition holding that the searching modul is found.
Wherein, the acquisition module, including:
Searching unit, for searching the Storage Item with MAC Address keyword in the partition holding;
Acquiring unit, for obtaining the storage content in the Storage Item that the searching unit is found.
Alternatively, the searching unit, including:
First determination subelement, the keyword for determining each Storage Item in the partition holding;
Second determination subelement, the Storage Item for the starting storage mark with MAC Address and termination to be stored to mark It is used as the Storage Item with MAC Address keyword found.
Wherein, described device also includes:
Distribute module, for the MAC Address distribution system attribute obtained for the acquisition module, and by the institute of acquisition MAC Address is stated to store into system property list.
Alternatively, described device also includes:
Receiving module, for receiving the access request to setting interface, the setting interface is stored in described for acquisition The MAC Address in system property list.
Alternatively, described device also includes:
Determining module, for determining whether the setting interface is provided with access rights;
Permissions module, for when the determining module determines that the setting interface is provided with access rights, carrying out body Part checking, and authentication pass through it is rear, permit to it is described setting interface access request.
The third aspect is there is provided a kind of equipment, and the equipment includes memory, and one or more than one journey Sequence, one of them or more than one program storage is configured to by one or more than one processor in memory Perform, one or more than one program bag contains the instruction for being used for being operated below:
The address of partition holding, searches the partition holding, the medium access control in the terminal according to where MAC Address The address of partition holding where MAC Address processed is used for the position for positioning the partition holding;
The MAC Address is obtained from the partition holding;
For the MAC Address distribution system attribute of acquisition, and the MAC Address of acquisition is stored to system property arranged In table;
It is described to obtain the MAC Address from the partition holding, including:
The Storage Item with MAC Address keyword is searched in the partition holding;
Obtain the storage content in the Storage Item found.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By partition holding where the address search MAC Address of partition holding where MAC Address, and obtained in partition holding MAC Address is taken, can reach can also get the purpose of MAC Address under without Wi-Fi connection status, extend acquisition MAC Address Mode, improve obtain MAC Address success rate.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some citings of the embodiment of the present invention, For those of ordinary skill in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings Other accompanying drawings.
Fig. 1 is a kind of method flow diagram for acquisition Media Access Control address that the embodiment of the present invention one is provided;
Fig. 2 is a kind of method flow diagram for acquisition Media Access Control address that the embodiment of the present invention two is provided;
Fig. 3 is the apparatus structure schematic diagram for the first acquisition Media Access Control address that the embodiment of the present invention three is provided;
Fig. 4 is a kind of internal structure schematic diagram for acquisition module that the embodiment of the present invention three is provided;
Fig. 5 is the apparatus structure schematic diagram for second of acquisition Media Access Control address that the embodiment of the present invention three is provided;
Fig. 6 is the apparatus structure schematic diagram for the third acquisition Media Access Control address that the embodiment of the present invention three is provided;
Fig. 7 is the apparatus structure schematic diagram for the 4th kind of acquisition Media Access Control address that the embodiment of the present invention three is provided;
Fig. 8 is a kind of structural representation for equipment that the embodiment of the present invention four is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with accompanying drawing to the present invention Embodiment is described in further detail.
Embodiment one
The embodiments of the invention provide a kind of method for obtaining Media Access Control address, with applied to being equipped with Android system Exemplified by the mobile terminal of system.Each is equipped with the mobile terminal of Android system when dispatching from the factory, all hard in its inner setting one Part partition holding, the various information of the dynamic terminal are moved for storing.For example, the MAC Address of mobile terminal, MDID (Multimedia Devices Identity, multimedia equipment identity) string number, Bluetooth address, radio frequency parameter and identification Code etc..For visually, said process handles one " registered permanent residence " equivalent to when mobile terminal dispatches from the factory for the mobile terminal, should The various information of the mobile terminal are have recorded in " registered permanent residence " in detail, and " registered permanent residence " just can be known mobile terminal is somebody's turn to do by inquiry Various information.In conjunction with the above, the mode of the acquisition Media Access Control address provided the present embodiment is explained Illustrate, referring to Fig. 1, the method flow that the present embodiment is provided includes:
101:The address of partition holding, searches the partition holding in the terminal according to where MAC Address;
102:MAC Address is obtained from the partition holding.
Alternatively, MAC Address is obtained from partition holding, is included but is not limited to:
The Storage Item with MAC Address keyword is searched in partition holding;
Obtain the storage content in the Storage Item found.
Alternatively, the Storage Item with MAC Address keyword is searched in partition holding, is included but is not limited to:
Determine the keyword of the Storage Item of each in partition holding;
The Storage Item of starting storage mark with MAC Address and termination storage mark had into MAC as what is found The Storage Item of address key words.
Alternatively, this method also includes:
For the MAC Address distribution system attribute of acquisition, and the MAC Address of acquisition is stored into system property list.
Alternatively, this method also includes:
The access request to setting interface is received, setting interface is with being used for the MAC that acquisition is stored in system property list Location.
Alternatively, this method also includes:
It is determined that whether setting interface is provided with access rights;
When it is determined that setting interface is provided with access rights, authentication is carried out, and pass through rear, license in authentication Access request to setting interface.
The method that the present embodiment is provided, passes through storage point where the address search MAC Address of partition holding where MAC Address Area, and MAC Address is obtained in partition holding, can reach can also get the mesh of MAC Address under without Wi-Fi connection status , the mode for obtaining MAC Address is extended, the success rate for obtaining MAC Address is improved.
Further, it is that MAC Address distributes a system property, longer-term storage MAC Address can be achieved, is reused when subsequently During MAC Address, MAC Address can be directly obtained from system property list, therefore, the time is saved, acquisition MAC Address is improved Efficiency, user experience is higher.
Further, when it is determined that setting interface is provided with access rights, only after by purview certification, just license pair Set the access request of interface, it is ensured that obtain the legitimacy of the user of MAC Address.
Embodiment two
The embodiments of the invention provide a kind of method for obtaining Media Access Control address, in conjunction with above-described embodiment one Content, the mode to acquisition Media Access Control address provided in an embodiment of the present invention carries out that explanation is explained in detail.Referring to figure 2, the method flow that the present embodiment is provided includes:
201:According to the address search MAC Address of partition holding, the partition holding is searched in the terminal;
For the step, because each mobile terminal is when dispatching from the factory, the position of the hardware store subregion where its MAC Address It is all fixed to put, i.e., the address of partition holding where MAC Address is unique and fixed.Therefore, performing what the present embodiment was provided During method, the partition holding directly can be searched in the terminal according to the address of the known partition holding.
, just can be according to the position of the address location partition holding behind the address of partition holding where getting MAC Address. , then, can be directly in 0-10 after the address is got exemplified by being 0-10 stored fragments by the address of partition holding where MAC Address Searched in stored fragments and obtain MAC Address.
202:The Storage Item with MAC Address keyword is searched in partition holding, is obtained in the Storage Item found Storage content;
For the step, the implementation of Storage Item of the lookup with MAC Address keyword in partition holding, including but It is not limited to following manner:
Determine the keyword of the Storage Item of each in partition holding;
The Storage Item of starting storage mark with MAC Address and termination storage mark had into MAC as what is found The Storage Item of address key words.
Wherein, because MAC Address is in storage, including starting storage mark and termination storage mark, for example, starting storage Labeled as " MAC ", storage is terminated labeled as "/n ", and the content terminated between storage mark be real in starting storage mark 48 bit mac addresses, and MAC Address where partition holding the non-MAC Address of other Storage Items, with not taking above-mentioned MAC The storage mode of location, therefore the keyword of other Storage Items is different from the keyword of MAC Address, therefore, can be by MAC Address Starting storage mark and termination storage mark are used as MAC Address keyword.
In addition, starting storage mark and termination storage mark are in addition to above-mentioned form, can also be other forms, the present embodiment To starting storage mark and the form for terminating storage mark without specific restriction.
In addition, except the above-mentioned mode for searching the Storage Item with MAC Address keyword in partition holding where MAC Address Outside, other lookup modes can be also taken, the present embodiment has MAC Address crucial to being searched where MAC Address in partition holding The mode of the Storage Item of word is not especially limited.
It should be noted that the MAC Address of mobile terminal can be got by above-mentioned steps 201 to step 202, still Because the MAC Address now got is interim, as MAC Address need to be reused, then need to re-execute above-mentioned steps 201 to Step 202.In order to which during subsequently corresponding operating is performed using MAC Address, MAC Address can be directly obtained, without Repeated multiple times execution above-mentioned steps 201 are to step 202, and the method that the present embodiment is provided also includes entering the MAC Address got The step of row longer-term storage, step 203 as described below to step 204.
203:For the MAC Address distribution system attribute of acquisition, and the MAC Address of acquisition is stored to system property list In;
Wherein, the length of system property should at least be equal to MAC Address its length, MAC Address starting storage mark lengths And MAC Address terminates storage mark lengths sum.Continue to be labeled as " MAC " with MAC Address starting storage, MAC Address is terminated and deposited Storage is labeled as " exemplified by/n ", then because its length of MAC Address is 6 bytes (48), " MAC " length is 3, "/n " length For 1, then the length of system property at least should be 48+3+1=52.
204:The access request to setting interface is received, setting interface, which is used to obtain, to be stored in system property list MAC Address;
For the step, after MAC Address is stored in system property list, the MAC is subsequently obtained for convenience Location, can be set setting interface, for the application call in terminal, to obtain the MAC Address in system property list.Receiving To application program to the access request of the setting interface after, if permitting the access request, application program can be set by this Stationary interface obtains the MAC Address being stored in system property list.
Wherein, the mode of interface is set on setting, the present embodiment is not especially limited to this.The setting interface of setting can Think former interface, new interface can also be extended;Receive after the access request to setting interface, storage can be stored it in and be situated between In matter, subsequently the access request is parsed with facilitating.Storage medium concretely internal memory, certainly, the type of storage medium Can be also other kinds of storage medium, for example, RAM card or caching etc., the present embodiment is to storage medium in addition to internal memory Type is without specific restriction.
It should be noted that by above-mentioned steps 203 to step 204, MAC Address longer-term storage can be arranged in system property In table, it when needing repeatedly to obtain MAC Address, can directly be obtained, saved from system property list by the setting interface of setting When and conveniently.Alternatively, MAC is got because any one application program in user's using terminal can be transferred through setting interface Address, therefore, to ensure the legitimacy for getting MAC Address, can set access rights, so the present embodiment to setting interface The method of offer also includes validating that the step of whether setting interface is provided with access rights, step 205 as described below.
205:It is determined that whether setting interface is provided with access rights;
Optionally it is determined that whether setting interface is provided with access rights, including but not limited to following manner:
It is determined that whether setting interface is provided with the authentication information of mandate, if then determining that setting interface is provided with Access rights.Setting interface can set the authentication information of two or more mandate.
Wherein, in addition to whether above-mentioned determination setting interface is provided with the mode of access rights, can also it take other true Determine mode, for example, determining that setting interface whether there is capability identification, the present embodiment is not especially limited to this.
In addition, authentication information concretely UID (User Identifier, user identifier), certainly, Yong Hubiao Symbol is known in addition to above-mentioned UID, can be also the other kinds of mark that can be shown that identity, for example, unique identities identification code etc., this reality Content that example includes to authentication information is applied without specific restriction.
206:When it is determined that setting interface is provided with access rights, authentication is carried out, and in authentication by rear, Permit the access request to setting interface.
Wherein, authentication passes through, that is, shows authentication information to be verified and the authentication information authorized in advance Any one match;When authentication by after, permit the access request to setting interface, i.e. application program in terminal Can be by calling the setting interface to get the MAC Address of storage from system property list.
The method that the present embodiment is provided, passes through storage point where the address search MAC Address of partition holding where MAC Address Area, and MAC Address is obtained in partition holding, can reach can also get the mesh of MAC Address under without Wi-Fi connection status , the mode for obtaining MAC Address is extended, the success rate for obtaining MAC Address is improved.
Further, it is that MAC Address distributes a system property, longer-term storage MAC Address can be achieved, is reused when subsequently During MAC Address, MAC Address can be directly obtained from system property, therefore, the time is saved, improve the effect for obtaining MAC Address Rate, user experience is higher.
Further, when it is determined that setting interface is provided with access rights, only purview certification is passed through in authentication information Afterwards, the access request to setting interface is just permitted, it is ensured that obtain the legitimacy of MAC Address.
Embodiment three
The embodiments of the invention provide a kind of device for obtaining Media Access Control address, in terminal, for performing The method that above-described embodiment one or embodiment two are supplied to, referring to Fig. 3, the device includes:
Searching modul 301, for the address of the partition holding according to where MAC Address, searches partition holding in the terminal;
Acquisition module 302, for obtaining MAC Address in the partition holding that is found from searching modul 301.
Alternatively, referring to Fig. 4, acquisition module 302, including:
Searching unit 3021, for searching the Storage Item with MAC Address keyword in partition holding;
Acquiring unit 3022, for obtaining the storage content in the Storage Item that searching unit 3021 is found.
Alternatively, searching unit 3021 includes:First determination subelement 30211 and the second determination subelement 30212, wherein First determination subelement 30211 is used for the keyword for determining the Storage Item of each in partition holding;Second determination subelement 30212 is used There is MAC Address pass in the starting storage with MAC Address being marked and being terminated the Storage Item for storing mark as what is found The Storage Item of key word.
Alternatively, referring to Fig. 5, the device also includes:
Distribute module 303, for the MAC Address distribution system attribute obtained for acquisition module 302, and by the MAC of acquisition Address is stored into system property list.
Alternatively, referring to Fig. 6, the device also includes:
Receiving module 304, for receiving the access request to setting interface, setting interface is stored in system category for acquisition MAC Address in property list.
Alternatively, referring to Fig. 7, the device also includes:
Determining module 305, for determining whether setting interface is provided with access rights;
Permissions module 306, for when determining module 305 determines that setting interface is provided with access rights, carrying out identity Checking, and permit the access request to setting interface by rear in authentication.
To sum up, device provided in an embodiment of the present invention, passes through the address search MAC Address of partition holding where MAC Address Place partition holding, and MAC Address is obtained in partition holding, can reach can also get MAC under without Wi-Fi connection status The purpose of address, extends the mode for obtaining MAC Address, improves the success rate for obtaining MAC Address.
Further, it is that MAC Address distributes a system property, longer-term storage MAC Address can be achieved, is reused when subsequently During MAC Address, MAC Address can be directly obtained from system property list, therefore, the time is saved, acquisition MAC Address is improved Efficiency, user experience is higher.
Further, when it is determined that setting interface is provided with access rights, only purview certification is passed through in authentication information Afterwards, the access request to setting interface is just permitted, it is ensured that obtain the legitimacy of the user of MAC Address.
Example IV
Fig. 8 is a kind of device structure schematic diagram provided in an embodiment of the present invention.Referring to Fig. 8, the equipment can be used for implementing The method of the acquisition Media Access Control address provided in above-described embodiment.Wherein, the terminal can be mobile phone, tablet personal computer Pad, Wearable mobile device (such as intelligent watch).
Equipment 700 can include communication unit 110, include depositing for one or more computer-readable recording mediums Reservoir 120, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include the part such as one or the processor 180 and power supply 190 of more than one processing core. It will be understood by those skilled in the art that the device structure shown in Fig. 8 does not constitute the restriction to equipment, it can include than diagram More or less parts, either combine some parts or different parts arrangement.Wherein:
Communication unit 110 can be used for receive and send messages or communication process in, the reception and transmission of signal, the communication unit 110 Can for RF (Radio Frequency, radio frequency) circuit, router, modem, etc. network communication equipment.Especially, when When communication unit 110 is RF circuits, after the downlink information of base station is received, transfer at one or more than one processor 180 Reason;In addition, being sent to base station by up data are related to.Usually as communication unit RF circuits include but is not limited to antenna, At least one amplifier, tuner, one or more oscillators, subscriber identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..In addition, communication unit 110 can also be by wireless Communication communicates with network and other equipment.The radio communication can use any communication standard or agreement, include but is not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code Point multiple access), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.. Memory 120 can be used for storage software program and module, and processor 180 is stored in the software journey of memory 120 by operation Sequence and module, so as to perform various function application and data processing.Memory 120 can mainly include storing program area and deposit Data field is stored up, wherein, the application program that storing program area can be needed for storage program area, at least one function (such as broadcast by sound Playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as sound according to equipment 700 Frequency evidence, phone directory etc.) etc..In addition, memory 120 can include high-speed random access memory, it can also include non-volatile Property memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, deposit Reservoir 120 can also include Memory Controller, to provide the access of processor 180 and input block 130 to memory 120.
Input block 130 can be used for the numeral or character information for receiving input, and generation to be set with user and function The relevant keyboard of control, mouse, action bars, optics or the input of trace ball signal.Preferably, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, collect and use (such as user is using any suitable objects such as finger, stylus or annex in touch-sensitive table for touch operation of the family on or near it Operation on face 131 or near touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection means, and is converted into contact coordinate, then gives processor 180, and can reception processing device 180 The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.Except touch sensitive surface 131, input block 130 can also include other input equipments 132.Preferably, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for the information that is inputted by user of display or the information for being supplied to user and equipment 700 Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on or near it Touch after operation, send processor 180 to determine the type of touch event, with type of the preprocessor 180 according to touch event Corresponding visual output is provided on display panel 141.Although in fig. 8, touch sensitive surface 131 and display panel 141 are conducts Two independent parts are inputted and input function to realize, but in some embodiments it is possible to by touch sensitive surface 131 with showing Panel 141 is integrated and realizes input and output function.
Equipment 700 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Preferably, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity transducer can close display when equipment 700 is moved in one's ear Panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axles) acceleration size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely The other sensors such as the gyroscope, barometer, hygrometer, thermometer, the infrared ray sensor that can also configure in equipment 700, herein Repeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and equipment 700.Audio Electric signal after the voice data received conversion can be transferred to loudspeaker 161, sound is converted to by loudspeaker 161 by circuit 160 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after voicefrequency circuit 160 is received Voice data is converted to, then after voice data output processor 180 is handled, through RF circuits 110 to be sent to such as another set It is standby, or voice data is exported to memory 120 so as to further processing.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and equipment 700.
In order to realize radio communication, wireless communication unit 170 can be configured with the equipment, the wireless communication unit 170 It can be WiFi module.WiFi belongs to short range wireless transmission technology, and equipment 700 can be helped by wireless communication unit 170 User sends and receive e-mail, browses webpage and access streaming video etc., and it has provided the user wireless broadband internet and accessed. Although Fig. 8 shows wireless communication unit 170, but it is understood that, it is simultaneously not belonging to must be configured into for equipment 700, complete It can be omitted as needed in the essential scope for do not change invention entirely.
Processor 180 is the control centre of equipment 700, utilizes various interfaces and each portion of connection whole mobile phone Point, by operation or perform and be stored in software program and/or module in memory 120, and call and be stored in memory 120 Interior data, perform the various functions and processing data of equipment 700, so as to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;It is preferred that, processor 180 can integrated application processor and modem processor, Wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor mainly handles nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Equipment 700 also includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, equipment 700 can also include camera, bluetooth module etc., will not be repeated here.Specifically in this reality Apply in example, the display unit of equipment is touch-screen display, equipment also includes memory, and one or more than one Program, one of them or more than one program storage is configured to by one or more than one processing in memory Device performs one or more than one program bag and contains the instruction for being used for being operated below:
The address of partition holding according to where medium access control MAC Address, searches the storage point in the terminal Area;
The MAC Address is obtained from the partition holding.
Alternatively, memory also includes the instruction for carrying out following operation:
The Storage Item with MAC Address keyword is searched in the partition holding;
Obtain the storage content in the Storage Item found.
Alternatively, memory also includes the instruction for carrying out following operation:
Determine the keyword of each Storage Item in the partition holding;
The Storage Item of starting storage mark with MAC Address and termination storage mark had into MAC as what is found The Storage Item of address key words.
Alternatively, memory also includes the instruction for carrying out following operation:
For the MAC Address distribution system attribute of acquisition, and the MAC Address of acquisition is stored to system property arranged In table.
Alternatively, memory also includes the instruction for carrying out following operation:
The access request to setting interface is received, the setting interface is stored in the system property list for acquisition The MAC Address.
Alternatively, memory also includes the instruction for carrying out following operation:
Determine whether the setting interface is provided with access rights;
When it is determined that the setting interface is provided with access rights, authentication is carried out, and in authentication by rear, Permit the access request to the setting interface.
The embodiment citing of above-mentioned functions has been described in detail in embodiment of the method, repeats no more here.
The equipment that the present embodiment is provided, passes through storage point where the address search MAC Address of partition holding where MAC Address Area, and MAC Address is obtained in partition holding, can reach can also get the mesh of MAC Address under without Wi-Fi connection status , the mode for obtaining MAC Address is extended, the success rate for obtaining MAC Address is improved.
Further, it is that MAC Address distributes a system property, longer-term storage MAC Address can be achieved, is reused when subsequently During MAC Address, MAC Address can be directly obtained from system property list, therefore, the time is saved, acquisition MAC Address is improved Efficiency, user experience is higher.
Further, when it is determined that setting interface is provided with access rights, only purview certification is passed through in authentication information Afterwards, the access request to setting interface is just permitted, it is ensured that obtain the legitimacy of the user of MAC Address.
It should be noted that:Above-described embodiment provide device and equipment obtain Media Access Control address when, only with The division progress of above-mentioned each functional module is for example, in practical application, as needed can distribute above-mentioned functions by not Same functional module is completed, i.e., the internal structure of device and equipment is divided into different functional modules, to complete above description All or part of function.In addition, the side of device and equipment that above-described embodiment is provided with obtaining Media Access Control address Method embodiment belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (5)

1. a kind of method for obtaining Media Access Control address, in terminal, it is characterised in that methods described includes:
The address of partition holding, searches the partition holding, institute in the terminal according to where medium access control MAC Address The address of partition holding where giving an account of matter access control MAC addresses is used for the position for positioning the partition holding;
The MAC Address is obtained from the partition holding;
It is described to obtain the MAC Address from the partition holding, including:
The Storage Item with MAC Address keyword is searched in the partition holding;
Obtain the storage content in the Storage Item found;
Wherein, methods described also includes:
For the MAC Address distribution system attribute of acquisition, and the MAC Address of acquisition is stored to system property list In;
The access request to setting interface is received, the setting interface is used to obtain the institute being stored in the system property list State MAC Address;
Determine whether the setting interface is provided with access rights;
When it is determined that the setting interface is provided with access rights, authentication is carried out, and pass through rear, license in authentication To the access request of the setting interface.
2. according to the method described in claim 1, it is characterised in that described searched in the partition holding has MAC Address The Storage Item of keyword, including:
Determine the keyword of each Storage Item in the partition holding;
The Storage Item of starting storage mark with MAC Address and termination storage mark had into MAC Address as what is found The Storage Item of keyword.
3. a kind of device for obtaining Media Access Control address, in terminal, it is characterised in that described device includes:
Searching modul, for the address of the partition holding according to where medium access control MAC Address, searches institute in the terminal Partition holding is stated, the address of partition holding where the medium access control MAC Address is used for the position for positioning the partition holding Put;
Acquisition module, for obtaining the MAC Address from the partition holding that the searching modul is found;
The acquisition module, including:
Searching unit, for searching the Storage Item with MAC Address keyword in the partition holding;
Acquiring unit, for obtaining the storage content in the Storage Item that the searching unit is found;
Wherein, described device also includes:
Distribute module, for the MAC Address distribution system attribute obtained for the acquisition module, and by described in acquisition MAC Address is stored into system property list;
Receiving module, for receiving the access request to setting interface, the setting interface is stored in the system for acquisition The MAC Address in attribute list;
Determining module, for determining whether the setting interface is provided with access rights;
Permissions module, for when the determining module determines that the setting interface is provided with access rights, carrying out identity and testing Card, and permit the access request to the setting interface by rear in authentication.
4. device according to claim 3, it is characterised in that the searching unit, including:
First determination subelement, the keyword for determining each Storage Item in the partition holding;
Second determination subelement, for using with MAC Address starting storage mark and terminate store mark Storage Item as The Storage Item with MAC Address keyword found.
5. a kind of equipment for obtaining Media Access Control address, it is characterised in that the acquisition Media Access Control address is set Standby to include memory, and one or more than one program, one of them or more than one program storage is in storage In device, and it is configured to by one or more than one computing device, one or more than one program bag contains and is used for Carry out the instruction of following operation:
The address of partition holding, searches the partition holding, is given an account of in the terminal according to where medium access control MAC Address The address of partition holding where matter access control MAC addresses is used for the position for positioning the partition holding;
The MAC Address is obtained from the partition holding;
For the MAC Address distribution system attribute of acquisition, and the MAC Address of acquisition is stored to system property list In;
It is described to obtain the MAC Address from the partition holding, including:
The Storage Item with MAC Address keyword is searched in the partition holding;
Obtain the storage content in the Storage Item found;
The access request to setting interface is received, the setting interface is used to obtain the institute being stored in the system property list State MAC Address;
Determine whether the setting interface is provided with access rights;
When it is determined that the setting interface is provided with access rights, authentication is carried out, and pass through rear, license in authentication To the access request of the setting interface.
CN201310368647.5A 2013-08-22 2013-08-22 Obtain method, device and the equipment of Media Access Control address Active CN103561119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310368647.5A CN103561119B (en) 2013-08-22 2013-08-22 Obtain method, device and the equipment of Media Access Control address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310368647.5A CN103561119B (en) 2013-08-22 2013-08-22 Obtain method, device and the equipment of Media Access Control address

Publications (2)

Publication Number Publication Date
CN103561119A CN103561119A (en) 2014-02-05
CN103561119B true CN103561119B (en) 2017-11-07

Family

ID=50015269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310368647.5A Active CN103561119B (en) 2013-08-22 2013-08-22 Obtain method, device and the equipment of Media Access Control address

Country Status (1)

Country Link
CN (1) CN103561119B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988937A (en) * 2015-05-12 2016-10-05 乐视移动智能信息技术(北京)有限公司 Processing method and device of MAC (Media Access Control) address
CN113438162B (en) * 2021-05-21 2022-11-04 翱捷科技股份有限公司 Method and device for realizing two-layer forwarding

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8184154B2 (en) * 2006-02-27 2012-05-22 Texas Instruments Incorporated Video surveillance correlating detected moving objects and RF signals
CN103052094A (en) * 2013-01-30 2013-04-17 公安部第三研究所 Method for acquiring service set identifier of wireless mobile terminal
CN103249044A (en) * 2012-02-14 2013-08-14 中国移动通信集团公司 Method, system and device for accessing self-hold business to terminal through MiFi

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7735114B2 (en) * 2003-09-04 2010-06-08 Foundry Networks, Inc. Multiple tiered network security system, method and apparatus using dynamic user policy assignment
CN101110847B (en) * 2007-08-27 2011-06-08 华为技术有限公司 Method, device and system for obtaining medium access control address

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8184154B2 (en) * 2006-02-27 2012-05-22 Texas Instruments Incorporated Video surveillance correlating detected moving objects and RF signals
CN103249044A (en) * 2012-02-14 2013-08-14 中国移动通信集团公司 Method, system and device for accessing self-hold business to terminal through MiFi
CN103052094A (en) * 2013-01-30 2013-04-17 公安部第三研究所 Method for acquiring service set identifier of wireless mobile terminal

Also Published As

Publication number Publication date
CN103561119A (en) 2014-02-05

Similar Documents

Publication Publication Date Title
CN104683456B (en) Method for processing business, server and terminal
CN103365419B (en) A kind of method and apparatus triggering alarm clock control command
CN105824958A (en) Method, device and system for inquiring log
CN104978115A (en) Content display method and device
CN104951212A (en) Method, device and system for processing desktop data of mobile terminal
CN104519485A (en) Communication method between terminals, devices and system
CN104142868A (en) Connection establishment method and device
CN104134043B (en) Content is hidden, separates method, device and the terminal hidden
CN106131930A (en) A kind of WiFi network connection control method, device and terminal
CN104699501B (en) A kind of method and device for running application program
CN106611152A (en) User identity determination method and apparatus
CN104901992A (en) Resource transfer method and device
CN106789488A (en) Intelligent home device management method and device
CN107423050A (en) A kind of method and apparatus for penetrating operation
CN107872791A (en) Access point connection method and device
CN104753672A (en) Account authentication method, account authentication device and terminal
CN103631592A (en) Configuration method, calling method, device and equipment for displaying resources
CN103501373A (en) Method, device and terminal for making call
CN105553718A (en) Method and device for displaying guidance information
CN103561119B (en) Obtain method, device and the equipment of Media Access Control address
CN104216935B (en) The method and terminal of a kind of ff
CN107463395A (en) Component call method and device
CN105813013A (en) Information prompting method, device and system
CN104580251A (en) Method and device for authorized fast logging
CN105701407B (en) Level of security determines method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant