CN112422642A - Network connection control method, system, device and storage medium - Google Patents

Network connection control method, system, device and storage medium Download PDF

Info

Publication number
CN112422642A
CN112422642A CN202011200691.1A CN202011200691A CN112422642A CN 112422642 A CN112422642 A CN 112422642A CN 202011200691 A CN202011200691 A CN 202011200691A CN 112422642 A CN112422642 A CN 112422642A
Authority
CN
China
Prior art keywords
network connection
connection control
terminal equipment
control method
door lock
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
CN202011200691.1A
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011200691.1A priority Critical patent/CN112422642A/en
Publication of CN112422642A publication Critical patent/CN112422642A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/2814Exchanging control software or macros for controlling appliance services in a home automation network

Abstract

The invention discloses a network connection control method, which comprises the following steps: the intelligent door lock judges whether an leaving event occurs or not, and if yes, the leaving event is sent to the intelligent home server; the intelligent home server sends the home event to the terminal equipment; the terminal device determines a target network connection mode according to the leaving event, the position of the terminal device and the first preset range corresponding to the intelligent door lock, and controls the network connection mode of the terminal device according to the target network connection mode, so that the optimal network connection mode is selected for the terminal device, and user experience is improved. The invention also discloses a network connection control system, a network connection control device, an intelligent door lock, an intelligent home server, terminal equipment and a storage medium, so that the user experience is improved.

Description

Network connection control method, system, device and storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a method, system, apparatus, and storage medium for controlling network connection.
Background
At present, mobile terminal devices such as smart phones support Wireless-Fidelity (WIFI) networks and mobile networks. In order to ensure the internet speed of the user, switching between the WIFI network and the mobile network is generally required.
At present, when the network connection mode of the terminal device is determined between the WIFI network connection and the mobile network connection, the signal strength of the WIFI network is usually determined. However, there is no direct relationship between the signal strength of the WIFI network and whether the network can be accessed through the WIFI network. Therefore, in the process that the user leaves the coverage area of the WIFI network, although the WIFI network signal is good, the internet access speed is slow or the WIFI network is unavailable, so that the terminal device cannot be switched to the mobile network in time, and the user experience is reduced.
Disclosure of Invention
The invention mainly aims to provide a network connection control method, a system, a device, a terminal device and a storage medium, and aims to solve the technical problems that the existing determined network connection is slow or unavailable and the user experience is reduced.
In order to achieve the above object, the present invention provides a network connection control method, which is applied to a terminal device, and the network connection control method includes the following steps:
receiving an event of leaving home sent by an intelligent home server, wherein the event of leaving home is generated by an intelligent door lock;
determining a target network connection mode according to the departure event, the position of the terminal equipment and a first preset range corresponding to the intelligent door lock;
and controlling the network connection mode of the terminal equipment according to the target network connection mode.
In addition, to achieve the above object, the present invention further provides a network connection control system, including: the system comprises an intelligent door lock, an intelligent home server and terminal equipment;
the intelligent door lock judges whether a leaving event occurs or not, and if yes, the leaving event is sent to the intelligent home server;
the intelligent home server sends the leaving event to the terminal equipment;
the terminal equipment determines a target network connection mode according to the departure event, the position of the terminal equipment and a first preset range corresponding to the intelligent door lock;
and the terminal equipment controls the network connection mode of the terminal equipment according to the target network connection mode.
In addition, in order to achieve the above object, the present invention further provides a network connection control apparatus applied to a terminal device, including:
the receiving module is used for receiving an event of leaving home sent by the intelligent home server, and the event of leaving home is generated by the intelligent door lock;
the determining module is used for determining a target network connection mode according to the departure event, the position of the terminal equipment and a first preset range corresponding to the intelligent door lock;
and the control module is used for controlling the network connection mode of the terminal equipment according to the target network connection mode.
In addition, in order to achieve the above object, the present invention further provides an intelligent door lock, including:
the judging module is used for judging whether an off-home event occurs or not;
and the sending module is used for sending the leaving event to an intelligent home server if the leaving event is detected, so that the intelligent home server sends the leaving event to the terminal equipment, and the terminal equipment performs network connection control according to the leaving event.
In addition, in order to achieve the above object, the present invention further provides an intelligent home server, including:
the receiving module is used for receiving the leaving event sent by the intelligent door lock;
and the sending module is used for sending the leaving event to the terminal equipment so that the terminal equipment can carry out network connection control according to the leaving event.
In addition, to achieve the above object, the present invention also proposes an apparatus comprising: the intelligent home control system comprises a memory, a processor and one of a first network connection control program, a second network connection control program and a third network connection control program which are stored on the memory and run on the processor, wherein the first network connection control program realizes the step of the network connection control method on the terminal equipment side when executed by the processor, the second network connection control program realizes the step of the network connection control method on the intelligent door lock side when executed by the processor, and the third network connection control program realizes the step of the network connection control method on the intelligent home server side when executed by the processor. .
In addition, in order to achieve the above object, the present invention further provides a storage medium, in which one of a first network connection control program, a second network connection control program, and a third network connection control program is stored, the first network connection control program, when executed by a processor, implements the steps of the network connection control method on the terminal device side, the second network connection control program, when executed by the processor, implements the steps of the network connection control method on the smart door lock side, and the third network connection control program, when executed by the processor, implements the steps of the network connection control method on the smart home control device side.
The technical scheme of the invention adopts a network connection control method, which comprises the following steps: the intelligent door lock judges whether an leaving event occurs or not, and if yes, the leaving event is sent to the intelligent home server; the intelligent home server sends the home event to the terminal equipment; the terminal equipment determines a target network connection mode according to the departure event, the position of the terminal equipment and a first preset range corresponding to the intelligent door lock, and controls the network connection mode of the terminal equipment according to the target network connection mode; in other words, in the invention, the network connection mode of the terminal equipment is determined according to whether the leaving event occurs and the current position of the terminal equipment, so that the optimal network connection mode is selected for the terminal equipment, the condition that the internet surfing experience of a user is influenced due to the unavailable network is avoided, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a network connection control method according to a first embodiment of the invention;
fig. 3 is a flowchart illustrating a network connection control method according to a second embodiment of the invention;
fig. 4 is a flowchart illustrating a network connection control method according to a third embodiment of the present invention;
fig. 5 is a flowchart illustrating a network connection control method according to a fourth embodiment of the invention;
fig. 6 is a flowchart illustrating a network connection control method according to a fifth embodiment of the present invention;
fig. 7 is a flowchart illustrating a network connection control method according to a sixth embodiment of the invention;
fig. 8 is a flowchart illustrating a network connection control method according to a seventh embodiment of the invention;
fig. 9 is a block diagram of a network connection control apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The device can be a terminal device, an intelligent door lock and an intelligent home server. The terminal device may be a User Equipment (UE) such as a Mobile phone, a smart phone, a laptop, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle-mounted device, a wearable device, a computing device, a television, a monitoring device or other processing device connected to a wireless modem, a Mobile Station (MS), etc. The terminal device may be referred to as a user terminal, a portable terminal, a desktop terminal, etc.
Generally, the apparatus comprises: at least one processor 301, a memory 302, and one of a first network connection control program, a second network connection control program, and a third network connection control program stored in the memory and operable on the processor, where the first network connection control program is configured to implement a step on a terminal device side in the network connection control method according to any one of the following embodiments, the second network connection control program is configured to implement a step on an intelligent door lock side in the network connection control method according to any one of the following embodiments, and the third network connection control program is configured to implement a step on an intelligent home server side in the network connection control method according to any one of the following embodiments.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. The processor 301 may further include an AI (Artificial Intelligence) processor for processing operations related to the network connection control method so that the network connection control method model can be trained and learned autonomously, thereby improving efficiency and accuracy.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 301 to implement the network connection control method provided by the method embodiments herein.
In some embodiments, the apparatus may further comprise: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. Various peripheral devices may be connected to communication interface 303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display screen 305, and a power source 306.
The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WIFI (Wireless Fidelity) networks. In some embodiments, the rf circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to capture touch signals on or over the surface of the display screen 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the display screen 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 305 may be one, the front panel of the electronic device; in other embodiments, the display screens 305 may be at least two, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the display screen 305 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device. Even further, the display screen 305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 305 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 306 is used to power various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When the power source 306 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology. Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the network connection control device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
In addition, an embodiment of the present invention further provides a storage medium, where one of a first network connection control program, a second network connection control program, and a third network connection control program is stored in the storage medium, where the first network connection control program, when executed by a processor, implements a step on a terminal device side in the network connection control method according to any one of the following embodiments, the second network connection control program, when executed by the processor, implements a step on an intelligent door lock side in the network connection control method according to any one of the following embodiments, and the third network connection control program, when executed by the processor, implements a step on an intelligent home server side in the network connection control method according to any one of the following embodiments. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. It is determined that, by way of example, the program instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
It will be understood by those skilled in the art that all or part of the processes in the method according to any of the following embodiments may be implemented by a computer program to instruct associated hardware, and the network connection control program may be stored in a computer-readable storage medium, and when executed, may include the processes according to the embodiments of the methods described below. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Based on the above hardware structure, an embodiment of the network connection control method of the present invention is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a network connection control method according to a first embodiment of the present invention, where the network connection control method includes the following steps:
step S11: the intelligent door lock judges whether an event of leaving the home occurs.
In the embodiment of the invention, the intelligent door lock has the function of detecting whether the leaving event occurs. That is to say, the intelligent door lock can judge whether the event of leaving the home takes place according to the unblock condition. For example, the smart door lock can judge whether the leaving-home event occurs according to whether the unlocking is triggered based on a password, a key, a remote unlocking instruction, a fingerprint and the like, if the unlocking is triggered by the password, the key, the remote unlocking instruction, the fingerprint and the like, the fact that the smart door lock is unlocked by a person outside the door is indicated, and the fact that the returning-home event occurs is judged; if the unlocking is not triggered by a password, a key, a remote unlocking instruction, a fingerprint and the like, the intelligent door lock is opened by people in the door, and the occurrence of a leaving event is judged. Alternatively, for some smart door locks, which include an "away from home event" trigger button (including but not limited to a virtual button, a membrane button, a touch button, etc.), when the "away from home event" trigger button is triggered, it is determined that an away from home event has occurred. Of course, the intelligent door lock can also judge whether the leaving-home event occurs or not in other modes.
Consider that an intelligent home network may include at least two intelligent door locks, for example, a bedroom intelligent door lock 1 disposed on a door of a bedroom 1, a bedroom intelligent door lock 2 disposed on a door of a bedroom 2, and an entrance intelligent door lock disposed on an entrance door. In order to improve the accuracy of the determination, in this embodiment, the intelligent door lock is an intelligent door lock for entering the home, that is, step S11 includes: the intelligent door lock for entering the house judges whether an event of leaving the house occurs.
Step S12: if yes, the intelligent door lock sends the home event to the intelligent home server.
It can be understood that smart home (home automation) is a home that is a platform, and integrates devices related to home life by using a comprehensive wiring technology, a network communication technology, a security technology, an automatic control technology, and an audio/video technology, so as to construct an efficient management system for home facilities and home schedule transactions. The intelligent home server is used for managing the intelligent home equipment under the intelligent home network corresponding to the intelligent home server or providing service for the intelligent home equipment under the intelligent home network corresponding to the intelligent home server. The smart home server may be a cloud server, and certainly, may also be a server in other forms.
In this embodiment, when the smart door lock determines that the leaving event occurs, the leaving event is sent to the smart home server, so that the smart home server sends the leaving event to the terminal device, and the terminal device performs network connection control according to the leaving event.
Step S13: the intelligent home server sends the home event to the terminal equipment.
After receiving the leaving event sent by the intelligent door lock, the intelligent home server sends the leaving event to the terminal device, so that the terminal device performs network connection control according to the leaving event.
Step S14: and the terminal equipment determines a target network connection mode according to the departure event, the position of the terminal equipment and the first preset range corresponding to the intelligent door lock.
The position of the terminal device is the current position of the terminal device. The terminal device may be located based on a Global Positioning System (GPS), a Beidou satellite navigation System, or the like to obtain a position of the terminal device.
The first preset range is a range corresponding to the intelligent door lock, that is, the intelligent door lock is arranged in the first preset range. The first preset range can be flexibly set according to actual needs. In one example, the setting may be performed according to a position of the "smart door lock", for example, an area surrounded by a preset first distance as a radius around the position of the "smart door lock" may be set as the first preset range. Wherein the preset first distance may be 50 meters, 100 meters, etc. For the position of the "intelligent door lock", it may be set by the user, for example, the user may input a position information as the position of the "intelligent door lock", or the user may locate the "intelligent door lock" near the "intelligent door lock" through the terminal device to obtain the position of the "intelligent door lock". Or, since the position of the smart door lock is the position of the "home", the position of the "smart door lock" may also be obtained by the smart door lock or other fixed smart home devices (e.g., an air conditioner, a smart television, a range hood, etc.) in the smart home network corresponding to the smart door lock, which have a positioning function.
The network connection mode comprises WIFI network connection, mobile network connection and the like.
In the embodiment of the invention, after the terminal equipment receives the leaving event sent by the intelligent home server, the target network connection mode is determined according to the leaving event, the position of the terminal equipment and the first preset range corresponding to the intelligent door lock.
Step S15: and the terminal equipment controls the network connection mode of the terminal equipment according to the target network connection mode.
In this embodiment, after determining the target network connection mode, the terminal device controls the network connection mode of the terminal device according to the target network connection mode, that is, the network connection mode of the terminal device is set as the target network connection mode.
In one embodiment, step S15 includes: the terminal equipment judges whether the current network connection mode is consistent with the target network connection mode, and if so, the current network connection mode is kept; and if not, switching the network connection mode to the target network connection mode.
The embodiment provides a network connection control method, which comprises the following steps: the intelligent door lock judges whether an leaving event occurs or not, and if yes, the leaving event is sent to the intelligent home server; the intelligent home server sends the home event to the terminal equipment; the terminal equipment determines a target network connection mode according to the departure event, the position of the terminal equipment and a first preset range corresponding to the intelligent door lock, and controls the network connection mode of the terminal equipment according to the target network connection mode; that is to say, in this embodiment, the network connection mode of the terminal device is determined according to whether the leaving event occurs and the current position of the terminal device, so that an optimal network connection mode is selected for the terminal device, the situation that the internet access experience of a user is affected due to unavailable network is avoided, and the user experience is improved.
Based on the first embodiment, a second embodiment of the network connection control method of the present invention is proposed, and referring to fig. 3, in this embodiment, step S14 includes:
step S141: the terminal equipment judges whether the position of the terminal equipment is within a first preset range.
After receiving the leaving event sent by the intelligent home control device, the terminal device indicates that a user leaves the home, and in order to further determine whether the user of the terminal device leaves the home, in this embodiment, the terminal device determines whether the terminal device is located in a first preset range corresponding to the intelligent door lock, if the terminal device is located in the first preset range corresponding to the intelligent door lock, the terminal device indicates to a great extent that the user of the terminal device leaves the home, and if the terminal device is not located in the first preset range corresponding to the intelligent door lock, the terminal device indicates that the user of the terminal device does not leave the home. That is to say, after the leaving-home event sent by the terminal device intelligent home control device, the position of the terminal device is obtained, and whether the terminal device is in the first preset range corresponding to the intelligent door lock is judged based on the position of the terminal device.
Step S142: and if so, the terminal equipment determines that the target connection mode is mobile network connection.
If the terminal equipment is in the first preset range, the terminal equipment is near the home, and the user of the terminal equipment leaves the home to the greatest extent. In the embodiment, when the terminal device is determined to be within the first position range, the target connection mode is determined to be mobile network connection.
In this embodiment, step S15 includes:
step S151: and the terminal equipment judges whether the network connection mode of the terminal equipment is WIFI network connection.
Step S152: if so, the terminal equipment switches the network connection mode of the terminal equipment from the WIFI network connection to the mobile network connection.
If the network connection mode of the terminal device is WIFI network connection and the target network connection mode is mobile network connection, the terminal device switches the network connection mode of the terminal device from WIFI network connection to mobile network connection.
According to the network connection control method provided by the embodiment, after the terminal equipment receives the leaving-home event, whether the position of the terminal equipment is within a first preset range corresponding to the intelligent door lock is judged; if the terminal equipment is in the first preset range and the network connection of the terminal equipment is WIFI network connection, switching the network connection of the terminal equipment from the WIFI network connection to mobile network connection; that is to say, in this embodiment, through the position of intelligent lock and terminal device, when perceiving that this terminal device leaves the house, in time switch over the network connection of terminal device to mobile network connection by the WIFI network connection to guarantee user's online experience, avoid in the process that the user leaves the WIFI network coverage, do not in time switch over the WIFI network connection to mobile network connection, lead to the speed of surfing the net slow or by the WIFI network is unavailable, influence the condition that user's experience of surfing the net.
Based on the second embodiment, a third embodiment of the network connection control method of the present invention is provided, in this embodiment, referring to fig. 4, after step S142, the network connection control method further includes:
step S16: and disabling the WIFI connection function.
That is, if the terminal device is within the first preset range, the terminal device is prohibited from accessing any WIFI network. Therefore, the problems that the internet surfing speed is slow or the network is unavailable and the like caused by the fact that the terminal equipment is accessed into other WIFI networks or re-accessed into the WIFI network connected before in the leaving process of the user can be avoided.
In this embodiment, the execution sequence of step S15 and step S16 is not limited, and step S15 and step S16 may be executed simultaneously; step S15 may be executed first, and then step S16 may be executed; alternatively, step S16 may be executed first, and then step S15 may be executed.
According to the network connection control method provided by the embodiment, if the terminal device is within the first preset range, the WIFI connection function is disabled, so that the problems that the internet access speed is slow or the network is unavailable and the like due to the fact that a user accesses other WIFI networks or re-accesses the previously connected WIFI network in the process of leaving the terminal device are solved.
Based on the third embodiment, a fourth embodiment of the network connection control method of the present invention is proposed, and referring to fig. 5, after step S16, the network connection control method further includes:
step S17: and the terminal equipment judges whether the terminal equipment is positioned outside a second preset range corresponding to the intelligent door lock.
The second preset range is a range corresponding to the intelligent door lock, that is, the intelligent door lock is arranged in the second preset range. The second preset range is greater than or equal to the first preset position range, that is, the second preset range may be the same as the first preset position range, or the second preset range is greater than the first preset position range. In one example, the second preset range may be set according to a position of the "smart door lock", for example, an area surrounded by taking the position of the "smart door lock" as a center and taking the preset second distance as a radius may be set as the second preset range. The preset second distance is greater than or equal to the preset first distance, and the preset second distance can be 500 meters, 1000 meters and the like. For the position of the "intelligent door lock", it may be set by the user, for example, the user may input a position information as the position of the "intelligent door lock", or the user may locate the "intelligent door lock" near the "intelligent door lock" through the terminal device to obtain the position of the "intelligent door lock". Or, because the position of the smart door lock is the position of the "home", the position of the smart door lock may also be obtained by the smart door lock or other fixed smart home devices (e.g., an air conditioner, a smart television, a range hood, etc.) in the smart home network corresponding to the smart door lock, which have a positioning function. In another example, the second preset range may also be set according to a WIFI network coverage of a router corresponding to the smart door lock, so that the terminal device cannot access the WIFI network corresponding to the router when leaving the second preset range. It should be understood that the router is in the same smart home network as the smart door lock.
Step S18: and if so, the terminal equipment starts the WIFI connection function.
And if the terminal equipment is located outside the second preset range, starting a WIFI connection function, namely, the terminal equipment can select a corresponding network to access from the searched WIFI network and the mobile network according to a preset rule based on the searched WIFI network.
According to the network connection control method provided by the embodiment, after the WIFI connection function is disabled, the terminal device automatically enables the WIFI connection function when the terminal device is out of the second preset range, so that the terminal device can access other WIFI networks.
Based on the third embodiment, a fifth embodiment of the network connection control method of the present invention is proposed, and referring to fig. 6, after step S16, the network connection control method further includes:
step S19: and the terminal equipment judges whether the service set identification of the router corresponding to the intelligent door lock can be searched.
The router corresponding to the intelligent door lock and the intelligent door lock are located in the same intelligent home network, namely, the router and the intelligent door lock are arranged at the same position.
The SSID (Service Set Identifier) of the router is an SSID of the WIFI network transmitted by the router.
After the WIFI connection function of the terminal equipment is forbidden, the terminal equipment judges whether the SSID of the router corresponding to the intelligent door lock can be searched. The terminal device can judge whether the SSID of the router corresponding to the intelligent door lock can be searched in real time or not, and also can judge whether the SSID of the router corresponding to the intelligent door lock can be searched at regular intervals.
Step S20: and if not, starting the WIFI connection function by the terminal equipment.
When the terminal equipment cannot search the SSID of the router corresponding to the intelligent door lock, the terminal equipment cannot access the WIFI network corresponding to the router any more, and therefore the WIFI connection function is started, so that the terminal equipment can access other WIFI networks according to actual conditions.
According to the network connection control method provided by the embodiment, after the WIFI connection function is disabled, when the terminal device cannot search the SSID of the router, the WIFI connection function is automatically enabled, so that the terminal device can access other WIFI networks.
Based on the third embodiment, a sixth embodiment of the network connection control method of the present invention is proposed, and referring to fig. 7, after step S16, the network connection control method further includes:
step S21: after a preset time interval, the terminal equipment judges whether the SSID of the router corresponding to the intelligent door lock can be searched.
In this embodiment, after disabling the WIFI connection function, after a preset time interval, the terminal device determines whether the SSID of the router corresponding to the intelligent door lock can be searched. The router corresponding to the intelligent door lock and the intelligent door lock belong to the same intelligent home network. The preset time interval can be flexibly set according to actual needs, and for example, can be set to 3 minutes, 5 minutes, and the like.
Step S22: and if not, starting the WIFI connection function by the terminal equipment.
And if the SSID of the router corresponding to the intelligent door lock cannot be searched, starting the WIFI connection function, and ending.
Step S23: if yes, the process returns to step S21.
And if the SSID of the home router corresponding to the intelligent door lock can be searched, turning to step S21, judging whether the SSID of the router corresponding to the intelligent door lock can be searched again after a preset time interval, circulating until the mobile terminal device is located outside a third preset range corresponding to the intelligent door lock, starting a WIFI connection function, and finishing the circulation.
That is to say, in this embodiment, after the WIFI connection function of the terminal device is prohibited, it is determined at regular intervals whether the terminal device can also search for the SSID of the home router, and if the terminal device cannot search for the SSID, the WIFI connection function is enabled, and the loop is ended; if the mobile terminal device can be searched, judging whether the terminal device can search the SSID of the home router again after a certain time, circulating until the mobile terminal device is located outside a third preset range corresponding to the intelligent door lock, recovering the WIFI connection function of the terminal device, and finishing the circulation.
It should be noted that the third preset range is a range corresponding to the intelligent door lock, that is, the intelligent door lock is set in the second preset position range. The third preset range is greater than or equal to the first preset position range, that is, the third preset range may be the same as the first preset position range, or the third preset range is greater than the first preset position range. In one example, the third preset range may be set according to a position of the "smart door lock", for example, an area surrounded by taking the position of the "smart door lock" as a center and taking a preset third distance as a radius may be set as the third preset range. The preset third distance is greater than or equal to the preset first distance, and the preset third distance may be 200 meters, 250 meters, and the like. For the position of the "intelligent door lock", it may be set by the user, for example, the user may input a position information as the position of the "intelligent door lock", or the user may locate the "intelligent door lock" near the "intelligent door lock" through the terminal device to obtain the position of the "intelligent door lock". Or, because the position of the smart door lock is the position of the "home", the position of the smart door lock may also be obtained by the smart door lock or other fixed smart home devices (e.g., an air conditioner, a smart television, a range hood, etc.) in the smart home network corresponding to the smart door lock, which have a positioning function. In another example, the third preset range may also be set according to a WIFI network coverage of a router corresponding to the smart door lock, so that the terminal device cannot access the WIFI network corresponding to the router any more when leaving the third preset range. It should be understood that the router is in the same smart home network as the smart door lock.
According to the network connection control method provided by the embodiment, after the WIFI connection function of the terminal device is forbidden, when the terminal device cannot search the SSID of the home router or the terminal device leaves the second preset position range, the WIFI connection function is automatically enabled, so that the terminal device can access other WIFI networks.
Based on the first embodiment, a seventh embodiment of the network connection control method of the present invention is proposed, and referring to fig. 8, before step S13, the network connection control method further includes:
step S24: and the terminal equipment sends an off-home event booking request to the intelligent home server.
The terminal equipment sends a leaving event booking request to the intelligent home server, so that the intelligent home server sends a leaving event to the terminal equipment after receiving the leaving event.
Step S25: and the intelligent home server adds the terminal equipment to the target equipment list.
In this embodiment, step S13 includes: and the intelligent home server sends the home event to the terminal equipment in the target equipment list.
According to the network connection control method provided by the embodiment, the intelligent home server sends the leaving event to the terminal equipment in the target equipment list, so that the situation that the intelligent home server sends the leaving event to other equipment which does not need to acquire the leaving event and wastes resources is avoided.
Based on the first embodiment, an eighth embodiment of the network connection control method of the present invention is proposed, and before step S14, the network connection control method further includes: the terminal device judges whether the network connection of the terminal device is WIFI network connection, if so, the step S14 is executed; if not, ending.
In this embodiment, after the terminal device receives the leaving event sent by the smart home server, whether the network connection of the terminal device is the WIFI network connection may also be determined. In order to improve the accuracy of judging, whether terminal equipment judges terminal equipment's network connection for WIFI network connection includes: and judging whether the current network connection of the terminal equipment is the WIFI network of the router corresponding to the intelligent door lock.
According to the network connection control method provided by the embodiment, after the terminal device receives the leaving event sent by the intelligent home server, when the network connection of the terminal device is judged to be the WIFI network connection, the terminal device determines the target network connection mode according to the leaving event, the position of the terminal device and the first preset range corresponding to the intelligent door lock, so that the situation that when the leaving event occurs, the network connection of the terminal device is the mobile network connection, and therefore resources are wasted to execute subsequent steps is avoided.
Based on the second embodiment, a ninth embodiment of the network connection control method according to the present invention is provided, in this embodiment, step S142 includes: if so, the terminal equipment judges whether the terminal equipment is in a moving state, and if so, the target connection mode is determined to be mobile network connection.
In view of that more than one terminal device is located within the first preset range, in order to further determine which terminal device user leaves home and improve the accuracy of the determination, in this embodiment, if the terminal device is located within the first preset range, it is determined whether the terminal device is in a mobile state, and if the terminal device is in the mobile state, it is greatly indicated that the terminal device user leaves home, and therefore, it is determined that the target connection mode is mobile network connection.
The terminal equipment can acquire the motion parameters of the terminal equipment through a built-in gyroscope and other devices, so that whether the terminal equipment is in a moving state or not is judged. Of course, the terminal device may also determine whether the terminal device is in the moving state in other manners.
In the network connection control method provided in this embodiment, after it is determined that the terminal device is in the first preset range, based on the motion state of the terminal device, it is further determined whether the user of the terminal device leaves home, and if the terminal device is in the mobile state, it indicates that the user of the terminal device leaves home, so that it is determined that the target connection mode is mobile network connection, and accuracy of the determination is improved.
In an embodiment of the present invention, on the basis of the foregoing network connection control method embodiment, a network connection control apparatus is provided, referring to fig. 9, where fig. 9 is a schematic structural diagram of a first embodiment of the network connection control apparatus according to the present invention, and the network connection control apparatus includes:
and the receiving module 90 is used for receiving the leaving event sent by the intelligent home server, and the leaving event is generated by the intelligent door lock.
The determining module 91 is configured to determine a target network connection mode according to the departure event, the location of the terminal device, and the first preset range corresponding to the intelligent door lock.
And the control module 92 is configured to control a network connection mode of the terminal device according to the target network connection mode.
It should be noted that the network connection control apparatus may further optionally include a corresponding module to implement other steps on the terminal device side in the network connection control method.
In an embodiment of the present invention, on the basis of the foregoing network connection control method embodiment, an intelligent door lock is provided, where the intelligent door lock includes:
and the judging module is used for judging whether an off-home event occurs.
And the sending module is used for sending the leaving event to the intelligent home server if the event is yes, so that the intelligent home server sends the leaving event to the terminal equipment, and the terminal equipment performs network connection control according to the leaving event.
It should be noted that the network connection control device may further optionally include a corresponding module to implement other steps on the intelligent door lock side in the network connection control method.
In an embodiment of the present invention, on the basis of the foregoing network connection control method embodiment, an intelligent home server is provided, including:
and the receiving module is used for receiving the leaving event sent by the intelligent door lock.
And the sending module is used for sending the leaving event to the terminal equipment so that the terminal equipment can carry out network connection control according to the leaving event.
It should be noted that the network connection control apparatus may further optionally include a corresponding module to implement other steps at the smart home server side in the network connection control method.
In an embodiment of the present invention, a network connection control system is provided, including: aforementioned intelligent lock, intelligent house control server and terminal equipment.
The intelligent door lock judges whether an out-of-home event occurs or not, and if yes, the out-of-home event is sent to the intelligent home server.
The intelligent home server sends the home event to the terminal equipment.
And the terminal equipment determines a target network connection mode according to the departure event, the position of the terminal equipment and the first preset range corresponding to the intelligent door lock.
And the terminal equipment controls the network connection mode of the terminal equipment according to the target network connection mode.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (13)

1. A network connection control method is applied to terminal equipment, and is characterized by comprising the following steps:
receiving an event of leaving home sent by an intelligent home server, wherein the event of leaving home is generated by an intelligent door lock;
determining a target network connection mode according to the departure event, the position of the terminal equipment and a first preset range corresponding to the intelligent door lock;
and controlling the network connection mode of the terminal equipment according to the target network connection mode.
2. The network connection control method according to claim 1, wherein the determining a target network connection mode according to the leaving event, the location of the terminal device, and a first preset range corresponding to the intelligent door lock comprises:
judging whether the position of the terminal equipment is within the first preset range or not;
and if so, determining that the target connection mode is mobile network connection.
3. The network connection control method according to claim 2, wherein the controlling the network connection mode of the terminal device according to the target network connection mode comprises:
judging whether the network connection mode of the terminal equipment is WIFI network connection or not;
if so, switching the network connection mode of the terminal equipment from WIFI network connection to mobile network connection; and/or the presence of a gas in the gas,
after the target connection mode is determined to be mobile network connection, the network connection control method further includes:
and disabling the WIFI connection function.
4. The network connection control method of claim 3, wherein after disabling the WIFI connectivity functionality, the network connection control method further comprises:
judging whether the terminal equipment is located outside a second preset range corresponding to the intelligent door lock, wherein the second preset range is larger than or equal to the first preset range;
and if so, starting the WIFI connection function.
5. The network connection control method of claim 3, wherein after disabling the WIFI connectivity functionality, the network connection control method further comprises:
judging whether a Service Set Identifier (SSID) of a router corresponding to the intelligent door lock can be searched;
if not, starting the WIFI connection function.
6. The network connection control method of claim 3, wherein after disabling the WIFI connectivity functionality, the network connection control method further comprises:
after a preset time interval, judging whether the SSID of the router corresponding to the intelligent door lock can be searched;
if not, starting a WIFI connection function;
if yes, returning to the step of judging whether the SSID of the router corresponding to the intelligent door lock can be searched after a preset time interval, and circulating to the condition that the terminal equipment is located outside a third preset range corresponding to the intelligent door lock, wherein the third preset range is larger than or equal to the first preset position range. .
7. The network connection control method according to any one of claims 1 to 6, wherein before receiving the leaving event sent by the smart home server, the network connection control method further comprises:
and sending a leaving event booking request to the intelligent home server, so that the intelligent home server sends the leaving event to the terminal equipment after receiving the leaving event.
8. A network connection control method is applied to an intelligent door lock and comprises the following steps:
judging whether an off-home event occurs;
if yes, the leaving event is sent to an intelligent home server, so that the intelligent home server sends the leaving event to a terminal device, and the terminal device can perform network connection control according to the leaving event.
9. A network connection control method is applied to an intelligent home server and comprises the following steps:
receiving an leaving event sent by an intelligent door lock;
and sending the leaving event to the terminal equipment so that the terminal equipment performs network connection control according to the leaving event.
10. The network connection control method according to claim 9, wherein before the leaving event is transmitted to the terminal device, the network connection control method further comprises:
receiving an off-home event booking request sent by the terminal equipment;
adding the terminal equipment to a target equipment list;
the sending the leaving-home event to the terminal device includes:
and sending the terminal equipment to the terminal equipment in the target equipment list.
11. A network connection control system, characterized in that the network connection control system comprises: the system comprises an intelligent door lock, an intelligent home server and terminal equipment;
the intelligent door lock judges whether a leaving event occurs or not, and if yes, the leaving event is sent to the intelligent home server;
the intelligent home server sends the leaving event to the terminal equipment;
the terminal equipment determines a target network connection mode according to the departure event, the position of the terminal equipment and a first preset range corresponding to the intelligent door lock;
and the terminal equipment controls the network connection mode of the terminal equipment according to the target network connection mode.
12. An apparatus, characterized in that the apparatus comprises: a memory, a processor and one of a first network connection control program, a second network connection control program and a third network connection control program stored on the memory and running on the processor, the first network connection control program when executed by the processor implementing the steps of the network connection control method of any one of claims 1 to 7, the second network connection control program when executed by the processor implementing the steps of the network connection control method of claim 8, the third network connection control program when executed by the processor implementing the steps of the network connection control method of claim 9 or 10.
13. A storage medium having stored thereon one of a first network connection control program which, when executed by a processor, implements the steps of the network connection control method of any one of claims 1 to 7, a second network connection control program which, when executed by a processor, implements the steps of the network connection control method of claim 8, and a third network connection control program which, when executed by a processor, implements the steps of the network connection control method of claim 9 or 10.
CN202011200691.1A 2020-10-30 2020-10-30 Network connection control method, system, device and storage medium Pending CN112422642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011200691.1A CN112422642A (en) 2020-10-30 2020-10-30 Network connection control method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011200691.1A CN112422642A (en) 2020-10-30 2020-10-30 Network connection control method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN112422642A true CN112422642A (en) 2021-02-26

Family

ID=74827978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011200691.1A Pending CN112422642A (en) 2020-10-30 2020-10-30 Network connection control method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN112422642A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394510A (en) * 2013-12-21 2015-03-04 滁州惠智科技服务有限公司 Traffic saving method for mobile terminal
CN104853393A (en) * 2015-04-29 2015-08-19 努比亚技术有限公司 Network switching method and network switching device for mobile terminals
EP2930704A1 (en) * 2014-04-08 2015-10-14 Xiaomi Inc. Method and device for remote intelligent control
CN105163355A (en) * 2015-09-29 2015-12-16 努比亚技术有限公司 Method and device for switching networks of mobile terminal
CN105472678A (en) * 2014-07-31 2016-04-06 腾讯科技(深圳)有限公司 Wireless network switching method, wireless network switching device and terminal equipment
CN105636089A (en) * 2015-04-23 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Access control method and access control device for wireless local area network
CN105682167A (en) * 2016-03-31 2016-06-15 太仓煜和网络科技有限公司 Network switching method applied to communication terminal and communication terminal thereof
WO2016173189A1 (en) * 2015-04-29 2016-11-03 中兴通讯股份有限公司 Smart household control method, device and system
CN107360601A (en) * 2017-08-16 2017-11-17 维沃移动通信有限公司 A kind of method for switching network, mobile terminal and computer-readable recording medium
CN107466077A (en) * 2017-07-24 2017-12-12 维沃移动通信有限公司 A kind of method for switching network and mobile terminal
CN109597314A (en) * 2018-12-17 2019-04-09 深圳市欧瑞博科技有限公司 It is linked based on intelligent door lock and calls method and system, the smart home system of elevator

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394510A (en) * 2013-12-21 2015-03-04 滁州惠智科技服务有限公司 Traffic saving method for mobile terminal
EP2930704A1 (en) * 2014-04-08 2015-10-14 Xiaomi Inc. Method and device for remote intelligent control
CN105472678A (en) * 2014-07-31 2016-04-06 腾讯科技(深圳)有限公司 Wireless network switching method, wireless network switching device and terminal equipment
CN105636089A (en) * 2015-04-23 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Access control method and access control device for wireless local area network
CN104853393A (en) * 2015-04-29 2015-08-19 努比亚技术有限公司 Network switching method and network switching device for mobile terminals
WO2016173189A1 (en) * 2015-04-29 2016-11-03 中兴通讯股份有限公司 Smart household control method, device and system
CN105163355A (en) * 2015-09-29 2015-12-16 努比亚技术有限公司 Method and device for switching networks of mobile terminal
CN105682167A (en) * 2016-03-31 2016-06-15 太仓煜和网络科技有限公司 Network switching method applied to communication terminal and communication terminal thereof
CN107466077A (en) * 2017-07-24 2017-12-12 维沃移动通信有限公司 A kind of method for switching network and mobile terminal
CN107360601A (en) * 2017-08-16 2017-11-17 维沃移动通信有限公司 A kind of method for switching network, mobile terminal and computer-readable recording medium
CN109597314A (en) * 2018-12-17 2019-04-09 深圳市欧瑞博科技有限公司 It is linked based on intelligent door lock and calls method and system, the smart home system of elevator

Similar Documents

Publication Publication Date Title
RU2669715C1 (en) Blocking and unlocking system and key block
CN110072221B (en) Bluetooth scanning method and electronic equipment
US8923891B2 (en) Intelligent location tagging for deterministic device behavior
CN111432339A (en) Near field communication card switching method and device, storage medium and electronic equipment
CN109089297B (en) Network searching method and terminal
CN108702414B (en) Screen locking method and device and computer readable storage medium
EP2649859B1 (en) Automatically enabling wireless communication
US8804680B2 (en) System and method for managing wireless connections and radio resources
CN111758095A (en) Method and terminal for quickly opening application or application function
CN103596635A (en) Method for controlling wireless fidelity device in terminal, controlling device and terminal
CN112436985A (en) Network distribution method, device, terminal equipment and storage medium
KR101808696B1 (en) Mobile terminal and method for controlling of thereof
CN114257960B (en) Bluetooth connection method and device
CN109992375B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN113408006A (en) Monitoring data access method and device, indoor monitoring system and storage medium
CN113326204B (en) Substation system testing method and device, terminal equipment and storage medium
CN110533800B (en) Intelligent door lock control method and device, electronic equipment and storage medium
CN112351097A (en) Device control method, device, sending end and storage medium
CN112566244A (en) Device positioning method and device, terminal device and storage medium
CN112422642A (en) Network connection control method, system, device and storage medium
KR101717163B1 (en) Mobile Terminal And Method Of Performing Data Communication Using The Same
CN113225234B (en) Asset detection method, device, terminal equipment and computer readable storage medium
US10715652B2 (en) Solution for controlling an operating mode of a mobile terminal
JP2009159405A (en) Access control method of mobile terminal and system as well as computer program for carrying out the control method
CN111026456B (en) Application management method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination