CN113709850A - Control method and terminal equipment - Google Patents

Control method and terminal equipment Download PDF

Info

Publication number
CN113709850A
CN113709850A CN202111039243.2A CN202111039243A CN113709850A CN 113709850 A CN113709850 A CN 113709850A CN 202111039243 A CN202111039243 A CN 202111039243A CN 113709850 A CN113709850 A CN 113709850A
Authority
CN
China
Prior art keywords
connection request
connection
function module
condition
hotspot function
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.)
Pending
Application number
CN202111039243.2A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202111039243.2A priority Critical patent/CN113709850A/en
Publication of CN113709850A publication Critical patent/CN113709850A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The embodiment of the application provides a control method and terminal equipment, wherein the method comprises the following steps: if the personal hotspot function module of the WIFI chip of the terminal equipment is not started, controlling the WIFI chip to be in a monitoring state, so that the terminal equipment obtains a connection request of the electronic equipment for the terminal equipment; if the connection request of the electronic equipment for the terminal equipment is obtained, determining whether the connection request meets a connection condition; and if the connection request meets the connection condition, starting the personal hotspot function module so that the terminal equipment as a wireless access point responds to the connection request. The control method of the embodiment of the application can automatically start the hot spot without user operation, and respond to the hot spot connection request of the electronic equipment meeting the connection condition.

Description

Control method and terminal equipment
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a control method and electronic equipment.
Background
In the existing electronic devices, many electronic devices, such as notebook computers, tablet computers, desktop computers, and the like, do not have SIM cards, so that the devices cannot use a wireless mobile network, and if there is no wifi or wired network, the electronic devices can only use a hotspot network opened by a terminal device to surf the internet. However, when the electronic device is to be connected to the terminal device to use the hotspot network, the electronic device needs to be manually connected by a user, for example, the hotspot network needs to be manually opened by the user, and the hotspot connection between the electronic device and the terminal device cannot be automatically realized under the condition of zero operation of the user.
Disclosure of Invention
The embodiment of the application provides a control method which can automatically start a hotspot without user operation and respond to a hotspot connection request of electronic equipment meeting connection conditions, and the electronic equipment applying the method.
In order to solve the above technical problem, an embodiment of the present application provides a control method, where the method includes:
if the personal hotspot function module of the WIFI chip of the terminal equipment is not started, controlling the WIFI chip to be in a monitoring state, so that the terminal equipment obtains a connection request of the electronic equipment for the terminal equipment;
if the connection request of the electronic equipment for the terminal equipment is obtained, determining whether the connection request meets a connection condition;
and if the connection request meets the connection condition, starting the personal hotspot function module so that the terminal equipment as a wireless access point responds to the connection request.
As another embodiment, the determining whether the connection request satisfies a connection condition includes:
obtaining a WIFI physical address of the electronic equipment based on the connection request;
and if the WIFI physical address of the electronic equipment belongs to an allowance list, representing that the connection request meets the connection condition.
As another embodiment, the method further comprises:
obtaining an input operation for closing the personal hotspot function module;
and in response to the input operation, removing the WIFI physical address of the currently connected electronic equipment from the permission list, and closing the personal hotspot function module.
As another embodiment, the method further comprises:
obtaining an input operation for closing the personal hotspot function module;
and responding to the input operation, closing the personal hotspot functional module, and closing the monitoring state of the WIFI chip.
As another embodiment, the method further comprises:
if the personal hotspot function module is in an open state, monitoring whether the personal hotspot function module meets an automatic closing condition;
and if the personal hotspot function module meets the automatic closing condition, adding the WIFI physical address of the connected electronic equipment in the opening period, which does not belong to the permission list, to the permission list.
As another embodiment, the shutdown condition includes a disconnection request to obtain an already connected electronic device;
or
The shutdown condition includes a time duration for which the personal hotspot functional module is in a no-connection electronic device state to reach a timed time.
Another embodiment of the present application provides a terminal device, including:
a WIFI chip;
the processor is used for controlling the WIFI chip to be in a monitoring state when the personal hotspot function module of the WIFI chip is not started so as to obtain a connection request sent by the electronic equipment, determining whether the connection request meets the connection condition or not if the connection request is obtained, and starting the personal hotspot function module if the connection request meets the connection condition so as to enable the terminal equipment to serve as a wireless access point to respond to the connection request.
As another embodiment, the determining whether the connection request satisfies a connection condition includes:
obtaining a WIFI physical address of the electronic equipment based on the connection request;
and if the WIFI physical address of the electronic equipment belongs to an allowance list, representing that the connection request meets the connection condition.
As another embodiment, the processor is further configured to:
obtaining an input operation for closing the personal hotspot function module;
and in response to the input operation, removing the WIFI physical address of the currently connected electronic equipment from the permission list, and closing the personal hotspot function module.
As another embodiment, the processor is further configured to:
obtaining an input operation for closing the personal hotspot function module;
and responding to the input operation, closing the personal hotspot functional module, and closing the monitoring state of the WIFI chip.
Based on the disclosure of the embodiment, it can be known that the embodiment of the application has the beneficial effects that when the personal hotspot function module of the WIFI chip of the terminal device is not started, the WIFI chip is controlled to be in a monitoring state, so that the terminal device can obtain the connection request of the electronic device, when the connection request is obtained, whether the connection request meets the connection condition is determined, and if the connection request meets the connection condition, the personal hotspot function module is controlled to be started, so that the terminal device serves as a wireless access point to respond to the connection request. Therefore, the control method in the embodiment can automatically control the wifi chip to be in the monitoring state when the hotspot function module of the terminal device is in the unopened state so as to monitor whether the connection request is received, and meanwhile, the hotspot function module can be automatically opened without manual operation of a user when the connection request meets the connection condition, so that the connection between the electronic device and the terminal device is facilitated, and the connection flow is simplified.
Drawings
Fig. 1 is a flowchart of a control method in the embodiment of the present application.
Fig. 2 is a flowchart of a control method in another embodiment of the present application.
Fig. 3 is a flowchart of a control method in another embodiment of the present application.
Fig. 4 is a flowchart of an actual application of the control method in the embodiment of the present application.
Fig. 5 is a structural relationship diagram of a terminal device in the embodiment of the present application.
Detailed Description
Specific embodiments of the present application will be described in detail below with reference to the accompanying drawings, but the present application is not limited thereto.
It will be understood that various modifications may be made to the embodiments disclosed herein. The following description is, therefore, not to be taken in a limiting sense, but is made merely as an exemplification of embodiments. Other modifications will occur to those skilled in the art within the scope and spirit of the disclosure.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the disclosure and, together with a general description of the disclosure given above, and the detailed description of the embodiments given below, serve to explain the principles of the disclosure.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present disclosure will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present disclosure are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely examples of the disclosure that may be embodied in various forms. Well-known and/or repeated functions and structures have not been described in detail so as not to obscure the present disclosure with unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present disclosure in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the disclosure.
Hereinafter, embodiments of the present application will be described in detail with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present application provides a control method, where the method includes:
if the personal hotspot function module of the WIFI chip of the terminal equipment is not started, controlling the WIFI chip to be in a monitoring state so that the terminal equipment obtains a connection request of the electronic equipment for the terminal equipment;
if the connection request of the electronic equipment for the terminal equipment is obtained, determining whether the connection request meets the connection condition;
and if the connection request meets the connection condition, starting the personal hotspot function module so that the terminal equipment as a wireless access point responds to the connection request.
For example, the control method in this embodiment may be applied to a terminal device with a SIM card, such as a mobile phone, and may also be applied to an electronic device without a SIM card but with a network hotspot function of other networks, which is not limited specifically. The terminal device in this embodiment has a WIFI chip therein, and the WIFI chip may also be understood as a Wlan module, which is a communication module with built-in network protocol stacks such as IEEE802.11 protocol cluster, TCP/IP, and the like. The WIFI chip in this embodiment has a hotspot function module therein, which is also implemented based on a wireless network protocol IEEE802.11 protocol stack and a TCP/IP protocol stack, and based on the hotspot function module, the terminal device can respond to a connection request of the electronic device, so as to implement hotspot connection with the electronic device. Specifically, when the terminal device system determines that the current hotspot function module is not turned on, the WiFi chip is automatically controlled to be in a monitoring state, so that whether the monitoring system receives a hotspot connection request sent by the electronic device for the terminal device is received. If the connection request is determined to meet the connection condition, the system can control the network hotspot function module to be started through the WIFI chip, responds to the connection request, and achieves hotspot connection between the terminal device and the electronic device, namely, the terminal device is used as a wireless access point of the electronic device to achieve response of the connection request.
Based on the above embodiment, it can be seen that the control method in this embodiment can automatically control the WIFI chip to be in the monitoring state when the hotspot function module of the terminal device is in the unopened state, so as to monitor whether the connection request is received by the system; meanwhile, when the connection request meets the connection condition, the hotspot function module can be automatically started without manual operation of a user, so that the connection between the electronic equipment and the terminal equipment is facilitated, and the connection process is simplified.
Further, when determining whether the connection request satisfies the connection condition, the method includes:
obtaining a WIFI physical address of the electronic equipment based on the connection request;
and if the WIFI physical address of the electronic equipment belongs to the permission list, representing that the connection request meets the connection condition.
In this embodiment, the connection request includes a WIFI physical address, that is, a source address, for example, a MAC address of WIFI, of the electronic device serving as the request initiator, and the system may obtain the WIFI physical address of the electronic device based on the connection request, so as to determine the identity of the electronic device through the WIFI physical address, which is equivalent to that the WIFI physical address is an identity of the electronic device. When the system determines whether the connection request satisfies the connection condition, it may be determined whether the connection request satisfies the connection condition by determining whether the WIFI physical address of the initiator of the connection request, i.e., the electronic device, is stored in the permission list. The WIFI physical address of the electronic device which is allowed by the user and takes the terminal device as the wireless access point and is successfully accessed is stored in the permission list, so that if the WIFI physical address of the electronic device which is requested to access the hotspot network is stored in the permission list, the electronic device can be indicated to be approved by the user and the device of the hotspot network of the terminal device is allowed to be used, so that the terminal device does not need to ask for approval of the user again, can directly and automatically control to start the hotspot function module, and successfully responds to the connection request of the electronic device to the hotspot network.
The WIFI physical address in the permission list in this embodiment may be determined when a connection request of a certain electronic device is obtained for the first time, and when the user allows the electronic device to access the hotspot network, the system stores the WIFI physical address in the permission list, so that when the electronic device requests to access the hotspot network again, the system can automatically start the hotspot function module even when the terminal device does not start the module, and successfully access the electronic device. Or, when no record exists in the permission list, the WIFI physical address may be obtained and recorded again when the user allows the electronic device to access. Alternatively, the WIFI physical addresses in the permission list may also be obtained and imported into the permission list through manual input by the user or through other interaction with the electronic device, and the specific manner is not limited.
In addition, the connection condition may not be limited to the permission list, and other limitation contents may be added on the basis of the permission list, for example, whether the connection is successfully performed within a certain time period from the current time period, such as 1 day, 1 week, and the like, and if so, the connection condition is satisfied, and if not, the connection condition is not satisfied. Or whether the successful access times of the equipment within a certain time period, such as 1 day and 1 week, are beyond the threshold range, if so, the connection condition is not met, and if not, the connection condition is met. Or whether the service time of the equipment after the last successful access exceeds the threshold range, if so, the connection condition is not met, and if not, the connection condition is met. Or the total number of successful accesses of the device within a specific time period such as 1 hour, 1 day and the like, or whether the access frequency exceeds the corresponding threshold range, if so, the connection condition is not met, and if not, the connection condition is met. Or, determining whether the current access time of the electronic device meets a time condition, such as whether the current access time is noon break time, whether the current access time is next-shift time, whether the current access time is class time, whether the current access time is work time, and the like, if the current access time meets the time condition, determining that the connection request does not meet the connection condition, and if the current access time does not meet the time condition, determining that the connection request meets the connection condition. Alternatively, whether the location condition is satisfied may be determined by limiting the location where access is requested, such as whether the location is at a company, whether the location is on a bus, whether the location is at home, and the like, and if the location condition is satisfied, it is determined that the connection condition is satisfied, and if the location condition is not satisfied, it is determined that the connection condition is not satisfied.
Optionally, the connection condition to be determined may be different for different electronic devices, that is, for different WIFI physical addresses, for example, the system may perform the following operations:
determining a WIFI physical address based on the connection request;
determining corresponding connection conditions based on the WIFI physical address and the connection condition list;
and judging whether the connection request meets the connection condition or not based on the corresponding connection condition.
For example, after obtaining a connection request, the system determines a WIFI physical address of the system, if a user has a personalized connection condition set for the system in advance corresponding to the WIFI physical address, determines whether the connection request currently meets the personalized connection condition based on the personalized connection condition, if so, responds to the request to realize hotspot connection, and if not, refuses connection. The personalized connection condition may include any one or more of the above-mentioned condition contents, for example, the connection condition may be one or more of whether the connection condition is in an allowed list, and the frequency of use in a specific time period, or the total number of uses, or the total duration of use, or the duration of single use, or the current access time. By the mode, the user can realize personalized hotspot use limitation on different electronic devices. For example, the method limits the use of the hot spot network by the children, avoids the children from using the hot spot network for a long time to play games and the like, browses non-learning webpages, chats with friends and the like.
Further, as shown in fig. 2, the control method in this embodiment further includes:
obtaining an input operation for closing the personal hotspot function module;
and in response to the input operation, removing the WIFI physical address of the currently connected electronic equipment from the permission list, and closing the personal hotspot function module.
For example, in the process that the personal hotspot function module is in the on state, if an input operation that a user actively closes the personal hotspot function module is received, the system responds to the input operation to close the hotspot function module, determines the WIFI physical address of the electronic device in the state of keeping connection with the terminal device when the hotspot function module is closed, and removes the WIFI physical address from the permission list, so that the electronic device cannot automatically connect with the hotspot of the terminal device again. For example, when a user is at home and a child uses the hotspot network for a long time to play a game or watch an animation, the user can adopt the mode, so that the child cannot use the hotspot of the electronic device automatically accessed to the terminal device any more, and the connection can be realized only by manually executing the connection operation allowed by the user, thereby effectively avoiding the electronic device from accessing the hotspot.
Certainly, when the WIFI physical address is removed from the permission list, not only the WIFI physical address of the electronic device that is already in the connected state before the hotspot is closed may also be removed, but also the WIFI physical address in the permission list may be completely cleared, or the WIFI physical address of the hotspot that has successfully accessed the terminal device within a time period from the current time point, such as within 2 hours, within 30min, and the like, is removed, which is not limited specifically.
In addition, the system can also lock the permission list, set the permission list to be in a non-use state, at this time, when the electronic equipment sends a hotspot connection request, the system cannot call the permission list, only requests the user, determines whether to start the hotspot function module, and responds to the connection request.
Further, as shown in fig. 3, the control method in another embodiment further includes:
obtaining an input operation for closing the personal hotspot function module;
and responding to the input operation, closing the personal hotspot functional module, and closing the monitoring state of the WIFI chip.
In this embodiment, in the process that the personal hotspot function module is in the on state, if an input operation is received, such as when a user actively closes the personal hotspot function module, the system responds to the input operation, closes the hotspot function module, and controls the monitoring function of the WIFI chip to be in a disabled state, that is, at this time, the WIFI chip cannot monitor whether the system obtains a connection request, that is, at this time, the terminal device cannot receive the connection request, or the device does not perform any processing even if receiving the connection request, at this time, not only the system does not start the hotspot function module due to the connection request, but also does not seek a request to the user, that is, the connection request is not regarded as a connection request. Therefore, in this case, no electronic device, whether the local network address is in the permission list or not, can access the hotspot of the terminal device.
Further, in another embodiment, the control method further includes:
if the personal hotspot function module is in an open state, monitoring whether the personal hotspot function module meets an automatic closing condition;
and if the personal hotspot function module meets the automatic closing condition, adding the WIFI physical address of the connected electronic equipment in the opening period, which does not belong to the permission list, into the permission list.
That is, in the process that the personal hotspot function module is in the on state, whether the personal hotspot function module meets the automatic off condition is monitored in real time or is monitored when a certain condition is met, for example, whether the personal hotspot function module meets the off condition is monitored when the hotspot function module is turned on, or whether the personal hotspot function module meets the off condition is monitored after the personal hotspot function module is started for a certain period of time. When the personal hotspot function module is determined to meet the automatic closing condition, in the process that the module is started and used, the WIFI physical addresses which do not belong to the permission list are added into the permission list in the WIFI physical addresses of the electronic equipment which are successfully accessed to the hotspot, so that the terminal equipment can automatically start the hotspot function module when the subsequent electronic equipment is to be accessed to the hotspot network of the terminal equipment again, and the electronic equipment is accessed. For example, when the hotspot function module is in an on state, and a new electronic device requesting access to the hotspot for the first time is allowed to be accessed by the user, because the electronic device is added for the first time, the WIFI physical address of the electronic device is not stored in the permission list, and when the hotspot function module meets the automatic off condition, the system adds the WIFI physical address of the electronic device to the permission list. Or when the system determines that the hotspot function module meets the automatic closing condition, determining the WIFI physical addresses of all the electronic devices currently in the connection state, respectively matching all the WIFI physical addresses with the WIFI physical addresses recorded in the permission list, skipping if a matched record is found in the table, and adding the WIFI physical address to the permission list if no matched record is found. And then, the system can control to close the hot spot function module, namely, the terminal equipment automatically closes the hot spot function module under the condition that the user does not perform any operation. The system can receive the connection request at the moment, the wifi chip can monitor whether the connection request is received, and when the connection request is received again, the system can judge whether the connection request meets the connection condition, and if the connection request meets the connection condition, the hot spot function module can be automatically started again to realize connection. Or, within a period of time after the hotspot function module is closed, the hotspot function module is not automatically started based on the connection request any more, and the system may receive the connection request within the period of time, but may not, also stop receiving the connection request, that is, the wifi chip is in a non-monitoring state, stops monitoring, and the like.
Specifically, the shutdown condition includes a disconnection request for obtaining an already connected electronic device; or
The shutdown condition includes a time duration for which the personal hotspot functional module is in the connectionless electronic device state to reach the timed time.
In this embodiment, the closing condition is that when the electronic device requesting connection actively makes a request for disconnecting the hotspot connection after the electronic device performs hotspot connection with the terminal device, or when the system detects a signal indicating that the electronic device serving as a request access party actively disconnects the hotspot connection, it may indicate that the current hotspot function module satisfies the automatic closing condition. Or, the shutdown condition is that all the electronic devices in the hotspot function module that are in the connected state are actively disconnected, and the system can actively shut down the hotspot function module with the aim of saving power when no electronic device requests to access within a period of time later, such as 10 minutes and 20 minutes.
Further, in order to better illustrate the control method in the embodiments of the present application, the following detailed description is made with reference to specific embodiments:
as shown in fig. 4, the AP in the figure is a terminal device, for example, a mobile phone, and the STA1 and the STA2 represent a first electronic device and a second electronic device, respectively, for example, different tablet computers and the like. The method comprises the steps that a user operates first electronic equipment to initiate a connection request to the terminal equipment, when a WIFI chip of the terminal equipment monitors that the connection request exists, the connection request is received, a system processes the connection request, whether connection is achieved or not is determined for the user, if the user agrees, hotspot connection is established, and at the moment, the first electronic equipment records a WIFI physical address, such as an MAC address, of the terminal equipment. When the first electronic device is actively disconnected, the automatic closing condition of the hotspot function module is met, at this time, the terminal device records the WIFI physical address of the first electronic device in an allowed list, and can automatically close the hotspot, or notify a user that the hotspot is manually closed by the user, or a new connection request is not made within a period of time, or the terminal device is not in a hotspot connection state with any electronic device, that is, the terminal device is not in the hotspot connection state with the first electronic device, or is not in the hotspot connection state with other electronic devices, and after the state lasts for a period of time, the hotspot is automatically closed for the purpose of saving power. When the first electronic device sends the connection request to the terminal device again, the terminal device can determine whether the WIFI physical address of the first electronic device is stored in the permission list or not, and the system automatically starts the hotspot function module to realize connection due to the fact that the WIFI physical address of the first electronic device is stored in the permission list. If the first electronic device does not request connection but the second electronic device initiates a connection request to the terminal device, the system does not start the hotspot function module but notifies the user because the WIFI physical address of the second electronic device is not stored in the permission list, and the user determines whether to allow access. When the hotspot function module is in an open state, the user actively disconnects the hotspot connection, that is, when the user actively closes the hotspot, the system may control the permission list to remove the WIFI physical address of the electronic device in a connection state with the terminal device before the hotspot is disconnected from the permission list, or delete all the WIFI physical addresses in the permission list, or delete the WIFI physical address of the electronic device passing through the hotspot of the terminal device within a period of time before the current time from the permission list, so that when the electronic device in the permission list from which the WIFI physical address is deleted initiates the connection request again, the system may not start the hotspot function module, but may deliver the hotspot function module to the user for processing, and the user determines whether to allow the hotspot to be accessed, or directly discards the connection request, without asking the user, and defaults the user to refuse to respond to the connection request. Or when the user manually operates to close the hotspot function module, the system controls the WIFI chip to stop monitoring, and at this time, the system cannot receive the connection request, and even if the connection request is received, the connection request is discarded and cannot be processed. The duration of the connection prohibition state may be set by a user, may also be a fixed duration, and may also be automatically released when the user manually opens the hotspot again, and is switched to a state allowing the connection request to be received and processed.
As shown in fig. 5, another embodiment of the present application also provides a terminal device 100, where the terminal device includes:
a WIFI chip 1;
and the processor 2 is configured to control the WIFI chip 1 to be in a monitoring state when the personal hotspot function module of the WIFI chip 1 is not started, so as to obtain a connection request sent by the electronic device, determine whether the connection request meets a connection condition if the connection request is obtained, and start the personal hotspot function module if the connection request meets the connection condition, so that the terminal device 100 serves as a wireless access point to respond to the connection request.
For example, the terminal device 100 in this embodiment may be a terminal device 100 with a SIM card, such as a mobile phone, and may also be applied to a terminal device 100 without a SIM card, but has a network hotspot function of other networks, and is not limited specifically. In the present embodiment, the terminal device 100 has the WIFI chip 1 therein, and the WIFI chip 1 may also be understood as a Wlan module, which is a communication module with network protocol stacks such as IEEE802.11 protocol cluster and TCP/IP embedded therein. The WIFI chip 1 in this embodiment has a hotspot function module therein, which is also implemented based on a wireless network protocol IEEE802.11 protocol stack and a TCP/IP protocol stack, and based on the hotspot function module, the terminal device 100 can respond to a connection request of an electronic device to implement hotspot connection with the electronic device. Specifically, when the processor 2 of the terminal device 100 determines that the current hotspot function module is in the unopened state, the WIFI chip 1 is automatically controlled to be in the monitoring state, so that whether the monitoring system receives a hotspot connection request sent by the electronic device for the terminal device 100 is determined. When the processor 2 determines that the connection request is received based on monitoring of the WIFI chip 1, it is determined whether the connection request meets a connection condition, for example, it is determined whether the connection request can be agreed and a response is given to the other party, and if it is determined that the connection request meets the connection condition, the processor 2 may control the network hotspot function module to be turned on through the WIFI chip 1, and respond to the connection request, so as to implement hotspot connection between the terminal device 100 and the electronic device, that is, the terminal device 100 is used as a wireless access point of the electronic device, and implement response of the connection request.
Based on the foregoing embodiment, in this embodiment, the terminal device 100 can automatically control the WIFI chip 1 to be in the monitoring state when the hotspot function module is not in the on state, so as to monitor whether the system receives the connection request; meanwhile, when the connection request meets the connection condition, the hotspot function module can be automatically started without manual operation of a user, so that the connection with the electronic equipment is facilitated, and the connection process is simplified.
Further, in this embodiment, when determining whether the connection request satisfies the connection condition, the method includes:
obtaining a WIFI physical address of the electronic equipment based on the connection request;
and if the WIFI physical address of the electronic equipment belongs to the permission list, representing that the connection request meets the connection condition.
Further, the processor 2 in this embodiment is further configured to:
obtaining an input operation for closing the personal hotspot function module;
and in response to the input operation, removing the WIFI physical address of the currently connected electronic equipment from the permission list, and closing the personal hotspot function module.
Further, the processor 2 in this embodiment is further configured to:
obtaining an input operation for closing the personal hotspot function module;
and responding to the input operation, closing the personal hotspot functional module, and closing the monitoring state of the WIFI chip 1.
Further, the processor 2 in this embodiment is further configured to:
if the personal hotspot function module is in an open state, monitoring whether the personal hotspot function module meets an automatic closing condition;
and if the personal hotspot function module meets the automatic closing condition, adding the WIFI physical address of the connected electronic equipment in the opening period, which does not belong to the permission list, to the permission list.
Further, the shutdown condition in the present embodiment includes a disconnection request to obtain an already connected electronic device;
or
The shutdown condition includes a time duration for which the personal hotspot functional module is in a no-connection electronic device state to reach a timed time.
An embodiment of the present application also provides a storage medium on which a computer program is stored, which when executed by a processor implements the control method as described above. It should be understood that each solution in this embodiment has a corresponding technical effect in the foregoing method embodiments, and details are not described here.
Embodiments of the present application also provide a computer program product, tangibly stored on a computer-readable medium and comprising computer-executable instructions that, when executed, cause at least one processor to perform a control method, such as in the embodiments described above. It should be understood that each solution in this embodiment has a corresponding technical effect in the foregoing method embodiments, and details are not described here.
It should be noted that the computer storage media of the present application can be computer readable signal media or computer readable storage media or any combination of the two. The computer readable medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access storage media (RAM), a read-only storage media (ROM), an erasable programmable read-only storage media (EPROM or flash memory), an optical fiber, a portable compact disc read-only storage media (CD-ROM), an optical storage media piece, a magnetic storage media piece, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, antenna, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
It should be understood that although the present application has been described in terms of various embodiments, not every embodiment includes only a single embodiment, and such description is for clarity purposes only, and those skilled in the art will recognize that the embodiments described herein may be combined as suitable to form other embodiments, as will be appreciated by those skilled in the art.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (10)

1. A method of controlling, the method comprising:
if the personal hotspot function module of the WIFI chip of the terminal equipment is not started, controlling the WIFI chip to be in a monitoring state, so that the terminal equipment obtains a connection request of the electronic equipment for the terminal equipment;
if the connection request of the electronic equipment for the terminal equipment is obtained, determining whether the connection request meets a connection condition;
and if the connection request meets the connection condition, starting the personal hotspot function module so that the terminal equipment as a wireless access point responds to the connection request.
2. The method of claim 1, wherein the determining whether the connection request satisfies a connection condition comprises:
obtaining a WIFI physical address of the electronic equipment based on the connection request;
and if the WIFI physical address of the electronic equipment belongs to an allowance list, representing that the connection request meets the connection condition.
3. The method of claim 2, wherein the method further comprises:
obtaining an input operation for closing the personal hotspot function module;
and in response to the input operation, removing the WIFI physical address of the currently connected electronic equipment from the permission list, and closing the personal hotspot function module.
4. The method of claim 2, wherein the method further comprises:
obtaining an input operation for closing the personal hotspot function module;
and responding to the input operation, closing the personal hotspot functional module, and closing the monitoring state of the WIFI chip.
5. The method of claim 2, wherein the method further comprises:
if the personal hotspot function module is in an open state, monitoring whether the personal hotspot function module meets an automatic closing condition;
and if the personal hotspot function module meets the automatic closing condition, adding the WIFI physical address of the connected electronic equipment in the opening period, which does not belong to the permission list, to the permission list.
6. The method of claim 5, wherein the shutdown condition comprises a request to obtain a disconnection of an already connected electronic device;
or
The shutdown condition includes a time duration for which the personal hotspot functional module is in a no-connection electronic device state to reach a timed time.
7. A terminal device, comprising:
a WIFI chip;
the processor is used for controlling the WIFI chip to be in a monitoring state when the personal hotspot function module of the WIFI chip is not started so as to obtain a connection request sent by the electronic equipment, determining whether the connection request meets the connection condition or not if the connection request is obtained, and starting the personal hotspot function module if the connection request meets the connection condition so as to enable the terminal equipment to serve as a wireless access point to respond to the connection request.
8. The electronic device of claim 7, wherein the determining whether the connection request satisfies a connection condition comprises:
obtaining a WIFI physical address of the electronic equipment based on the connection request;
and if the WIFI physical address of the electronic equipment belongs to an allowance list, representing that the connection request meets the connection condition.
9. The electronic device of claim 7, wherein the processor is further configured to:
obtaining an input operation for closing the personal hotspot function module;
and in response to the input operation, removing the WIFI physical address of the currently connected electronic equipment from the permission list, and closing the personal hotspot function module.
10. The electronic device of claim 7, wherein the processor is further configured to:
obtaining an input operation for closing the personal hotspot function module;
and responding to the input operation, closing the personal hotspot functional module, and closing the monitoring state of the WIFI chip.
CN202111039243.2A 2021-09-06 2021-09-06 Control method and terminal equipment Pending CN113709850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111039243.2A CN113709850A (en) 2021-09-06 2021-09-06 Control method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111039243.2A CN113709850A (en) 2021-09-06 2021-09-06 Control method and terminal equipment

Publications (1)

Publication Number Publication Date
CN113709850A true CN113709850A (en) 2021-11-26

Family

ID=78660544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111039243.2A Pending CN113709850A (en) 2021-09-06 2021-09-06 Control method and terminal equipment

Country Status (1)

Country Link
CN (1) CN113709850A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105246126A (en) * 2015-08-28 2016-01-13 深圳市唯传科技有限公司 Intelligent equipment access method, device and system
CN106535092A (en) * 2016-11-01 2017-03-22 惠州Tcl移动通信有限公司 Network sharing method, network accessing method and system
CN108966364A (en) * 2018-07-18 2018-12-07 奇酷互联网络科技(深圳)有限公司 Wi-Fi hotspot reconnection method, device, readable storage medium storing program for executing and mobile terminal
CN110622571A (en) * 2018-01-19 2019-12-27 华为技术有限公司 Network connection method, device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105246126A (en) * 2015-08-28 2016-01-13 深圳市唯传科技有限公司 Intelligent equipment access method, device and system
CN106535092A (en) * 2016-11-01 2017-03-22 惠州Tcl移动通信有限公司 Network sharing method, network accessing method and system
CN110622571A (en) * 2018-01-19 2019-12-27 华为技术有限公司 Network connection method, device and terminal
CN108966364A (en) * 2018-07-18 2018-12-07 奇酷互联网络科技(深圳)有限公司 Wi-Fi hotspot reconnection method, device, readable storage medium storing program for executing and mobile terminal

Similar Documents

Publication Publication Date Title
US11729594B2 (en) Network access method, device, and system
CN102045712B (en) Anti-monitoring method and system for mobile terminal
CN104254070B (en) WiFi cut-in method, intelligent terminal and routing device
WO2016000636A1 (en) Communications processing method and system
US20170141932A1 (en) Internet Access Traffic Sharing Method, Device and Terminal
US20150009862A1 (en) Wireless Network Connection Establishment Method and Terminal Device
CN103078954A (en) Remote monitoring method of mobile terminal, mobile terminal and control terminal
CN103826323A (en) Wireless network connection method, terminal and mobile terminal
CN102572836A (en) Method for accessing wireless network, portable mobile terminal and wireless network system
TW200948100A (en) User directed background transfer and data storage
US11739970B2 (en) Air-conditioning device control method and air-conditioning device
CN104584490A (en) Data transmitting method and device
CN105657712B (en) Access control method and device for WiFi hotspot
CN107979835A (en) A kind of eSIM cards and its management method
WO2016197809A2 (en) Access point switching method and device
CN105050085A (en) WiFi connecting method and device
CN102137342A (en) Message sending control method and relevant device and system
WO2013181941A1 (en) Method and device for accessing internet
WO2016202083A1 (en) Method and apparatus for controlling monitoring device
WO2021232770A1 (en) Auxiliary playback device and control method therefor, control apparatus, and readable storage medium
CN113709850A (en) Control method and terminal equipment
CN103108084B (en) A kind of anti-monitor method and system for mobile terminal
CN108616602B (en) Intelligent equipment control method and system based on short messages of Internet of things
CN108712280B (en) Network function management method and device, storage medium and intelligent terminal
CN107566418B (en) Security management method and access device

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