CN103561119B - The method to acquire a media access control address, installations and equipment - Google Patents

The method to acquire a media access control address, installations and equipment 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
storage
address
interface
stored
Prior art date
Application number
CN201310368647.5A
Other languages
Chinese (zh)
Other versions
CN103561119A (en
Inventor
李明浩
袁军
梁金祥
闫昊
Original Assignee
小米科技有限责任公司
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 小米科技有限责任公司 filed Critical 小米科技有限责任公司
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

Links

Abstract

本发明公开了一种获取介质访问控制地址的方法、装置及设备,属于网络技术领域。 The present invention discloses a method for obtaining a media access control address, apparatus and equipment, belonging to the technical field of network. 所述方法包括:根据介质访问控制MAC地址所在存储分区的地址,在终端中查找所述存储分区;从所述存储分区中获取所述MAC地址。 The method comprising: the media access control address MAC address belongs storage partition, searching the memory division in the terminal; obtaining the MAC address from the memory partitions. 本发明通过MAC地址所在存储分区的地址查找所述存储分区,并在所述存储分区内获取MAC地址,可达到在无Wi‑Fi连接状态下也能获取到MAC地址的目的,扩展了获取MAC地址的方式,提高了获得MAC地址的成功率。 The present invention is by partitioning the memory address to find the MAC address stored in the partition is located, and acquires the MAC address in the storage partition can be achieved in the absence of Wi-Fi connection state can be obtained destination MAC address, obtaining the expanded MAC address improve the success rate of the MAC address.

Description

获取介质访问控制地址的方法、装置及设备 The method to acquire a media access control address, installations and equipment

技术领域 FIELD

[0001]本发明涉及网络技术领域,特别涉及一种获取MAC (Medium Access Control,介质访问控制)地址的方法、装置及设备。 [0001] The present invention relates to network technologies, and particularly to a Get MAC (Medium Access Control, media access control) address of a method, apparatus and equipment.

背景技术 Background technique

[0002]随着社会的不断进步,通过移动终端等智能设备以无线方式访问网络受到越来越多人的青睐。 [0002] As society progresses through mobile terminals and other smart devices to wirelessly access the Internet more and more people of all ages. 此种访向网络的方式在给人们带来巨大便利的同时,也存在着诸多的安全隐患。 Such visits to the network in a manner to bring great convenience, but also there are many security risks. 为了确保访问网络的移动终端的合法性,有效阻止未经授权的移动终端访问网络,当用户通过移动终端访问网络时,进行基于MAC地址的端口接入认证成为了时下一个技术热点。 To guarantee the validity of the mobile terminal access to the network, effectively prevent unauthorized access to the network the mobile terminal, when a user terminal accesses a mobile network for access authentication based on the port MAC address nowadays become a hot technology. 而在进行基于MAC地址的端口接入认证时,需先获取到移动终端的MAC地址。 While performing port-based access authentication MAC address, you must first obtain the MAC address of the mobile terminal. 因此,如何获取MAC地址,是进行基于MAC地址的端口接入认证的关键。 Therefore, how to obtain the MAC address, it is a key to access authentication based on the port the MAC address.

[0003]目前,移动终端在获取MAC地址时,首先在内置于自身系统的相关文件中添加获取访问Wi-Fi (Wireless Fidelity,无线保真)状态的权限,Wi-Fi状态包括开启状态和关闭状态;在添加获取访丨句Wi-Fi状态的权限后,定位管理Wi-Fi的服务模块,在定位到该管理WiFi 的服务模块后,与该管理Wi-Fi 的服务模块进行连接; 之后,通过该管理Wi-Fi 的服务模块获取网卡中的MAC地址。 [0003] Currently, when the mobile terminal acquires the MAC address, it is first placed on the inner rights associated system file itself added to obtain access Wi-Fi (Wireless Fidelity, wireless fidelity) state, Wi-Fi states including open state and a closed after that, the; state; after adding obtain permission to visit the state of Shu sentence WiFi, WiFi service location management module, after locating to the WiFi service management module to connect to the WiFi service management module get the MAC address of the network card through the Wi-Fi service management module. 例如:该管理Wi-Fi的服务模块检测是否在相关文件中添加获取访问Wi-Fi状态的权限,若检测到在相关文件中添加了获取访问Wi-Fi状态的权限,则检测WiFi 状态; 当检测到Wi-Fi 状态为开启状态后,该管理Wi-Fi 的服务模块从网卡中获取移动终端的MAC地址,并将该MAC地址发送给移动终端。 For example: the WiFi service management module detects whether to add WiFi to gain access to the relevant documents in the state, if it is detected to add permissions to gain access WiFi status in the relevant file, detect WiFi status; when Wi-Fi state is detected, the Wi-Fi service management module obtains the MAC address of the mobile terminal from the card to the on state, the MAC address and transmits to the mobile terminal.

[0004] 在实现本发明的过程中,发明人发现目前技术至少存在以下问题: [0004] During the implementation of the present invention, the present inventors found that the following technical problems exist at least:

[0005] 当无线网络信号不稳定时,移动终端获取到MAC地址的概率较低,且对于不能连接到无线网络的移动终端来说,根本无法获取到MAC地址。 [0005] When a wireless network signal is unstable, to lower the probability of the mobile terminal acquires the MAC address, and can not connect to the mobile terminal for a wireless network, you can not acquire the MAC address.

发明内容 SUMMARY

[0006] 为了解决背景技术中的问题,本发明实施例提供了一种获取介质访问控制地址的方法、装置及设备。 [0006] In order to solve the problems of the background art, embodiments of the present invention provides a method of media access control address, and means acquires equipment. 所述技术方案如下: The technical solutions are as follows:

[0007] 第一方面,提供了一种获取介质访问控制地址的方法,用于终端中,所述方法包括: [0007] In a first aspect, there is provided a method for obtaining media access control address for a terminal, the method comprising:

[0008] 根据MAC地址所在存储分区的地址,在所述终端中查找所述存储分区,所述介质访问控制MAC地址所在存储分区的地址用于定位所述存储分区的位置; [0008] MAC address from the address storage partition location, searching the storage partition in the terminal, the media access control address MAC address of the location where the storage partitions for positioning the storage partition;

[0009] 从所述存储分区中获取所述MAC地址; [0009] acquiring the MAC address from the memory partitions;

[0010] 其中,所述从所述存储分区中获取所述MAC地址,包括: [0010] wherein the obtaining the MAC address from the memory partitions, comprising:

[0011] 在所述存储分区中查找具有MAC地址关键字的存储项; [0011] with a MAC address lookup entries stored in the storage key partition;

[0012] 获取查找到的存储项中的存储内容。 [0012] acquiring a storage content found storage items.

[0013] 可选地,所述在所述存储分区中查找具有MAC地址关键字的存储项,包括: [0013] Alternatively, the lookup key storage entry having a MAC address in the storage partitions, comprising:

[0014]确定所述存储分区中各个存储项的关键字; [0014] OK key storing each item in the storage partitions;

[0015] 将具有MAC地址的起始存储标记和终止存储标记的存储项作为查找到的具有MAC 地址关键字的存储项。 [0015] The start and end flag storage memory tag entry having the MAC address stored in the memory as a lookup entry having a MAC address keywords.

[0016] 其中,所述方法还包括: [0016] wherein said method further comprises:

[0017] 为获取的所述MAC地址分配系统属性,并将获取的所述MAC地址存储至系统属性列表中。 [0017] The MAC address is assigned to the attribute acquisition system, and acquires the MAC address list stored in system properties.

[0018] 可选地,所述方法还包括: [0018] Optionally, the method further comprising:

[0019] 接收对设定接口的访问请求,所述设定接口用于获取存储在所述系统属性列表中的所述MAC地址。 [0019] The configuration interface for receiving an access request, the configuration interface for acquiring the list stored in the MAC address in system properties.

[0020] 可选地,所述方法还包括: [0020] Optionally, the method further comprising:

[0021]确定所述设定接口是否被设置了访问权限; [0021] determining whether the interface is set to the setting access authority;

[0022] 当确定所述设定接口被设置了访问权限时,进行身份验证,并在身份验证通过后, 许可对所述设定接口的访问请求。 [0022] When it is determined that the interface is arranged to set access rights, authentication, and identity authentication is passed, setting the license request for the access interface.

[0023]第二方面,获取介质访问控制地址的装置,用于终端中,其特征在于,所述装置包括: [0023] In a second aspect, the media access control address acquiring means for the terminal, characterized in that said apparatus comprising:

[0024] 查找模块,用于根据MAC地址所在存储分区的地址,在所述终端中查找所述存储分区,所述介质访问控制MAC地址所在存储分区的地址用于定位所述存储分区的位置; [0024] searching module, MAC address belongs to the address storage partition, searching the storage partition in the terminal, the medium access control MAC address belongs to the address stored in the partition for partition of the storage position location;

[0025] 获取模块,用于从所述查找模块查找到的所述存储分区中获取所述MAC地址。 [0025] obtaining module, configured to obtain the MAC address found from the lookup module of the memory partitions.

[0026] 其中,所述获取模块,包括: [0026] wherein the acquisition module, comprising:

[0027] 查找单元,用于在所述存储分区中查找具有MAC地址关键字的存储项; [0027] The searching unit configured to search the MAC address storing entries having a key storage in said partition;

[0028] 获取单元,用于获取所述查找单元查找到的存储项中的存储内容。 [0028] acquiring unit, configured to obtain the content storage unit to find to find the stored items.

[0029]可选地,所述查找单元,包括: [0029] Alternatively, the searching unit, comprising:

[0030] 第一确定子单元,用于确定所述存储分区中各个存储项的关键字; [0030] a first determining subunit, for determining the respective stored key item in the storage partitions;

[0031] 第二确定子单元,用于将具有MAC地址的起始存储标记和终止存储标记的存储项作为查找到的具有MAC地址关键字的存储项。 [0031] The second determination subunit, having a MAC address for storing the start marks and end of the recording marks as storing items to find items stored MAC address with the keyword.

[0032] 其中,所述装置还包括: [0032] wherein, said apparatus further comprising:

[0033] 分配模块,用于为所述获取模块获取的所述MAC地址分配系统属性,并将获取的所述MAC地址存储至系统属性列表中。 The attribute list of MAC addresses stored in the system [0033] The allocation module is used to acquire the MAC address of the distribution system attribute obtaining module, and acquired.

[0034] 可选地,所述装置还包括: [0034] Optionally, the apparatus further comprising:

[0035] 接收模块,用于接收对设定接口的访问请求,所述设定接口用于获取存储在所述系统属性列表中的所述MAC地址。 [0035] The receiving module configured to receive an access request to the set of interfaces, said interfaces configured to obtain the setting list stored in the MAC address in system properties.

[0036] 可选地,所述装置还包括: [0036] Optionally, the apparatus further comprising:

[0037] 确定模块,用于确定所述设定接口是否被设置了访问权限; _ [0037] determining means for determining whether the interface is arranged to set the access authority; _

[0038] 许可模块,用于当所述确定模块确定所述设定接口被设置了访问权限时,进行身份验证,并在身份验证通过后,许可对所述设定接口的访问请求。 [0038] permission module, configured to, when the determining module determines the setting of the access interface is set up, authentication, and verified by the identity of the request for setting the license access interface.

[0039] 第三方面,提供了一种设备,所述设备包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行,所述一个或者一个以上程序包含用于进行以下操作的指令: [0039] In a third aspect, there is provided an apparatus, the apparatus includes a memory, and one or more than one program, wherein the one or more programs stored in the memory, and configured to by one or more processors performing the one or more programs including instructions for performing the following operations:

[0040] 根据MAC地址所在存储分区的地址,在终端中查找所述存储分区,所述介质访问控制MAC地址所在存储分区的地址用于定位所述存储分区的位置; [0040] MAC address from the address storage partition location, searching the terminal storage partitions, the medium access control address MAC address of the location where the storage partitions for positioning the storage partition;

[0041] 从所述存储分区中获取所述MAC地址; [0041] acquiring the MAC address from the memory partitions;

[0042] 为获取的所述MAC地址分配系统属性,并将获取的所述MAC地址存储至系统属性列表中; [0042] The MAC address is assigned to the attribute acquisition system, and acquires the MAC address list stored in system properties;

[0043] 所述从所述存储分区中获取所述MAC地址,包括: [0043] the obtaining the MAC address from the memory partitions, comprising:

[0044] 在所述存储分区中查找具有MAC地址关键字的存储项; [0044] Find key storage entry having a MAC address stored in said partition;

[0045] 获取查找到的存储项中的存储内容。 [0045] acquiring a storage content found storage items.

[0046] 本发明实施例提供的技术方案带来的有益效果是: [0046] Embodiments of the invention provide a technical solution is beneficial effects:

[0047] 通过MAC地址所在存储分区的地址查找MAC地址所在存储分区,并在存储分区内获取MAC地址,可达到在无Wi-Fi连接状态下也能获取到MAC地址的目的,扩展了获取MAC地址的方式,提高了获得MAC地址的成功率。 [0047] Find the address MAC address belongs bucket MAC address belongs storage partition, and acquires the MAC address memory division, can achieve the purpose without a Wi-Fi connection state can be acquired MAC address, extended acquisition MAC address improve the success rate of the MAC address.

附图说明 BRIEF DESCRIPTION

[0048] 为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明实施例的一些举例, 对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, as briefly described in the introduction to the accompanying drawings required for use in describing the embodiments. Apparently, the accompanying drawings described below are merely embodiments of the present invention Some example, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0049] 图1是本发明实施例一提供的一种获取介质访问控制地址的方法流程图; [0049] FIG. 1 is a embodiment of the present invention a method for obtaining a media access control address is a flowchart of an embodiment;

[0050] 图2是本发明实施例二提供的一种获取介质访问控制地址的方法流程图; [0050] FIG. 2 is an embodiment of the present invention is a method for obtaining a media access control address of the flowchart according to the second;

[0051] 图3是本发明实施例三提供的第一种获取介质访问控制地址的装置结构示意图; [0051] FIG 3 is provided in the third embodiment of the present invention means a schematic configuration of a first media access control address acquired;

[0052] 图4是本发明实施例三提供的一种获取模块的内部结构示意图; [0052] FIG. 4 is a schematic embodiment of the present invention, an internal structure of the module according to a third acquisition;

[0053]图5是本发明实施例三提供的第二种获取介质访问控制地址的装置结构示意图; [0054]图6是本发明实施例三提供的第三种获取介质访问控制地址的装置结构示意图; [0055]图7是本发明实施例三提供的第四种获取介质访问控制地址的装置结构示意图; [0056]图8是本发明实施例四提供的一种设备的结构示意图。 [0053] FIG. 5 is a second schematic diagram according to a third acquisition means Media Access Control address configuration embodiment of the present invention; [0054] FIG. 6 shows the structure of the third embodiment provided in the third embodiment of the present invention obtains a media access control address a schematic view; [0055] FIG. 7 is provided in the third embodiment the fourth means obtaining a schematic configuration of a media access control address of embodiments of the present invention; [0056] FIG. 8 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.

具体实施方式 Detailed ways

[0057]为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施例作进一步地详细描述。 [0057] The object of the present invention, technical solutions, and advantages of the embodiments more clearly, the following embodiments in conjunction with the accompanying drawings of the embodiments of the present invention will be described in further detail.

[0058] 实施例一 [0058] Example a

[0059]本发明实施例提供了一种获取介质访问控制地址的方法,以应用于搭载有安卓系统的移动终端为例。 [0059] Example embodiments provide a method for obtaining media access control address of the present invention, mounted to apply Android mobile terminal as an example. 每一个搭载有安卓系统的移动终端在出厂时,都在其内部设定一个硬件存储分区,用于存储移该动终端的各种信息。 Each Andrew system equipped with the mobile terminal at the factory, are set in the inside thereof a partition hardware store, for storing various information of the mobile terminal to move. 例如,移动终端的MAC地址、MDID (Multimedia Devices Identity,多媒体设备身份标识)串号、蓝牙地址、射频参数及识别码等等。 For example, MAC address of the mobile terminal, MDID (Multimedia Devices Identity, identity of the multimedia device) serial number, Bluetooth address, and a radio frequency identification code, etc. parameters. 形象地来说,上述过程相当于在移动终端出厂时为该移动终端办理一个“户口,,,该“户口”中详细地记录了该移动终端的各种信息,而通过查询该“户口”便可知晓该移动终端的各种信息。现结合上述内容,对本实施例提供的获取介质访问控制地址的方式进行解释说明,参见图1,本实施例提供的方法流程包括: Figuratively speaking, the above process is equivalent to the mobile terminal when the mobile terminal to handle a factory "account ,,, the" account for "a detailed record of the kinds of information the mobile terminal, but by querying the" Account "will may be aware of various information of the mobile terminal are combined with the above, the present embodiment provides access to media access control address of the manner will be described explain, referring to Figure 1, the present embodiment provides a process flow comprising:

[0060] 101:根据MAC地址所在存储分区的地址,在终端中查找该存储分区; [0060] 101: MAC address from the address storage partition location, look for the memory partition in the terminal;

[0061] 102:从该存储分区中获取MAC地址。 [0061] 102: obtain the MAC address from the storage partition.

[0062] 可选地,从存储分区中获取MAC地址,包括但不限于: [0062] Alternatively, the MAC address acquired from the memory partitions, including but not limited to:

[0063] 在存储分区中查找具有MAC地址关键字的存储项; [0063] Find key storage entry having a MAC address in a memory partition;

[0064] 获取查找到的存储项中的存储内容。 [0064] acquiring a storage content found storage items.

[0065] 可选地,在存储分区中查找具有MAC地址关键字的存储项,包括但不限于: [0065] Alternatively, the MAC address has to find items stored in the keyword storage partitions, including but not limited to:

[0066] 确定存储分区中各个存储项的关键字; [0066] OK key stored in the respective memory divisions items;

[0067] 将具有MAC地址的起始存储标记和终止存储标记的存储项作为查找到的具有MAC 地址关键字的存储项。 [0067] The start and end flag storage memory tag entry having the MAC address stored in the memory as a lookup entry having a MAC address keywords.

[0068] 可选地,该方法还包括: [0068] Optionally, the method further comprising:

[0069] 为获取的MAC地址分配系统属性,并将获取的MAC地址存储至系统属性列表中。 [0069] The MAC address assigned to the acquired system attributes, the attribute list stored in MAC address and the acquired system.

[0070] 可选地,该方法还包括: [0070] Optionally, the method further comprising:

[0071] 接收对设定接口的访问请求,设定接口用于获取存储在系统属性列表中的MAC地址。 [0071] The received access request to set the interface, an interface for acquiring a MAC address set stored in the system property list.

[0072] 可选地,该方法还包括: [0072] Optionally, the method further comprising:

[0073]确定设定接口是否被设置了访问权限; [0073] determine whether the interface is set to set access rights;

[0074] 当确定设定接口被设置了访问权限时,进行身份验证,并在身份验证通过后,许可对设定接口的访问请求。 [0074] When it is determined that the interface is arranged to set access rights, authentication, and identity authentication is passed, setting the license request to access the interface.

[0075] 本实施例提供的方法,通过MAC地址所在存储分区的地址查找MAC地址所在存储分区,并在存储分区内获取MAC地址,可达到在无Wi-Fi连接状态下也能获取到MAC地址的目的,扩展了获取MAC地址的方式,提高了获得MAC地址的成功率。 [0075] The present method provided in the embodiment, to find the MAC address belongs storage buckets address MAC address belongs storage partition, and acquires the MAC address in the storing partition can be achieved in the absence of Wi-Fi connection state can be acquired MAC address the purpose of the extension to obtain the MAC address ways to improve the success rate of the MAC address.

[0076] 进一步,为MAC地址分配一个系统属性,可实现长期存储MAC地址,当后续再次使用MAC地址时,可直接从系统属性列表中获取MAC地址,因此,节省了时间,提高了获取MAC地址的效率,用户体验度较高。 [0076] Further, dispensing a system attribute is a MAC address, can be long-term stored MAC addresses, when the subsequent use of the MAC address again, can obtain the MAC address from the system property list, thus saving time and improving obtain the MAC address efficiency, high user experience.

[0077]进一步,当确定设定接口被设置了访问权限时,仅在通过权限认证之后,才许可对设定接口的访问请求,保证了获取MAC地址的用户的合法性。 [0077] Further, when it is determined to set up access interface is provided only after authentication by the authority, it requests permission to access the set of interfaces to ensure the legitimacy of the user MAC address acquired.

[0078] 实施例二 [0078] Second Embodiment

[0079]本发明实施例提供了一种获取介质访问控制地址的方法,现结合上述实施例一的内容,对本发明实施例提供的获取介质访问控制地址的方式进行详细地解释说明。 [0079] The embodiments of the present invention provides a method for obtaining a media access control address, are combined with the contents of the above-described first embodiment, the media access control address acquisition mode is provided to explain embodiments of the present invention is described in detail. 参见图2,本实施例提供的方法流程包括: Referring to Figure 2 the flow method, the present embodiment is provided comprising:

[0080] 201:根据存储分区的地址查找MAC地址,在终端中查找该存储分区; [0080] 201: find the MAC address from the address storage partition, partition the memory lookup in the terminal;

[0081] 针对该步骤,由于每一个移动终端在出厂时,其MAC地址所在的硬件存储分区的位置都是固定的,即MAC地址所在存储分区的地址唯一且固定。 [0081] In this step, since the address of each mobile terminal at the factory, hardware storage location whose MAC address belongs partitions are fixed, i.e., MAC address belongs bucket unique and fixed. 因此,在执行本实施例提供的方法时,可直接根据已知的该存储分区的地址在终端中查找该存储分区。 Accordingly, when carrying out the method provided by the embodiment, can find the memory division in the terminal directly according to the known address of the bucket.

[0082] 在获取到MAC地址所在存储分区的地址后,便可根据该地址定位存储分区的位置。 [0082] After obtaining the address of the MAC address stored in the partition, it can be positioned according to the address stored in the partition location. 以MAC地址所在存储分区的地址为〇-1〇存储片段为例,则在获取到该地址后,可直接在0-10 存储片段中查找并获取MAC地址。 MAC address belongs to the address stored in the partition for the square-1〇 store segment, for example, then, to find and acquire the MAC address obtained in the address memory segment directly 0-10.

[0083] 2〇2:在存储分区中查找具有MAC地址关键字的存储项,获取查找到的存储项中的存储内容; [0083] 2〇2: Find key storage entry having a MAC address in the storage partitions, acquires storage content of the memory to find items;

[0084]针对该步骤,在存储分区中查找具有MAC地址关键字的存储项的实现方式,包括但不限于如下方式: [0084] In this step, the item lookup implementation having the MAC address stored in the key storage partitions, including but not limited to, the following manner:

[0085]确定存储分区中各个存储项的关键字; [0085] OK key stored in the respective memory divisions items;

[0086]将具有MAC地址的起始存储标记和终止存储标记的存储项作为查找到的具有MAC 地址关键字的存储项。 [0086] The start and end flag storage memory tag entry having the MAC address stored in the memory as a lookup entry having a MAC address keywords.

[0087] 其中,由于MAC地址在存储时,包括起始存储标记及终止存储标记,例如,起始存储标记为“MAC”,终止存储标记为“/n”,而在起始存储标记和终止存储标记之间的内容为真正的48位MAC地址,且MAC地址所在存储分区的其他存储项均非MAC地址,并不采取上述MAC地址的存储方式,因此其他存储项的关键字均与MAC地址的关键字不同,因此,可将MAC地址的起始存储标记和终止存储标记作为MAC地址关键字。 [0087] However, since the MAC address at the time of storage, including storage start and termination flag memory tag, e.g., a storage start flag is "MAC", final memory labeled "/ n", and the start and end flag stored in content between the memory marked as a true 48-bit MAC address, MAC address and other storage items where the storage partitions are non-MAC address, did not take storage above MAC address, so that other key items are stored with the MAC address different keywords, thus marking the start and end memory tag stores the MAC address as the MAC address can be key.

[0088]此外,起始存储标记及终止存储标记除上述形式外,还可以为其他形式,本实施例对起始存储标记及终止存储标记的形式不进行具体限定。 [0088] Furthermore, the initiation and termination of the storage flag stored marking addition to the above forms may also be in other forms, the present embodiment forms the starting and final memory storage labeled marker is not specifically defined.

[0089] 此外,除上述在MAC地址所在存储分区内查找具有MAC地址关键字的存储项的方式夕卜,还可采取其他查找方式,本实施例对在MAC地址所在存储分区内查找具有MAC地址关键字的存储项的方式不作具体限定。 [0089] Further, in addition to the above-described embodiment to find items stored Bu Xi having the MAC address in the MAC address belongs keyword memory division, can be taken to find other embodiment, the present embodiment has a MAC address in the MAC address look-up memory division where mode key storage entry is not particularly limited.

[0090] 需要说明的是,通过上述步骤201至步骤202即可获取到移动终端的MAC地址,但是由于此时获取到的MAC地址是临时的,如需再次使用MAC地址,则需重新执行上述步骤201至步骤2〇2。 [0090] Incidentally, to obtain the MAC address of the mobile terminal, but this time because the acquired temporary MAC address, the MAC address for the use again, the above-described need by re-executing the steps 201 to 202 step 201 to step 2〇2. 为了在后续使用MAC地址执行相应操作的过程中,可直接获取到MAC地址,而无需反复多次执行上述步骤201至步骤202,本实施例提供的方法还包括将获取到的MAC地址进行长期存储的步骤,详见下述步骤203至步骤204。 In order to perform the respective subsequent operations in the process of using the MAC address, the MAC address can be obtained directly, without repeatedly performing the above steps 201 to 202, the method provided in this embodiment further includes the acquired MAC address of the long-term storage step, see step 203 to step 204 described below.

[0091] 203:为获取的MAC地址分配系统属性,并将获取的MAC地址存储至系统属性列表中; [0091] 203: the MAC address of the distribution system attribute acquisition, the acquired MAC address list stored in system properties;

[0092]其中,系统属性的长度至少应等于MAC地址自身长度、MAC地址起始存储标记长度及MAC地址终止存储标记长度之和。 [0092] wherein a length at least equal to the system property own length MAC address, the MAC address of the starting mark length and the MAC address stored in the storage termination and mark length. 继续以MAC地址起始存储标记为“MAC",MAC地址终止存储标记为“/n”为例,则由于MAC地址的自身长度为6字节(48位),“MAC”长度为3位,“/n”长度为1位,则系统属性的长度至少应为48+3+1 = 52位。 Continue to be marked as the MAC address stored in the start "MAC", MAC address of the final memory labeled "/ n" as an example, since the length of its own MAC address is 6 bytes (48 bits), "MAC" 3 bits in length, "/ n" is a length, the length of the system should be at least 48 attributes + 3 + 1 = 52.

[0093] 204:接收对设定接口的访问请求,设定接口用于获取存储在系统属性列表中的MAC地址; [0093] 204: receiving an access request to set the interface, an interface for acquiring a MAC address set stored in the system property list;

[0094] 针对该步骤,在将MAC地址存储在系统属性列表中后,为了方便后续获取该MAC地址,可设置设定接口,供终端中的应用程序调用,以获取系统属性列表中的MAC地址。 [0094] In this step, the MAC address list stored in the system properties, in order to facilitate subsequent retrieval of the MAC address, the interface may be provided to set, in the application call for the terminal, to obtain the MAC address of the system property list . 在接收到应用程序对该设定接口的访问请求后,如果许可该访问请求,则应用程序可以通过该设定接口获取存储在系统属性列表中的MAC地址。 Upon receiving the request for the application program interface to access the set, if the access request permission, the application can obtain the MAC address list stored in the system properties by setting the interface.

[0095]其中,关于设置设定接口的方式,本实施例对此不作具体限定。 [0095] wherein the configuration interface provided on the way, the present embodiment does not specifically defined. 设置的设定接口可以为原接口,也可以扩展新的接口;接收到对设定接口的访问请求后,可将其存储在存储介质中,以方便后续对该访问请求进行解析。 Setting the interface may be provided to interface to the original, a new interface may be extended; after receiving an access request to the configuration interface, which may be stored in a storage medium to facilitate subsequent parses the access request. 存储介质具体可为内存,当然,存储介质的类型除内存外,还可为其他类型的存储介质,例如,内存卡或缓存等等,本实施例对存储介质的类型不进行具体限定。 DETAILED storage medium may be a memory, of course, except for the type of memory storage medium, but also for other types of storage media, e.g., cache or memory card, etc., the present embodiment of the type of storage medium is not specifically defined.

[0096] 需要说明的是,通过上述步骤203至步骤204,可将MAC地址长期存储在系统属性列表中,当需要多次获取MAC地址时,可直接通过设置的设定接口从系统属性列表中获取,省时且方便。 [0096] Incidentally, the above-described step 203 to step 204, the MAC address may be stored in a long list of system properties, when the need to obtain multiple MAC addresses, can be set directly from the interface provided by the system property list acquisition and time-saving convenience. 可选地,由于用户使用终端中的任何一个应用程序都能通过设定接口获取到MAC 地址,因此,为保证获取到MAC地址的合法性,可以对设定接口设置访问权限,所以本实施例提供的方法坯包括确认设定接口是否被设置了访问权限的步骤,详见下述步骤205。 Alternatively, since a user uses any application in the terminal can be obtained by setting the MAC address of the interface, therefore, in order to ensure the legitimacy of the acquired MAC address, the interface can set access permissions set, the present embodiment the method of providing a blank setting step includes confirming whether the interface is set up access, step 205 described later in detail.

[0097] 205:确定设定接口是否被设置了访问权限; [0097] 205: determining whether the interface is arranged to set access authority;

[0098]可选地,确定设定接口是否被设置了访问权限,包括但不限于如下方式: [0098] Alternatively, it is determined whether the interface is arranged to set access rights, including but not limited to, the following manner:

[00"]确定设定接口是否设置有授权的身份认证信息,如果有则确定设定接口被设置了访问权限。设定接口可以设置两个以上授权的身份认证信息。 [00 "] to determine whether the interface is provided with a set of authorized authentication information, if it is determined that the interface is set to set access permissions. Setting the interface can set up two or more authorized authentication information.

[0100]其中,除了上述确定设定接口是否被设置了访问权限的方式外,还可采取其他确定方式,例如,确定设定接口是否存在权限标识,本实施例对此不作具体限定。 [0100] wherein, in addition to the setting determines whether the interface is set access mode, can be taken to determine other ways, e.g., determining if an interface identifier authority exists, the present embodiment is not specifically limited to this embodiment.

[0101] 此外,身份认证信息具体可为UID (User Identifier,用户标识符),当然,用户标识符除上述UID外,还可为其他类型的可表明身份的标识,例如,唯一身份识别码等等,本实施例对身份认证信息包含的内容不进行具体限定。 [0101] Further, authentication information may be a specific UID (User Identifier, the user identifier), of course, the user identifier is the UID addition to the above, it may also indicate the identity of other types of identification, e.g., a unique identification code, etc. etc., the content of the present embodiment, the authentication information included not particularly limited.

[0102] 206:当确定设定接口被设置了访问权限时,进行身份验证,并在身份验证通过后, 许可对设定接口的访问请求。 [0102] 206: determining when the interface is arranged to set access rights, authentication, and identity authentication is passed, setting the license request to access the interface.

[0103] 其中,身份验证通过,即表明待验证的身份认证信息与预先授权的身份认证信息的任意一个相匹配;当身份验证通过后,许可对设定接口的访问请求,即终端中的应用程序可通过调用该设定接口从系统属性列表中获取到存储的MAC地址。 [0103] wherein, by the authentication, i.e. indicate identity authentication information to be authenticated with any authentication information matches a pre-authorized; Once authenticated, the permission to set the interface access request, i.e., the application of the terminal the calling program may be obtained by setting the interface system from the attribute list stored in the MAC address.

[0104] 本实施例提供的方法,通过MAC地址所在存储分区的地址查找MAC地址所在存储分区,并在存储分区内获取MAC地址,可达到在无Wi-Fi连接状态下也能获取到MAC地址的目的,扩展了获取MAC地址的方式,提高了获得MAC地址的成功率。 [0104] The method provided in this embodiment to find the MAC address belongs storage buckets address MAC address belongs storage partition, and acquires the MAC address in the storing partition can be achieved in the absence of Wi-Fi connection state can be acquired MAC address the purpose of the extension to obtain the MAC address ways to improve the success rate of the MAC address.

[0105] 进一步,为MAC地址分配一个系统属性,可实现长期存储MAC地址,当后续再次使用MAC地址时,可直接从系统属性中获取MAC地址,因此,节省了时间,提高了获取MAC地址的效率,用户体验度较高。 [0105] Further, the MAC address assigned a system property, can be long-term stored MAC addresses, when the subsequent use of the MAC address again, can obtain the MAC address directly from the system properties, thus, it saves time, improving the acquired MAC address efficiency, high user experience.

[0106] 进一步,当确定设定接口被设置了访问权限时,仅在身份认证信息通过权限认证之后,才许可对设定接口的访问请求,保证了获取MAC地址的合法性。 [0106] Further, when determining the set interface is set access rights, only after permission authentication information by authentication, it requests permission to access the set of interfaces to ensure the legality of access to MAC addresses.

[0107] 实施例三 [0107] Example three

[0108] 本发明实施例提供了一种获取介质访问控制地址的装置,用于终端中,用于执行上述实施例一或实施例二所提供给的方法,参见图3,该装置包括: [0108] The present invention provides an apparatus for obtaining a media access control address for the terminal for performing the above-described first embodiment or the method according to the second embodiment is provided to, referring to FIG. 3, the apparatus comprising:

[0109] 查找模块301,用于根据MAC地址所在存储分区的地址,在终端中查找存储分区; [0109] searching module 301, MAC address belongs to the address stored in the partition, the partition look stored in the terminal;

[0110] 获取模块302,用于从查找模块301查找到的存储分区中获取MAC地址。 [0110] obtaining module 302 is configured to search from the searching module 301 to acquire the MAC address storage partitions.

[0111] 可选地,参见图4,获取模块302,包括: [0111] Alternatively, referring to FIG. 4, the acquisition module 302, comprising:

[0112] 查找单元3021,用于在存储分区中查找具有MAC地址关键字的存储项; [0112] search unit 3021 having a MAC address to find items stored in the keyword memory partition;

[0113] 获取单元3022,用于获取查找单元3021查找到的存储项中的存储内容。 [0113] acquiring unit 3022, configured to obtain the stored contents searching unit 3021 stores the found entry.

[0114] 可选地,查找单元3021包括:第一确定子单元3〇211和第二确定子单元3〇212,其中第一确定子单元30211用于确定存储分区中各个存储项的关键字;第二确定子单元30212用于将具有MAC地址的起始存储标记和终止存储标记的存储项作为查找到的具有MAC地址关键字的存储项。 [0114] Alternatively, the searching unit 3021 comprises: a first determining sub-unit and a second determination subunit 3〇211 3〇212, wherein the first determining sub-unit 30211 for storing the respective key entry identifies the memory partitions; second determining sub-unit 30212 for storing items stored marking start and end of recording marks having the MAC address as found with the MAC address entries stored keywords.

[0115] 可选地,参见图5,该装置还包括: [0115] Alternatively, referring to Figure 5, the apparatus further comprising:

[0116] 分配模块303,用于为获取模块302获取的MAC地址分配系统属性,并将获取的MAC 地址存储至系统属性列表中。 [0116] allocation module 303, the MAC address for distribution system attribute acquisition module 302 acquires and stores a list of MAC addresses to the system and property acquired.

[0117] 可选地,参见图6,该装置还包括: [0117] Alternatively, referring to FIG. 6, the apparatus further comprising:

[0118] 接收模块304,用于接收对设定接口的访问请求,设定接口用于获取存储在系统属性列表中的MAC地址。 [0118] a receiving module 304, for receiving an access request setting interface, an interface for acquiring a MAC address set stored in the list of system properties.

[0119] 可选地,参见图7,该装置还包括: [0119] Alternatively, referring to FIG. 7, the apparatus further comprising:

[0120] 确定模块305,用于确定设定接口是否被设置了访问权限; [0120] determining module 305 for determining whether the interface is arranged to set access authority;

[0121] 许可模块306,用于当确定模块30f5确定设定接口被设置了访问权限时,进行身份验证,并在身份验证通过后,许可对设定接口的访问请求。 [0121] permissions module 306 for determining when it is determined to set the interface module 30f5 is provided access rights, authentication, and identity authentication is passed, setting the license request to access the interface.

[0122] 综上,本发明实施例提供的装置,通过MAC地址所在存储分区的地址查找MAC地址所在存储分区,并在存储分区内获取MAC地址,可达到在无Wi-Fi连接状态下也能获取到MAC 地址的目的,扩展了获取MAC地址的方式,提高了获得MAC地址的成功率。 [0122] In summary, the present invention is the device provided in this embodiment, to find the MAC address belongs storage buckets address MAC address belongs storage partition, and acquires the MAC address in the storing partition can be achieved in the absence of Wi-Fi connection status can get to the destination MAC address, MAC address acquisition expands the ways to improve the success rate of the MAC address.

[0123] 进一步,为MAC地址分配一个系统属性,可实现长期存储MAC地址,当后续再次使用MAC地址时,可直接从系统属性列表中获取MAC地址,因此,节省了时间,提高了获取MAC地址的效率,用户体验度较高。 [0123] Further, dispensing a system attribute is a MAC address, can be long-term stored MAC addresses, when the subsequent use of the MAC address again, can obtain the MAC address from the system property list, thus saving time and improving obtain the MAC address efficiency, high user experience.

[0124]进一步,当确定设定接口被设置了访问权限时,仅在身份验证信息通过权限认证之后,才许可对设定接口的访问请求,保证了获取MAC地址的用户的合法性。 [0124] Further, when determining the set interface is set access rights, only after verifying the information in the identity of the certification authority by only granting access request to set the interface to ensure the legality of access to the MAC address of the user.

[0125] 实施例四 [0125] Fourth Embodiment

[0126]图8是本发明实施例提供的一种设备结构示意图。 [0126] FIG. 8 is a schematic structural diagram of the apparatus embodiment of the present invention. 参见图8,该设备可以用于实施上述实施例中提供的获取介质访问控制地址的方法。 Referring to Figure 8, the apparatus may be a media access method for obtaining the above-described embodiments provide address control embodiment. 其中,该终端可以为手机、平板电脑pad、穿戴式移动设备(如智能手表)等。 Wherein, the terminal may be a mobile phone, a tablet computer PAD, wearable mobile device (e.g., smart watch) and the like.

[0127] 设备700可以包括通信单元110、包括有一个或一个以上计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、WiFi (wireless fidelity, 无线保真)模块170、包括有一个或者一个以上处理核心的处理器180、以及电源190等部件。 [0127] Device 700 may include a communication unit 110, includes one or more computer-readable storage medium, a memory 120, an input unit 130, a display 140, a sensor 150, an audio circuit 160, WiFi (wireless fidelity, wireless fidelity) unit module 170, processor 180 includes one or more processing cores, and a power supply 190 and other components. 本领域技术人员可以理解,图8中示出的设备结构并不构成对设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。 Those skilled in the art will appreciate, the device structure shown in FIG. 8 do not limit the device may include more or fewer components than shown, or a combination of some of the components, or a different arrangement of components. 其中: among them:

[0128] 通信单元110可用于收发信息或通话过程中,信号的接收和发送,该通信单元110 可以为RF (Radio Frequency,射频)电路、路由器、调制解调器、等网络通信设备。 [0128] The communication unit 110 may be used during a call or send and receive information, receiving and sending signals, the communication unit 110 may be a RF (Radio Frequency, RF) circuit, a router, a modem, a network communication device and the like. 特别地,当通信单元110为RF电路时,将基站的下行信息接收后,交由一个或者一个以上处理器180处理;另外,将涉及上行的数据发送给基站。 In particular, when the communication unit 110 is an RF circuit, a base station after receiving downstream information, referred to the one or more processors 180 process; Further, the uplink data directed to the base station. 通常,作为通信单元的RF电路包括但不限于天线、 至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、 LNA (Low Noise Amplifier,低噪声放大器)、双工器等。 Typically, the RF communication circuit unit include, but are not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, LNA (Low Noise Amplifier, low noise amplifier), and a duplexer. 此外,通信单元110还可以通过无线通信与网络和其他设备通信。 Further, the communication unit 110 may also communicate with other networks and devices by wireless communication. 所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA (Code Division Multiple Access,码分多址)、WCDMA (Wideband Code Division Multiple Access,宽带码分多址)、LTE (Long Term Evolution,长期演进)、电子邮件、SMS (Short Messaging Service,短消息服务)等。 The wireless communication may use any communication standard or protocol, including but 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 Division Multiple Access), WCDMA (wideband Code Division Multiple Access, wideband Code Division Multiple Access), LTE (long Term Evolution, long Term Evolution), e-mail, SMS (short messaging service, short message service) and so on. 存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行各种功能应用以及数据处理。 The memory 120 may be used to store software programs and modules, a processor 180, to perform various functions and data processing applications in a memory, and a software program storage module 120 via running. 存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据设备700的使用所创建的数据(比如音频数据、电话本等)等。 The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least a function of the desired application (such as a sound playback function, an image playback function, etc.); data storage area may store data using the created device 700 (such as audio data, telephone book, etc.). 此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。 In addition, memory 120 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage devices, flash memory devices, or other volatile solid-state memory device. 相应地,存储器120还可以包括存储器控制器,以提供处理器18〇和输入单元13〇对存储器12〇的访问。 Accordingly, the memory 120 may further include a memory controller to provide the processor and the input unit 18〇 13〇 12〇 of access to the memory. [0129]输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。 [0129] The input unit 130 may be used to receive input numeric or character information, and generate user setting and function control for a keyboard, mouse, joystick, trackball, or the optical input signal. 优选地,输入单元丨3〇可包括触敏表面131以及其他输入设备132。 Preferably, the input unit Shu 3〇 131 may include a touch sensitive surface 132 and other input devices. 触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。 Touch sensitive surface 131, also known as a touch screen or a touch panel, the user may collect on or near the touch operation (such as a user finger, a pen or any other suitable object or accessory on the touch sensitive surface 131 or a touch-sensitive surface 131 close operation), and drive the corresponding connection device in accordance with a preset program. 可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。 Alternatively, the touch-sensitive surface 131 may include a touch detection device and a touch controller. 其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180 发来的命令并加以执行。 The touch detecting means detects a user touch position, and the detection signal caused by the touch operation, the touch signal to the controller; a touch controller receives touch information from the touch detecting device, and converts it into contact coordinates, sending to processor 180 and command processor 180 can receive and execute sent. 此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。 Further, using resistive, capacitive, infrared and surface acoustic wave type implementations, and other touch sensitive surface 131. 除了触敏表面131,输入单元13〇还可以包括其他输入设备132。 In addition to the touch-sensitive surface 131, the input unit may further comprise 13〇 other input device 132. 优选地, 其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、 轨迹球、鼠标、操作杆等中的一种或多种。 Preferably, the other input devices 132 may include, but are not limited to physical keyboard, function keys (such as volume control keys, key switches, etc.), a trackball, a mouse, a joystick, one or more.

[0130]显示单元140可用于显示由用户输入的信息或提供给用户的信息以及设备700的各=图^用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。 [0130] The display unit 140 may be used to display information input by the user or provided to the user information and the device 700 each = FIG ^ a user interface, the graphical user interface may be composed of graphics, text, icons, video, and any combination thereof . 显示单元140可包括显示面板141,可选的,可以采用LCD (Liquid Crystal Display,液晶显示器)、0LED(0rganic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。 The display unit 140 may include a display panel 141, optionally, may be employed LCD (Liquid Crystal Display, LCD displays), 0LED (0rganic Light-Emitting Diode, OLED) or the like to form a display panel 141. 进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。 Further, the touch-sensitive surface 131 may cover the display panel 141, the touch-sensitive surface 131 when the detected on or near the touch operation, to the processor 180 to determine the type of touch event, then processor 180 according to a touch event provide a corresponding type of visual output on the display panel 141. 虽然在图8中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。 Although, in FIG. 8, a touch-sensitive surface 131 and the display panel 141 as two separate components to achieve input and output functions, in some embodiments, may be a touch-sensitive surface 131 and the display panel 141 integrated to implement the input and output functions.

[0131] 设备700还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。 [0131] Device 700 may further comprise at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. 优选地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在设备700移动到耳边时,关闭显示面板141和/或背光。 Preferably, the optical sensor may include an ambient light sensor and proximity sensor, an ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of ambient light, the proximity sensor 700 may be a mobile device to the ear, close the display panel 141 and / or backlighting. 作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于设备700还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。 As a motion sensor, the accelerometer may detect the size of the respective directions (usually three axes) acceleration may be stationary detect the magnitude and direction of gravity, it is used for identifying of a cell phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), related to vibration identification features (such as a pedometer, percussion) and the like; As for the other sensor device 700 may also be configured gyroscope, barometer, hygrometer, a thermometer, an infrared sensor, which is not then repeat.

[0132] 音频电路160、扬声器161,传声器162可提供用户与设备700之间的音频接口。 [0132] Audio circuitry 160, speaker 161, a microphone 162 provide an audio interface between a user and the device 700. 音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一设备,或者将音频数据输出至存储器120以便进一步处理。 Electrical signal circuit 160 converts the audio data may be audio received, transmitted to a speaker 161, a sound signal output from the speaker 161 is converted to; the other hand, the microphone 162 converts the sound signals into electrical signals collected by the audio circuit 160 after receiving the data into audio, then the audio processor 180 outputs the data processed by RF circuitry 110 for transmission to another device such as, or outputs the audio data to the memory 120 for further processing. 音频电路160还可能包括耳塞插孔, 以提供外设耳机与设备700的通信。 The audio circuit 160 may also include an earphone jack, to provide communication with the peripheral device 700 of the headset.

[0133] 为了实现无线通信,该设备上可以配置有无线通信单元170,该无线通信单元170 可以为WiFi模块。 [0133] In order to achieve wireless communication, wireless communication unit may be configured on the device 170, the wireless communication unit 170 may be a WiFi module. WiFi属于短距离无线传输技术,设备700通过无线通信单元170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。 WiFi is a short-range wireless transmission technology, the device 700 through the wireless communication unit 170 can help a user e-mail, web browsing, and access to streaming media, etc., which provides wireless broadband Internet access for the user. 虽然图8示出了无线通信单元170,但是可以理解的是,其并不属于设备700的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。 While Figure 8 shows a wireless communication unit 170, it will be appreciated that it is not configured to be part of device 700, and can be omitted without changing the essence of the invention in the ranges as needed.

[0134] 处理器180是设备700的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120 内的数据,执行设备700的各种功能和处理数据,从而对手机进行整体监控。 [0134] Processor 180 is a central control device 700 using various interfaces and circuits connected to the various parts of the entire mobile phone, by running or executing software programs stored in memory 120 and / or modules and invoking stored in the memory 120 data, perform various functions and data processing 700, so overall mobile phone monitoring. 可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器, 其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。 Optionally, processor 180 may include one or more processing cores; Preferably, the processor 180 may be integrated application processor and the modem processor, wherein the application processor main processing operating system, user interface and applications , the modem processor mainly processes wireless communication. 可以理解的是,上述调制解调处理器也可以不集成到处理器180中。 It will be appreciated that the modem processor may not be integrated into the processor 180.

[0135] 设备700还包括给各个部件供电的电源190 (比如电池),优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。 [0135] Device 700 further includes a power supply to the various components 190 (such as a battery), preferably, the power source through the power management system 180 is logically connected to the processor to manage power management system is achieved by charging, discharging, and power management and other functions. 电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。 The power supply 190 may also include one or more DC or AC power supply, any recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator and the like.

[0136] 尽管未示出,设备700还可以包括摄像头、蓝牙模块等,在此不再赘述。 [0136] Although not shown, device 700 may further include a camera, a Bluetooth module, etc., which are not repeated herein. 具体在本实施例中,设备的显示单元是触摸屏显示器,设备还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令: In the illustrated embodiment, the display unit of the device is a touch screen display, the device further comprises a memory, and one or more than one program, wherein the one or more programs stored in the memory, and configured to more processing by one or performs the one or more programs including instructions for performing the following operations:

[0137] 根据介质访问控制MAC地址所在存储分区的地址,在所述终端中查找所述存储分区; [0137] The media access control address MAC address is stored in the partition, searching the storage partition in the terminal;

[0138] 从所述存储分区中获取所述MAC地址。 [0138] acquiring the MAC address from the memory partitions.

[0139] 可选地,存储器还包括进行以下操作的指令: [0139] Alternatively, the memory further includes instructions for:

[0140] 在所述存储分区中查找具有MAC地址关键字的存储项; [0140] with a MAC address lookup entries stored in the storage key partition;

[0141] 获取查找到的存储项中的存储内容。 [0141] acquiring a storage content found storage items.

[0142] 可选地,存储器还包括进行以下操作的指令: [0142] Alternatively, the memory further includes instructions for:

[0143] 确定所述存储分区中各个存储项的关键字; [0143] OK key storing each item in the storage partitions;

[0144] 将具有MAC地址的起始存储标记和终止存储标记的存储项作为查找到的具有MAC 地址关键字的存储项。 [0144] The start and end flag storage memory tag entry having the MAC address stored in the memory as a lookup entry having a MAC address keywords.

[0145] 可选地,存储器还包括进行以下操作的指令: [0145] Alternatively, the memory further includes instructions for:

[0146] 为获取的所述MAC地址分配系统属性,并将获取的所述MAC地址存储至系统属性列表中。 [0146] The MAC address assigned to the attribute acquisition system, and acquires the MAC address list stored in system properties.

[0147] 可选地,存储器还包括进行以下操作的指令: [0147] Alternatively, the memory further includes instructions for:

[0148] 接收对设定接口的访问请求,所述设定接口用于获取存储在所述系统属性列表中的所述MAC地址。 [0148] configuration interface for receiving an access request, the configuration interface for acquiring the list stored in the MAC address in system properties.

[0149] 可选地,存储器还包括进行以下操作的指令: [0149] Alternatively, the memory further includes instructions for:

[0150] 确定所述设定接口是否被设置了访问权限; [0150] determining whether the interface is set to the setting access authority;

[0151] 当确定所述设定接口被设置了访问权限时,进行身份验证,并在身份验证通过后, 许可对所述设定接口的访问请求。 [0151] When it is determined that the interface is arranged to set access rights, authentication, and identity authentication is passed, setting the license request for the access interface.

[0152] 上述功能的实施方式举例在方法实施例中已经详述,这里不再赘述。 Embodiment [0152] Example of the above-described embodiment has been described in detail in the method embodiment, it is omitted here.

[0153] 本实施例提供的设备,通过MAC地址所在存储分区的地址查找MAC地址所在存储分区,并在存储分区内获取MAC地址,可达到在无Wi-Fi连接状态下也能获取到MAC地址的目的,扩展了获取MAC地址的方式,提高了获得MAC地址的成功率。 [0153] device provided in the present embodiment, to find the address MAC address belongs bucket MAC address belongs storage partition, and acquires the MAC address in the storing partition can be achieved in the absence of Wi-Fi connection state can be acquired MAC address the purpose of the extension to obtain the MAC address ways to improve the success rate of the MAC address.

[0154] 进一步,为MAC地址分配一个系统属性,可实现长期存储MAC地址,当后续再次使用MAC地址时,可直接从系统属性列表中获取MAC地址,因此,节省了时间,提高了获取MAC地址的效率,用户体验度较高。 [0154] Further, dispensing a system attribute is a MAC address, can be long-term stored MAC addresses, when the subsequent use of the MAC address again, can obtain the MAC address from the system property list, thus saving time and improving obtain the MAC address efficiency, high user experience.

[0155] 进一步,当确定设定接口被设置了访问权限时,仅在身份验证信息通过权限认证之后,才许可对设定接口的访问请求,保证了获取MAC地址的用户的合法性。 [0155] Further, when determining the set interface is set access rights, only after verifying the information in the identity of the certification authority by only granting access request to set the interface to ensure the legality of access to the MAC address of the user.

[0156] 需要说明的是:上述实施例提供的装置及设备在获取介质访问控制地址时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置及设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。 [0156] Note that: the above described apparatus and equipment provided in acquiring media access control address, division of the foregoing functional modules is illustrated, in practice, may be assigned by the above-described functions according to the needs of different the functional module is completed, the internal structure of the apparatus and the apparatus is divided into different functional modules to complete all or part of the functions described above. 另外,上述实施例提供的装置及设备与获取介质访问控制地址的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。 Further, apparatus and equipment with the above-described embodiments provide a method of obtaining media access control address of the same conception embodiments, specific embodiments of the method implementation process will not be repeated here.

[0157] 上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。 Embodiment [0157] The present invention No. merely for description, the embodiments do not represent the merits embodiment.

[0158] 本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。 [0158] Those of ordinary skill in the art may understand that the above embodiments all or part of the steps may be implemented by hardware, by a program instruction may be relevant hardware, the program may be stored in a computer-readable storage medium in the above-mentioned storage medium may be a read-only memory, magnetic or optical disk.

[0159] 以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 [0159] The foregoing is only preferred embodiments of the present invention, not intended to limit the present invention within the spirit and principle of the present invention, any modification, equivalent replacement, or improvement, it should be included in the present within the scope of the invention.

Claims (5)

1. 一种获取介质访问控制地址的方法,用于终端中,其特征在于,所述方法包括: 根据介质访问控制MAC地址所在存储分区的地址,在所述终端中查找所述存储分区,所述介质访问控制MAC地址所在存储分区的地址用于定位所述存储分区的位置; 从所述存储分区中获取所述MAC地址; 所述从所述存储分区中获取所述MAC地址,包括: 在所述存储分区中查找具有MAC地址关键字的存储项; 获取查找到的存储项中的存储内容; 其中,所述方法还包括: 为获取的所述MAC地址分配系统属性,并将获取的所述MAC地址存储至系统属性列表中; 接收对设定接口的访问请求,所述设定接口用于获取存储在所述系统属性列表中的所述MAC地址; 确定所述设定接口是否被设置了访问权限; 当确定所述设定接口被设置了访问权限时,进行身份验证,并在身份验证通过后,许可对 CLAIMS 1. A method for media access control address acquired for the terminal, wherein, said method comprising: the media access control address MAC address belongs storage partition, searching the storage partition in the terminal, the said Media access Control MAC address belongs to the address stored in the partition for partition of the storage position location; acquiring the MAC address from the memory partitions; the obtaining the MAC address from the memory partitions, comprising: the memory partition having a MAC address lookup entry stored keywords; obtaining found storage stored content items; wherein, said method further comprising: said MAC address attribute acquisition distribution system, and acquires the MAC address list stored in said system attribute; receiving a request to access the configuration interface, an interface for acquiring the setting stored in the list of MAC addresses of system properties; determining whether the set interface is provided access rights; when it is determined that the interface is arranged to set access authority to authenticate and verify the identity passed, permission to 所述设定接口的访问请求。 Setting the interface of the access request.
2. 根据权利要求1所述的方法,其特征在于,所述在所述存储分区中查找具有MAC地址关键字的存储项,包括: 确定所述存储分区中各个存储项的关键字; 将具有MAC地址的起始存储标记和终止存储标记的存储项作为查找到的具有MAC地址关键字的存储项。 2. The method according to claim 1, wherein the lookup entry having the MAC address stored in said key storage partitions, comprising: determining the respective storage key item in the storage partitions; having start and end flag storage memory storing tag items to find the MAC address as a MAC address storing items having a keyword.
3. —种获取介质访问控制地址的装置,用于终端中,其特征在于,所述装置包括: 查找模块,用于根据介质访问控制MAC地址所在存储分区的地址,在所述终端中查找所述存储分区,所述介质访问控制MAC地址所在存储分区的地址用于定位所述存储分区的位置; 获取模块,用于从所述查找模块查找到的所述存储分区中获取所述MAC地址; 所述获取模块,包括: 查找单元,用于在所述存储分区中查找具有MAC地址关键字的存储项; 获取单元,用于获取所述查找单元查找到的存储项中的存储内容; 其中,所述装置还包括: 分配模块,用于为所述获取模块获取的所述MAC地址分配系统属性,并将获取的所述MAC地址存储至系统属性列表中; 接收模块,用于接收对设定接口的访问请求,所述设定接口用于获取存储在所述系统属性列表中的所述MAC地址; 确定模块, 3. - kind obtaining means media access control address for a terminal, wherein, said apparatus comprising: a searching module, according to media access control address MAC address belongs storage partition, the lookup in the terminal said storage partitions, the medium access control MAC address belongs to the address stored in the partition for partitioning the storage position location; acquiring module, configured to obtain the MAC address found from the lookup module of the memory partitions; the acquisition module, comprising: a searching unit configured to search the MAC address storing entries having a key in the storage partitions; obtaining unit, configured to obtain the content storage unit to find to find the stored items; wherein, said apparatus further comprising: a distribution module for the acquisition of the MAC address obtaining module property distribution system, and acquires a list of attributes of the addresses stored in the MAC system; receiving module for receiving setting access request interface, an interface for acquiring the setting stored in the list of MAC addresses of system properties; determining module, 于确定所述设定接口是否被设置了访问权限; 许可模块,用于当所述确定模块确定所述设定接口被设置了访问权限时,进行身份验证,并在身份验证通过后,许可对所述设定接口的访问请求。 Determining whether to set the access interface is set; permission means for, when the determining module determines that the interface is arranged to set access authority to authenticate and verify the identity passed, permission to setting the interface of the access request.
4. 根据权利要求3所述的装置,其特征在于,所述查找单元,包括: 第一确定子单元,用于确定所述存储分区中各个存储项的关键字; 第二确定子单元,用于将具有MAC地址的起始存储标记和终止存储标记的存储项作为查找到的具有MAC地址关键字的存储项。 4. The apparatus according to claim 3, wherein the searching unit, comprising: a first determining subunit, for determining the respective stored key item in the storage partitions; and a second determining sub-unit, with to mark the start and end storing the recording marks having a MAC address entries stored to memory as a lookup entry having a MAC address keywords.
5. —种获取介质访问控制地址的设备,其特征在于,所述获取介质访问控制地址的设备包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行,所述—个或者一个以上程序包含用于进行以下操作的指令: 根据介质访问控制MAC地址所在存储分区的地址,在终端中查找所述存储分区,所述介质访问控制MAC地址所在存储分区的地址用于定位所述存储分区的位置; 从所述存储分区中获取所述MAC地址; 为获取的所述MAC地址分配系统属性,并将获取的所述MAC地址存储至系统属性列表中; 所述从所述存储分区中获取所述MAC地址,包括: 在所述存储分区中查找具有MAC地址关键字的存储项; 获取查找到的存储项中的存储内容; 接收对设定接口的访问请求,所述设定接口用于获取存储 5. - species to acquire a media access control device address, wherein said obtaining device comprises a media access control address of a memory and one or more than one program, wherein the one or more programs stored in the memory, and by configured to be executed by one or more processors, the - one or more programs including instructions for performing the following operations: the media access control address MAC address belongs storage partition, searching the terminal storage partitions, the the MAC address is assigned to the attribute acquisition system, and the acquired; Media access Control MAC address of said storage partitions where the address position for positioning the storing partition; acquiring the MAC address from the memory partitions MAC address list stored in the system properties; the obtaining the MAC address from the memory partitions, comprising: a storage entry having a MAC address lookup key is stored in said partition; obtain the storage memory to find items content; receiving a request for access to the configuration interface, an interface for acquiring the setting storing 在所述系统属性列表中的所述MAC地址; 确定所述设定接口是否被设置了访问权限; 当确定所述设定接口被设置了访问权限时,进行身份验证,并在身份验证通过后,许可对所述设定接口的访问请求。 The MAC address in the list of system properties; determining whether the interface is setting the access authority is set; when it is determined that the interface is arranged to set access authority to authenticate and verify the identity by , the permission request set access interface.
CN201310368647.5A 2013-08-22 2013-08-22 The method to acquire a media access control address, installations and equipment CN103561119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310368647.5A CN103561119B (en) 2013-08-22 2013-08-22 The method to acquire a media access control address, installations and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310368647.5A CN103561119B (en) 2013-08-22 2013-08-22 The method to acquire a media access control address, installations and equipment

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 CN103561119B (en) 2013-08-22 2013-08-22 The method to acquire a media access control address, installations and equipment

Country Status (1)

Country Link
CN (1) CN103561119B (en)

Families Citing this family (1)

* 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

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
CN103501333B (en) A method for downloading files, the device and the terminal device
CN103400508B (en) A method and apparatus for parking guidance information output
CN103634109B (en) Operating authority verification method and apparatus
CN103905885A (en) Video live broadcast method and device
CN103475667A (en) Method, device and system for controlling access router
CN103457951A (en) Method and device for allowing multiple terminals to login to server
CN103874018B (en) Access point information sharing method and apparatus
CN104618440B (en) Smart device control method and apparatus
CN104125216B (en) A way to improve the security of a trusted execution environment, systems and terminals
JP2016502339A (en) Nfc data transmission method, device, terminal device, a program and a recording medium
CN103458124B (en) Shutdown processing method of a terminal apparatus and the terminal apparatus
CN105487889A (en) Application interface updating method and device
CN103279288B (en) Data transmission method, apparatus and a terminal device
CN103294515B (en) A method for obtaining an application method, apparatus and system for
CN103310004A (en) Method, device and equipment for displaying number of unread messages
CN103389863B (en) A control method of a display apparatus and
CN103475476B (en) The method of multi-terminal device and a server login
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
CN103596017B (en) A video download method and system
CN104133832B (en) Identification method and device application piracy
CN103607713A (en) Method, apparatus, device and system for network access
EP3306865A1 (en) Communication message sending method and device
CN104518875A (en) Identity authentication method, account acquisition method and mobile terminal
US20150319173A1 (en) Co-verification method, two dimensional code generation method, and device and system therefor
CN104518953A (en) Message deleting method, instant messaging terminal and system

Legal Events

Date Code Title Description
C06 Publication
GR01