CN108566649B - Network segment management method of personal hotspot and related products - Google Patents

Network segment management method of personal hotspot and related products Download PDF

Info

Publication number
CN108566649B
CN108566649B CN201810199790.9A CN201810199790A CN108566649B CN 108566649 B CN108566649 B CN 108566649B CN 201810199790 A CN201810199790 A CN 201810199790A CN 108566649 B CN108566649 B CN 108566649B
Authority
CN
China
Prior art keywords
network segment
network
wlan
access point
access
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
CN201810199790.9A
Other languages
Chinese (zh)
Other versions
CN108566649A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810199790.9A priority Critical patent/CN108566649B/en
Publication of CN108566649A publication Critical patent/CN108566649A/en
Application granted granted Critical
Publication of CN108566649B publication Critical patent/CN108566649B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery

Landscapes

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

Abstract

The application provides a network segment management method of personal hotspots and a related product, wherein the method comprises the following steps: when network sharing is started, connecting an access point AP of an on-line wireless local area network WLAN to acquire a first network segment of the wireless local area network WLAN; acquiring a second network segment of the soft access point; and judging whether the first network segment is the same as the second network segment or not, if so, modifying the first network segment or the second network segment to ensure that the modified network segments are different. The technical scheme provided by the application has the advantage of high user experience.

Description

Network segment management method of personal hotspot and related products
Technical Field
The present application relates to the field of terminal devices and communication technologies, and in particular, to a network segment management method for personal hotspots and a related product.
Background
In the prior art, mobile terminals (such as mobile phones, tablet computers, etc.) have become electronic devices preferred and most frequently used by users. With the popularization of smart phones, Wireless Local Area Networks (WLAN); the system belongs to a convenient network data transmission system, and realizes the transmission of network data by utilizing a wireless transmission technology. Wifi (wireless fidelity ) hotspot is commonly called a hotspot, and is a technology for converting a GPRS, 3G or 4G signal received by a terminal into a Wifi signal to be sent out, and the terminal must have a wireless AP (access point) function to realize the hotspot.
The existing terminal randomly selects a network segment through the WLAN after opening a hotspot, so that the network segment of the WLAN and the network segment of an individual hotspot are possibly the same, the terminal cannot realize the WLAN or the individual hotspot, the transmission of messages is mixed, and the user experience degree is reduced.
Content of application
The embodiment of the application provides a network segment management method of a personal hotspot and a related product, wherein different network segments are arranged to distinguish a WLAN (wireless local area network) or the personal hotspot, so that confusion of message transmission is avoided, and user experience is improved.
In a first aspect, an embodiment of the present application provides a network segment management method for an individual hotspot, where the method includes the following steps:
when network sharing is started, connecting an access point AP of an on-line wireless local area network WLAN to acquire a first network segment of the wireless local area network WLAN;
acquiring a second network segment of the soft access point;
and judging whether the first network segment is the same as the second network segment or not, if so, modifying the first network segment or the second network segment to ensure that the modified network segments are different.
In a second aspect, an electronic device is provided, the electronic device comprising: the communication module is connected with the application processor through at least one circuit;
the application processor is used for controlling the communication module to be connected with an access point AP of the wireless local area network WLAN capable of surfing the Internet when the network sharing is started, and acquiring a first network segment of the wireless local area network WLAN;
the application processor is further configured to acquire a second network segment of the soft access point; and judging whether the first network segment is the same as the second network segment or not, if so, modifying the first network segment or the second network segment to ensure that the modified network segments are different.
In a third aspect, a computer-readable storage medium is provided, which stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method provided in the first aspect.
In a fourth aspect, there is provided a computer program product comprising a non-transitory computer readable storage medium having a computer program stored thereon, the computer program being operable to cause a computer to perform the method provided by the first aspect.
The embodiment of the application has the following beneficial effects:
it can be seen that, according to the technical scheme provided by the application, when the personal hotspot realizes network access, the first network segment of the WLAN and the second network segment of the softap are obtained, and when the two network segments are the same, the two network segments are adjusted to be different, so that for the electronic device, because the first network segment of the WLAN and the second network segment of the softap are different, the transmitted message can be distinguished as the WLAN or the softap through the network segments, so that confusion of the message is not generated, and the experience degree of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a method for implementing a personal hotspot disclosed in an embodiment of the present application.
Fig. 3 is a schematic diagram of a WLAN network disclosed in an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a mobile phone disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In the method provided in the first aspect, the modifying the first network segment or the second network segment so that the modified network segments are different includes:
and modifying the second network segment to obtain a third network segment, and sending a network segment modification indication to a terminal under the soft access point, wherein the network segment modification indication comprises the third network segment.
In the method provided in the first aspect, the modifying the first network segment or the second network segment so that the modified network segments are different includes:
and modifying the first network segment to obtain a fourth network segment, sending the fourth network segment to the access point of the WLAN to judge whether the access point conflicts with other network segments, receiving a prompt of whether the access point of the WLAN conflicts or not, and if the prompt is not confliction, determining that the network segment of the WLAN is the fourth network segment.
In a method provided in a first aspect, the connecting an access point of a WLAN capable of connecting to internet includes:
if the AP of the selected WLAN is not received, performing a scan to obtain an AP list, where the AP list includes: scanning the names and signal qualities of the plurality of APs; and acquiring the coordinate of the current position, determining whether the current position is at home or in an office according to the coordinate, if so, selecting a first AP corresponding to the current position from the AP list to send an access request to realize access, and if so, determining that the current position is in the office according to the coordinate, selecting a second AP corresponding to the office from the AP list to send the access request to realize access.
In a method provided in a first aspect, the connecting an access point of a WLAN capable of connecting to internet includes:
if the selected WLAN AP is not received, obtaining the coordinate of the current position, determining whether the current position is at home or in an office according to the coordinate, if the current position is at home according to the coordinate, extracting the name and the password of the first AP corresponding to the home to send an access request to the first AP to realize access, and if the current position is at the office according to the coordinate, extracting the name and the password of the second AP corresponding to the office to send an access request to the second AP to realize access.
In the electronic device provided in the second aspect, the application processor is specifically configured to modify the second network segment to obtain a third network segment, and send a network segment modification indication to a terminal under a soft access point, where the network segment modification indication includes the third network segment.
In the electronic device provided in the second aspect,
the application processor is specifically configured to modify the first network segment to obtain a fourth network segment, send the fourth network segment to the access point of the WLAN to determine whether the fourth network segment conflicts with other network segments, and receive a prompt of whether the fourth network segment conflicts with the other network segments returned by the access point of the WLAN, and if the prompt is not confliction, determine that the network segment of the WLAN is the fourth network segment.
In the electronic device provided in the second aspect, the application processor is further configured to, if the AP of the selected WLAN is not received, perform one scan to obtain an AP list, where the AP list includes: scanning the names and signal qualities of the plurality of APs; and acquiring the coordinate of the current position, determining whether the current position is at home or in an office according to the coordinate, if so, selecting a first AP corresponding to the current position from the AP list to send an access request to realize access, and if so, determining that the current position is in the office according to the coordinate, selecting a second AP corresponding to the office from the AP list to send the access request to realize access.
In the electronic device provided in the second aspect, the application processor is specifically configured to, if the selected AP of the WLAN is not received, obtain a coordinate of the current location, determine whether the current location is at home or in an office according to the coordinate, if the current location is at home according to the coordinate, extract a name and a password of a first AP corresponding to the home, send an access request to the first AP to implement access, and if the current location is determined in the office according to the coordinate, extract a name and a password of a second AP corresponding to the office, send an access request to the second AP to implement access.
The electronic device in the present application may include a smart Phone (e.g., an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a Mobile Internet device (MID, Mobile Internet Devices), or a wearable device, and the electronic Devices are merely examples, but not exhaustive, and include but are not limited to the electronic Devices, and for convenience of description, the electronic Devices are referred to as User Equipment (UE) in the following embodiments. Of course, in practical applications, the user equipment is not limited to the above presentation form, and may also include: intelligent vehicle-mounted terminal, computer equipment and the like.
Referring to fig. 1, fig. 1 is a schematic view of an electronic device according to an embodiment of the present disclosure, fig. 1 is a schematic view of an electronic device 100 according to an embodiment of the present disclosure, where the electronic device 100 includes: the touch screen display comprises a shell 110, a circuit board 120, a battery 130, a cover plate 140, a touch display screen 150 and an antenna 170, wherein the circuit board 120, the battery 130 and the cover plate 140 are arranged on the shell 110, and the circuit board 120 is also provided with a circuit connected with the touch display screen 150; the circuit board 120 may further include: application processor AP190, modem 180. The modem 180 may be specifically integrated in the AP190, and certainly in practical applications, the antenna 170 may also be separately disposed, and the antenna 170 is connected to the modem 180 through at least one circuit, and the antenna 170 may be a single antenna, and certainly in practical applications, the antenna 170 may also be a dual antenna or multiple antennas, and when the antenna is multiple antennas, the antenna may form an antenna array, and the specific implementation manner of the present application is not limited to the specific representation form of the antenna.
The touch Display screen may be a Thin Film Transistor-Liquid Crystal Display (TFT-LCD), a Light Emitting Diode (LED) Display screen, an Organic Light Emitting Diode (OLED) Display screen, or the like.
For an intelligent terminal of an android operating system, a STA + SAP (station + Soft Access Point) coexistence scheme is generally supported for network hotspots, and thus, hotspots started by a WLAN connection network through the device (for example, a smart phone, a tablet computer, or a personal digital assistant) can be shared with other devices. However, the STA + SAP coexistence status of the system can only be determined by default when the system version is compiled, and cannot be dynamically set in the framework, so that different execution status flows may be executed when coexistence is started. When the personal hotspot and the WLAN network sharing function need to be interactively separated, it is difficult to interactively separate the personal hotspot and the WLAN network sharing function from the execution flow, if the terminal that opens the personal hotspot is terminal 1, the terminal that receives the personal hotspot is terminal 2, and the access point of the terminal 1 that accesses the network is AP1, the channel between the terminal 1 and the AP1 may be channel 1, and the corresponding network segment may be network segment 1, which may specifically be: 192.168.43.1, the channel between terminal 1 and terminal 2 may be channel 2, and its corresponding network segment may be segment 2, and specifically may be: 192.168.43.1, so that segment 1 is identical to segment 2 for terminal 1, so that terminal 1 cannot distinguish whether the message belongs to terminal 2 or AP1 through the segment of the message, which may cause confusion in transmitting the message and affect user experience.
Referring to fig. 2, fig. 2 provides a network segment management method for a personal hotspot, as shown in fig. 2, the method is executed by an electronic device, where the electronic device may be a mobile terminal, a tablet computer, a personal digital assistant, an intelligent vehicle-mounted terminal, and the like of an android system, and the android system may specifically be an android system and other systems developed based on the android system. As shown in fig. 2, the method comprises the steps of:
step S201, when the network sharing is started, connecting an access point AP of an on-line wireless local area network WLAN, and acquiring a first network segment of the wireless local area network WLAN;
the first channel of the WLAN in step S201 may be specifically a first network segment transmitted between the electronic device and the AP in the WLAN manner, and specifically may be: 192.168.43.1, 192.168.43.2, etc., and the present application is not intended to be limited to the specific representation of the first segment.
Step S202, a second network segment of a soft access point (English: soft access point, short: softap) is obtained;
the second network segment of the soft access point in step S202 may be that after the electronic device starts the personal hotspot, the electronic device is connected to the network segment of the electronic device through the personal hotspot, and the connection mode of the personal hotspot may also be one of wifi, bluetooth, and the like. The second network segment may specifically be: 192.168.43.10 or 192.168.43.11.
Step S203, determining whether the first network segment is the same as the second network segment, if so, modifying the first network segment or the second network segment to make the first network segment different from the second network segment (i.e., the modified network segment).
The judgment of whether the first network segment is the same as the second network segment may specifically be to judge whether the addresses of the first network segment and the second network segment are the same, if so, determine that the first network segment is the same as the second network segment, if not, determine that the first network segment is different from the second network segment.
The modification of the first network segment or the second network segment may be specifically that the first network segment is different from the second network segment, and one of the first network segment and the second network segment is modified while the other is unchanged, so that the first network segment is different from the second network segment. Specifically, if the first network segment and the second network segment are both: 192.168.43.1, the first segment could be modified from 192.168.43.1 to 192.168.43.10, and the second segment could be kept unchanged, or the reverse could be done in practice, that is, the second segment could be modified from 192.168.43.1 to 192.168.43.10, and the first segment could be kept unchanged.
The technical scheme provided by the application provides that when the personal hotspot realizes network access, a first network segment of the WLAN and a second network segment of the softap are obtained, when the two network segments are the same, the two network segments are adjusted to be different, so for the electronic device, as the first network segment of the WLAN is different from the second network segment of the softap, the transmitted message can be distinguished to be the WLAN or the softap through the network segments, therefore, the confusion of the message can not be generated, and the experience degree of a user is improved.
Optionally, the method may further include:
and modifying the second network segment to obtain a third network segment, and sending a network segment modification indication to a terminal under the soft access point, wherein the network segment modification indication comprises the third network segment.
The above alternative solution implements the difference between the first network segment and the second network segment by modifying the second network segment, which is easier to modify than the first network segment, because for WLAN, the number of electronic devices under the access point of the WLAN may be large, and if a modification is made to the first network segment, although the network segment of the WLAN is not the same as the network segment of the softap, it is possible that within the access point, the modified network segment of device 1 is the same as the network segment of device 2, so that the access point cannot distinguish device 1 from device 2, so modifying the first segment of the WLAN is not a preferred solution, for the second segment, since the number of terminals that are accessed by its personal hot spot is typically 1, it need not consider whether it conflicts with the gateways of other terminals, so modifying the second network segment can very conveniently select the range of the modified network segment.
Optionally, the method may further include:
modifying the first network segment to obtain a fourth network segment, sending the fourth network segment to an access point of the WLAN to judge whether the access point conflicts with other network segments, receiving a prompt whether the access point of the WLAN conflicts or not, if the prompt does not conflict, determining that the network segment of the WLAN is the fourth network segment, and if the prompt conflicts, re-modifying the first network segment and confirming the modified network segment until the modified network segment does not conflict with other network segments.
The access point of the WLAN may determine whether there is a conflict with other network segments, and the access point of the WLAN determines whether there is another terminal accessing the WLAN, if there is no other terminal accessing the WLAN, determines that there is no conflict, if there is another terminal accessing the WLAN, determines whether the other network segments of the other terminals are the same as the fourth network segment, if so, determines that there is a conflict, if not, determines that there is no conflict.
As shown in fig. 3, which is a schematic diagram of a WLAN, as shown in fig. 3, the UE accessing may include 3 UEs corresponding to three network segments, and if the UE1 modifies the network segments, it needs to determine whether to conflict with the network segments of the UE2 and the UE 3.
Optionally, a specific implementation method of the AP connected to the internet-enabled WLAN may include:
if the AP of the selected WLAN is not received, performing a scan to obtain an AP list, where the AP list includes: scanning the names and signal qualities of the plurality of APs; and acquiring the coordinate of the current position, determining whether the current position is at home or in an office according to the coordinate, if so, selecting a first AP corresponding to the current position from the AP list to send an access request to realize access, and if so, determining that the current position is in the office according to the coordinate, selecting a second AP corresponding to the office from the AP list to send the access request to realize access.
The technical scheme of the application combines the technical scheme of positioning and the technical scheme of scanning the AP list to simplify the AP access flow of the WLAN, and the WLAN is used in the technical scene such as home or office; for example, in a home, the AP is generally a fixed AP, and the name of the AP is also fixed, and at this time, the AP list may be displayed by noting the name of the AP or marking the identifier of the AP, or, in the office, the names of the APs are relatively fixed, for both scenarios, the AP that the user chooses to access is fixed, if the user cannot access his fixed AP, he will not choose to access the other AP, therefore, after the process determines that the AP is located at the home or office according to the coordinates, the process directly requests to access the AP corresponding to the location from the AP list, and the AP at the home or office must be accessed multiple times, the terminal is reserved with a password, so that the terminal can directly enter the corresponding AP without inputting the password, and since the AP is fixed and unique, it does not have to make multiple AP selections from the AP list. This reduces the input of the corresponding password.
Optionally, a specific implementation method of the AP connected to the internet-enabled WLAN may include:
if the selected WLAN AP is not received, obtaining the coordinate of the current position, determining whether the current position is at home or in an office according to the coordinate, if the current position is at home according to the coordinate, extracting the name and the password of the first AP corresponding to the home to send an access request to the first AP to realize access, and if the current position is at the office according to the coordinate, extracting the name and the password of the second AP corresponding to the office to send an access request to the second AP to realize access.
The technical scheme of the application combines the technical scheme of positioning and the technical scheme of scanning the AP list to simplify the AP access flow of the WLAN, and the WLAN is used in the technical scene such as home or office; for example, in a home, an AP is generally a fixed AP, the name of the AP is also fixed, at this time, an AP list may note the name of the AP or mark the identifier of the AP for display, otherwise, in an office, the name of the AP is relatively fixed, for both of these two scenarios, the AP that the user selects to access is fixed, if the user cannot access the fixed AP, the user cannot select to access other APs, so the above-mentioned flow determines that the AP is located in the home or office according to coordinates, and directly requests to access the AP corresponding to the location, and for the AP in the home or office, the AP must be accessed multiple times, and a password is reserved for the terminal, so that the user does not need to input a password to directly enter the corresponding AP, and since the AP is fixed and unique, the access at these fixed locations is direct access, the corresponding AP can be directly selected according to the position without performing WLAN scanning once, so that the scanning process is simplified, and the WLAN can be quickly accessed.
Optionally, the method may further include:
if the current position is determined to be in the office according to the coordinates, determining whether the temperature detected by a temperature sensor of the electronic device exceeds a set threshold, if the temperature exceeds the set threshold, detecting the signal intensity of a preset angle, if the signal intensity is greater than the set threshold, determining that the second AP can be accessed to the network, extracting the name and the password of the second AP corresponding to the office, sending an access request to the second AP to realize access, and if the signal intensity is less than the set threshold, not accessing the second AP.
For the scene of an office, the position of the AP is relatively fixed, the AP is generally set in a desktop or a fixed position, and the situation is different from the technical scene of a home, for the user, the position of the AP is also relatively fixed, generally, the AP is set in a station position of the office, after the two relatively fixed positions are determined, a preset angle can be determined according to the strength of a historical access signal, and in the two relatively fixed positions, as long as it is determined whether the signal strength of the set angle is greater than a threshold value, it can be determined whether the second AP is started, so that whether the second AP is on the internet can be detected without starting WIFI scanning, the situation that the second AP is accessed and cannot be accessed is avoided, and the method does not need to perform WIFI scanning.
Referring to fig. 4, fig. 4 provides an electronic device, which includes: an application processor 402 and a communication module 401, wherein the communication module 401 is connected to the application processor 402 by at least one circuit.
The application processor 402 is configured to control the communication module to connect to an access point AP of an internet-enabled wireless local area network WLAN to obtain a first network segment of the wireless local area network WLAN when network sharing is started;
the application processor 402 is further configured to acquire a second network segment of the soft access point; and judging whether the first network segment is the same as the second network segment or not, if so, modifying the first network segment or the second network segment to ensure that the modified network segments are different.
Optionally, the application processor is specifically configured to, if the AP of the selected WLAN is not received, perform one scan to obtain an AP list, where the AP list includes: scanning the names and signal qualities of the plurality of APs; and acquiring the coordinate of the current position, determining whether the current position is at home or in an office according to the coordinate, if so, selecting a first AP corresponding to the current position from the AP list to send an access request to realize access, and if so, determining that the current position is in the office according to the coordinate, selecting a second AP corresponding to the office from the AP list to send the access request to realize access.
The technical scheme of the application combines the technical scheme of positioning and the technical scheme of scanning the AP list to simplify the AP access flow of the WLAN, and the WLAN is used in the technical scene such as home or office; for example, in a home, an AP is generally a fixed AP, the name of the AP is also fixed, at this time, an AP list may note the name of the AP or mark the identifier of the AP for display, otherwise, in an office, the name of the AP is relatively fixed, for both of these two scenarios, the AP that the user selects to access is fixed, if the user cannot access the fixed AP, the user cannot select to access other APs, so the above-mentioned flow determines that the AP is located in the home or office according to coordinates, and directly requests to access the AP corresponding to the location, and for the AP in the home or office, the AP must be accessed multiple times, and a password is reserved for the terminal, so that the user does not need to input a password to directly enter the corresponding AP, and since the AP is fixed and unique, the access at these fixed locations is direct access, the corresponding AP can be directly selected according to the position without performing WLAN scanning once, so that the scanning process is simplified, and the WLAN can be quickly accessed.
Optionally, the application processor is specifically configured to obtain a coordinate of the current location, determine whether the current location is at home or in an office according to the coordinate, if so, determine that the current location is at home according to the coordinate, extract a name and a password of a first AP corresponding to the home to send an access request to the first AP to implement access, and if so, extract a name and a password of a second AP corresponding to the office to send an access request to the second AP to implement access.
Optionally, the application processor is specifically configured to determine, according to the coordinate, that the current location is in an office, determine whether a temperature detected by a temperature sensor of the electronic device exceeds a set threshold, if so, detect a signal strength of a preset angle, and if the signal strength is greater than the set threshold, determine that the second AP can access the network, extract a name and a password of the second AP corresponding to the office, send an access request to the second AP to implement access, and if the signal strength is less than the set threshold, not access the second AP.
For the scene of an office, the position of the AP is relatively fixed, the AP is generally set in a desktop or a fixed position, and the situation is different from the technical scene of a home, for the user, the position of the AP is also relatively fixed, generally, the AP is set in a station position of the office, after the two relatively fixed positions are determined, a preset angle can be determined according to the strength of a historical access signal, and in the two relatively fixed positions, as long as it is determined whether the signal strength of the set angle is greater than a threshold value, it can be determined whether the second AP is started, so that whether the second AP is on the internet can be detected without starting WIFI scanning, the situation that the second AP is accessed and cannot be accessed is avoided, and the method does not need to perform WIFI scanning.
Fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal provided in an embodiment of the present application. Referring to fig. 5, the handset includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, sensor 950, audio circuit 960, Wireless Fidelity (WiFi) module 970, application processor 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
the input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a touch display screen 933, a fingerprint recognition apparatus 931, a face recognition apparatus 936, an iris recognition apparatus 937, and other input devices 932. The input unit 930 may also include other input devices 932. In particular, other input devices 932 may include, but are not limited to, one or more of physical keys, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. Wherein the content of the first and second substances,
the application processor 980 is used for controlling the communication module to be connected with an access point AP of the wireless local area network WLAN capable of surfing the Internet when the network sharing is started, and acquiring a first network segment of the wireless local area network WLAN;
an application processor 980 for obtaining a second segment of the soft access point; and judging whether the first network segment is the same as the second network segment or not, if so, modifying the first network segment or the second network segment to ensure that the modified network segments are different.
Optionally, the application processor 980 is further configured to modify the second network segment to obtain a third network segment, and send a network segment modification indication to the terminal under the soft access point, where the network segment modification indication includes the third network segment;
optionally, the application processor 980 is further configured to modify the first network segment to obtain a fourth network segment, send the fourth network segment to the access point of the WLAN to determine whether the access point conflicts with other network segments, receive a prompt of whether the access point of the WLAN conflicts, and determine that the network segment of the WLAN is the fourth network segment if the prompt is not conflicting.
Optionally, the application processor 980 is specifically configured to, if the AP of the selected WLAN is not received, perform one scan to obtain an AP list, where the AP list includes: scanning the names and signal qualities of the plurality of APs; and acquiring the coordinate of the current position, determining whether the current position is at home or in an office according to the coordinate, if so, selecting a first AP corresponding to the current position from the AP list to send an access request to realize access, and if so, determining that the current position is in the office according to the coordinate, selecting a second AP corresponding to the office from the AP list to send the access request to realize access.
Optionally, the application processor 980 is specifically configured to, if the selected AP of the WLAN is not received, obtain coordinates of the current location, determine whether the current location is at home or in an office according to the coordinates, if the current location is determined to be at home according to the coordinates, extract a name and a password of a first AP corresponding to the home to send an access request to the first AP to implement access, and if the current location is determined to be in the office according to the coordinates, extract a name and a password of a second AP corresponding to the office to send an access request to the second AP to implement access.
The application processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Optionally, the applications processor 980 may include one or more processing units; alternatively, the application processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the applications processor 980.
Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the touch display screen according to the brightness of ambient light, and the proximity sensor may turn off the touch display screen and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is received by the audio circuit 960 and converted into audio data, which is then processed by the audio playback application processor 980, and then passed through the RF circuit 910 to be sent to, for example, another mobile phone, or played to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 5 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope of not changing the essence of the application.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, and optionally, the power supply may be logically connected to the application processor 980 via a power management system, so that functions such as managing charging, discharging, and power consumption may be implemented via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, a light supplement device, a light sensor, and the like, which are not described herein again.
Embodiments of the present application further provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute some or all of the steps of any one of the network segment management methods for a personal hotspot described in the above method embodiments.
Embodiments of the present application also provide a computer program product, which includes a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any one of the network segment management methods for a personal hotspot described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A network segment management method of an individual hotspot is applied to an electronic device to interactively separate the individual hotspot from a Wireless Local Area Network (WLAN) network sharing function, and the method comprises the following steps:
when network sharing is started, connecting an access point AP of an on-line wireless local area network WLAN, and acquiring a first network segment transmitted between the electronic device and the access point AP in the mode of the wireless local area network WLAN;
acquiring a second network segment of the soft access point; the second network segment is a network segment in which a terminal under a soft access point is connected with the electronic device through the personal hotspot after the electronic device opens the personal hotspot;
judging whether the first network segment is the same as the second network segment, if so, modifying the first network segment or the second network segment to make the modified network segments different, comprising: and modifying the second network segment to obtain a third network segment, and sending a network segment modification indication to a terminal under the soft access point, wherein the network segment modification indication comprises the third network segment.
2. The method of claim 1, wherein modifying the first network segment or the second network segment such that the modified network segments are not the same further comprises:
and modifying the first network segment to obtain a fourth network segment, sending the fourth network segment to the access point of the WLAN to judge whether the access point conflicts with other network segments, receiving a prompt of whether the access point of the WLAN conflicts or not, and if the prompt is not confliction, determining that the network segment of the WLAN is the fourth network segment.
3. The method of claim 1, wherein connecting to an access point of a WLAN capable of connecting to a network comprises:
if the AP of the selected WLAN is not received, performing a scan to obtain an AP list, where the AP list includes: scanning the names and signal qualities of the plurality of APs; and acquiring the coordinate of the current position, determining whether the current position is at home or in an office according to the coordinate, if so, selecting a first AP corresponding to the current position from the AP list to send an access request to realize access, and if so, determining that the current position is in the office according to the coordinate, selecting a second AP corresponding to the office from the AP list to send the access request to realize access.
4. The method of claim 1, wherein connecting to an access point of a WLAN capable of connecting to a network comprises:
if the selected WLAN AP is not received, obtaining the coordinate of the current position, determining whether the current position is at home or in an office according to the coordinate, if the current position is at home according to the coordinate, extracting the name and the password of the first AP corresponding to the home to send an access request to the first AP to realize access, and if the current position is at the office according to the coordinate, extracting the name and the password of the second AP corresponding to the office to send an access request to the second AP to realize access.
5. An electronic device, configured to separate a personal hotspot from a WLAN tethering function interaction, the electronic device comprising: the communication module is connected with the application processor through at least one circuit;
the application processor is used for controlling the communication module to be connected with an access point AP of an on-line wireless local area network WLAN when network sharing is started, and acquiring a first network segment transmitted between the electronic device and the access point AP in a wireless local area network WLAN mode;
the application processor is further configured to acquire a second network segment of the soft access point; the second network segment is a network segment in which a terminal under a soft access point is connected with the electronic device through the personal hotspot after the electronic device opens the personal hotspot; judging whether the first network segment is the same as the second network segment, if so, modifying the first network segment or the second network segment to make the modified network segments different, comprising: and modifying the second network segment to obtain a third network segment, and sending a network segment modification indication to a terminal under the soft access point, wherein the network segment modification indication comprises the third network segment.
6. The electronic device of claim 5,
the application processor is specifically configured to modify the first network segment to obtain a fourth network segment, send the fourth network segment to the access point of the WLAN to determine whether the fourth network segment conflicts with other network segments, and receive a prompt of whether the fourth network segment conflicts with the other network segments returned by the access point of the WLAN, and if the prompt is not confliction, determine that the network segment of the WLAN is the fourth network segment.
7. The electronic device of claim 5,
the application processor is further configured to, if the AP of the selected WLAN is not received, perform one scan to obtain an AP list, where the AP list includes: scanning the names and signal qualities of the plurality of APs; and acquiring the coordinate of the current position, determining whether the current position is at home or in an office according to the coordinate, if so, selecting a first AP corresponding to the current position from the AP list to send an access request to realize access, and if so, determining that the current position is in the office according to the coordinate, selecting a second AP corresponding to the office from the AP list to send the access request to realize access.
8. The electronic device of claim 5,
the application processor is specifically configured to, if the selected AP of the WLAN is not received, obtain a coordinate of the current location, determine whether the current location is at home or in an office according to the coordinate, if the current location is at home according to the coordinate, extract a name and a password of a first AP corresponding to the home to send an access request to the first AP to implement access, and if the current location is determined in the office according to the coordinate, extract a name and a password of a second AP corresponding to the office to send an access request to the second AP to implement access.
9. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-4.
CN201810199790.9A 2018-03-12 2018-03-12 Network segment management method of personal hotspot and related products Active CN108566649B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810199790.9A CN108566649B (en) 2018-03-12 2018-03-12 Network segment management method of personal hotspot and related products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810199790.9A CN108566649B (en) 2018-03-12 2018-03-12 Network segment management method of personal hotspot and related products

Publications (2)

Publication Number Publication Date
CN108566649A CN108566649A (en) 2018-09-21
CN108566649B true CN108566649B (en) 2021-07-02

Family

ID=63532696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810199790.9A Active CN108566649B (en) 2018-03-12 2018-03-12 Network segment management method of personal hotspot and related products

Country Status (1)

Country Link
CN (1) CN108566649B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325199A (en) * 2011-09-13 2012-01-18 中兴通讯股份有限公司 Terminal IP (Internet Protocol) address management method and terminal IP address management device
CN103227844A (en) * 2013-04-19 2013-07-31 深圳市吉祥腾达科技有限公司 Method and device for automatically solving secondary route IP conflict in DHCP
CN104066146A (en) * 2013-03-18 2014-09-24 华为技术有限公司 Wi-fi network access method and wireless access device
CN105577853A (en) * 2016-03-09 2016-05-11 上海斐讯数据通信技术有限公司 Method and device for automatically solving IP network segment conflict
CN105657075A (en) * 2014-11-11 2016-06-08 中兴通讯股份有限公司 IP collision detection and processing method, wireless hot spot device
CN105657708A (en) * 2016-01-25 2016-06-08 广州视睿电子科技有限公司 Connection method and device for mobile terminal and server side
CN105744012A (en) * 2016-03-09 2016-07-06 上海斐讯数据通信技术有限公司 Automatic solving method and device for IP (Internet Protocol) network segment conflicts of multiple WAN (wide area network) and LAN (local area network)
CN106686153A (en) * 2016-11-21 2017-05-17 广州视源电子科技股份有限公司 Wireless hot-spot service starting method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325199A (en) * 2011-09-13 2012-01-18 中兴通讯股份有限公司 Terminal IP (Internet Protocol) address management method and terminal IP address management device
CN104066146A (en) * 2013-03-18 2014-09-24 华为技术有限公司 Wi-fi network access method and wireless access device
CN103227844A (en) * 2013-04-19 2013-07-31 深圳市吉祥腾达科技有限公司 Method and device for automatically solving secondary route IP conflict in DHCP
CN105657075A (en) * 2014-11-11 2016-06-08 中兴通讯股份有限公司 IP collision detection and processing method, wireless hot spot device
CN105657708A (en) * 2016-01-25 2016-06-08 广州视睿电子科技有限公司 Connection method and device for mobile terminal and server side
CN105577853A (en) * 2016-03-09 2016-05-11 上海斐讯数据通信技术有限公司 Method and device for automatically solving IP network segment conflict
CN105744012A (en) * 2016-03-09 2016-07-06 上海斐讯数据通信技术有限公司 Automatic solving method and device for IP (Internet Protocol) network segment conflicts of multiple WAN (wide area network) and LAN (local area network)
CN106686153A (en) * 2016-11-21 2017-05-17 广州视源电子科技股份有限公司 Wireless hot-spot service starting method and device

Also Published As

Publication number Publication date
CN108566649A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN106714250B (en) Cell registration method and device and computer readable storage medium
CN106851780B (en) Network connection method and terminal
CN107480489B (en) unlocking control method and related product
CN111010663B (en) Information sharing method and device, storage medium and computer equipment
CN106792819B (en) Method and device for reducing power consumption of mobile terminal
CN106604277B (en) Wireless network access method and mobile terminal
CN110574485A (en) Network connection configuration method and related product
CN109922539B (en) Network connection method and related product
CN106961710B (en) Network access method and terminal
CN106793010B (en) Network access method and equipment
CN106413032B (en) Hotspot establishing method and terminal equipment
CN108601063B (en) Personal hotspot realization method and related product
CN108877733B (en) Color temperature adjusting method and related device
CN110351702B (en) System information area determining method, indicating method, terminal and network equipment
CN108462994B (en) Channel selection method for personal hot spot and related product
CN106792434B (en) Hotspot establishing method and terminal equipment
CN112135321B (en) Channel switching method and related product
CN107708140B (en) Wireless network distribution processing method and related product
CN110602766A (en) Personal hotspot identification method and method for determining association relationship between terminals
CN107659996B (en) Channel access method and equipment
CN107371203B (en) Method for establishing call and related product
CN106535229B (en) WiFi signal receiving sensitivity testing method and mobile terminal
CN106572463B (en) Access control method and mobile terminal
CN108566649B (en) Network segment management method of personal hotspot and related products
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant