CN109168181B - Method and device for controlling network connection of terminal - Google Patents

Method and device for controlling network connection of terminal Download PDF

Info

Publication number
CN109168181B
CN109168181B CN201811074764.XA CN201811074764A CN109168181B CN 109168181 B CN109168181 B CN 109168181B CN 201811074764 A CN201811074764 A CN 201811074764A CN 109168181 B CN109168181 B CN 109168181B
Authority
CN
China
Prior art keywords
terminal
internet
interface
access point
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811074764.XA
Other languages
Chinese (zh)
Other versions
CN109168181A (en
Inventor
李嘉德
彭继兵
孙桃林
陈祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Pantum Electronics Co Ltd
Original Assignee
Zhuhai Pantum Electronics 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 Zhuhai Pantum Electronics Co Ltd filed Critical Zhuhai Pantum Electronics Co Ltd
Priority to CN201811074764.XA priority Critical patent/CN109168181B/en
Publication of CN109168181A publication Critical patent/CN109168181A/en
Application granted granted Critical
Publication of CN109168181B publication Critical patent/CN109168181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • H04W36/0094Definition of hand-off measurement parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Facsimiles In General (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method and a device for controlling network connection of a terminal, wherein the method comprises the following steps: the control terminal is wirelessly connected with an access point of the image forming device; judging whether a target operation executed by a terminal needs to access the Internet or not; if the target operation executed by the terminal requires accessing the internet, switching the access point of the image forming apparatus to which the terminal is currently connected to the access point capable of accessing the internet; after the terminal performs the target operation, the control terminal disconnects from an access point that can access the internet, and the control terminal re-wirelessly connects with the access point of the image forming apparatus. Therefore, the technical scheme provided by the embodiment of the invention can solve the problem that the network switching operation is complicated and easy to make mistakes in the prior art.

Description

Method and device for controlling network connection of terminal
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of internet, and in particular, to a method and an apparatus for controlling network connection of a terminal.
[ background of the invention ]
Mobile printing is now increasingly used. An image forming apparatus such as a printer supports WI-FI connection, and a user can establish wireless connection with the printer via a mobile phone and send a print job to the printer via the mobile phone.
In the prior art, a printer has an Access Point (AP) function, that is, the printer may be used as an AP to send out a broadcast, where the broadcast includes an SSID (Service Set Identifier), and a mobile phone may search for the SSID, and a user selects the SSID in a Wi-Fi setting of the mobile phone and inputs a password, so that the mobile phone and the printer establish a direct connection. However, in this connection mode, the mobile phone cannot execute web page printing or other functions requiring access to the internet.
As shown in fig. 1, the printer 103 itself includes an access point 105, and broadcasts including the SSID of the access point 105. The handset 104 can search for the SSID of the access point 105, establish a connection with the access point 105 based on the SSID of the access point 105 and the corresponding authentication key, and search for the printer 103 to establish a direct connection therewith without establishing a connection through another access point.
When the APP (Application) of the printer 103 is installed in the mobile phone 104, and the mobile phone 104 is connected to the access point 105 of the printer 103, the internet cannot be accessed, and therefore, when web printing or web facsimile is performed on the APP, a prompt that the internet cannot be accessed often appears, as shown in fig. 2. The method in the prior art needs a user to quit the APP of the printer 103 to set the Wi-Fi of the mobile phone 104 to be connected to the access point 101, reopen the APP and successfully access the webpage, then quit the APP of the printer 103 to set the Wi-Fi of the mobile phone 104 to be connected to the access point 105 of the printer 103 again, and then send the webpage successfully accessed to the printer 103 for printout. The prior art is very tedious to operate, users lacking network knowledge are very puzzled, and operation errors are easy to occur.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a method and an apparatus for controlling network connection of a terminal, so as to solve the problem that network switching operations in the prior art are complicated and prone to errors.
In one aspect, an embodiment of the present invention provides a method for controlling network connection of a terminal, where the method includes: the control terminal is wirelessly connected with an access point of the image forming device; judging whether the target operation executed by the terminal needs to access the Internet or not; if the target operation executed by the terminal requires to access the Internet, switching an access point of the image forming apparatus to which the terminal is currently connected to an access point capable of accessing the Internet; after the terminal performs the target operation, controlling the terminal to disconnect from an access point that can access the internet and to reconnect wirelessly with the access point of the image forming apparatus.
Further, the step of judging whether the target operation executed by the terminal needs to access the internet or not comprises the following steps: judging whether the target operation executed in an interface of an application program of the image forming device running in the terminal is a preset operation or not, wherein the preset operation is an operation needing to access the Internet; determining that the target operation performed by the terminal requires access to the internet if the target operation performed in an interface of an application of the image forming apparatus is the preset operation.
Further, after the terminal performs the target operation, controlling the terminal to disconnect from an access point capable of accessing the internet includes: judging whether a new target operation performed after the target operation is executed in an interface of an application program of the image forming apparatus is the preset operation; and if the new target operation performed after the target operation is performed is not the preset operation, controlling the terminal to disconnect from an access point capable of accessing the Internet.
Further, if the target operation performed by the terminal requires access to the internet, switching the access point of the image forming apparatus to which the terminal is currently connected to an access point capable of accessing the internet includes: if the target operation executed by the terminal needs to access the Internet, judging whether an access point of the image forming device currently connected with the terminal can be connected to the Internet or not; and if the access point of the image forming apparatus to which the terminal is currently connected cannot be connected to the internet, switching the access point to which the terminal is currently connected to an access point capable of accessing the internet.
In one aspect, an embodiment of the present invention provides an apparatus for controlling network connection of a terminal, where the apparatus includes: a first control unit for controlling the terminal to wirelessly connect with an access point of the image forming apparatus; the judging unit is used for judging whether the target operation executed by the terminal needs to access the Internet or not; a switching unit configured to switch an access point of the image forming apparatus to which the terminal is currently connected to an access point capable of accessing the internet if the target operation performed by the terminal requires access to the internet; a second control unit configured to control the terminal to disconnect from an access point capable of accessing the internet and to control the terminal to re-wirelessly connect with the access point of the image forming apparatus after the terminal performs the target operation.
Further, the judging unit includes: a first judging subunit, configured to judge whether the target operation executed in an interface of an application program of the image forming apparatus in which the terminal is running is a preset operation, where the preset operation is an operation that requires access to the internet; a first determining subunit configured to determine that the target operation performed by the terminal requires access to the internet if the target operation performed in an interface of an application of the image forming apparatus is the preset operation.
Further, the second control unit includes: a second judgment subunit operable to judge whether a new target operation performed after the target operation is performed in an interface of an application of the image forming apparatus is the preset operation; and the control subunit is used for controlling the terminal to disconnect the access point which can access the internet if the new target operation performed after the target operation is executed is not the preset operation.
Further, the switching unit includes: a third judging subunit configured to judge whether an access point of the image forming apparatus to which the terminal is currently connected can be connected to the internet if the target operation performed by the terminal requires access to the internet; a switching subunit configured to switch the access point to which the terminal is currently connected to an access point that can access the internet if the access point of the image forming apparatus to which the terminal is currently connected cannot be connected to the internet.
In one aspect, an embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the method for controlling network connection of a terminal.
In the embodiment of the invention, the control terminal is wirelessly connected with the access point of the image forming device, whether the target operation executed by the terminal needs to access the Internet is judged, if the target operation executed by the terminal needs to access the Internet, the access point of the image forming device currently connected with the terminal is switched to the access point capable of accessing the Internet, after the terminal executes the target operation, the control terminal is disconnected from the access point capable of accessing the Internet and is wirelessly connected with the access point of the image forming device again, the network switching operation is simple, the problem that the network switching operation in the prior art is complicated and easy to make mistakes is solved, and the technical effect of quickly switching the network is achieved.
[ description of the 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 to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a schematic diagram of a network connection according to the prior art;
FIG. 2 is a schematic illustration of a page hint according to the prior art;
fig. 3 is a flow chart of an alternative method of controlling network connectivity of a terminal in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of an alternative network connection according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative page hint in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative Wi-Fi setup interface for a handset, according to an embodiment of the invention;
fig. 7 is a schematic diagram of an alternative apparatus for controlling network connection of a terminal according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Example 1
Fig. 3 is a flowchart of a method of controlling network connection of a terminal according to an embodiment of the present invention, as shown in fig. 3, the method including the steps of:
in step S302, the control terminal wirelessly connects to an access point of the image forming apparatus.
And step S304, judging whether the target operation executed by the terminal needs to access the Internet.
In step S306, if the target operation performed by the terminal requires access to the internet, the access point of the image forming apparatus to which the terminal is currently connected is switched to an access point capable of accessing the internet.
In step S308, after the terminal performs the target operation, the control terminal disconnects from the access point that can access the internet, and the control terminal re-wirelessly connects with the access point of the image forming apparatus.
The terminal can be a mobile phone, a computer or other electronic equipment.
An image forming apparatus denotes an apparatus that prints print data generated by, for example, a computer on a recording medium such as printing paper. Examples of the image forming apparatus include a copying machine, a printer, a facsimile machine, a scanner, and a multi-function peripheral that performs the above functions in a single device.
In the embodiment of the invention, the control terminal is wirelessly connected with the access point of the image forming device, whether the target operation executed by the terminal needs to access the Internet is judged, if the target operation executed by the terminal needs to access the Internet, the access point of the image forming device currently connected with the terminal is switched to the access point capable of accessing the Internet, after the terminal executes the target operation, the control terminal is disconnected from the access point capable of accessing the Internet and is wirelessly connected with the access point of the image forming device again, the network switching operation is simple, the problem that the network switching operation in the prior art is complicated and easy to make mistakes is solved, and the technical effect of quickly switching the network is achieved.
Optionally, the determining whether the target operation executed by the terminal requires accessing the internet includes: judging whether a target operation executed in an interface of an application program of an image forming device in which a terminal is running is a preset operation, wherein the preset operation is an operation needing to access the Internet; if the target operation performed in the interface of the application program of the image forming apparatus is a preset operation, it is determined that the target operation performed by the terminal requires access to the internet. If the target operation performed in the interface of the application program of the image forming apparatus is not a preset operation, it is determined that the target operation performed by the terminal does not require access to the internet.
Optionally, after the terminal performs the target operation, controlling the terminal to disconnect from an access point capable of accessing the internet includes: judging whether a new target operation performed after the target operation is executed in an interface of an application program of the image forming apparatus is a preset operation; if the new target operation performed after the target operation is performed is not a preset operation, the control terminal disconnects the connection with the access point capable of accessing the internet; if a new target operation performed after the target operation is performed is also a preset operation, it is necessary for the terminal to maintain connection with an access point capable of accessing the internet.
For example, an APP of a printer is installed on a mobile phone, and after a user logs in the APP, the APP monitors whether an operation executed by the user on an interface of the APP is a preset operation, where the preset operation represents an operation that needs to be executed by accessing the internet. The APP at the printer can perform many operations, such as setting print parameters, searching web pages, clicking preview printing, clicking fax preview, etc. The page shown in fig. 2 is the result that occurs when the user searches for a web page on the APP when the handset is not connected to an access point that has access to the internet. If the user inputs a web address in the search box and browses a web page when the mobile phone is connected to an access point capable of accessing the internet, there is a button "fax preview" in fig. 2, and the user allows the user to preview the browsed web page before sending the web page to the printer by clicking the "fax preview". Among the operations of the APP of the printer, the operation of searching for a web page is an operation indicating that access to the internet is required. Through the embodiment of the invention, the target operation (such as webpage search executed on the APP) performed on the APP by the user is the preset operation, and if the user needs to access the Internet, the currently connected access point of the mobile phone is switched to the access point capable of accessing the Internet, so that the network is quickly switched to meet the requirements of the user on Internet access and mobile printing.
Optionally, the determining whether the target operation executed by the terminal requires accessing the internet includes: judging whether the first interface belongs to a preset interface or not, wherein the first interface is an interface of an application program which is running at the terminal; and if the first interface does not belong to the preset interface, determining that the target operation executed by the terminal does not need to access the Internet.
Optionally, the method further comprises: if the first interface belongs to the preset interface, judging whether the target operation executed in the first interface is a preset operation or not, wherein the preset operation is an operation needing to access the Internet; and if the target operation executed in the first interface is a preset operation, determining that the target operation executed by the terminal needs to access the Internet.
The preset interface has the following characteristics: and part of the operation executed on the preset interface is the operation needing to access the Internet. All operations performed on the non-default interface are operations that do not require access to the internet.
If an interface does not belong to the preset interface, all operations executed on the interface do not need to access the internet, and the target operation executed on the interface by the terminal does not need to access the internet.
If one interface belongs to the preset interface, whether the target operation executed in the interface is the preset operation needs to be continuously judged, the preset operation is the operation needing to access the Internet, and if the target operation executed in the first interface is the preset operation, the target operation executed by the terminal needs to access the Internet; and if the target operation executed in the first interface is not the preset operation, determining that the target operation executed by the terminal does not need to access the Internet.
For example, install the APP of printer on the cell-phone, after the user logs in the APP, APP automatic start function type detecting element, function type detecting element fixes a position the APP interface that the tracking terminal shows in real time to judge whether the target operation of the current execution of terminal needs to visit the internet, wherein, the concrete process of judging whether the target operation of the current execution of terminal needs to visit the internet is as follows: and judging whether the APP interface currently displayed by the terminal belongs to a preset interface, and if not, determining that the target operation currently executed by the terminal does not need to access the Internet. If the APP interface displayed currently by the terminal belongs to the preset interface, continuously judging whether the target operation executed in the current APP interface by the user is the preset operation, and if the target operation executed in the currently displayed APP interface is not the preset operation, determining that the target operation executed by the terminal does not need to access the Internet; and if the target operation executed in the currently displayed APP interface is a preset operation, determining that the target operation executed by the terminal needs to access the Internet. If the target operation executed by the terminal is determined to require to access the Internet, switching the access point of the printer currently connected with the terminal into the access point capable of accessing the Internet; after the terminal performs the target operation, when the new target operation performed by the terminal does not require access to the internet, the control terminal disconnects from an access point that can access the internet and re-wirelessly connects with an access point of the printer.
Optionally, after the terminal performs the target operation, controlling the terminal to disconnect from an access point capable of accessing the internet includes: judging whether the second interface belongs to a preset interface or not, wherein the second interface is an interface displayed after the terminal executes the target operation; and if the second interface does not belong to the preset interface, the control terminal disconnects the access point capable of accessing the Internet.
And after the terminal executes the target operation, the displayed interface is a second interface, if the second interface does not belong to the preset interface, the terminal is controlled to disconnect the access point which can access the internet if all the operations executed on the second interface do not need to access the internet.
For example, as shown in fig. 4, the mobile phone 104 is connected to the access point 101 capable of accessing the internet, and when switching to another interface after performing an operation requiring access to the internet on the APP interface of the mobile phone 104, such as switching from a "web page" interface to a "document" interface, the function type detection unit of the APP locates and tracks the current interface in real time, and if the current interface belongs to an interface not requiring access to the internet, the access point 101 currently connected to the mobile phone 104 is disconnected, and the access point 105 (shown in fig. 1) of the previous printer is switched, so that the user can perform operations such as printing, scanning, faxing and the like at any time.
Alternatively, if the target operation performed by the terminal requires access to the internet, switching the access point of the image forming apparatus to which the terminal is currently connected to an access point capable of accessing the internet, includes: if the target operation executed by the terminal needs to access the Internet, judging whether an access point of an image forming device currently connected with the terminal can be connected to the Internet or not; if the access point of the image forming apparatus to which the terminal is currently connected cannot be connected to the internet, the access point to which the terminal is currently connected is switched to an access point that can access the internet.
After determining that a target operation executed by the terminal needs to access the Internet, judging whether an access point of an image forming device currently connected with the terminal can be connected to the Internet or not; if the access point of the image forming apparatus to which the terminal is currently connected can be connected to the internet, network switching is not required; if the access point of the image forming apparatus to which the terminal is currently connected cannot be connected to the internet, the access point to which the terminal is currently connected is switched to an access point that can access the internet.
For example, after determining that the current target operation needs to access the internet, if the user searches for a web page, the APP of the printer starts a network detection unit, determines whether the network to which the mobile phone is currently connected can access the internet, if the network to which the mobile phone is currently connected cannot be connected to the internet, the screen shown in fig. 5 is displayed to remind the user, if the user clicks a "confirm" button in fig. 5, two input boxes are displayed to allow the user to input a service set identifier and a password of an access point to which the user wants to connect, when the user inputs the service set identifier and the password of the access point and clicks the confirm, the APP switches the Wi-Fi connection of the mobile phone to the access point selected by the user, the APP continues to request a web page from the internet, and when the user uses other functions or selects to click a print preview, the APP switches the mobile phone from the access point selected by the connection user to, the web page screen selected by the user to be printed is transmitted to the printer to output a paper document.
Example 2
Installing an APP of a printer on a mobile phone, wherein the APP can judge whether the operation performed by a current user needs to access the Internet, if the operation needs to detect a network connected with the current mobile phone, and if the network connected with the current mobile phone cannot be connected with the Internet, displaying a picture shown in FIG. 5 to remind the user; if the user clicks the "confirm" button in fig. 5, a Wi-Fi setup interface (which may also be a setup interface of a WLAN (wireless local area network) of the mobile phone shown in fig. 6 is displayed, an available WLAN list is displayed in the interface, that is, an SSID list of wireless access points in each wireless local area network), in fig. 6, the user is allowed to select an SSID of an access point to be connected, after the user selects an SSID of an access point desired to be connected, if the selected access point is an access point to which the mobile phone has not been connected before, the user is required to input a password of the selected access point and click to determine, the APP allows the Wi-Fi connection of the mobile phone to be switched to the access point selected by the user, the APP continues to access the internet and acquire required data information, and when the user switches to other interfaces or other functions, the mobile phone is switched from the access point selected by the connected user to the access point of the APP connected to the printer, the web page data selected by the user to be printed is transmitted to the printer to output a paper document. By entering the mode of fig. 6, the user can operate the network switch conveniently without exiting the APP to search the Wi-Fi setting interface shown in fig. 6 in the mobile phone to perform the network switch.
In addition, when the user confirms in fig. 5 that the Wi-Fi connection of the mobile phone is to be switched, a list of access points that can be connected to the internet may be displayed on the APP, allowing the user to select an access point that the user wants to connect, which is more convenient for the user to select the network switching.
In addition, a screen may also be displayed in fig. 5 to remind the user whether a switch to a 3G/4G network is required. If the user confirms that the switching to the 3G/4G network is needed, a cellular mobile network interface of the mobile phone is displayed, so that the user can open the 3G or 4G network of the mobile phone, the user can conveniently execute the operation of accessing the Internet, and the network connection of the mobile phone does not need to be switched by manually searching a network switching interface.
The APP of the printer judges whether the target operation performed by the user needs to access the Internet, and detects whether the network connected with the current mobile phone can access the Internet according to the following specific operations:
the first step is as follows: when entering the APP, the APP automatically starts a function type detection unit;
the second step is that: selecting and entering different APP interfaces by a user;
the third step: the function type detection unit positions and tracks the APP interface selected by the user in real time;
the fourth step: if the selected APP interface belongs to an interface needing to access the Internet, the function type detection unit judges whether the operation performed by the user needs to access the Internet;
the fifth step: if the Internet needs to be accessed, a network detection unit is started, and whether the network connected with the current mobile phone can access the Internet or not is judged;
and a sixth step: if the access is unavailable, the APP prompts the user whether to switch to an access point capable of surfing the Internet;
the seventh step: after the user performs an operation of accessing the internet, for example, after browsing a webpage, when switching to another interface;
eighth step: the function type detection unit positions and tracks the APP interface selected by the user in real time, and if the selected APP interface belongs to an interface which does not need to access the Internet, for example, when printing preview or fax preview is clicked after a webpage is browsed;
and ninthly, disconnecting the access point which can currently access the Internet and switching to the access point of the printer connected before so that the user can perform printing, scanning, faxing and other operations at any time.
Example 3
An embodiment of the present invention provides an apparatus for controlling network connection of a terminal, where the apparatus is configured to execute the method for controlling network connection of a terminal, and as shown in fig. 7, the apparatus includes: the device comprises a first control unit 10, a judging unit 20, a switching unit 30 and a second control unit 40.
A first control unit 10 for controlling the terminal to wirelessly connect with an access point of the image forming apparatus.
And a judging unit 20 for judging whether the target operation executed by the terminal requires access to the internet.
A switching unit 30 for switching an access point of the image forming apparatus to which the terminal is currently connected to an access point capable of accessing the internet if a target operation performed by the terminal requires access to the internet.
A second control unit 40 for controlling the terminal to disconnect from an access point capable of accessing the internet and to re-wirelessly connect with the access point of the image forming apparatus after the terminal performs the target operation.
The terminal can be a mobile phone, a computer or other electronic equipment.
An image forming apparatus denotes an apparatus that prints print data generated by, for example, a computer on a recording medium such as printing paper. Examples of the image forming apparatus include a copying machine, a printer, a facsimile machine, a scanner, and a multi-function peripheral that performs the above functions in a single device.
In the embodiment of the invention, the control terminal is wirelessly connected with the access point of the image forming device, whether the target operation executed by the terminal needs to access the Internet is judged, if the target operation executed by the terminal needs to access the Internet, the access point of the image forming device currently connected with the terminal is switched to the access point capable of accessing the Internet, after the terminal executes the target operation, the control terminal is disconnected from the access point capable of accessing the Internet and is wirelessly connected with the access point of the image forming device again, the network switching operation is simple, the problem that the network switching operation in the prior art is complicated and easy to make mistakes is solved, and the technical effect of quickly switching the network is achieved.
Alternatively, the judging unit 20 includes: the device comprises a first judgment subunit and a first determination subunit. A first judging subunit, configured to judge whether a target operation executed in an interface of an application of an image forming apparatus on which a terminal is running is a preset operation, where the preset operation is an operation that requires access to the internet; a first determining subunit, configured to determine that the target operation performed by the terminal requires access to the internet if the target operation performed in the interface of the application of the image forming apparatus is a preset operation.
Optionally, the second control unit 40 comprises: a second judging subunit and a control subunit. A second judgment subunit operable to judge whether a new target operation performed after the target operation is performed in an interface of an application of the image forming apparatus is a preset operation; and a control subunit, configured to disconnect the control terminal from the access point capable of accessing the internet if the new target operation performed after the target operation is performed is not a preset operation.
Alternatively, the judging unit 20 includes: a fourth judging subunit and a second determining subunit. And the fourth judging subunit is used for judging whether the first interface belongs to a preset interface, wherein the first interface is an interface of an application program which is running at the terminal. And the second determining subunit is used for determining that the target operation executed by the terminal does not need to access the Internet if the first interface does not belong to the preset interface.
Optionally, the judging unit 20 further includes: a fifth judging subunit and a third determining subunit. And the fifth judging subunit is configured to, if the first interface belongs to the preset interface, judge whether the operation executed in the first interface is a preset operation, where the preset operation is an operation that requires access to the internet. And the third determining subunit is used for determining that the target operation executed by the terminal needs to access the Internet if the operation executed in the first interface is a preset operation.
Optionally, the second control unit 40 comprises: a sixth judging subunit and a control subunit. And the sixth judging subunit is configured to judge whether the second interface belongs to a preset interface, where the second interface is an interface displayed after the terminal executes the target operation. And the control subunit is used for disconnecting the connection with the access point capable of accessing the internet by the control terminal if the second interface does not belong to the preset interface.
Optionally, the switching unit 30 includes: a third judging subunit and a switching subunit. A third judging subunit operable to judge whether or not the access point of the image forming apparatus to which the terminal is currently connected is able to connect to the internet if the target operation performed by the terminal requires access to the internet. And a switching subunit for switching the access point to which the terminal is currently connected to an access point capable of accessing the internet if the access point of the image forming apparatus to which the terminal is currently connected cannot be connected to the internet.
Example 4
The embodiment of the invention provides a storage medium, which comprises a stored program, wherein when the program runs, a device where the storage medium is located is controlled to execute the following steps:
the control terminal is wirelessly connected with an access point of the image forming device; judging whether a target operation executed by a terminal needs to access the Internet or not; if the target operation executed by the terminal requires accessing the internet, switching the access point of the image forming apparatus to which the terminal is currently connected to the access point capable of accessing the internet; after the terminal performs the target operation, the control terminal disconnects from an access point that can access the internet, and the control terminal re-wirelessly connects with the access point of the image forming apparatus.
Controlling the device on which the storage medium is located when the program is running further performs the steps of: judging whether a target operation executed in an interface of an application program of an image forming device in which a terminal is running is a preset operation, wherein the preset operation is an operation needing to access the Internet; if the target operation performed in the interface of the application program of the image forming apparatus is a preset operation, it is determined that the target operation performed by the terminal requires access to the internet. If the target operation performed in the interface of the application program of the image forming apparatus is not a preset operation, it is determined that the target operation performed by the terminal does not require access to the internet.
Controlling the device on which the storage medium is located when the program is running further performs the steps of: judging whether a new target operation performed after the target operation is executed in an interface of an application program of the image forming apparatus is a preset operation; if the new target operation performed after the target operation is performed is not a preset operation, the control terminal disconnects the connection with the access point capable of accessing the internet; if a new target operation performed after the target operation is performed is also a preset operation, it is necessary for the terminal to maintain connection with an access point capable of accessing the internet.
Controlling the device on which the storage medium is located when the program is running further performs the steps of: judging whether the first interface belongs to a preset interface or not, wherein the first interface is an interface of an application program which is running at the terminal; and if the first interface does not belong to the preset interface, determining that the target operation executed by the terminal does not need to access the Internet.
Controlling the device on which the storage medium is located when the program is running further performs the steps of: if the first interface belongs to the preset interface, judging whether the operation executed in the first interface is a preset operation or not, wherein the preset operation is an operation needing to access the Internet; and if the operation executed in the first interface is a preset operation, determining that the target operation executed by the terminal needs to access the Internet.
Controlling the device on which the storage medium is located when the program is running further performs the steps of: after the target operation executed by the terminal, judging whether a second interface belongs to a preset interface or not, wherein the second interface is an interface displayed after the target operation is executed by the terminal; and if the second interface does not belong to the preset interface, the control terminal disconnects the access point capable of accessing the Internet.
Controlling the device on which the storage medium is located when the program is running further performs the steps of: if the target operation executed by the terminal needs to access the Internet, judging whether an access point of an image forming device currently connected with the terminal can be connected to the Internet or not; if the access point of the image forming apparatus to which the terminal is currently connected cannot be connected to the internet, the access point to which the terminal is currently connected is switched to an access point that can access the internet.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present invention, it should be understood that "first", "second", "third", etc. are not used to limit the order, but merely to indicate different units or modules.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (7)

1. A method of controlling network connectivity of a terminal, the method comprising:
the control terminal is wirelessly connected with an access point of the image forming device;
judging whether a first interface belongs to a preset interface, wherein the first interface is an interface of an application program which is running at the terminal;
if the first interface belongs to the preset interface, judging whether the target operation executed in the first interface is a preset operation or not, wherein the preset operation is an operation needing to access the Internet;
if the target operation executed in the first interface is the preset operation, determining that the target operation executed by the terminal needs to access the Internet;
switching an access point of the image forming apparatus to which the terminal is currently connected to an access point that can access the internet;
after the terminal performs the target operation, controlling the terminal to disconnect from an access point that can access the internet and to reconnect wirelessly with the access point of the image forming apparatus.
2. The method of claim 1, wherein after the terminal performs the target operation, controlling the terminal to disconnect from an access point capable of accessing the internet comprises:
judging whether a second interface belongs to the preset interface or not, wherein the second interface is an interface displayed after the terminal executes the target operation;
and if the second interface does not belong to the preset interface, controlling the terminal to disconnect from an access point capable of accessing the Internet.
3. The method according to any one of claims 1 to 2, wherein switching the access point of the image forming apparatus to which the terminal is currently connected to an access point capable of accessing the internet if the target operation performed by the terminal requires access to the internet, comprises:
if the target operation executed by the terminal needs to access the Internet, judging whether an access point of the image forming device currently connected with the terminal can be connected to the Internet or not;
and if the access point of the image forming apparatus to which the terminal is currently connected cannot be connected to the internet, switching the access point to which the terminal is currently connected to an access point capable of accessing the internet.
4. An apparatus for controlling network connection of a terminal, the apparatus comprising:
a first control unit for controlling the terminal to wirelessly connect with an access point of the image forming apparatus;
the judgment unit comprises a fourth judgment subunit, a fifth judgment subunit and a third determination subunit;
the fourth judging subunit is configured to judge whether a first interface belongs to a preset interface, where the first interface is an interface of an application program that is running on the terminal;
the fifth judging subunit is configured to, if the first interface belongs to a preset interface, judge whether an operation executed in the first interface is a preset operation, where the preset operation is an operation that requires access to the internet;
the third determining subunit is configured to determine that a target operation executed by the terminal needs to access the internet if the operation executed in the first interface is a preset operation;
a switching unit configured to switch an access point of the image forming apparatus to which the terminal is currently connected to an access point capable of accessing the internet if the target operation performed by the terminal requires access to the internet;
a second control unit configured to control the terminal to disconnect from an access point capable of accessing the internet and to control the terminal to re-wirelessly connect with the access point of the image forming apparatus after the terminal performs the target operation.
5. The apparatus of claim 4, wherein the second control unit comprises:
a sixth judging subunit, configured to judge whether a second interface belongs to a preset interface, where the second interface is an interface displayed after the terminal performs the target operation;
and the control subunit is used for controlling the terminal to disconnect the access point which can access the internet if the second interface does not belong to the preset interface.
6. The apparatus according to any one of claims 4 to 5, wherein the switching unit comprises:
a third judging subunit configured to judge whether an access point of the image forming apparatus to which the terminal is currently connected can be connected to the internet if the target operation performed by the terminal requires access to the internet;
a switching subunit configured to switch the access point to which the terminal is currently connected to an access point that can access the internet if the access point of the image forming apparatus to which the terminal is currently connected cannot be connected to the internet.
7. A storage medium characterized by comprising a stored program, wherein an apparatus in which the storage medium is located is controlled to execute the method of controlling network connection of a terminal according to any one of claims 1 to 3 when the program is executed.
CN201811074764.XA 2018-09-14 2018-09-14 Method and device for controlling network connection of terminal Active CN109168181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811074764.XA CN109168181B (en) 2018-09-14 2018-09-14 Method and device for controlling network connection of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811074764.XA CN109168181B (en) 2018-09-14 2018-09-14 Method and device for controlling network connection of terminal

Publications (2)

Publication Number Publication Date
CN109168181A CN109168181A (en) 2019-01-08
CN109168181B true CN109168181B (en) 2021-03-02

Family

ID=64879519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811074764.XA Active CN109168181B (en) 2018-09-14 2018-09-14 Method and device for controlling network connection of terminal

Country Status (1)

Country Link
CN (1) CN109168181B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162347B (en) * 2019-05-15 2023-05-16 苏州达家迎信息技术有限公司 Application program starting method, device, equipment and storage medium
CN110569099B (en) * 2019-09-17 2021-07-06 Oppo广东移动通信有限公司 Message display method and related product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677520A (en) * 2013-12-04 2014-03-26 深圳市朗强科技有限公司 Comment method and device of application programs based on Android platform
WO2018011814A1 (en) * 2016-07-11 2018-01-18 Arun B A system of dynamic application for accessing secure wlan and enabling services.

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3055974B1 (en) * 2013-10-07 2018-10-03 Google LLC Hazard detection unit facilitating user-friendly setup experience
CN106604413A (en) * 2016-12-29 2017-04-26 生迪智慧科技有限公司 Dual-mode coexistence control method, Wi-Fi chip and communication device
CN106817491A (en) * 2017-01-20 2017-06-09 百度在线网络技术(北京)有限公司 The control method and device of the network connection of terminal
CN107360614B (en) * 2017-07-05 2019-12-10 珠海赛纳打印科技股份有限公司 method for performing network connection with image forming apparatus and image forming apparatus
CN107800916A (en) * 2017-11-09 2018-03-13 珠海奔图电子有限公司 For controlling the method and image processing system of image processing system connection network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677520A (en) * 2013-12-04 2014-03-26 深圳市朗强科技有限公司 Comment method and device of application programs based on Android platform
WO2018011814A1 (en) * 2016-07-11 2018-01-18 Arun B A system of dynamic application for accessing secure wlan and enabling services.

Also Published As

Publication number Publication date
CN109168181A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
US10667303B2 (en) Communication apparatus and control method thereof
US8982389B2 (en) Image processing apparatus, screen data providing method, and computer-readable recording medium
US9621748B2 (en) Information processing system, information processing apparatus, and information processing method
CN106304406B (en) Communication apparatus capable of communicating with device equipped with access point and control method thereof
JP2015072678A (en) Document printing system and server thereof, mobile terminal, printing device, document management system, user interface device, and user interface
EP3291509B1 (en) Information processing device and non-transitory recording medium
TW201401843A (en) Document scanning method and computer program
JP6487737B2 (en) Information processing apparatus, control method thereof, and program
US10581681B2 (en) Information processing apparatus and control method thereof, control method of system, and storage medium
JP2017175468A (en) Communication device, control method therefor and program
EP2958309B1 (en) Display system, display method, and computer program
US9769336B2 (en) Information processing system, mobile terminal, and method of controlling the same
US20080058012A1 (en) Image processing apparatus, mobile terminal apparatus, image processing system and control method
JP5360104B2 (en) Information processing program, information processing apparatus, and information processing method
JP6465767B2 (en) Display control program, display control device, and display control device control method
CN109168181B (en) Method and device for controlling network connection of terminal
KR101758854B1 (en) Scanning apparatus, mobile apparatus and scan job performing method thereof
EP4170478B1 (en) Method and device for controlling image-forming devices, and electronic terminal using the method
CN109041270B (en) Method and device for controlling network connection of terminal
KR20190020624A (en) Information processing apparatus, control method and recording medium
EP3993378A1 (en) Information processing apparatus, system, method for information processing apparatus, and storage medium
CN108632484B (en) Image forming system and image forming apparatus
JP6135480B2 (en) Information processing program and information processing apparatus
JP2019180053A (en) Information processing device, control method of information processing device, and program
US11789684B2 (en) Information processing system, information processing device, image forming device, and control method therefor, and storage medium for displaying information

Legal Events

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