CN108833607B - Physical address acquisition method, device and readable medium - Google Patents

Physical address acquisition method, device and readable medium Download PDF

Info

Publication number
CN108833607B
CN108833607B CN201810599630.3A CN201810599630A CN108833607B CN 108833607 B CN108833607 B CN 108833607B CN 201810599630 A CN201810599630 A CN 201810599630A CN 108833607 B CN108833607 B CN 108833607B
Authority
CN
China
Prior art keywords
terminal
wireless network
key
management server
physical address
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
CN201810599630.3A
Other languages
Chinese (zh)
Other versions
CN108833607A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810599630.3A priority Critical patent/CN108833607B/en
Publication of CN108833607A publication Critical patent/CN108833607A/en
Application granted granted Critical
Publication of CN108833607B publication Critical patent/CN108833607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Abstract

The application discloses a physical address acquisition method, a physical address acquisition device and a readable medium, and relates to the technical field of computers. The method comprises the following steps: acquiring access information corresponding to the identity of the terminal from a management server; accessing the wireless network equipment according to the access information, wherein the wireless network equipment is used for sending the physical address of the terminal to the management server after the terminal is accessed; sending an address acquisition request to the management server through the target application program; and receiving the physical address sent by the management server through the target application program. When the terminal acquires the network service through the wireless network equipment, the network service needs to be acquired through the MAC address, namely the wireless network equipment can acquire the MAC address of the terminal, the MAC address is sent to the management server through the wireless network equipment, and after the management server sends the MAC address to the terminal, the problem that the MAC address cannot be acquired through the address acquisition interface is solved.

Description

Physical address acquisition method, device and readable medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a physical address obtaining method, a physical address obtaining device and a readable medium.
Background
Each terminal should have a physical address (Media Access Control or Medium Access Control, MAC address), and the MAC address is a unique identifier when the terminal accesses a wireless network.
Generally, when an application on a terminal needs to acquire a MAC address of the terminal to provide further services, the MAC address can be directly acquired from an address acquisition interface provided by an operating system of the terminal, and the further services can be provided through the MAC address.
However, the operating system of the terminal usually turns off the address obtaining interface, i.e. the application program cannot directly obtain the MAC address of the terminal through the address obtaining interface.
Disclosure of Invention
The embodiment of the application provides a physical address acquisition method, a physical address acquisition device and a readable medium, which can solve the problem that an application program cannot acquire an MAC address through an address acquisition interface when the address acquisition interface is closed. The technical scheme is as follows:
in one aspect, a method for acquiring a physical address is provided, where the method includes:
acquiring access information corresponding to the identity of the terminal from a management server;
accessing the wireless network equipment according to the access information, wherein the wireless network equipment is used for sending the physical address of the terminal to the management server after the terminal is accessed, and the management server is used for storing the corresponding relation between the identity of the terminal and the physical address;
sending an address acquisition request to the management server through the target application program, wherein the address acquisition request is used for acquiring the physical address from the management server, and the address acquisition request comprises the identity;
and receiving the physical address sent by the management server through the target application program.
In another aspect, a method for acquiring a physical address is provided, where the method includes:
sending access information corresponding to the identity of the terminal to the terminal;
receiving the physical address sent by the wireless network equipment, wherein the physical address is sent by the wireless network equipment after the terminal is accessed according to the access information;
storing the corresponding relation between the physical address and the identity mark;
receiving an address acquisition request sent by the terminal, wherein the address acquisition request is used for requesting to acquire the physical address and comprises the identity;
and sending the physical address to the terminal according to the address acquisition request.
In another aspect, a method for acquiring a physical address is provided, where the method includes:
receiving an access request sent by a terminal according to access information, wherein the access information is the access information sent by a management server to the terminal and corresponds to an identity of the terminal;
acquiring a physical address of the terminal from the access request;
and sending the physical address to a management server, wherein the management server is used for sending the physical address to the terminal when receiving an address acquisition signal sent by the terminal.
In another aspect, a physical address obtaining apparatus is provided, which is applied in a terminal running a target application, and includes:
the acquisition module is used for acquiring access information corresponding to the identity of the terminal from a management server;
the network module is used for accessing the wireless network equipment according to the access information, the wireless network equipment is used for sending the physical address of the terminal to the management server after the terminal is accessed, and the management server is used for storing the corresponding relation between the identity of the terminal and the physical address;
a sending module, configured to send an address obtaining request to the management server through the target application program, where the address obtaining request is used to obtain the physical address from the management server, and the address obtaining request includes the identity;
and the receiving module is used for receiving the physical address sent by the management server through the target application program.
In another aspect, a physical address obtaining apparatus is provided, the apparatus including:
the sending module is used for sending access information corresponding to the identity of the terminal to the terminal;
a receiving module, configured to receive the physical address sent by the wireless network device, where the physical address is sent by the wireless network device after the terminal accesses the wireless network device according to the access information;
the storage module is used for storing the corresponding relation between the physical address and the identity;
the receiving module is further configured to receive an address obtaining request sent by the terminal, where the address obtaining request is used to request to obtain the physical address, and the obtaining request includes the identity identifier;
the sending module is further configured to send the physical address to the terminal according to the address acquisition request.
In another aspect, a physical address obtaining apparatus is provided, the apparatus including:
the terminal comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an access request sent by the terminal according to access information, the access information is the access information sent by the management server to the terminal, and the access information corresponds to the identity identification of the terminal;
an obtaining module, configured to obtain a physical address of the terminal from the access request;
and the sending module is used for sending the physical address to a management server, and the management server is used for sending the physical address to the terminal when receiving an address acquisition signal sent by the terminal.
In another aspect, when the electronic device is a terminal, the terminal includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the physical address obtaining method provided in the embodiment of the present application.
In another aspect, when the electronic device is a server, the server includes a processor and a memory, where the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the physical address obtaining method provided in the embodiment of the present application.
In another aspect, when the electronic device is a network device, the network device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the physical address obtaining method provided in the embodiment of the present application.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the physical address obtaining method according to the embodiment of the present application.
In another aspect, a computer program product is provided, which when run on a computer causes the computer to execute the physical address acquisition method as described in the embodiments of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
when the terminal acquires the network service through the wireless network equipment, the network service needs to be acquired through the MAC address, namely the terminal needs to send the MAC address to the wireless network equipment, the wireless network equipment can acquire the MAC address of the terminal, the MAC address is sent to the management server through the wireless network equipment, and after the management server sends the MAC address to the target application program of the terminal, the target application program does not need to acquire the MAC address through the address acquisition interface, so that the problem that the target application program cannot acquire the MAC address through the address acquisition interface is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a physical address acquisition system provided in an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a method for physical address acquisition provided by an exemplary embodiment of the present application;
FIG. 3 is a flow chart of a method for physical address acquisition provided by another exemplary embodiment of the present application;
FIG. 4 is a flowchart of a physical address acquisition method provided by another exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of a user interface of a target application provided by an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram of a user interface of a target application provided by another exemplary embodiment of the present application;
fig. 7 is a block diagram of a physical address obtaining apparatus according to an exemplary embodiment of the present application;
fig. 8 is a block diagram of a physical address obtaining apparatus according to another exemplary embodiment of the present application;
fig. 9 is a block diagram of a physical address obtaining apparatus according to another exemplary embodiment of the present application;
fig. 10 is a block diagram of a physical address obtaining apparatus according to another exemplary embodiment of the present application;
fig. 11 is a block diagram of a physical address obtaining apparatus according to another exemplary embodiment of the present application;
fig. 12 is a block diagram of a physical address obtaining apparatus according to another exemplary embodiment of the present application;
fig. 13 is a block diagram of a terminal according to an exemplary embodiment of the present application;
FIG. 14 is a block diagram of a server provided in an exemplary embodiment of the present application;
fig. 15 is a block diagram of a network device according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, a brief description is given of terms referred to in the embodiments of the present application:
a network device: the network device is configured to provide a network service for the terminal device, and optionally, the network device is configured to access a network for the terminal device. Optionally, the network device is a wireless Access Point (AP) or a router, and taking the network device as an AP device for example, the AP device provides a bridge between a wired network and a wireless network, and performs wired connection between the AP device and the wired device, and the terminal device may perform wireless network access through the AP device.
Physical address (Media Access Control or Medium Access Control, MAC address): the MAC address is a unique identifier responsible for network access of the terminal, and the AP device or the router provides the terminal with network access through the MAC address of the terminal.
A management server: the management server is used for receiving the MAC address of the terminal from the network equipment and sending the MAC address corresponding to the terminal after receiving the address acquisition request sent by the terminal. Optionally, the network device includes a preset management module, where the preset management module is configured to send the MAC address accessed to the network device to a management server.
Referring to fig. 1, fig. 1 is a schematic diagram of an address obtaining system according to an exemplary embodiment of the present application, and as shown in fig. 1, the physical address obtaining system includes: terminal device 110, network device 120, management server 130, and communication network 140;
the terminal device 110 includes a MAC address, where the MAC address is a unique identifier when the terminal device 110 accesses a network, optionally, a target application is installed in the terminal device 110, through which the terminal device 110 may communicate with the management server 130, optionally, when the terminal device 110 accesses the network device 120, the terminal device 110 may communicate with the management server 130 through the network device 120, and when the terminal device 110 does not access the network device 120, the terminal device may also communicate with the management server 130 directly through another wired network or a wireless network. Optionally, the terminal 110 further includes a network module, which may be a wired network module or a wireless network module, and the terminal 110 may access the network device 120 through the network module.
Optionally, the terminal device 110 may further include a plurality of sub-devices, and illustratively, as shown in fig. 1, the terminal device 110 further includes a sub-device 111, a sub-device 112, and a sub-device 113.
Alternatively, the terminal device 110 may be a mobile phone, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III) player, an MP4(Moving Picture Experts Group Audio Layer IV) player, a laptop computer, a desktop computer, or the like. Optionally, the target application installed in the terminal device 110 may be a specific wireless internet access program, an instant messaging application program, such as Tencent QQ and WeChat, or a browser program, such as: a QQ browser, etc.
Network device 120 is configured to provide network services for terminal device 110, and optionally, network device 120 is configured to access a network for terminal device 110. Optionally, the network device 120 is a wireless Access Point (AP) or a router, where the AP device provides a bridge between a wired network and a wireless network, and performs wired connection between the AP device and a wired device, and the terminal device 110 may perform wireless network access through the AP device. Alternatively, the network device 120 may obtain the MAC address of the terminal device 110 accessing the network device 120, but when at least two terminal devices are accessed, the correspondence between the MAC address and the terminal cannot be determined.
The management server 130 is configured to receive the MAC address sent by the network device 120, and optionally, the network device 120 sends all MAC devices accessing the network device 120 to the management server 130. Alternatively, when the management server 130 receives an address acquisition request sent by one of the terminal devices 110, the management server 130 may set a temporary key for accessing the network device 120 according to the address acquisition request of the terminal device 110, and send the temporary key to the terminal device 110, the terminal device 110 accesses the network device 120 according to the received temporary key, the network device 120 sends the MAC address of the accessed terminal device 110 to the management server 130, and the management server 130 may determine the MAC address of the terminal device 110 and send the MAC address to the terminal device 110.
Alternatively, the terminal device 110 may communicate with the management server 130 through the communication network 140, and the network device 120 may also communicate with the management server 130 through the communication network 140, where the communication network 140 may be a wired communication network or a wireless communication network.
Alternatively, the management server 130 may be a server, a server cluster composed of a plurality of servers, or a cloud computing center.
Fig. 2 is a flowchart of a physical address obtaining method according to an exemplary embodiment of the present application, and as shown in fig. 2, the physical address obtaining method is described as being applied to the physical address obtaining system shown in fig. 1, where the physical address obtaining method includes:
step 201, the management server sends access information corresponding to the identity of the terminal to the terminal.
Optionally, the access information is used to provision access between the terminal and the wireless network device, and the access information may be one or a group of temporary keys, a provisioned access time period, or an identifier attached to the access time period, which is not limited in this embodiment.
Optionally, the access information may be unique access information, where the unique access information is used to access the terminal as a unique access terminal to the wireless network device in a target time period, where the unique access terminal may refer to a unique terminal newly accessing the wireless network device in the target time period, or may refer to a unique terminal in an access state with the wireless network device in the target time period.
Step 202, the terminal obtains access information corresponding to the identity of the terminal from the management server.
Optionally, a target application is installed in the terminal, and the terminal may obtain, from the management server, access information corresponding to the identity of the terminal through the target application.
Alternatively, the identity of the terminal may be an identifier generated by the target application program according to the terminal and uniquely representing the terminal. Optionally, before the management server sends the access information to the terminal, the terminal may also send an information acquisition request to the management server, where the information acquisition request is used to request to acquire access information corresponding to the identity of the terminal. Optionally, the access information received by the terminal and sent by the management server may also be unique access information, that is, the terminal receives the unique access information fed back by the management server.
Step 203, the wireless network device receives an access request sent by the terminal according to the access information.
Optionally, the access request includes a MAC address of the terminal, and the MAC address is used for uniquely identifying the terminal when the terminal accesses the network.
Optionally, when the terminal is within the service range of the wireless network device, the terminal may perform selective connection on a network corresponding to the wireless network device, so as to send an access request to the wireless network device. Illustratively, the wireless network device corresponds to the wireless network a, and when the terminal is in the service range of the wireless network device, the terminal searches the wireless network a and selects a link, and sends an access request to the wireless network device.
Step 204, the wireless network device obtains the physical address of the terminal from the access request.
Optionally, the wireless network device may be a network device preconfigured with a Pre-Shared Key (Pre-Shared Key, PSK), may also be a network device not configured with a Key, and may also be a network device that modifies a Key according to the access information.
Optionally, the access information is unique access information, when the wireless network device modifies a secret key according to the unique access information, the wireless network device sends a string of character strings to the terminal, the terminal encrypts the character strings according to the unique access information to obtain encrypted target character strings, sends an access request carrying the encrypted target character strings to the wireless network device, the wireless network device obtains the encrypted target character strings from the access request and decrypts the encrypted target character strings through the unique access information, and when the encrypted target character strings are decrypted successfully, the terminal is allowed to access and a physical address of the terminal is obtained from the access request. Optionally, when the decrypted character string is the same as the character string sent to the terminal, the decryption is considered to be successful.
Optionally, the wireless network device provides the network service to the terminal after the terminal is successfully accessed.
Optionally, the wireless network device is in wired connection with a wired device, and the wireless network device may provide a network service to the terminal according to the received access signal, such as: the terminal can access the wireless network device through a wireless connection. Optionally, the wireless network device provides the network service to the terminal according to the physical address of the terminal. Optionally, the wireless network device is further configured to provide a network service to the terminal according to a physical Address and an Internet Protocol Address (IP Address) of the terminal.
In step 205, the wireless network device sends the physical address to the management server.
Alternatively, the wireless network device transmits the MAC addresses of all the accessed terminals to the management server. Optionally, in this embodiment, taking an example that the wireless network device provides a network service only to the terminal that sends the access signal as an example, the wireless network device sends the MAC address of the terminal to the management server.
Optionally, the wireless network device includes a preset management module, where the preset management module may be an application program or a physical module, and the wireless network device sends the MAC address to the management server through the preset management module.
In step 206, the management server receives the physical address sent by the wireless network device.
The physical address is sent by the wireless network device after the terminal accesses according to the access information.
Step 207, the management server stores the corresponding relationship between the physical address and the identity.
Optionally, the physical address is sent by the wireless network device after the terminal accesses through the access information, so that the physical address corresponds to the access information sent by the management server to the terminal, and since the access information corresponds to the identity of the terminal, the physical address received by the management server corresponds to the identity of the terminal. And after determining that the physical address corresponds to the identity of the terminal, the management server stores the corresponding relation between the physical address and the identity.
In step 208, the terminal sends an address acquisition request to the management server through the target application program.
Optionally, the address obtaining request is used to obtain the physical address from a management server, where the address obtaining request includes an identity of the terminal.
Optionally, the address obtaining request further includes a receiving address of the terminal, and the server may send the physical address to the terminal according to the receiving address.
Optionally, the manner in which the terminal sends the address acquisition request to the management server includes at least one of the following manners:
firstly, when a terminal is in a state of accessing a wireless network device, the terminal can send an address acquisition request to a management server through the wireless network device;
secondly, when the terminal is not in the state of accessing the wireless network device (i.e. the terminal is disconnected from the access state of the wireless network device), the terminal may send the address acquisition request to the management server through other communication methods, such as: the address acquisition request is sent to the management server through the cellular mobile communication data, the address acquisition request can be sent to the management server through a fourth generation mobile communication technology, the address acquisition request can also be sent to the management server through connection with other wireless networks, and the method for sending the address acquisition request by the terminal is not limited in the embodiment of the application.
Optionally, a target application for performing communication between the management servers in the terminal is installed in the terminal. Optionally, the target application program stores a receiving address of the management server, and the address obtaining request is sent to the receiving address through the target application program.
In step 209, the management server receives the address acquisition request sent by the terminal.
Optionally, when the terminal forwards the address acquisition request through the wireless network device, the management server receives the address acquisition request forwarded by the wireless network device; or the management server receives an address acquisition request sent by the terminal.
Step 210, the management server sends a physical address to the terminal according to the address acquisition request.
Optionally, the address obtaining request includes an identity, and according to the correspondence between the identity and the physical address, the MAC address corresponding to the identity is queried and sent to the terminal.
Optionally, the address obtaining request sent by the terminal further includes a receiving address of the terminal, and the management server sends the MAC address to the terminal through the receiving address.
In step 211, the terminal receives the physical address sent by the management server through the target application program.
In summary, in the physical address obtaining method provided in this embodiment, when the terminal obtains the network service through the wireless network device, the terminal needs to obtain the network service through the MAC address, that is, the terminal needs to send the MAC address to the wireless network device, the wireless network device can obtain the MAC address of the terminal, and send the MAC address to the management server through the wireless network device, after the management server sends the MAC address to the target application program of the terminal, the target application program does not need to obtain the MAC address through the address obtaining interface, and a problem that the target application program cannot obtain the MAC address through the address obtaining interface is avoided.
In an optional embodiment, the unique access information includes a temporary key, where the temporary key is a key that is generated by the management server and is uniquely sent to the terminal, please refer to fig. 3, fig. 3 is a flowchart of a physical address obtaining method according to another exemplary embodiment of the present application, which is described by taking an example that the physical address obtaining method is applied in the physical address obtaining system shown in fig. 1, and the method includes:
step 301, the terminal sends a key acquisition request to the management server.
The key acquisition request includes the identity of the terminal. Optionally, the identity is an identity bound to the terminal, optionally, a target application is installed in the terminal, the target application generates an identity according to the terminal, and the identity is used for uniquely identifying the terminal.
Alternatively, the terminal may send a key acquisition request to the management server through the target application. The specific sending method may refer to step 208, and the address obtaining request in step 208 is implemented as a key obtaining request instead.
Step 302, the management server receives a key acquisition request sent by the terminal.
Step 303, the management server generates a temporary key according to the key acquisition request.
Optionally, after the management server generates a temporary key (represented by PSK-T) according to the key acquisition request, a first association relationship is established according to the temporary key and the identity of the terminal, that is, the temporary key and the identity include the first association relationship. Optionally, the first association between the temporary key and the identity is a unique association between the temporary key and the identity, that is, the temporary key does not establish an association with the identities of other terminals.
Optionally, the temporary key may refer to a temporarily generated key, or may refer to a key including a finite period. Optionally, in this embodiment, a validity period corresponding to the temporary key is taken as an example, and the validity period is used to indicate a validity period that allows the wireless network device to be accessed through the temporary key.
The management server sends a key modification signal to the wireless network device, step 304.
Optionally, the key modification signal is used to modify the key of the access wireless network device into the temporary key. Optionally, the key modification signal includes the temporary key, illustratively, the temporary key is xyz 123, and the key modification signal sent by the management server to the wireless network device is "updatekey ═ xyz 123", where update denotes update, and keyword denotes a key, that is, the key is updated to "xyz 123".
In step 305, the wireless network device receives a key modification signal sent by the management server.
Optionally, the key modification signal is used to modify an access key of the wireless network device within the target time period to a temporary key.
And step 306, the wireless network device modifies the key accessed to the wireless network device into a temporary key according to the key modification signal.
Illustratively, in combination with the above example of the key modification signal, when the key modification signal sent by the management server and received by the wireless network device is "updatekey 123", the wireless network device modifies the key accessing the wireless network device to "xyzd 123".
Optionally, the temporary key includes a validity period, that is, the key modification signal further includes a validity period of the temporary key, and illustratively, in combination with the key modification signal, the key modification signal including the validity period is "updatekey 123, time 200 s", that is, the key is modified to xyz 123, and the validity period of the temporary key is 200 seconds, where the validity period is expressed in a manner that after the validity period is generated, the temporary key is valid for a duration, and the expression of the validity period may also be a real time period, such as: 2018,06,03,00: 42,2018,06,03,00:43, namely that the validity period of the temporary key ranges from 0 point 42 at 6/3 in 2018 to 0 point 43 at 6/3/2018, and the expression mode of the validity period is not limited in the embodiment of the application.
Optionally, the wireless network device reverts to the original state prior to modifying the key when outside the validity period of the key. Such as: before the key is modified, the wireless network equipment does not preset an access key, and when the wireless network equipment is out of the validity period of the key, the wireless network equipment is set to be in a state without the key, namely, the wireless network equipment can be accessed without the key.
In step 307, the management server uniquely transmits the temporary key to the terminal.
Optionally, the management server receives the key obtaining request sent by the terminal and further includes a receiving address of the terminal, and according to the receiving address, the management server uniquely sends the temporary key to the terminal. Optionally, the unique sending means that the management server sends the temporary key only to the terminal, and does not send the temporary key to other terminals.
Optionally, the terminal that the management server sends the temporary key is the terminal that includes the first association relationship with the temporary key.
In step 308, the terminal receives the temporary key sent by the management server.
It should be noted that, the steps 304 to 306 and the steps 307 to 308 may be performed by first performing the steps 304 to 306 and then performing the steps 307 to 308, or may be performed by first performing the steps 307 to 308 and then performing the steps 304 to 306, or simultaneously performing the steps 304 to 306 and the steps 307 to 308, which is not limited in the embodiment of the present invention.
Step 309, the wireless network device receives an access request sent by the terminal according to the temporary key.
Optionally, the access request is a request for access by the terminal to the wireless network device. Optionally, the access signal includes a target character string encrypted by the temporary key.
Optionally, after receiving the key modification signal, the wireless network device sends a target character string to the terminal, where the target character string is used for encrypting and feeding back when the terminal accesses the wireless network device. And the terminal encrypts the character string through the temporary key to obtain an encrypted target character string. And after the wireless network equipment obtains the encrypted target character string, decrypting the encrypted target character string through the temporary key, allowing the terminal to access the wireless network equipment after the encrypted target character string is successfully decrypted, and acquiring the MAC address of the terminal from the access request.
Optionally, the temporary key includes a validity period, the wireless network device successfully decrypts the target character string through the temporary key, and when the temporary key is in the validity period, the wireless network device sends an access success indication to the terminal, that is, the terminal receives the access success indication fed back by the wireless network device.
Illustratively, the temporary key is abcd123, and is used to encrypt the target character string by using "abcd 123" by the terminal after the terminal inputs "abcd 123", add the obtained encrypted target character string to the access signal, and send the access signal to the wireless network device.
Alternatively, since the access key of the wireless network device is set as the temporary key and only the terminal acquires the temporary key, that is, only the terminal can access the wireless network device after the access key is changed to the temporary key.
Optionally, the terminal accessing the wireless network device before the access key is modified into the temporary key may forcibly cancel the access to the wireless network device, or may maintain the access state of the terminals in the wireless network device, but reject other terminals to continue the access operation to the wireless network device.
Optionally, the wireless network device detects whether the temporary key is within the key validity period, and when the temporary key is within the key validity period, the wireless network device provides the network service to the terminal.
In step 310, the wireless network device obtains the physical address of the terminal from the access request.
Optionally, the wireless network device first obtains an encrypted target character string from the access request, where the encrypted target character string is used to check whether a key input by the terminal and used to encrypt the target character string is matched with the temporary key, the wireless network device decrypts the encrypted target character string through the temporary key, and when the decrypted character string is the target character string, the decryption is considered to be successful, that is, the terminal is successfully accessed.
Optionally, after the wireless network device successfully decrypts the encrypted target character string, the MAC address in the access request is obtained.
In step 311, the wireless network device sends the physical address to the management server.
Optionally, after modifying the access key to be the temporary key, the wireless network device receives the access request of the terminal and accesses successfully, and then sends the MAC address of the terminal to the management server.
Optionally, the wireless network device includes a preset management module, where the preset management module may be an application program or a physical module, and the wireless network device sends the MAC address to the management server through the preset management module.
In step 312, the management server receives the physical address sent by the wireless network device.
Optionally, after receiving the MAC address sent by the wireless network device, the management server determines a second association relationship between the temporary key and the MAC address, and since only the terminal corresponding to the MAC address can access the wireless network device through the temporary key, the management server may determine the second association relationship between the temporary key and the MAC address.
And determining a third association relation between the identity and the MAC address according to the first association relation (association relation between the temporary key and the identity) and the second association relation (association relation between the temporary key and the MAC address). Optionally, since the first association relationship and the second association relationship are both one-to-one correspondence relationships, the third association relationship between the id and the MAC address can be directly obtained according to the two association relationships and stored as the correspondence relationship between the id and the MAC address.
In step 313, the terminal sends an address acquisition request to the management server.
Optionally, the address obtaining request further includes an identity of the terminal.
The manner in which the terminal sends the address acquisition request to the management server refers to step 206.
In step 314, the management server receives the address acquisition request sent by the terminal.
Step 315, the management server sends the physical address to the terminal according to the address acquisition request.
Optionally, the management server determines the MAC address requested to be acquired by the address acquisition request according to the identity in the address acquisition request and the third association relationship between the acquired identity and the MAC address, and sends the MAC address to the terminal.
It should be noted that, in the above steps 314 to 316, the terminal sends the address acquisition request to the management server, and then the management server sends the MAC address to the terminal, and in practical operation, after the management server receives the MAC address of the terminal, the management server may also send the MAC address to the terminal through the received address directly by receiving the received address of the terminal acquired when the key acquisition signal is received, without sending the address acquisition request to the management server again by the terminal.
In step 316, the terminal receives the physical address sent by the management server.
Optionally, the terminal receives the physical address sent by the management server through the target application program.
In summary, in the physical address obtaining method provided in this embodiment, when the terminal obtains the network service through the wireless network device, the terminal needs to obtain the network service through the MAC address, that is, the terminal needs to send the MAC address to the wireless network device, the wireless network device can obtain the MAC address of the terminal, and send the MAC address to the management server through the wireless network device, after the management server sends the MAC address to the target application program of the terminal, the target application program does not need to obtain the MAC address through the address obtaining interface, and a problem that the target application program cannot obtain the MAC address through the address obtaining interface is avoided.
In the method provided by this embodiment, the temporary key is generated according to the key acquisition request, and is sent to the terminal, the terminal can uniquely access the wireless network device through the temporary key, and after the wireless network device sends the MAC address of the uniquely accessed terminal to the management server, the management server can determine the association relationship between the identity of the terminal and the MAC address, thereby determining the MAC address of the terminal and sending the MAC address to the terminal, thereby avoiding the problem that the correspondence relationship between the MAC address and the terminal cannot be identified because a plurality of terminals are accessed in one network device.
In an optional embodiment, a wireless network device modifies an access key to a temporary key, and a common key is preset as a default key before the access key is modified to the temporary key, please refer to fig. 4, fig. 4 is a flowchart of a physical address obtaining method provided in another exemplary embodiment of the present application, which is described by taking an application of the physical address obtaining method in a physical address obtaining system shown in fig. 1 as an example, and the method includes:
in step 401, a wireless network device receives a key setting signal.
Optionally, the key setting signal is used to set the key of the access wireless network device to a common key, and the common key is a default key of the access wireless network device. Alternatively, the common key may be a key used when a plurality of terminals access the wireless network device.
Optionally, the key setting signal may be sent to the wireless network device by the management server, or may be sent to the wireless network device by another server, which is not limited in this embodiment.
Step 402, the terminal accesses the wireless network device through the shared key.
Optionally, the terminal accesses the wireless network device by sending a default access signal to the wireless network device, where the default access signal includes the common key and the MAC address of the terminal.
And step 403, accessing the other terminals to the wireless network equipment through the shared key.
Optionally, the other terminal also accesses the wireless network device by sending a default access signal to the wireless network device.
In step 404, the terminal sends a key acquisition request to the management server.
The key acquisition request includes the identity of the terminal. Optionally, the identity is an identity bound to the terminal, optionally, a target application is installed in the terminal, the target application generates an identity according to the terminal, and the identity is used for uniquely identifying the terminal.
Step 405, the management server receives a key acquisition request sent by the terminal.
In step 406, the management server generates a temporary key according to the key acquisition request.
Optionally, after the management server generates the temporary key according to the key acquisition request, a first association relationship is established according to the temporary key and the identity of the terminal, that is, the temporary key and the identity include the first association relationship. Optionally, the first association between the temporary key and the identity is a unique association between the temporary key and the identity, that is, the temporary key does not establish an association with the identities of other terminals.
In step 407, the management server uniquely sends the temporary key to the terminal.
Optionally, the management server receives the key obtaining request sent by the terminal and further includes a receiving address of the terminal, and according to the receiving address, the management server uniquely sends the temporary key to the terminal. Optionally, the unique sending means that the management server sends the temporary key only to the terminal, and does not send the temporary key to other terminals.
Optionally, the terminal that the management server sends the temporary key is the terminal that includes the first association relationship with the temporary key.
In step 408, the terminal receives the temporary key sent by the management server.
Fig. 5 is an interface schematic diagram of a target application program in which a terminal requests a temporary key from a management server according to an exemplary embodiment of the present application, as shown in fig. 5, a connection interface of a wireless network "silvera" is displayed in a user interface 51 of the target application program, the wireless network corresponds to a wireless network device a, in the user interface 51, a user may select a control 52 for obtaining the temporary key, send a key obtaining request to the management server through the target application program, and also select a control 53 for disconnecting in the user interface 51, so as to end accessing to the wireless network device a corresponding to the wireless network. Optionally, when the user selects the obtain temporary key control 52, the temporary key of the wireless network is najkg 3289.
In step 409, the terminal disconnects the access state of the connection with the wireless network device through the shared key.
Alternatively, as shown in fig. 5, after receiving the temporary key sent by the management server, the terminal may actively disconnect the access state of connecting with the wireless network device through the shared key.
The management server sends a key modification signal to the wireless network device, step 410.
Optionally, the key modification signal is used to modify the key of the access wireless network device into the temporary key. Optionally, the key modification signal includes the temporary key, illustratively, the temporary key is xyz 123, and the key modification signal sent by the management server to the wireless network device is "updatekey ═ xyz 123", where update denotes update, and keyword denotes a key, that is, the key is updated to "xyz 123".
In step 411, the wireless network device receives the key modification signal sent by the management server.
And step 412, the wireless network device modifies the key accessed to the wireless network device into a temporary key according to the key modification signal.
Optionally, the wireless network device reverts to the original state prior to modifying the key when outside the validity period of the key. Such as: before the key is modified, the wireless network equipment does not preset an access key, and when the wireless network equipment is out of the validity period of the key, the wireless network equipment is set to be in a state without the key, namely, the wireless network equipment can be accessed without the key.
The other device is denied access to the wireless network device via the common key, step 413.
Optionally, in the step 409, after the access key of the wireless network device is modified to be the temporary key, the terminal is disconnected from the access state accessed by the wireless network device through the shared key.
In an optional embodiment, after the terminal acquires its MAC address, the terminal may acquire an independent key through the management server or the wireless network device, where the independent key is used to generate an association relationship with the MAC address, and access the wireless network device through the terminal MAC address and the independent key, that is, one terminal corresponds to an independent key used to access the wireless network device, after the access key of the wireless network device is modified to a temporary key, other terminals that do not access the wireless network device are denied access to the wireless network device through a shared key, and a terminal that has accessed the wireless network device through the independent key may maintain an access state to the wireless network device.
Step 414, the wireless network device receives the access request sent by the terminal according to the temporary key.
Optionally, the access request is a request for access by the terminal to the wireless network device. Optionally, the access signal includes a target character string encrypted by the temporary key.
Optionally, after receiving the key modification signal, the wireless network device sends a target character string to the terminal, where the target character string is used for encrypting and feeding back when the terminal accesses the wireless network device. And the terminal encrypts the character string through the temporary key to obtain an encrypted target character string. And after the wireless network equipment obtains the encrypted target character string, decrypting the encrypted target character string through the temporary key, allowing the terminal to access the wireless network equipment after the encrypted target character string is successfully decrypted, and acquiring the MAC address of the terminal from the access request.
Optionally, the temporary key includes a validity period, the wireless network device successfully decrypts the target character string through the temporary key, and when the temporary key is in the validity period, the wireless network device sends an access success indication to the terminal, that is, the terminal receives the access success indication fed back by the wireless network device.
Optionally, the wireless network device is in wired connection with a wired device, and the wireless network device may provide a network service to the terminal according to the received access signal, such as: the terminal can access the wireless network device through a wireless connection. Optionally, the wireless network device provides the network service to the terminal according to the physical address of the terminal. Optionally, the wireless network device is further configured to provide a network service to the terminal according to the physical address and the IP address of the terminal.
Alternatively, when the wireless network device provides the network service to the terminal, the terminal accesses the wireless network device through the temporary key.
In step 415, the wireless network device obtains the physical address of the terminal from the access request.
Optionally, the wireless network device first obtains an encrypted target character string from the access request, where the encrypted target character string is used to check whether a key input by the terminal and used to encrypt the target character string is matched with the temporary key, the wireless network device decrypts the encrypted target character string through the temporary key, and when the decrypted character string is the target character string, the decryption is considered to be successful, that is, the terminal is successfully accessed.
Optionally, after the wireless network device successfully decrypts the encrypted target character string, the MAC address in the access request is obtained.
The wireless network device sends the physical address to the management server, step 416.
Optionally, since the wireless network device needs to provide the network service to the terminal through the MAC address of the terminal, that is, the wireless network device may acquire the MAC address of the terminal accessing the wireless network device.
Optionally, after modifying the access key to be the temporary key, the wireless network device receives the access signal of the terminal and accesses successfully, and then sends the MAC address of the terminal to the management server.
In step 417, the management server receives the physical address sent by the wireless network device.
Optionally, after receiving the MAC address sent by the wireless network device, the management server determines a second association relationship between the temporary key and the MAC address, and since only the terminal corresponding to the MAC address can access the wireless network device through the temporary key, the management server may determine the second association relationship between the temporary key and the MAC address.
And determining a third association relation between the identity and the MAC address according to the first association relation (association relation between the temporary key and the identity) and the second association relation (association relation between the temporary key and the MAC address). Optionally, since the first association relationship and the second association relationship are both a one-to-one correspondence relationship, the association relationship between the identity and the MAC address can be directly obtained according to the two association relationships.
In step 418, the terminal sends an address acquisition request to the management server.
Optionally, the address obtaining request further includes an identity of the terminal.
The manner in which the terminal sends the address acquisition request to the management server refers to step 206.
Step 419, the management server receives the address acquisition request sent by the terminal.
Step 420, the management server sends the physical address to the terminal according to the address acquisition request.
It should be noted that, in the above steps 418 to 420, the case that the terminal sends the address obtaining request to the management server and then the management server sends the MAC address to the terminal is taken as an example for explanation, in practical operation, after the management server receives the MAC address of the terminal, the management server may send the MAC address to the terminal through the received address directly by receiving the received address of the terminal obtained when the key obtaining signal is received, without sending the address obtaining request to the management server again by the terminal.
In step 421, the terminal receives the physical address sent by the management server.
Optionally, the terminal receives the physical address sent by the management server through the target application program.
Illustratively, referring to fig. 6, in the user interface 61 of the target application, the user may select the MAC address obtaining control 62 to perform the above steps 418 to 421 to obtain the MAC address of the terminal, or may select the disconnection control 63 to disconnect the connected WiFi, and after the user selects the MAC address obtaining control 62, the management server sends the MAC address to the terminal, where the MAC address may be specifically displayed in the user interface 64, or may display the MAC address obtaining result, as shown in fig. 6, the MAC address obtaining result "MAC address obtaining success" is displayed in the user interface 64.
Optionally, after receiving the MAC address sent by the management server, the terminal may apply for an independent key from the management server or the wireless network device according to the MAC address, where the independent key is a key only applicable to the MAC address of the terminal to access the wireless network device. The independent key may be generated by the management server, the wireless network device, or another server, which is not limited in this embodiment.
And after generating an independent key aiming at the MAC address of the terminal, storing the corresponding relation between the MAC address and the independent key in the wireless network equipment, and accessing the wireless network equipment through the independent key when the terminal accesses the wireless network equipment again. Optionally, the correspondence between the MAC address stored in the wireless network device and the independent key is as shown in the following table one:
watch 1
MAC address Independent key
D8:A3:E3:R4:T5:Q2:Y4:M7 Auhgu34
H4:F5:H5:S3:L0:N7:X7:V7 Eajhd6723
D4:B5:Z1:M0:G7:H8:I9:O0 Bafsba738268
In summary, in the physical address obtaining method provided in this embodiment, when the terminal obtains the network service through the wireless network device, the terminal needs to obtain the network service through the MAC address, that is, the terminal needs to send the MAC address to the wireless network device, the wireless network device can obtain the MAC address of the terminal, and send the MAC address to the management server through the wireless network device, after the management server sends the MAC address to the target application program of the terminal, the target application program does not need to obtain the MAC address through the address obtaining interface, and a problem that the target application program cannot obtain the MAC address through the address obtaining interface is avoided.
In the method provided by this embodiment, the temporary key is generated according to the key acquisition request, and is sent to the terminal, the terminal can uniquely access the wireless network device through the temporary key, and after the wireless network device sends the MAC address of the uniquely accessed terminal to the management server, the management server can determine the association relationship between the identity of the terminal and the MAC address, thereby determining the MAC address of the terminal and sending the MAC address to the terminal, thereby avoiding the problem that the correspondence relationship between the MAC address and the terminal cannot be identified because a plurality of terminals are accessed in one network device.
According to the method provided by the embodiment, after the terminal acquires the MAC address, the management server or the wireless network equipment generates the independent key, and the different terminals access the wireless network equipment through different independent keys, so that the problem of increased danger of the terminal caused by the fact that the access key of the wireless network equipment is single and easy to crack is solved, and the safety of the terminal accessing the wireless network equipment is improved.
Fig. 7 is a block diagram of a physical address obtaining apparatus according to an exemplary embodiment of the present application, where as shown in fig. 7, the apparatus includes: an acquisition module 71, a network module 72, a sending module 73 and a receiving module 74;
an obtaining module 71, configured to obtain, from a management server, access information corresponding to an identity of the terminal;
a network module 72, configured to access the wireless network device according to the access information, where the wireless network device is configured to send the physical address of the terminal to the management server after the terminal is accessed, and the management server is configured to store a corresponding relationship between an identity of the terminal and the physical address;
a sending module 73, configured to send an address obtaining request to the management server through the target application, where the address obtaining request is used to obtain the physical address from the management server, and the address obtaining request includes the identity;
a receiving module 74, configured to receive, by the target application, the physical address sent by the management server.
Fig. 8 is a block diagram of a physical address obtaining apparatus according to another exemplary embodiment of the present application, and as shown in fig. 8, the apparatus further includes: a transmitting submodule 711 and a receiving submodule 712;
a sending submodule 711, configured to send an information obtaining request to the management server, where the information obtaining request is used to request to obtain access information corresponding to the identity identifier of the terminal;
and the receiving submodule 712 is configured to receive unique access information fed back by the management server, where the unique access information is used to access the terminal as a unique access terminal to the wireless network device in a target time period.
In an optional embodiment, the unique access information includes a temporary key, and the temporary key is a key generated by the management server and uniquely sent to the terminal;
the sending submodule 711 is further configured to send a key obtaining request to the management server, where the key obtaining request includes the identity of the terminal;
the receiving submodule 712 is further configured to receive the temporary secret key sent by the management server, where the temporary secret key is a secret key that is generated by the management server and that establishes a first association relationship with the identity.
In an alternative embodiment, the temporary key corresponds to a validity period for indicating a validity period for allowing access to the wireless network device by the temporary key;
the sending sub-module 711 is further configured to send an access request to the wireless network device, where the access request includes a target character string encrypted by the temporary key;
the receiving submodule 712 is further configured to receive an access success indication fed back by the wireless network device, where the access success indication is fed back by the wireless network device when the temporary secret key is in the validity period after the wireless network device successfully decrypts the encrypted target character string by using the temporary secret key.
In an optional embodiment, the network module 72 is further configured to access the wireless network device through a common key, where the common key is a default key for accessing the wireless network device; and disconnecting the access state of the terminal connected with the wireless network equipment through the common secret key.
Fig. 9 is a block diagram of a physical address obtaining apparatus according to an exemplary embodiment of the present application, where as shown in fig. 9, the apparatus includes: a sending module 91, a receiving module 92 and a storage module 93;
a sending module 91, configured to send, to the terminal, access information corresponding to the identity of the terminal;
a receiving module 92, configured to receive the physical address sent by the wireless network device, where the physical address is sent by the wireless network device after the terminal accesses the physical address according to the access information;
a storage module 93, configured to store a correspondence between the physical address and the identity;
the receiving module 92 is further configured to receive an address obtaining request sent by the terminal, where the address obtaining request is used to request to obtain the physical address, and the obtaining request includes the identity;
the sending module 91 is further configured to send the physical address to the terminal according to the address obtaining request.
In an optional embodiment, the sending module 91 is further configured to receive an access request sent by the terminal, where the access request is used to request to acquire access information corresponding to the identity of the terminal;
the sending module 91 is further configured to send unique access information to the terminal, where the unique access information is used to access the terminal as a unique access terminal to the wireless network device in a target time period.
Fig. 10 is a block diagram of a physical address obtaining apparatus according to another exemplary embodiment of the present application, and as shown in fig. 10, the receiving module 92 further includes: a generation sub-module 921 and a transmission sub-module 922;
the receiving module 92 is further configured to receive a key obtaining request sent by the terminal, where the key obtaining request includes the identity of the terminal;
the generating sub-module 921 is configured to generate a temporary secret key, and establish a first association relationship between the temporary secret key and the identity;
the sending submodule 922 is configured to send the temporary secret key to the terminal uniquely, and the terminal is configured to access the wireless network device according to the temporary secret key.
In an optional embodiment, the storage module 93 is further configured to determine a second association relationship between the temporary key and the physical address;
the storage module 93 is further configured to determine a third association relationship between the identity and the physical address according to the first association relationship and the second association relationship, and use the third association relationship as a corresponding relationship between the physical address and the identity.
In an optional embodiment, the sending module 91 is further configured to send a key modification signal to the wireless network device, where the key modification signal is used to modify an access key of the wireless network device in a target time period into the temporary key.
Fig. 11 is a block diagram of a physical address obtaining apparatus according to an exemplary embodiment of the present application, and as shown in fig. 11, the apparatus includes: a receiving module 111, an obtaining module 112 and a sending module 113;
a receiving module 111, configured to receive an access request sent by a terminal according to access information, where the access information is access information sent by a management server to the terminal, and the access information corresponds to an identity of the terminal;
an obtaining module 112, configured to obtain a physical address of the terminal from the access request;
a sending module 113, configured to send the physical address to a management server, where the management server is configured to send the physical address to the terminal when receiving an address obtaining signal sent by the terminal.
Fig. 12 is a block diagram of a physical address obtaining apparatus according to another exemplary embodiment of the present application, and as shown in fig. 12, the obtaining module 112 further includes: decryption submodule 1121, access submodule 1122;
the access information is unique access information, and the unique access information is used for accessing the terminal as a unique access terminal to the wireless network equipment in a target time period;
the obtaining module 112 is further configured to obtain the encrypted target character string from the access request;
a decryption submodule 1121, configured to decrypt the encrypted target character string through the unique access information;
the access sub-module 1122 is configured to allow the terminal to access and obtain a physical address of the terminal from the access request after the encrypted target character string is successfully decrypted.
In an alternative embodiment, the unique access information comprises a temporary key;
the receiving module 111 is further configured to receive a key modification signal sent by the management server, where the key modification signal is used to modify a key accessed to the wireless network device into a temporary key.
In an alternative embodiment, the temporary key corresponds to a key validity period, the key validity period being indicative of a validity period that allows access to the wireless network device by the temporary key;
the device, still include:
a detecting module 114, configured to detect whether the temporary key is within the key validity period;
the detecting module 114 is further configured to provide the network service to the terminal when the temporary key is within the key validity period.
In an optional embodiment, the receiving module 111 is further configured to receive a key setting signal, where the key setting signal is used to set a key for accessing the wireless network device as a common key, and the common key is a default key for accessing the wireless network device.
In summary, in the physical address obtaining apparatus provided in this embodiment, when the terminal obtains the network service through the wireless network device, the terminal needs to obtain the network service through the MAC address, that is, the terminal needs to send the MAC address to the wireless network device, the wireless network device can obtain the MAC address of the terminal, and send the MAC address to the management server through the wireless network device, after the management server sends the MAC address to the target application program of the terminal, the target application program does not need to obtain the MAC address through the address obtaining interface, so that a problem that the target application program cannot obtain the MAC address through the address obtaining interface is avoided.
Fig. 13 is a block diagram illustrating a terminal 1300 according to an exemplary embodiment of the present invention. The terminal 1300 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1300 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, terminal 1300 includes: a processor 1301 and a memory 1302.
Processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1301 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, processor 1301 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 1302 may include one or more computer-readable storage media, which may be non-transitory. The memory 1302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer-readable storage medium in memory 1302 is used to store at least one instruction for execution by processor 1301 to implement the physical address acquisition method provided by method embodiments herein.
In some embodiments, terminal 1300 may further optionally include: a peripheral interface 1303 and at least one peripheral. Processor 1301, memory 1302, and peripheral interface 1303 may be connected by a bus or signal line. Each peripheral device may be connected to the peripheral device interface 1303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1304, touch display 1305, camera 1306, audio circuitry 1307, positioning component 1308, and power supply 1309.
Peripheral interface 1303 may be used to connect at least one peripheral associated with I/O (Input/Output) to processor 1301 and memory 1302. In some embodiments, processor 1301, memory 1302, and peripheral interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1304 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 1304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 13G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1304 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1305 is used to display a UI (user interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1305 is a touch display screen, the display screen 1305 also has the ability to capture touch signals on or over the surface of the display screen 1305. The touch signal may be input to the processor 1301 as a control signal for processing. At this point, the display 1305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1305 may be one, providing the front panel of terminal 1300; in other embodiments, display 1305 may be at least two, either on different surfaces of terminal 1300 or in a folded design; in still other embodiments, display 1305 may be a flexible display disposed on a curved surface or on a folded surface of terminal 1300. Even further, the display 1305 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display 1305 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 1306 is used to capture images or video. Optionally, camera assembly 1306 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1306 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1307 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1301 for processing, or inputting the electric signals to the radio frequency circuit 1304 for realizing voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1300. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuitry 1304 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 1307 may also include a headphone jack.
The positioning component 1308 is used for positioning the current geographic position of the terminal 1300 for implementing navigation or LBS (Location Based Service). The Positioning component 1308 can be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 1309 is used to provide power to various components in terminal 1300. The power source 1309 may be alternating current, direct current, disposable or rechargeable. When the power source 1309 comprises a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1300 also includes one or more sensors 1310. The one or more sensors 1310 include, but are not limited to: acceleration sensor 1311, gyro sensor 1312, pressure sensor 1310, fingerprint sensor 1314, optical sensor 1315, and proximity sensor 1316.
The acceleration sensor 1311 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 1300. For example, the acceleration sensor 1311 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1301 may control the touch display screen 1305 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1311. The acceleration sensor 1311 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1312 may detect the body direction and the rotation angle of the terminal 1300, and the gyro sensor 1312 may cooperate with the acceleration sensor 1311 to acquire a 3D motion of the user with respect to the terminal 1300. Processor 1301, based on the data collected by gyroscope sensor 1312, may perform the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1310 may be disposed on a side bezel of terminal 1300 and/or underlying touch screen display 1305. When the pressure sensor 1310 is disposed on the side frame of the terminal 1300, the holding signal of the user to the terminal 1300 can be detected, and the processor 1301 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1310. When the pressure sensor 1310 is disposed at a lower layer of the touch display 1305, the processor 1301 controls an operability control on the UI interface according to a pressure operation of the user on the touch display 1305. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1314 is used for collecting the fingerprint of the user, and the processor 1301 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 1314, or the fingerprint sensor 1314 identifies the identity of the user according to the collected fingerprint. When the identity of the user is identified as a trusted identity, the processor 1301 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 1314 may be disposed on the front, back, or side of the terminal 1300. When a physical button or vendor Logo is provided on the terminal 1300, the fingerprint sensor 1314 may be integrated with the physical button or vendor Logo.
The optical sensor 1315 is used to collect the ambient light intensity. In one embodiment, the processor 1301 can control the display brightness of the touch display screen 1305 according to the intensity of the ambient light collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1305 is increased; when the ambient light intensity is low, the display brightness of the touch display 1305 is turned down. In another embodiment, the processor 1301 can also dynamically adjust the shooting parameters of the camera assembly 1306 according to the ambient light intensity collected by the optical sensor 1315.
Proximity sensor 1316, also known as a distance sensor, is typically disposed on a front panel of terminal 1300. Proximity sensor 1316 is used to gather the distance between the user and the front face of terminal 1300. In one embodiment, the processor 1301 controls the touch display 1305 to switch from the bright screen state to the dark screen state when the proximity sensor 1316 detects that the distance between the user and the front face of the terminal 1300 gradually decreases; the touch display 1305 is controlled by the processor 1301 to switch from the rest state to the bright state when the proximity sensor 1316 detects that the distance between the user and the front face of the terminal 1300 gradually becomes larger.
Those skilled in the art will appreciate that the configuration shown in fig. 13 is not intended to be limiting with respect to terminal 1300 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may be a computer readable storage medium contained in a memory of the above embodiments; or it may be a separate computer-readable storage medium not incorporated in the terminal. The computer readable storage medium has stored therein at least one instruction, at least one program, a set of codes, or a set of instructions that is loaded and executed by the processor to implement the physical address obtaining method as described in any of fig. 1 to 4.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The application also provides a server, which comprises a processor and a memory, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the method for performing interaction in the short video program provided by the above method embodiments. It should be noted that the server may be a server as provided in fig. 14 below.
Referring to fig. 14, a schematic structural diagram of a server according to an exemplary embodiment of the present application is shown. Specifically, the method comprises the following steps: the server 1400 includes a Central Processing Unit (CPU)1401, a system memory 1404 including a Random Access Memory (RAM)1402 and a Read Only Memory (ROM)1403, and a system bus 1405 connecting the system memory 1404 and the central processing unit 1401. The server 1400 also includes a basic input/output system (I/O system) 1406 that facilitates transfer of information between devices within the computer, and a mass storage device 1407 for storing an operating system 1413, application programs 1414, and other program modules 1415.
The basic input/output system 1406 includes a display 1408 for displaying information and an input device 1409, such as a mouse, keyboard, etc., for user input of information. Wherein the display 1408 and input device 1409 are both connected to the central processing unit 1401 via an input-output controller 1410 connected to the system bus 1405. The basic input/output system 1406 may also include an input/output controller 1410 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 1410 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1407 is connected to the central processing unit 1401 through a mass storage controller (not shown) connected to the system bus 1405. The mass storage device 1407 and its associated computer-readable media provide non-volatile storage for the server 1400. That is, the mass storage device 1407 may include a computer readable medium (not shown) such as a hard disk or a CD-ROI drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1404 and mass storage device 1407 described above may collectively be referred to as memory.
The memory stores one or more programs configured to be executed by the one or more central processing units 1401, the one or more programs containing instructions for implementing the above-described method for interacting in short video programs, and the central processing unit 1401 executes the one or more programs to implement the method for interacting in short video programs provided by the various method embodiments described above.
The server 1400 may also operate in conjunction with remote computers connected to a network via a network, such as the internet, according to various embodiments of the invention. That is, the server 1400 may be connected to the network 1412 through the network interface unit 1411 coupled to the system bus 1405, or the network interface unit 1411 may be used to connect to other types of networks or remote computer systems (not shown).
The memory also includes one or more programs, the one or more programs are stored in the memory, and the one or more programs comprise steps executed by the server for performing the method for interaction in short video programs provided by the embodiment of the invention.
Embodiments of the present application also provide a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor 1410 to implement the video interaction method as described in any one of fig. 1 to fig. 9.
The present application further provides a computer program product, which when running on a computer, causes the computer to execute the video interaction method provided by the above method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
The application also provides a network device, which includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the physical address obtaining method provided by the foregoing method embodiments. It should be noted that the network device may be the network device provided in fig. 15 below.
Referring to fig. 15, a schematic structural diagram of a network device according to an exemplary embodiment of the present application is shown. Specifically, the method comprises the following steps: the network device includes a processor 1510, memory 1520, and a communication interface 1530.
The processor 1510 is connected to the memory 1520 and the communication interface 1530 through a bus, respectively.
Communication interface 1530 is used for communicating with other network elements.
Processor 1510 includes one or more processing cores. The processor 1510 implements the functions of the network device in the above-described method embodiments by running an operating system or an application program module.
Optionally, memory 1520 may store an operating system 1522, an application module 1524 required for at least one function. Optionally, the application module 1524 includes: a receiving unit 1524a, a processing unit 1524b and a transmitting unit 1524 c. Wherein the receiving unit 1524a is configured to implement the steps related to receiving; the processing unit 1524b is used to implement steps related to calculations or processing; the transmission unit 1524c is used to implement the steps related to transmission.
Further, the memory 1520 may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
Optionally, the memory stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the physical address obtaining method described in any one of fig. 1 to fig. 4.
Those skilled in the art will appreciate that the architecture shown in fig. 15 does not constitute a limitation of the network devices described above, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
An embodiment of the present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor 1510 to implement the physical address obtaining method according to any one of fig. 1 to fig. 4.
The memory also comprises one or more programs, the one or more programs are stored in the memory, and the one or more programs comprise the physical address acquisition method for implementing the embodiment of the invention.
An embodiment of the present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor 1510 to implement the physical address obtaining method according to any one of fig. 1 to fig. 4.
The present application further provides a computer program product, which when running on a computer, causes the computer to execute the physical address obtaining method provided by the above method embodiments.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may be a computer readable storage medium contained in a memory of the above embodiments; or it may be a separate computer-readable storage medium not incorporated in the terminal. The computer readable storage medium has stored therein at least one instruction, at least one program, a set of codes, or a set of instructions that is loaded and executed by the processor to implement the physical address obtaining method as described in any of fig. 1 to 4.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (13)

1. A physical address acquisition method is applied to a terminal running a target application program, and the method comprises the following steps:
sending an information acquisition request to a management server, wherein the information acquisition request is used for requesting to acquire access information corresponding to the identity of the terminal, and the terminal is in a state of not accessing the wireless network equipment;
receiving unique access information fed back by the management server, wherein the unique access information is used for accessing the terminal as a unique access terminal to the wireless network equipment in a target time period, the unique access information comprises a temporary key, the temporary key is a key which is generated by the management server and is uniquely sent to the terminal, and the terminal is disconnected by the wireless network in an access state accessed through a public key in response to the fact that the access key of the wireless network equipment is modified into the temporary key;
accessing the wireless network equipment according to the unique access information, wherein the wireless network equipment is used for sending the physical address of the terminal to the management server after the terminal is accessed, and the management server is used for storing the corresponding relation between the identity of the terminal and the physical address;
sending an address acquisition request to the management server through the target application program, wherein the address acquisition request is used for acquiring the physical address from the management server, and the address acquisition request comprises the identity;
receiving the physical address sent by the management server through the target application program;
applying for an independent key from the management server or the wireless network device according to the physical address, wherein the management server is used for generating the independent key, and the wireless network device is used for storing the corresponding relation between the physical address and the independent key;
and when the terminal accesses the wireless network equipment again, accessing through the independent key.
2. The method of claim 1, wherein sending the access request to the management server comprises:
sending a key acquisition request to the management server, wherein the key acquisition request comprises the identity of the terminal;
the receiving of the unique access information fed back by the management server includes:
and receiving the temporary secret key sent by the management server, wherein the temporary secret key is a secret key which is generated by the management server and establishes a first association relation with the identity.
3. A physical address acquisition method, characterized in that the method comprises:
receiving an access request sent by a terminal, wherein the access request is used for requesting to acquire access information corresponding to an identity of the terminal, and the terminal is in a state of not accessing wireless network equipment;
sending unique access information to the terminal, wherein the unique access information is used for accessing the terminal as a unique access terminal to the wireless network equipment in a target time period, the unique access information comprises a temporary secret key, the temporary secret key is a secret key which is generated by a management server and is sent to the terminal uniquely, and the terminal is disconnected by the wireless network in an access state of accessing through a public secret key in response to the fact that the access secret key of the wireless network equipment is modified into the temporary secret key;
receiving the physical address sent by the wireless network equipment, wherein the physical address is sent by the wireless network equipment after the terminal is accessed according to the unique access information;
storing the corresponding relation between the physical address and the identity mark;
receiving an address acquisition request sent by the terminal, wherein the address acquisition request is used for requesting to acquire the physical address and comprises the identity;
sending the physical address to the terminal according to the address acquisition request;
and responding to the application of the terminal for an independent key to a management server after receiving the physical address, wherein the management server is used for generating the independent key, the wireless network equipment is used for storing the corresponding relation between the physical address and the independent key, and the independent key is used for being applied when the terminal accesses the wireless network equipment again.
4. The method of claim 3, wherein the receiving the access request sent by the terminal comprises:
receiving a key acquisition request sent by the terminal, wherein the key acquisition request comprises the identity of the terminal;
generating a temporary key and establishing a first association relation between the temporary key and the identity;
and the temporary secret key is uniquely sent to the terminal, and the terminal is used for accessing the wireless network equipment according to the temporary secret key.
5. The method of claim 4, wherein the saving the correspondence between the physical address and the identity comprises:
determining a second association relationship between the temporary key and the physical address;
and determining a third association relation between the identity and the physical address according to the first association relation and the second association relation, and storing the third association relation as a corresponding relation between the physical address and the identity.
6. A physical address acquisition method, characterized in that the method comprises:
receiving an access request sent by a terminal according to access information, wherein the access information is the access information sent by a management server to the terminal, the access information corresponds to an identity of the terminal, the access information is unique access information, the unique access information is used for accessing the terminal as a unique access terminal to a wireless network device within a target time period, the unique access information comprises a temporary secret key, the temporary secret key is a secret key generated by the management server and sent to the terminal only, the terminal is in a state of not accessing the wireless network device, and the terminal is disconnected by the wireless network and is in an access state of accessing through a public secret key in response to the fact that the access secret key of the wireless network device is modified into the temporary secret key;
acquiring a physical address of the terminal from the access request;
sending the physical address to a management server, wherein the management server is used for sending the physical address to the terminal when receiving an address acquisition signal sent by the terminal;
and responding to the application of an independent key to a management server after the terminal receives the physical address, and storing the corresponding relation between the independent key and the physical address, wherein the independent key is used for applying to the wireless network equipment again at the terminal.
7. The method of claim 6, wherein the obtaining the physical address of the terminal from the access request comprises:
acquiring an encrypted target character string from the access request;
decrypting the encrypted target character string through the unique access information;
and when the encrypted target character string is successfully decrypted, allowing the terminal to access, and acquiring the physical address of the terminal from the access request.
8. The method of claim 7, wherein the unique access information comprises a temporary key;
before the receiving terminal sends the access request according to the access information, the method further comprises the following steps:
and receiving a key modification signal sent by the management server, wherein the key modification signal is used for modifying the key accessed to the wireless network equipment into a temporary key.
9. A physical address obtaining apparatus, applied to a terminal running a target application, the apparatus comprising:
the sending submodule is used for sending an information obtaining request to a management server, the information obtaining request is used for requesting to obtain access information corresponding to the identity of the terminal, and the terminal is in a state of not accessing the wireless network equipment;
the receiving submodule is used for receiving unique access information fed back by the management server, the unique access information is used for accessing the terminal as a unique access terminal to the wireless network equipment in a target time period, the unique access information comprises a temporary secret key, the temporary secret key is a secret key which is generated by the management server and is uniquely sent to the terminal, the access state that the terminal is disconnected by the wireless network and accessed through a public secret key is changed into the temporary secret key in response to the access secret key of the wireless network equipment;
the network module is used for accessing the wireless network equipment according to the unique access information, the wireless network equipment is used for sending the physical address of the terminal to the management server after the terminal is accessed, and the management server is used for storing the corresponding relation between the identity of the terminal and the physical address;
a sending module, configured to send an address obtaining request to the management server through the target application program, where the address obtaining request is used to obtain the physical address from the management server, and the address obtaining request includes the identity;
a receiving module, configured to receive, by the target application program, the physical address sent by the management server;
the management server is used for generating an independent key, and the wireless network equipment is used for storing the corresponding relation between the physical address and the independent key; and the module performs access through the independent key when the terminal accesses the wireless network equipment again.
10. A physical address acquisition apparatus, characterized in that the apparatus comprises:
the terminal comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending unique access information to the terminal, the unique access information is used for accessing the terminal as a unique access terminal to the wireless network equipment in a target time period, and the terminal is in a state of not accessing the wireless network equipment;
a receiving module, configured to receive the physical address sent by the wireless network device, where the physical address is sent by the wireless network device after the terminal accesses the wireless network device according to the unique access information, and in response to a modification of an access key of the wireless network device into a temporary key, the terminal is disconnected from an access state where the terminal accesses the wireless network device through a public key;
the storage module is used for storing the corresponding relation between the physical address and the identity mark;
the receiving module is further configured to receive an address obtaining request sent by the terminal, where the address obtaining request is used to request to obtain the physical address, and the obtaining request includes the identity identifier;
the sending module is further configured to send the physical address to the terminal according to the address acquisition request;
and the module is used for applying an independent key to a management server after the terminal receives the physical address, the management server is used for generating the independent key, the wireless network equipment is used for storing the corresponding relation between the physical address and the independent key, and the independent key is used for being applied when the terminal accesses the wireless network equipment again.
11. A physical address acquisition apparatus, characterized in that the apparatus comprises:
the terminal comprises a receiving module and a sending module, wherein the receiving module is used for receiving an access request sent by the terminal according to access information, the access information is the access information sent by a management server to the terminal, the access information corresponds to an identity identifier of the terminal, the access information is unique access information, the unique access information is used for enabling the terminal to be used as a unique access terminal to access wireless network equipment in a target time period, the unique access information comprises a temporary secret key, the temporary secret key is a secret key which is generated by the management server and is sent to the terminal only, the terminal is in a state of not accessing the wireless network equipment, the temporary secret key is modified in response to the access secret key of the wireless network equipment, and the terminal is disconnected by the wireless network and is in an access state of accessing through a public secret key;
an obtaining module, configured to obtain a physical address of the terminal from the access request;
the sending module is used for sending the physical address to a management server, and the management server is used for sending the physical address to the terminal when receiving an address acquisition signal sent by the terminal;
the management server is used for generating an independent key, and the wireless network equipment is used for storing the corresponding relation between the physical address and the independent key; and the module performs access through the independent key when the terminal accesses the wireless network equipment again.
12. An electronic device, comprising a processor and a memory, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and wherein the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the physical address obtaining method according to any one of claims 1 to 8.
13. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the physical address obtaining method according to any one of claims 1 to 8.
CN201810599630.3A 2018-06-12 2018-06-12 Physical address acquisition method, device and readable medium Active CN108833607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810599630.3A CN108833607B (en) 2018-06-12 2018-06-12 Physical address acquisition method, device and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810599630.3A CN108833607B (en) 2018-06-12 2018-06-12 Physical address acquisition method, device and readable medium

Publications (2)

Publication Number Publication Date
CN108833607A CN108833607A (en) 2018-11-16
CN108833607B true CN108833607B (en) 2022-03-11

Family

ID=64145193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810599630.3A Active CN108833607B (en) 2018-06-12 2018-06-12 Physical address acquisition method, device and readable medium

Country Status (1)

Country Link
CN (1) CN108833607B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399717B (en) * 2018-11-21 2023-03-14 腾讯科技(深圳)有限公司 Key acquisition method and device, storage medium and electronic device
CN111385371B (en) * 2018-12-28 2022-10-21 钉钉控股(开曼)有限公司 MAC address acquisition method, device and equipment
CN110022322B (en) * 2019-04-15 2021-07-20 维沃移动通信有限公司 MAC address protection method and terminal equipment
CN110809250B (en) * 2019-09-09 2022-07-12 天地融科技股份有限公司 Method for communication between read-write terminal and N vehicle-mounted units and read-write terminal
CN113079510A (en) * 2019-12-17 2021-07-06 天津蠃鱼企业管理咨询合伙企业(有限合伙) Signal processing method, communication device and storage medium
CN111131546A (en) * 2019-12-25 2020-05-08 宁波奥克斯电气股份有限公司 Method, device, system, terminal and medium for acquiring MAC address of terminal
CN112307517A (en) * 2020-03-23 2021-02-02 尼尔森网联媒介数据服务有限公司 Identification code processing method and device, storage medium and electronic equipment
CN112351420B (en) * 2020-07-28 2023-07-25 深圳Tcl新技术有限公司 Networking identity creation method and equipment of terminal equipment and readable storage medium
CN112750234B (en) * 2020-12-31 2022-06-28 北京骑胜科技有限公司 Vehicle unlocking method and device, computer equipment and storage medium
CN113242060B (en) * 2021-04-01 2022-07-05 青岛海尔科技有限公司 Network access method and device, storage medium and electronic device
CN113556227A (en) * 2021-07-09 2021-10-26 腾讯科技(深圳)有限公司 Network connection management method and device, computer readable medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1879434A (en) * 2003-09-29 2006-12-13 瑞姆系统公司 Mobility device
CN101064628A (en) * 2006-04-28 2007-10-31 华为技术有限公司 Household network appliance safe management system and method
CN101170461A (en) * 2007-12-04 2008-04-30 中控科技集团有限公司 A method and device for enhancing network security
CN101193024A (en) * 2006-11-24 2008-06-04 鸿富锦精密工业(深圳)有限公司 Network access device, mobile communication device, secret key setting method and mobile communication system
CN103501481A (en) * 2013-09-13 2014-01-08 北京赢销通软件技术有限公司 Information propaganda pushing method and pushing device thereof based on wireless network
CN103647856A (en) * 2013-12-23 2014-03-19 成都西加云杉科技有限公司 Method and device for application (APP) to obtain media access control (MAC) address of terminal
CN105247814A (en) * 2013-12-30 2016-01-13 华为技术有限公司 Method and apparatus for managing physical address of network device
CN105939402A (en) * 2016-03-03 2016-09-14 杭州迪普科技有限公司 MAC table entry obtaining method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051899B (en) * 2006-05-22 2011-05-04 华为技术有限公司 Method and system for forming mobile IP key in radio communication network
CN101141246B (en) * 2006-09-05 2011-07-06 华为技术有限公司 Service key obtaining method and subscription management server
CN101383698A (en) * 2008-10-29 2009-03-11 中国电信股份有限公司 Session cipher key distributing method and system
CN103312677B (en) * 2012-03-15 2017-09-08 宇龙计算机通信科技(深圳)有限公司 Terminal, server and the method for building up of communication connection
CN105577365B (en) * 2014-11-11 2019-04-26 中国移动通信集团公司 A kind of user accesses the cryptographic key negotiation method and device of WLAN
CN105828330B (en) * 2015-01-07 2019-12-27 阿里巴巴集团控股有限公司 Access method and device
CN106937406B (en) * 2017-04-06 2019-12-17 深圳市晟碟半导体有限公司 Method and system for accessing wireless network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1879434A (en) * 2003-09-29 2006-12-13 瑞姆系统公司 Mobility device
CN101064628A (en) * 2006-04-28 2007-10-31 华为技术有限公司 Household network appliance safe management system and method
CN101193024A (en) * 2006-11-24 2008-06-04 鸿富锦精密工业(深圳)有限公司 Network access device, mobile communication device, secret key setting method and mobile communication system
CN101170461A (en) * 2007-12-04 2008-04-30 中控科技集团有限公司 A method and device for enhancing network security
CN103501481A (en) * 2013-09-13 2014-01-08 北京赢销通软件技术有限公司 Information propaganda pushing method and pushing device thereof based on wireless network
CN103647856A (en) * 2013-12-23 2014-03-19 成都西加云杉科技有限公司 Method and device for application (APP) to obtain media access control (MAC) address of terminal
CN105247814A (en) * 2013-12-30 2016-01-13 华为技术有限公司 Method and apparatus for managing physical address of network device
CN105939402A (en) * 2016-03-03 2016-09-14 杭州迪普科技有限公司 MAC table entry obtaining method and device

Also Published As

Publication number Publication date
CN108833607A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN108833607B (en) Physical address acquisition method, device and readable medium
CN108881030B (en) Routing method and device in gray release scene
CN111225042B (en) Data transmission method and device, computer equipment and storage medium
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110290146B (en) Method and device for generating shared password, server and storage medium
CN113542290B (en) Data access request processing method, device, equipment and readable storage medium
CN111159604A (en) Picture resource loading method and device
CN110677262B (en) Information notarization method, device and system based on blockchain
CN111193702B (en) Method and device for data encryption transmission
CN110290191B (en) Resource transfer result processing method, device, server, terminal and storage medium
CN111198922B (en) Game resource management method and device based on block chain
CN111008083B (en) Page communication method and device, electronic equipment and storage medium
CN111881423A (en) Method, device and system for limiting function use authorization
CN111324293B (en) Storage system, data storage method, data reading method and device
CN110825465A (en) Log data processing method and device, electronic equipment and storage medium
CN110597840A (en) Partner relationship establishing method, device, equipment and storage medium based on block chain
CN113377647B (en) Page processing method, device, server, terminal and readable storage medium
CN110971692B (en) Method and device for opening service and computer storage medium
CN111158780B (en) Method, device, electronic equipment and medium for storing application data
CN110968549B (en) File storage method, device, electronic equipment and medium
CN110708582B (en) Synchronous playing method, device, electronic equipment and medium
CN110362330B (en) Application program updating method, device, terminal and storage medium
CN113852459A (en) Key agreement method, device and computer readable storage medium
CN108683684B (en) Method, device and system for logging in target instant messaging application
CN111680039A (en) Storage method, query method, device, equipment and storage medium of order information

Legal Events

Date Code Title Description
PB01 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