CN113973398B - Wireless network connection method, electronic equipment and chip system - Google Patents

Wireless network connection method, electronic equipment and chip system Download PDF

Info

Publication number
CN113973398B
CN113973398B CN202010715438.3A CN202010715438A CN113973398B CN 113973398 B CN113973398 B CN 113973398B CN 202010715438 A CN202010715438 A CN 202010715438A CN 113973398 B CN113973398 B CN 113973398B
Authority
CN
China
Prior art keywords
equipment
mac address
wireless network
terminal
network connection
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
CN202010715438.3A
Other languages
Chinese (zh)
Other versions
CN113973398A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010715438.3A priority Critical patent/CN113973398B/en
Publication of CN113973398A publication Critical patent/CN113973398A/en
Application granted granted Critical
Publication of CN113973398B publication Critical patent/CN113973398B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

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

Abstract

The application is suitable for the technical field of terminals and provides a wireless network connection method, electronic equipment and a chip system. The wireless network connection method comprises the following steps: the terminal equipment establishes wireless network connection with the wireless Access Point (AP) equipment through a first MAC address; the terminal equipment acquires a first AP equipment identifier sent by the AP equipment and determines a corresponding relation between a first MAC address and the first AP equipment identifier; wherein the first AP device identifier is used to identify the AP device; under the condition that the terminal equipment needs to establish wireless network connection with the AP equipment again and the configuration information of the AP equipment changes, the terminal equipment determines to establish wireless network connection with the AP equipment through the first MAC address based on the corresponding relation. According to the method, under the condition that the configuration information of the AP equipment is changed, the terminal equipment can be connected with the AP equipment continuously by adopting the first MAC address, so that the AP equipment can conveniently manage the terminal equipment based on the MAC address.

Description

Wireless network connection method, electronic equipment and chip system
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a wireless network connection method, an electronic device, and a chip system.
Background
When the terminal device of the Android 10 operating system connects to the AP device by Wi-Fi (Wireless Fidelity ), the Android 10 operating system requires the terminal device to connect to the AP device using a random MAC address (Media Access Control Address ). For example, when a terminal device connects to an AP device for the first time, the terminal device connects to the AP device through a first MAC address, and after the configuration information (such as Wi-Fi name or encryption mode) of the AP device changes, when the terminal device needs to connect to the AP device again, the terminal device connects to the AP device through a random second MAC address, where the second MAC address is usually a different MAC address from the first MAC address.
The AP device uses the MAC address of the terminal device as the identifier of the distinguishing terminal device, so that in the case that the same terminal device is connected with the same AP device through different MAC addresses, the AP device may identify the same terminal device corresponding to the different MAC addresses as different terminal devices, which is inconvenient for the AP device to manage the terminal device.
Disclosure of Invention
The application provides a wireless network connection method, electronic equipment and a chip system, which solve the problems that in the prior art, the same terminal equipment is connected with the same AP equipment by adopting different MAC addresses, so that the AP equipment can identify the same terminal equipment corresponding to the different MAC addresses as different terminal equipment, and the management of the AP equipment on the terminal equipment is inconvenient.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a wireless network connection method, including: the terminal equipment establishes wireless network connection with the wireless Access Point (AP) equipment through a first MAC address; the terminal equipment acquires a first AP equipment identifier sent by the AP equipment and determines the corresponding relation between the first MAC address and the first AP equipment identifier; wherein the first AP device identifier is configured to identify the AP device; and under the condition that the terminal equipment needs to establish wireless network connection with the AP equipment again and the configuration information of the AP equipment changes, the terminal equipment determines to establish wireless network connection with the AP equipment through the first MAC address based on the corresponding relation.
According to the wireless network connection method, the terminal equipment establishes wireless network connection with the AP equipment through the first MAC address, then the terminal equipment acquires the first AP equipment identifier which is sent by the AP equipment and used for equipment of the AP equipment, the corresponding relation between the first MAC address and the first AP equipment identifier is determined, when the terminal equipment needs to establish wireless network connection with the AP equipment again and the configuration information of the AP equipment changes, the terminal equipment determines to establish wireless network connection with the AP equipment through the first MAC address based on the corresponding relation, so that the terminal equipment still establishes wireless network connection with the AP equipment through the first MAC address under the condition that the configuration information of the AP equipment changes, and therefore the same MAC address can be adopted for the same terminal equipment when the same terminal equipment is in multiple wireless connection with the AP equipment, and the AP equipment can conveniently manage the terminal equipment based on the MAC address.
With reference to the first aspect, in some embodiments, the obtaining, by the terminal device, an AP device identifier sent by the AP device, and determining a correspondence between the first MAC address and the first AP device identifier includes: the terminal equipment acquires a first message sent by the AP equipment, wherein the first message comprises a first AP equipment identifier, and the first message is fed back to the terminal equipment by the AP equipment when the AP equipment tries to establish wireless network connection with the terminal equipment; and the terminal equipment establishes a corresponding relation between the first MAC address and the AP equipment identifier.
For example, the first message may be an association response Association Response message, the AP device may send Association Response a message including the first AP device identifier to the terminal device, and after the terminal device receives Association Response a message including the first AP device identifier sent by the AP device, the first AP device identifier is extracted from the Association Response message, so as to establish a correspondence between the first AP device identifier and the first MAC address.
It should be noted that, the Association Response message is a message used for Wi-Fi data transmission, but the embodiment of the application is not limited thereto, and for other types of wireless networks, a corresponding message may be used as the first message.
With reference to the first aspect, in some embodiments, the first AP device identification includes a basic service set identification BSSID of the AP device and a valid variation range of the BSSID; the terminal device establishes a corresponding relation between the first MAC address and the first AP device identifier, and the corresponding relation comprises the following steps: the terminal equipment determines the BSSID range of the AP equipment according to the BSSID of the AP equipment and the effective change range of the BSSID; and the terminal equipment establishes a corresponding relation between the first MAC address and the BSSID range of the AP equipment.
The BSSID is a basic service set identifier of the AP equipment, the AP equipment can be uniquely identified, and the terminal equipment can conveniently acquire the BSSID of the AP equipment through an AP hot spot of the AP equipment before wireless network connection is established between the terminal equipment and the AP equipment.
For example, the Association Response message may carry a vendor specific field, where the vendor specific field includes information such as a basic BSSID of the AP device and an effective variation range of the basic BSSID. For example, the vendor specific field may contain an Element ID (Element identification code) bit, a Length bit, and a Length-indeterminate bit. The base BSSID of the AP equipment and the effective variation range of the base BSSID form a first AP equipment identifier.
For example, the effective variation range of the BSSID is n, the terminal device may use the basic BSSID of the AP device as the first BSSID, and accumulate the end of the basic BSSID for n-1 times to obtain n BSSIDs corresponding to the AP device, which are used as the BSSID ranges of the AP device.
With reference to the first aspect, in some embodiments, the terminal device may acquire the identity of the AP device before re-establishing the wireless network connection with the AP device. Correspondingly, the terminal device determines to establish wireless network connection with the AP device through the first MAC address based on the correspondence relationship, including: after scanning a first BSSID of the AP equipment, the terminal equipment matches the first BSSID with the BSSID range; and if the first BSSID is the BSSID in the BSSID range, the terminal equipment establishes wireless network connection with the AP equipment through the first MAC address. Wherein the first BSSID is any one of one or more AP hotspots of the AP device.
In an application scenario, a database for storing correspondence between MAC addresses and AP device identifiers may be provided in a terminal device, where the database includes m correspondence relationships, each of which involves a MAC address and a plurality of BSSIDs, where the plurality of BSSIDs in each correspondence relationship corresponds to a same AP device, and the plurality of BSSIDs may correspond to a plurality of AP hotspots of the same AP device.
For example, when the terminal device scans an AP hotspot of the AP device each time it needs to establish a wireless network connection with the AP device, the terminal device obtains a BSSID of the AP device from the AP hotspot, matches the BSSID of the AP device with each BSSID in each corresponding relation in the database, and if the BSSID of the AP hotspot is one BSSID in the i (1. Ltoreq.i.ltoreq.m) corresponding relation, uses MACi in the i corresponding relation as an MAC address used for establishing a wireless network connection with the AP device corresponding to the AP hotspot.
For example, after the terminal device establishes a wireless network connection with the AP device through a MACj (1. Ltoreq.j. Ltoreq.m) address, the AP device sends a Association Response packet carrying BSSID information of the AP device to the terminal device, the terminal device extracts the BSSID of the AP device from the Association Response packet, establishes a correspondence between the BSSID of the AP device and the MACj address, and stores the correspondence in the database.
With reference to the first aspect, in some embodiments, the terminal device may obtain the identifier of the AP device after establishing a wireless network connection with the AP device. Correspondingly, the terminal device determines to establish wireless network connection with the AP device through the first MAC address based on the correspondence relationship, including: the terminal equipment establishes wireless network connection with the AP equipment through a second MAC address; the terminal equipment acquires a second AP equipment identifier sent by the AP equipment, wherein the second AP equipment identifier is used for identifying the AP equipment; the terminal equipment compares the first AP equipment identifier with the second AP equipment identifier; if the first AP equipment identifier corresponds to the same AP equipment with the second AP equipment identifier, the terminal equipment establishes wireless network connection with the AP equipment again through the first MAC address.
After the terminal device scans an AP hotspot of a certain AP device, a wireless network connection may be established between the terminal device and the AP device through a second MAC address, and then the AP device sends a second AP device identifier of the AP device to the terminal device, where the terminal device matches the second AP device identifier with the AP device identifiers in each corresponding relationship, so as to determine a target AP device identifier that represents the same AP device with the second AP device identifier, and then the terminal device determines a target MAC address corresponding to the target AP device identifier (that is, the first MAC address). If the target MAC address and the second MAC address are the same MAC address, the terminal equipment continues to keep the wireless network connection with the AP equipment, and if the target MAC address and the second MAC address are different MAC addresses, the terminal equipment reestablishes the wireless network connection with the AP equipment through the target MAC address.
In a second aspect, an embodiment of the present application provides a wireless network connection method, including: under the condition that wireless Access Point (AP) equipment and terminal equipment establish wireless network connection, the AP equipment generates a first AP equipment identifier for identifying the AP equipment; and the AP equipment sends the first AP equipment identifier to the terminal equipment.
According to the wireless network connection method, the terminal equipment establishes wireless network connection with the AP equipment through the first MAC address, the AP equipment generates the first AP equipment identifier for identifying the AP equipment and sends the first AP equipment identifier to the terminal equipment, the terminal equipment obtains the first AP equipment identifier, the corresponding relation between the first MAC address and the first AP equipment identifier is determined, when the terminal equipment needs to establish wireless network connection with the AP equipment again and the configuration information of the AP equipment changes, the terminal equipment determines to establish wireless network connection with the AP equipment through the first MAC address based on the corresponding relation, and therefore under the condition that the configuration information of the AP equipment changes, the terminal equipment still establishes wireless network connection with the AP equipment through the first MAC address, and therefore the same MAC address can be adopted for the same terminal equipment when the terminal equipment and the AP equipment are in wireless connection for a plurality of times, and management of the terminal equipment based on the MAC address is facilitated.
With reference to the second aspect, in some embodiments, the first AP device identification includes a basic service set identification BSSID of the AP device and a valid range of variation of the BSSID; the AP equipment sends the first AP equipment identifier to the terminal equipment, and the method comprises the following steps: and the AP equipment sends an association response Association Response message to the terminal equipment, wherein the Association Response message comprises a Basic Service Set Identifier (BSSID) of the AP equipment and an effective variation range of the BSSID.
In a third aspect, an embodiment of the present application provides a wireless network connection device, including: a first connection unit, configured to establish a wireless network connection with the wireless access point AP device through a first MAC address; the corresponding relation determining unit is used for obtaining a first AP equipment identifier sent by the AP equipment and determining the corresponding relation between the first MAC address and the first AP equipment identifier; wherein the first AP device identifier is configured to identify an AP of the AP device; and the second connection unit is used for determining to establish wireless network connection with the AP equipment through the first MAC address based on the corresponding relation under the condition that the terminal equipment needs to establish wireless network connection with the AP equipment again and the configuration information of the AP equipment changes.
In a fourth aspect, an embodiment of the present application provides a wireless network connection device, including: the wireless access point comprises an identifier generating unit, a wireless Access Point (AP) device and a terminal device, wherein the identifier generating unit is used for generating a first AP device identifier for identifying the AP device under the condition that the AP device and the terminal device are connected in a wireless network; and the sending unit is used for sending the first AP equipment identifier to the terminal equipment.
In a fifth aspect, embodiments of the present application provide an electronic device, including: one or more processors, memory, and a display screen; the memory, the display screen, and the one or more processors are coupled, the memory is used for storing computer program code, and the computer program code comprises computer instructions; the computer instructions, when executed by the one or more processors, cause the electronic device to perform the method of any of the first aspect or the method of any of the second aspect. The electronic equipment is AP equipment or terminal equipment.
In a sixth aspect, embodiments of the present application provide a chip system comprising a processor coupled with a memory, the processor executing a computer program stored in the memory to implement the method according to any one of the first aspects and/or the method according to any one of the second aspects. The chip system can be a single chip or a chip module formed by a plurality of chips.
In a seventh aspect, embodiments of the present application provide a chip system comprising a memory and a processor executing a computer program stored in the memory to implement the method according to any one of the first aspects and/or the method according to any one of the second aspects. The chip system can be a single chip or a chip module formed by a plurality of chips.
In an eighth aspect, embodiments of the present application provide a computer program product for, when run on a terminal device, causing an electronic device to perform the method of any one of the first aspects and/or to implement the method of any one of the second aspects.
In a ninth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the method according to any one of the first aspect, or implements the method according to the second aspect.
It will be appreciated that the wireless network connection apparatus according to the third to fourth aspects, the electronic device according to the fifth aspect, the chip system according to the sixth aspect, the computer program product according to the seventh aspect, the computer readable storage medium according to the eighth aspect, provided above, are all configured to perform the method provided in the first to second aspects. Therefore, the advantages achieved by the method can be referred to as the advantages of the corresponding method, and will not be described herein.
Drawings
Fig. 1 is a diagram illustrating an example system architecture to which a wireless network connection method according to an embodiment of the present application is applicable;
fig. 2 is a schematic hardware architecture diagram of a terminal device provided in an embodiment of the present application;
fig. 3 is a software architecture block diagram of a terminal device provided in an embodiment of the present application;
fig. 4 is a flow chart of a wireless network connection method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a wireless network device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a wireless network device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings in the embodiments of the present application. The terminology used in the description of the embodiments of the application is for the purpose of describing particular embodiments of the application only and is not intended to be limiting of the application.
When a terminal device of the Android 10 operating system connects with an AP (Access Point) device by Wi-Fi (Wireless Fidelity ), the Android 10 operating system requires the terminal device to connect with the AP device using a random MAC address (Media Access Control Address ). For example, when a terminal device connects to an AP device for the first time, the terminal device connects to the AP device through a first MAC address, and after the configuration information of the AP device changes, for example, the Wi-Fi name or encryption mode of the AP device changes, when the terminal device connects to the AP device again, the terminal device connects to the AP device through a second MAC address different from the first MAC address. The AP device uses the MAC address of the terminal device as the identifier for distinguishing the terminal device, so that the AP device may identify the terminal device corresponding to the first MAC address and the terminal device corresponding to the second MAC address as devices of different terminals.
Illustratively, the SSID (Service Set Identifier, service set identification) of the AP device is named SSID1, the password is 111111111, and the terminal device connects to the AP device using the MAC1 address (e.g., 11:22:33:44:55:66), at which point the AP device identifies the terminal device as terminal device 1. The user modifies the SSID name of the AP device to SSID2 and the password to 22222222, and after the terminal device scans to the AP device of SSID2, the terminal device connects to the AP device using a random MAC2 address (e.g., 1a:2a:3a:4a:5a:6 a). The AP device then recognizes the terminal device as terminal device 2. Therefore, the same terminal equipment is connected with the AP equipment through different MAC addresses, so that the AP equipment can identify the same terminal equipment corresponding to different MAC addresses as different terminal equipment, and management of the terminal equipment by the AP equipment is inconvenient.
In another scenario, when the terminal device is connected to the AP device through the first MAC address, the user may add the first MAC address to the MAC address list of the AP device to control whether the terminal device corresponding to the MAC address can be connected to the AP device, and after the configuration information of the AP device changes, the terminal device is connected to the AP device through the second MAC address, and since the second MAC address is different from the first MAC address, the MAC address filter list does not include the second MAC address, so that the AP device cannot limit the terminal device to connect to the AP device.
Illustratively, the SSID of the AP device is named SSID1 and the password is 111111111. The terminal device uses the MAC1 address (for example, 11:22:33:44:55:66) to connect to the AP device, where the AP device adds the MAC1 address to a MAC address list, where the MAC address list is used for the AP device to control whether the terminal device corresponding to the MAC address can connect to the AP device. The user modifies the SSID name of the AP device to SSID2 and the password to 22222222, and after the terminal device scans to the AP device of SSID2, the terminal device connects to the AP device using a random MAC2 address (e.g., 1a:2a:3a:4a:5a:6 a). Because the MAC address list does not include the MAC2 address, the AP device may not control the network connection of the terminal device to the AP device.
Based on the above problems, the embodiments of the present application provide a wireless network connection method, an electronic device, and a chip system, where a terminal device establishes a wireless network connection with an AP device through a first MAC address, then the terminal device obtains a first AP device identifier for the AP device sent by the AP device and determines a correspondence between the first MAC address and the first AP device identifier, and in a case where the terminal device needs to establish a wireless network connection with the AP device again and configuration information of the AP device changes, the terminal device determines, based on the correspondence, to establish a wireless network connection with the AP device through the first MAC address, so that in a case where configuration information of the AP device changes, the terminal device still establishes a wireless network connection with the AP device through the first MAC address, so that for the same terminal device, when performing multiple wireless connections with the AP device, the same MAC address can be adopted, and the AP device identifies the terminal device corresponding to the first MAC address and the terminal device corresponding to the second MAC address as the same terminal device. Also, in the case where the first MAC address is added to the MAC address list of the AP device, the AP device can control whether the terminal device can connect to the AP device because the terminal device is still connected to the AP device through the first MAC address. Therefore, the method provided by the embodiment of the application can facilitate the AP equipment to manage the terminal equipment based on the MAC address.
As shown in fig. 1, fig. 1 shows a system architecture to which the wireless network connection method provided in the embodiment of the present application is applicable, where the system architecture includes: AP device 200, at least one terminal device 100 (only one is shown in the figure).
The wireless network connection can be established between the AP device 200 and the at least one terminal device 100, for example, the wireless network may be Wi-Fi, bluetooth (BT), loRa, zigbee, etc., and the specific type of the wireless network is not limited in the embodiments of the present application.
Wherein, each terminal device 100 can establish a wireless network connection with the AP device 200 through a MAC address, the AP device 200 implements management on each terminal device 100 based on the MAC address, for example, the AP device 200 identifies each terminal device 100 based on the MAC address, or the AP device 200 authorizes the corresponding terminal device 100 to connect to the AP device 200 based on the MAC address, or the AP device 200 restricts the corresponding terminal device 100 to connect to the AP device 200 based on the MAC address.
After the configuration information of the AP device 200 changes, for example, the SSID name or encryption scheme of the AP device 200 changes, if the terminal device 100 needs to establish a wireless network connection with the AP device 200 again, the terminal device 100 establishes a wireless network connection with the AP device 200 again through a first MAC address used for establishing a wireless network connection with the AP device 200 before.
By way of example, the AP device 200 may be an electronic device capable of generating AP hotspots, such as a router, a switch, a wireless network card, a modem, etc., and the specific type of the AP device 200 is not limited in the embodiments of the present application.
By way of example, the terminal device 100 may be a terminal device with an Android 10 operating system, such as a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), and the like, and the specific type of the terminal device is not limited in the embodiments of the present application.
It should be noted that only one terminal device 100 is shown in fig. 1, but the present application is not limited thereto, and the number of terminal devices 100 may be two or more, and each terminal device 100 may establish a wireless network connection with the AP device 200.
Fig. 2 is a schematic hardware architecture of the terminal device 100 according to the embodiment of the present application, and the structures of the terminal device a and the terminal device B may refer to the description of the terminal device 100, which is not repeated herein. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, terminal device 100 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural center and a command center of the terminal device 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement a touch function of the terminal device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing function of terminal device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display function of the terminal device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the terminal device 100, or may be used to transfer data between the terminal device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiment of the present invention is only illustrative, and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the terminal device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the terminal device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering and amplifying the received electromagnetic waves, and transmit the electromagnetic waves to a modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied to the terminal device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of terminal device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that terminal device 100 may communicate with a network and other devices via wireless communication techniques. Wireless communication techniques may include global system for mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The terminal device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the terminal device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The terminal device 100 may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, so that the electrical signal is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the terminal device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the terminal device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record video in various encoding formats, for example: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the terminal device 100 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code that includes instructions. The processor 110 executes various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (such as audio data, phonebook, etc.) created during use of the terminal device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The terminal device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or to handsfree talk through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the terminal device 100 receives a call or voice message, it is possible to receive voice by approaching the receiver 170B to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal device 100 may be further provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, implement directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The terminal device 100 determines the intensity of the pressure according to the change of the capacitance. When a touch operation is applied to the display 194, the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal device 100 may also calculate the position of the touch from the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 180B detects the angle of the shake of the terminal device 100, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to counteract the shake of the terminal device 100 by the reverse motion, thereby realizing anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates altitude from barometric pressure values measured by the barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The terminal device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the terminal device 100 is a folder, the terminal device 100 may detect opening and closing of the folder according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E can detect the magnitude of acceleration of the terminal device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the terminal device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The terminal device 100 may measure the distance by infrared or laser. In some embodiments, the terminal device 100 may range using the distance sensor 180F to achieve fast focusing.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light outward through the light emitting diode. The terminal device 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the terminal device 100. When insufficient reflected light is detected, the terminal device 100 may determine that there is no object in the vicinity of the terminal device 100. The terminal device 100 can detect that the user holds the terminal device 100 close to the ear to talk by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The terminal device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The terminal device 100 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 180J is for detecting temperature. In some embodiments, the terminal device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the terminal device 100 performs a reduction in the performance of a processor located near the temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the terminal device 100 heats the battery 142 to avoid the low temperature causing the terminal device 100 to shut down abnormally. In other embodiments, when the temperature is below a further threshold, the terminal device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may parse out a voice signal based on the vibration signal of the vocal part vibration bone piece obtained by the bone conduction sensor 180M, and implement a voice function. The application processor can analyze heart rate information based on the blood pressure beat signals acquired by the bone conduction sensor 180M, so that a heart rate detection function is realized.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The terminal device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the terminal device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be contacted and separated from the terminal apparatus 100 by being inserted into the SIM card interface 195 or by being withdrawn from the SIM card interface 195. The terminal device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as call and data communication. In some embodiments, the terminal device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
The software system of the terminal device 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the invention, taking an Android system with a layered architecture as an example, a software structure of the terminal device 100 is illustrated.
Fig. 3 is a software configuration block diagram of the terminal device 100 of the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the terminal device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The workflow of the terminal device 100 software and hardware is illustrated below in connection with capturing a photo scene.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the input event. Taking the touch operation as a touch click operation, taking a control corresponding to the click operation as an example of a control of a camera application icon, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera driver by calling a kernel layer, and captures a still image or video by the camera 193.
The following describes a wireless network connection method provided in the embodiment of the present application.
Referring to fig. 4, fig. 4 is a flowchart of a wireless network connection method according to an embodiment of the present application, where the method includes:
step 101, the terminal equipment establishes wireless network connection with the wireless Access Point (AP) equipment through the first MAC address.
The AP device may generate one or more AP hotspots, where each AP hotspot corresponds to an SSID. For example, after scanning the SSID of a certain AP hotspot of the AP device, the terminal device may send a message to the AP device to inform the AP device that the terminal device establishes a wireless network connection with the AP hotspot through the first MAC address.
For example, after scanning the SSID of a certain AP hotspot of the AP device, the terminal device sends a Association Response packet to the AP device, and the AP device may determine according to the Association Response packet: the terminal equipment establishes wireless network connection with the AP hot spot through the first MAC address.
It should be noted that the Association Response message is only an exemplary illustration, but not limited thereto, and other messages capable of implementing the above-mentioned functions are also included in the protection scope of the present application.
By way of example, the wireless network may be Wi-Fi, bluetooth, loRa, zigbee, etc., and the embodiments of the present application do not limit the specific type of wireless network.
Step 102, the AP device generates a first AP device identifier for identifying the AP device, and sends the first AP device identifier to the terminal device.
The first AP device identifier is used to identify the AP device, and the terminal device may determine, according to the first AP device identifier, the AP device corresponding to the first AP device identifier. After the terminal device establishes wireless network connection with the AP device through the first MAC address, the AP device generates a first AP device identifier for identifying the AP device and sends the first AP device identifier to the terminal device.
In some embodiments, the AP device may send a first message including a first AP device identifier to the terminal device, where the first message is a message that the AP device feeds back to the terminal device when the terminal device establishes a wireless network connection with the AP device.
Illustratively, the first message may be an association response Association Response message, and the AP device may send Association Response a message including the first AP device identifier to the terminal device. The details of Association Response are described later, and will not be repeated here.
It should be noted that, the Association Response message is a message used for Wi-Fi data transmission, but the embodiment of the application is not limited thereto, and for other types of wireless networks, a corresponding message may be used as the first message, which is all within the protection scope of the application.
Step 103, the terminal equipment acquires a first AP equipment identifier sent by the AP equipment, and determines a corresponding relation between the first MAC address and the first AP equipment identifier.
In some embodiments, after the terminal device obtains the first packet, the terminal device extracts the first AP device identifier from the first packet, and the terminal device establishes a correspondence between the first MAC address and the first AP device identifier. The terminal device may determine an AP device corresponding to the first AP device identifier, thereby determining a correspondence between the AP device and the first MAC address.
In some embodiments, the AP device may send a first message including a first AP device identifier to the terminal device, where the first message is a message that the AP device feeds back to the terminal device when the terminal device establishes a wireless network connection with the AP device. After the terminal equipment acquires the first message, the first AP equipment identifier is extracted from the first message, and the terminal equipment establishes a corresponding relation between the first MAC address and the first AP equipment identifier. The terminal device may determine an AP device corresponding to the first AP device identifier, thereby determining a correspondence between the AP device and the first MAC address.
Exemplary, after receiving a Association Response message containing a first AP device identifier sent by an AP device, the terminal device extracts the first AP device identifier from the Association Response message, so as to establish a correspondence between the first AP device identifier and the first MAC address.
The terminal device may establish a correspondence between the AP device identifiers of the AP devices that have established the wireless network connection with the terminal device and the corresponding MAC addresses. For example, the terminal device establishes a wireless network connection with the first AP device through the MAC1 address, the terminal device establishes a wireless network connection with the second AP device through the MAC2 address, the terminal device establishes a wireless network connection with the third AP device through the MAC3 address, the AP device of the first AP device is identified as SSID1, the AP device of the second AP device is identified as SSID2, and the AP device of the third AP device is identified as SSID3, and the correspondence established by the terminal device may include a correspondence between the MAC1 address and SSID1, a correspondence between the MAC2 address and SSID2, and a correspondence between the MAC3 address and SSID 3.
The first AP device identifier may be, for example, a BSSID ((basic service set identifier, basic service set identifier) of the AP device, but embodiments of the present application are not limited to the first AP device identifier being a BSSID of the AP device, and the first AP device identifier may be any identifier capable of identifying the AP device.
Step 104, when the terminal device needs to establish wireless network connection with the AP device again and the configuration information of the AP device changes, the terminal device determines to establish wireless network connection with the AP device through the first MAC address based on the corresponding relationship.
The configuration information of the AP device includes, but is not limited to: an AP hotspot name, an encryption manner, and the like, which are exemplary, where the AP hotspot name may specifically be an SSID of an AP hotspot of the AP device, and the encryption manner may specifically be a password corresponding to the SSID of the AP hotspot. The configuration information of the AP device is changed, including but not limited to: the SSID of the AP hotspot of the AP device changes, and/or the password corresponding to the SSID of the AP hotspot changes. For example, the SSID of the AP hotspot of the AP device changes from SSID1 to SSID2, and the password corresponding to the SSID of the AP hotspot changes from 111111111 to 222222222.
For example, in the case that the terminal device needs to establish the wireless network connection with the AP device again and the configuration information of the AP device changes, the method specifically may be: after the terminal equipment scans the AP hot spot of the AP equipment, wireless network connection is required to be established with the AP equipment, if the identification of the current AP equipment is the same as the identification of a certain AP equipment connected before the terminal equipment, the current AP equipment and the certain AP equipment are the same AP equipment, if the configuration information of the current AP equipment is different from the configuration information of the certain AP equipment, the terminal equipment is required to establish wireless network connection with the AP equipment again, and the configuration information of the AP equipment is changed. In one scenario, after the terminal device establishes a wireless network connection with the AP device through the first MAC address, the AP device sends a first AP device identifier to the terminal device, the terminal device establishes a correspondence between the first AP device identifier and the first MAC address, and then configuration information of the AP device changes, for example, an AP hotspot name and/or an encryption manner of the AP device changes, and the terminal device needs to establish a wireless network connection with the AP device again.
After the terminal equipment scans a certain AP hot spot, the AP hot spot is used for acquiring a first identifier of AP equipment corresponding to the AP hot spot, the first identifier is matched with a stored historical AP equipment identifier, and the historical AP equipment identifier can be the identifier of one or more AP equipment which is connected with the terminal equipment through a wireless network. The terminal equipment determines a first historical AP equipment identifier which represents the same AP equipment with the first identifier, then determines an MAC address corresponding to the first historical AP equipment identifier according to the stored corresponding relation, and establishes wireless network connection with the AP equipment again through the determined MAC address.
According to the wireless network connection method, the terminal equipment establishes wireless network connection with the AP equipment through the first MAC address, the AP equipment generates the first AP equipment identifier for identifying the AP equipment and sends the first AP equipment identifier to the terminal equipment, then the terminal equipment acquires the first AP equipment identifier, and determines the corresponding relation between the first MAC address and the first AP equipment identifier, when the terminal equipment needs to establish wireless network connection with the AP equipment again and the configuration information of the AP equipment changes, the terminal equipment determines to establish wireless network connection with the AP equipment through the first MAC address based on the corresponding relation, so that the terminal equipment still establishes wireless network connection with the AP equipment through the first MAC address under the condition that the configuration information of the AP equipment changes, and therefore the same MAC address can be adopted for the same terminal equipment when the same terminal equipment performs multiple wireless connection with the AP equipment, and management of the terminal equipment based on the MAC address is facilitated.
In a possible implementation manner, the first AP device identifier may include a BSSID of the AP device and an effective variation range of the BSSID, and the establishing, by the terminal device in step 103, a correspondence between the first MAC address and the first AP device identifier may include: the terminal equipment determines the BSSID range of the AP equipment according to the BSSID of the AP equipment and the effective variation range of the BSSID; and the terminal equipment establishes a corresponding relation between the first MAC address and the BSSID range of the AP equipment. The BSSID is a basic service set identifier of the AP equipment, the AP equipment can be uniquely identified, and the terminal equipment can conveniently acquire the BSSID of the AP equipment through an AP hot spot of the AP equipment before wireless network connection is established between the terminal equipment and the AP equipment.
For example, the effective variation range of the BSSID is n, the terminal device may use the basic BSSID of the AP device as the first BSSID, and accumulate the end of the basic BSSID for n-1 times to obtain n BSSIDs corresponding to the AP device, which is used as the BSSID range of the AP device. For example, the BSSID of the AP device is 11:22:33:44:55:66, and the effective variation range of the BSSID is 5, and then the terminal device takes 11:22:33:44:55:66 as the first BSSID, and adds up the end of 11:22:33:44:55:66 by 4 times 1, to obtain 11:22:33:44:55:67, 11:22:33:44:55:68, 11:22:33:44:55:69, and 11:22:33:44:55:6a, and takes these BSSIDs as the BSSID ranges of the AP device, that is, the BSSID ranges of the AP device are 11:22:33:44:55:66 to 11:22:33:44:55:6a.
In a possible implementation manner, the first message may include a field carrying the identifier of the first AP device, for example, the first message is a Association Response message, and the Association Response message includes a vendor specific field, where the vendor specific field includes information such as a basic BSSID of the AP device and a valid variation range of the basic BSSID.
For example, the vendor specific field may include an Element ID (Element identification code) bit, a Length bit, and a Length-indeterminate bit, and specific information of the vendor specific field is shown in table 1.
TABLE 1 vendor specific field
Referring to table 1, element ID bit 221 indicates Wi-Fi access protection, an element used for WPA (Wi-Fi Protected Access, wi-Fi network security access). The Length bit indicates the Length of the above-mentioned Length-indefinite bit, and the values of the Length bits may be 10 if the 2 bits to 11 bits in table 1 are the above-mentioned Length-indefinite bits. In table 1, the above-mentioned indefinite-length bits include an OUI (Organizationally unique identifier, organization unique identifier) of 3 bits in length, a base BSSID of 6 bits in length, and a valid BSSID of 1 bit in length. OUI represents the meaning represented by bits 5 to 11, with OUI in table 1 being 00E0FF, representing a Wi-Fi address. The basic BSSID represents the basic BSSID of the AP device, e.g., 11:22:33:44:55:66. The effective BSSID represents an effective variation range of a basic BSSID of the AP device, where the effective BSSID in table 1 is 5, and represents that the effective variation range of the basic BSSID of the AP device is 5, that is, the BSSID range of the AP device is 11:22:33:44:55:66-11:22:33:44:55:6a, and the BSSIDs corresponding to 11:22:33:44:55:66-11:22:33:44:55:6a are all corresponding to the AP device and are used for identifying the AP device.
In one possible implementation, the terminal device may obtain the identity of the AP device before re-establishing the wireless network connection with the AP device. Correspondingly, the determining, by the terminal device in step 104, to establish a wireless network connection with the AP device through the first MAC address based on the correspondence may include: after scanning a first BSSID of the AP equipment, the terminal equipment matches the first BSSID with the BSSID range; if the first BSSID is the BSSID in the BSSID range, the terminal equipment establishes wireless network connection with the AP equipment through the first MAC address. Wherein the first BSSID is any one of one or more AP hotspots of the AP device.
For example, when the terminal device scans that the AP hotspot needs to establish a wireless network connection with the AP hotspot, the terminal device may obtain a first BSSID of the AP device corresponding to the AP hotspot from the AP hotspot, and then match the first BSSID with the BSSID range, and if the first BSSID is one BSSID in the BSSID range, the terminal device establishes a wireless network connection with the AP device through a first MAC address having a corresponding relationship with the BSSID.
For example, the BSSID range stored in the terminal device is 11:22:33:44:55:66-11:22:33:44:55:6 a, and 11:22:44:55:66-11:22:33:44:55:6 a corresponds to the MAC1 address, after the terminal device scans the AP hotspot, the BSSID of the AP device obtained from the AP hotspot is 11:22:33:44:55:68, and since 11:22:33:44:55:68 is one BSSID of 11:22:33:44:55:66-11:22:33:44:55:6 a, the terminal device establishes a wireless network connection with the AP device through the MAC1 address. If the BSSID of the AP device obtained from the AP hotspot by the terminal device is 11:22:33:44:55:73, the terminal device establishes a wireless network connection with the AP device through the random MAC address because 11:22:33:44:55:73 is not one BSSID of 11:22:33:44:55:66-11:22:33:44:55:6 a.
In an application scenario, a database for storing a correspondence between a MAC address and an AP device identifier may be provided in the terminal device, where the correspondence between the MAC address and the AP device identifier stored in the database is shown in table 2.
Table 2 table of correspondence between MAC addresses and AP device identifications
MAC address BSSID range
1 MAC1 11:22:33:44:55:66~11:22:33:44:55:6a
2 MAC2 11:22:33:44:55:73~11:22:33:44:55:7a
m MACm 11:22:33:44:55:24~11:22:33:44:55:29
In table 2, an AP device identifier is illustrated as a BSSID. The table 2 contains m (1 is less than or equal to m) corresponding relations, each corresponding relation relates to a MAC address and a plurality of BSSIDs, the plurality of BSSIDs in each corresponding relation correspond to the same AP device, and the plurality of BSSIDs can correspond to a plurality of AP hotspots of the same AP device.
For example, when the terminal device scans an AP hotspot of the AP device each time it needs to establish a wireless network connection with the AP device, the terminal device obtains a BSSID of the AP device from the AP hotspot, matches the BSSID of the AP device with each BSSID in each corresponding relation in the database, and if the BSSID of the AP hotspot is one BSSID in the i (1. Ltoreq.i.ltoreq.m) corresponding relation, uses MACi in the i corresponding relation as an MAC address used for establishing a wireless network connection with the AP device corresponding to the AP hotspot.
For example, after the terminal device establishes a wireless network connection with the AP device through a MACj (1. Ltoreq.j. Ltoreq.m) address, the AP device sends a Association Response packet carrying BSSID information of the AP device to the terminal device, the terminal device extracts the BSSID of the AP device from the Association Response packet, establishes a correspondence between the BSSID of the AP device and the MACj address, and stores the correspondence in the database.
In an application scenario, when a terminal device establishes a wireless network connection with an AP device 1 for the 1 st time, an AP hotspot scanned by the terminal device to the AP device obtains a first BSSID of the AP device from the AP hotspot, and the terminal device compares the first BSSID of the AP device with the BSSID of the AP device stored in the database. Because the BSSID corresponding to the first BSSID does not exist in the database, the terminal equipment establishes wireless network connection with the AP equipment 1 through the random MAC1 address, the AP equipment sends a Association Response message carrying the BSSID of the AP equipment to the terminal equipment, the terminal equipment extracts the BSSID of the AP equipment from the Association Response message, establishes a correspondence between the BSSID of the AP equipment and the MAC1 address, and stores the correspondence in the database.
When the first (l is more than or equal to 2) time of the terminal equipment establishes wireless network connection with the AP equipment 1, configuration information of the AP equipment 1 changes at the moment, an AP hot spot scanned by the terminal equipment to the AP equipment acquires a first BSSID of the AP equipment from the AP hot spot, an MAC1 address is determined from a corresponding relation in a database according to the acquired first BSSID of the AP equipment, and wireless network connection is established with the AP equipment 1 through the MAC1 address. At this time, the AP device 1 sends a Association Response packet carrying the BSSID of the AP device to the terminal device, and the terminal device extracts the BSSID of the AP device from the Association Response packet, and since the BSSID extracted at this time already exists in a certain correspondence in the database, the correspondence of the BSSID of the AP device to the MAC1 address may not be established.
In yet another possible implementation, the terminal device may obtain the identity of the AP device after establishing a wireless network connection with the AP device. Correspondingly, the determining, by the terminal device in step 104, to establish a wireless network connection with the AP device through the first MAC address based on the correspondence may include: the terminal equipment establishes wireless network connection with the AP equipment through a second MAC address; the terminal equipment acquires a second AP equipment identifier sent by the AP equipment, wherein the second AP equipment identifier is used for identifying the AP equipment; the terminal equipment compares the first AP equipment identifier with the second AP equipment identifier; if the first AP equipment identifier corresponds to the same AP equipment with the second AP equipment identifier, the terminal equipment establishes wireless network connection with the AP equipment again through the first MAC address.
After the terminal device scans an AP hotspot of a certain AP device, a wireless network connection may be established between the terminal device and the AP device through a second MAC address, and then the AP device sends a second AP device identifier of the AP device to the terminal device, and the terminal device matches the second AP device identifier with the AP device identifiers in each corresponding relationship, thereby determining a target AP device identifier that represents the same AP device with the second AP device identifier, and then the terminal device determines a target MAC address corresponding to the target AP device identifier (that is, the first MAC address in step 101). If the target MAC address and the second MAC address are the same MAC address, the terminal equipment continues to keep the wireless network connection with the AP equipment, and if the target MAC address and the second MAC address are different MAC addresses, the terminal equipment reestablishes the wireless network connection with the AP equipment through the target MAC address.
In one application scenario, when a terminal device connects to the AP device through a first MAC address, the AP device identifies the terminal device based on the first MAC address and manages the terminal device, for example, allows the terminal device to connect to the AP device or does not allow the terminal device to connect to the AP device. After the configuration information of the AP equipment changes, when the terminal equipment needs to be connected with the AP equipment again, the terminal equipment determines to be connected with the AP equipment through the first MAC address according to the first AP equipment identifier of the AP equipment and the corresponding relation between the MAC address in the database and the AP equipment identifier IDE, and the terminal equipment is connected with the AP equipment through the same first MAC address before and after the terminal equipment, so that the terminal equipment corresponding to the same first MAC address is identified as the same terminal equipment by the AP equipment, and the management of the terminal equipment is facilitated.
In still another application scenario, when the terminal device is connected to the AP device through the first MAC address, the user may add the first MAC address to the MAC address filtering list of the AP device, so as to limit the terminal device corresponding to the first MAC address to connect to the AP device, and the terminal device corresponding to the MAC address outside the MAC address white list may connect to the AP device. After the configuration information of the AP device changes, when the terminal device needs to connect to the AP device again, the terminal device determines that the terminal device is connected to the AP device through the first MAC address according to the first AP device identifier of the AP device and the corresponding relationship between the MAC address in the database and the AP device identifier IDE, and because the first MAC address exists in the MAC address filtering list, the AP device can limit the terminal device to connect to the AP device.
In yet another application scenario, when the terminal device is connected to the AP device through the first MAC address, the user may add the first MAC address to the MAC address white list of the AP device, so as to allow the terminal device corresponding to the first MAC address to connect to the AP device, and a MAC address outside the MAC address white list cannot connect to the AP device. After the configuration information of the AP device changes, when the terminal device needs to connect to the AP device again, the terminal device determines to connect to the AP device through the first MAC address according to the first AP device identifier of the AP device and the correspondence between the MAC address in the database and the AP device identifier IDE, and because the first MAC address exists in the MAC address white list, the AP device allows the terminal device to connect to the AP device.
Corresponding to the wireless network connection method of the above embodiment, fig. 5 shows a block diagram of a wireless network connection device 300 provided in the embodiment of the present application, where the wireless network connection device 300 is applicable to the terminal device shown in fig. 1, and only the portion relevant to the embodiment of the present application is shown for convenience of explanation.
Referring to fig. 5, the wireless network connection apparatus 300 in the embodiment of the present application may include a first connection unit 301, a correspondence relation determination unit 302, and a second connection unit 303.
The first connection unit 301 is configured to establish a wireless network connection with the wireless access point AP device through a first MAC address; a correspondence determining unit 302, configured to obtain a first AP device identifier sent by the AP device, and determine a correspondence between the first MAC address and the first AP device identifier; wherein the first AP device identifier is configured to identify an AP of the AP device; and a second connection unit 303, configured to determine, based on the correspondence, to establish a wireless network connection with the AP device through the first MAC address when the terminal device needs to establish a wireless network connection with the AP device again and the configuration information of the AP device changes.
Corresponding to the wireless network connection method of the above embodiment, fig. 6 shows a block diagram of a wireless network connection apparatus 400 provided in the embodiment of the present application, where the wireless network connection apparatus 400 is applicable to the AP device shown in fig. 1, and only the portion related to the embodiment of the present application is shown for convenience of explanation.
Referring to fig. 6, a wireless network connection apparatus 400 in an embodiment of the present application may include an AP device identifier generating unit 401 and an AP device identifier transmitting unit 402.
The AP device identifier generating unit 401 is configured to generate, when the wireless access point AP device establishes a wireless network connection with the terminal device, a first AP device identifier for identifying the AP device; an AP device identifier sending unit 402, configured to send the first AP device identifier to the terminal device.
The embodiment of the application also provides an electronic device, referring to fig. 7, the electronic device 500 may include: at least one processor 510, a memory 520, and a computer program stored in the memory 520 and executable on the at least one processor 510, the processor 510 implementing the steps of any of the various method embodiments described above, such as steps S101 to S104 in the embodiment shown in fig. 4, when the computer program is executed by the processor 510. Alternatively, the processor 510 may perform the functions of the modules/units in the above-described apparatus embodiments, such as the functions of the modules 301 to 303 shown in fig. 5, or the functions of the modules 401 to 402 shown in fig. 6, when executing a computer program. The electronic device 500 may be a terminal device in fig. 1 or an AP device in fig. 1.
By way of example, a computer program may be partitioned into one or more modules/units that are stored in memory 520 and executed by processor 510 to complete the present application. One or more of the modules/units may be a series of computer program segments capable of performing particular functions for describing the execution of the computer program in the electronic device 500.
It will be appreciated by those skilled in the art that fig. 7 is merely an example of an electronic device and is not limiting of an electronic device and may include more or fewer components than shown, or may combine certain components, or different components, such as input-output devices, network access devices, buses, etc.
The processor 510 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 520 may be an internal memory unit of the electronic device, or may be an external memory device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), or the like. The memory 520 is used to store computer programs and other programs and data required by the electronic device. The memory 520 may also be used to temporarily store data that has been output or is to be output.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
Embodiments also provide a computer readable storage medium having instructions stored therein, which when run on a computer or processor, cause the computer or processor to perform one or more steps of any of the methods described above.
Embodiments also provide a computer program product containing instructions which, when run on a computer or processor, cause the computer or processor to perform one or more steps of any of the methods described above.
The present application also provides a chip system, which may include a memory and a processor executing a computer program stored in the memory to implement one or more steps of any of the methods described above. The chip system can be a single chip or a chip module formed by a plurality of chips.
Embodiments of the present application also provide a chip system that may include a processor coupled to a memory, the processor executing a computer program stored in the memory to perform one or more steps of any of the methods described above. The chip system can be a single chip or a chip module formed by a plurality of chips.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid State Disks (SSDs)), among others.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
Finally, it should be noted that: the foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of wireless network connection, comprising:
the terminal equipment establishes wireless network connection with the wireless Access Point (AP) equipment through a first MAC address;
the terminal equipment acquires a first AP equipment identifier sent by the AP equipment and determines the corresponding relation between the first MAC address and the first AP equipment identifier; wherein the first AP device identifier is configured to identify the AP device;
And under the condition that the terminal equipment needs to establish wireless network connection with the AP equipment again and the configuration information of the AP equipment changes, the terminal equipment determines to establish wireless network connection with the AP equipment through the first MAC address based on the corresponding relation.
2. The method of claim 1, wherein the terminal device obtains a first AP device identifier sent by the AP device, and determining a correspondence between the first MAC address and the first AP device identifier includes:
the terminal equipment acquires a first message sent by the AP equipment, wherein the first message comprises a first AP equipment identifier, and the first message is a message fed back to the terminal equipment by the AP equipment when the terminal equipment establishes wireless network connection with the AP equipment;
and the terminal equipment establishes a corresponding relation between the first MAC address and the first AP equipment identifier.
3. The method of claim 2 wherein the first message is an association response Association Response message.
4. A method according to claim 2 or 3, wherein the first AP device identification comprises a basic service set identification, BSSID, of the AP device and a valid range of variation of the BSSID;
The terminal device establishes a corresponding relation between the first MAC address and the first AP device identifier, and the corresponding relation comprises the following steps:
the terminal equipment determines the BSSID range of the AP equipment according to the BSSID of the AP equipment and the effective change range of the BSSID;
and the terminal equipment establishes a corresponding relation between the first MAC address and the BSSID range of the AP equipment.
5. The method of claim 4, wherein the determining, by the terminal device, that a wireless network connection is established with the AP device via the first MAC address based on the correspondence, comprises:
after scanning a first BSSID of the AP equipment, the terminal equipment matches the first BSSID with the BSSID range;
and if the first BSSID is the BSSID in the BSSID range, the terminal equipment establishes wireless network connection with the AP equipment through the first MAC address.
6. A method according to claim 2 or 3, wherein the terminal device determining, based on the correspondence, to establish a wireless network connection with the AP device via the first MAC address, comprises:
the terminal equipment establishes wireless network connection with the AP equipment through a second MAC address;
The terminal equipment acquires a second AP equipment identifier sent by the AP equipment, wherein the second AP equipment identifier is used for identifying the AP equipment;
the terminal equipment compares the first AP equipment identifier with the second AP equipment identifier;
and if the first AP equipment identifier corresponds to the same AP equipment as the second AP equipment identifier, the terminal equipment re-establishes wireless network connection with the AP equipment through the first MAC address.
7. A method of wireless network connection, comprising:
under the condition that wireless Access Point (AP) equipment and terminal equipment establish wireless network connection through a first MAC address, the AP equipment generates a first AP equipment identifier for identifying the AP equipment;
the AP equipment sends the first AP equipment identifier to the terminal equipment so that the terminal equipment determines the corresponding relation between the first MAC address and the first AP equipment identifier, and under the condition that the terminal equipment needs to establish wireless network connection with the AP equipment again and the configuration information of the AP equipment changes, the wireless network connection with the AP equipment through the first MAC address is determined based on the corresponding relation.
8. The method of claim 7, wherein the first AP device identification comprises a basic service set identification, BSSID, of the AP device and a valid range of variation for the BSSID;
the AP equipment sends the first AP equipment identifier to the terminal equipment, and the method comprises the following steps:
and the AP equipment sends an association response Association Response message to the terminal equipment, wherein the Association Response message comprises a Basic Service Set Identifier (BSSID) of the AP equipment and an effective variation range of the BSSID.
9. An electronic device, comprising: one or more processors, memory, and a display screen;
the memory, the display screen, and the one or more processors are coupled, the memory is used for storing computer program code, and the computer program code comprises computer instructions;
the computer instructions, when executed by the one or more processors, cause the electronic device to perform the method of any one of claims 1 to 6 or the method of any one of claims 7 to 8.
10. A chip system comprising a processor coupled to a memory, the processor executing a computer program stored in the memory to implement the method of any one of claims 1 to 6 and/or the method of any one of claims 7 to 8.
CN202010715438.3A 2020-07-22 2020-07-22 Wireless network connection method, electronic equipment and chip system Active CN113973398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010715438.3A CN113973398B (en) 2020-07-22 2020-07-22 Wireless network connection method, electronic equipment and chip system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010715438.3A CN113973398B (en) 2020-07-22 2020-07-22 Wireless network connection method, electronic equipment and chip system

Publications (2)

Publication Number Publication Date
CN113973398A CN113973398A (en) 2022-01-25
CN113973398B true CN113973398B (en) 2024-04-12

Family

ID=79585207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010715438.3A Active CN113973398B (en) 2020-07-22 2020-07-22 Wireless network connection method, electronic equipment and chip system

Country Status (1)

Country Link
CN (1) CN113973398B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114793354B (en) * 2022-04-13 2024-02-23 展讯通信(深圳)有限公司 Information transmission method, communication device, chip and module equipment
WO2023231019A1 (en) * 2022-06-02 2023-12-07 Oppo广东移动通信有限公司 Wireless communication method, and device
CN117221283B (en) * 2023-11-08 2024-04-16 荣耀终端有限公司 Wireless network connection method, electronic equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014160889A (en) * 2013-02-19 2014-09-04 Funai Electric Co Ltd Wireless communication device
CN107094293A (en) * 2017-06-27 2017-08-25 南京赢纳信息科技有限公司 A kind of device and method for obtaining WiFi terminal real MAC address
US10230522B1 (en) * 2016-03-24 2019-03-12 Amazon Technologies, Inc. Network access control

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102275025B1 (en) * 2014-11-21 2021-07-08 삼성전자주식회사 Method for providing wireless lan service and electronic device thereof
US9832639B2 (en) * 2015-07-06 2017-11-28 Aruba Networks, Inc. Infrastructure coordinated media access control address assignment
US10159103B2 (en) * 2016-09-13 2018-12-18 Cisco Technology, Inc. Random media access control address collision detection and avoidance for wireless network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014160889A (en) * 2013-02-19 2014-09-04 Funai Electric Co Ltd Wireless communication device
US10230522B1 (en) * 2016-03-24 2019-03-12 Amazon Technologies, Inc. Network access control
CN107094293A (en) * 2017-06-27 2017-08-25 南京赢纳信息科技有限公司 A kind of device and method for obtaining WiFi terminal real MAC address

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Android系统与iOS系统安全现状与趋势研究;伍惠宇;李宇翔;郭铁涛;张博;黄超;;保密科学技术(03);全文 *

Also Published As

Publication number Publication date
CN113973398A (en) 2022-01-25

Similar Documents

Publication Publication Date Title
CN111095723B (en) Wireless charging method and electronic equipment
CN112771900B (en) Data transmission method and electronic equipment
CN113254409B (en) File sharing method, system and related equipment
CN114079893B (en) Bluetooth communication method, terminal device and computer readable storage medium
CN113973398B (en) Wireless network connection method, electronic equipment and chip system
CN116361255A (en) Data synchronization method, electronic device, and computer-readable storage medium
CN117014859A (en) Address book-based device discovery method, audio and video communication method and electronic device
CN116233300A (en) Method for controlling communication service state, terminal device and readable storage medium
CN113641271B (en) Application window management method, terminal device and computer readable storage medium
CN114880251B (en) Memory cell access method, memory cell access device and terminal equipment
CN111343326A (en) Method and related device for acquiring test log
CN113126948B (en) Audio playing method and related equipment
CN115914461B (en) Position relation identification method and electronic equipment
JP2022501968A (en) File transfer method and electronic device
CN116389884B (en) Thumbnail display method and terminal equipment
CN114915747B (en) Video call method, electronic device and readable storage medium
CN117425227A (en) Method and device for establishing session based on WiFi direct connection
CN114554012B (en) Incoming call answering method, electronic equipment and storage medium
CN113645595B (en) Equipment interaction method and device
CN116414500A (en) Recording method, acquisition method and terminal equipment for operation guide information of electronic equipment
CN114531742A (en) Dual Wi-Fi connection method and electronic equipment
CN115460445B (en) Screen projection method of electronic equipment and electronic equipment
CN116321265B (en) Network quality evaluation method, electronic device and storage medium
CN116346982B (en) Method for processing audio, electronic device and readable storage medium
CN114205318B (en) Head portrait display method and electronic equipment

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