CN108738090B - Control method for network connection of communication device, communication device and electronic terminal - Google Patents

Control method for network connection of communication device, communication device and electronic terminal Download PDF

Info

Publication number
CN108738090B
CN108738090B CN201810326736.6A CN201810326736A CN108738090B CN 108738090 B CN108738090 B CN 108738090B CN 201810326736 A CN201810326736 A CN 201810326736A CN 108738090 B CN108738090 B CN 108738090B
Authority
CN
China
Prior art keywords
access point
point associated
communication device
connection
network
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
CN201810326736.6A
Other languages
Chinese (zh)
Other versions
CN108738090A (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 CN201810326736.6A priority Critical patent/CN108738090B/en
Publication of CN108738090A publication Critical patent/CN108738090A/en
Application granted granted Critical
Publication of CN108738090B publication Critical patent/CN108738090B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00127Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
    • H04N1/00281Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a telecommunication apparatus, e.g. a switched network of teleprinters for the distribution of text-based information, a selective call terminal
    • H04N1/00315Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a telecommunication apparatus, e.g. a switched network of teleprinters for the distribution of text-based information, a selective call terminal with a radio transmission apparatus

Abstract

The invention provides a control method for network connection of a communication device, the communication device and an electronic terminal, wherein the control method comprises the following steps: receiving a network connection request desiring to establish communication with a target peripheral device; establishing a connection with an access point associated with a target peripheral device and establishing communication with the target peripheral device through the access point associated with the target peripheral device; wherein before establishing a connection with an access point associated with a target peripheral device, further comprising: if the access point currently connected with the communication device is different from the access point associated with the target peripheral device, the access point currently connected with the communication device needs to be switched to the access point associated with the target peripheral device, and in the switching process, the network connection priority of the access point associated with the target peripheral device is set to be the highest. The invention can solve the problem of connection failure or unstable connection of the access point associated with the communication device and the peripheral device in the prior art, and improve the convenience of using the target peripheral device by the user through the communication device.

Description

Control method for network connection of communication device, communication device and electronic terminal
[ technical field ] A method for producing a semiconductor device
The present invention relates to a method for controlling network connection of a communication device, and more particularly, to a method for controlling network connection between a communication device and a peripheral device, a communication device, and an electronic terminal.
[ background of the invention ]
In the prior art, a mobile phone has a wireless communication module that can connect to various Access Points (APs), the APs can broadcast their Service Set Identifiers (SSIDs), the mobile phone receives the SSIDs broadcast by the APs and adds the SSIDs to an Access Point list, and a user can select one SSID from the Access Point list and input a secret key to connect to the selected AP. The handset configures connection priorities for a plurality of access points to which it can connect (or has connected) with a predetermined rule, such as communication signal strength, and the handset automatically establishes a connection with the access point with the highest connection priority.
The imaging device is used as a peripheral device, and a wireless communication module can be arranged in the imaging device and can be connected to a router or other access points. The communication device such as a mobile phone can be directly connected with the soft AP of the imaging device to establish mutual communication or establish communication with the imaging device through the router, and a user controls the imaging device to execute imaging tasks such as printing and the like through an application program installed on the mobile phone.
As shown in fig. 1, the cell phone S1 may connect the access point a and the access point B, the imaging device P1 may connect the access point B, and the cell phone S1 may also connect the soft AP (i.e., the access point C) of the imaging device P1. Assume that access point a has the highest connection priority, followed by access point B, and then access point C, and thus the handset will automatically connect to access point a. Therefore, if the user searches for an imaging device by using an application program for controlling the imaging device in the mobile phone and selects the imaging device P1 from the imaging device list to establish a connection between the mobile phone and the access point B or the access point C, the mobile phone may automatically return to the access point a having the highest access priority, and the mobile phone S1 and the imaging device P1 that the user desires to use cannot establish communication via the same network. In order to use the imaging apparatus P1, the user needs to manually quit the application program controlling the imaging apparatus and search the network setting interface of the cell phone S1 to set the access point connected to the cell phone S1 to be the same as the access point associated with the imaging apparatus P1, for example, the access point a is ignored or the access point a is disconnected in the network setting of the cell phone S1, so that the cell phone S1 can automatically establish a network connection with the access point B with a lower connection priority to enable the cell phone S1 to establish communication with the imaging apparatus P1 through the access point B, which is very cumbersome in operation.
[ summary of the invention ]
The embodiment of the invention provides a communication device and a method for controlling network connection of the communication device. The method solves the problem of connection failure or unstable connection of the access point associated with the communication device and the peripheral device in the prior art, improves the success rate of establishing wireless communication between the communication device and the peripheral device, enables the communication device to automatically connect the access point which is expected to request to establish the connection so as to be in the same network with the target peripheral device, and improves the convenience of using the target peripheral device by a user through the communication device.
A first aspect of the present invention provides a method for controlling network connection of a communication apparatus, the method comprising:
receiving a network connection request desiring to establish communication with a target peripheral device;
establishing a connection with an access point associated with the target peripheral device and establishing communication with the target peripheral device through the access point associated with the target peripheral device;
wherein, prior to establishing a connection with an access point associated with the target peripheral device, the control method further comprises:
if the access point currently connected with the communication device is different from the access point associated with the target peripheral device, the access point currently connected with the communication device needs to be switched to the access point associated with the target peripheral device, and in the switching process, the network connection priority of the access point associated with the target peripheral device is set to be the highest.
Further, the network connection priority of the communication device indicates a priority order of establishing connection between the communication device and an external network according to a network configuration file, the network configuration file includes information of each access point to which the communication device can connect, and the information includes a network name and a connection priority.
The control method as described above, setting the network connection priority of the communication device to be highest for the access point associated with the target peripheral device includes at least one of: modifying a connection priority of an access point associated with the target peripheral device to be highest in a network profile of the communication device; deleting the information of the access point associated with the target peripheral device in the network configuration file of the communication device, and reestablishing the information of the access point associated with the target peripheral device in the network configuration file.
Further, setting the network connection priority of the access point associated with the target peripheral device to be highest at the communication device comprises: firstly, modifying the connection priority of the access point associated with the target peripheral device in the network configuration file of the communication device to be the highest, if the situation that the access point associated with the target peripheral device cannot be modified or is unsuccessfully connected occurs, deleting the information of the access point associated with the target peripheral device in the network configuration file of the communication device, and reestablishing the information of the access point associated with the target peripheral device in the network configuration file.
The control method described above, further comprising:
if the switching to the access point associated with the target peripheral device fails, displaying an interface comprising a setting key, so that a user can enter the setting interface of the network connection of the communication device through the setting key, and the user can conveniently and manually set the network connection of the communication device so as to establish the connection between the communication device and the access point associated with the target peripheral device.
Another aspect of the present invention provides a communication apparatus, including:
a receiving unit for receiving a network connection request for which communication with a target peripheral device is desired to be established;
a connection unit for establishing a connection with an access point associated with the target peripheral device and establishing communication with the target peripheral device through the access point associated with the target peripheral device;
wherein, prior to establishing a connection with an access point associated with the target peripheral device, the connection unit is further to:
if the access point currently connected by the connection unit is different from the access point associated with the target peripheral device, the access point currently connected needs to be switched to the access point associated with the target peripheral device, and in the switching process, the connection unit sets the network connection priority of the access point associated with the target peripheral device to be the highest in the communication device.
Further, the network connection priority of the communication device indicates a priority order of the communication device connecting with the external network according to the network configuration file;
the communication device further comprises a storage unit, configured to store the network configuration file, where the network configuration file includes information of each access point to which the connection unit can connect, and the information includes a network name and a connection priority.
The communication apparatus as described above, wherein setting the network connection priority of the communication apparatus to be highest for the access point associated with the target peripheral apparatus comprises at least one of: modifying a connection priority of an access point associated with the target peripheral device to be highest in a network profile of the communication device; deleting the information of the access point associated with the target peripheral device in the network configuration file of the communication device, and reestablishing the information of the access point associated with the target peripheral device in the network configuration file.
Further, the setting, by the connection unit, the network connection priority of the access point associated with the target peripheral device to be highest at the communication device includes: firstly, modifying the connection priority of the access point associated with the target peripheral device in the network configuration file of the communication device to be the highest, if the situation that the access point associated with the target peripheral device cannot be modified or is unsuccessfully connected occurs, deleting the information of the access point associated with the target peripheral device in the network configuration file of the communication device, and reestablishing the information of the access point associated with the target peripheral device in the network configuration file.
The communication apparatus as described above, characterized in that,
the communication device further comprises a display unit, which is used for displaying an interface comprising a setting key if the switching to the access point associated with the target peripheral device fails, so that a user can enter the setting interface of the network connection of the communication device through the setting key, and the user can conveniently and manually set the network connection of the communication device so as to establish the connection between the connection unit and the access point associated with the target peripheral device.
Another aspect of the present invention provides an electronic terminal, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the control method as described above.
Yet another aspect of the present invention is a computer-readable storage medium, characterized by a computer program stored thereon; the computer program is executed by a processor to implement the control method as described above.
Through the technical scheme provided by the invention, when the communication device is switched to the access point associated with the connection target peripheral device, the network connection priority of the access point associated with the target peripheral device is set to be highest, so that the problem that the mobile phone cannot be switched to the access point associated with the imaging device in the background technology can be solved, and the technical scheme provided by the invention is convenient for a user to operate the mobile phone to establish communication with the imaging device and is very convenient for the user lacking network knowledge.
[ 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 structural diagram of a wireless network communication system in which a communication device is located;
fig. 2 is a flowchart of a method for controlling network connection of a communication device according to an embodiment of the present invention;
fig. 3 is another flowchart of a method for controlling network connection of a communication device according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for controlling network connection of a communication device according to a second embodiment of the present invention;
fig. 5 is a flowchart of a method for controlling network connection of a communication device according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a communication device according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a communication device according to a fourth embodiment of the present invention;
fig. 8 is another schematic structural diagram of a communication device according to a fourth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic terminal according to a fifth 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.
Example one
An embodiment of the present invention provides a method for controlling network connection of a communication device, where the method includes:
receiving a network connection request desiring to establish communication with a target peripheral device;
establishing a connection with an access point associated with a target peripheral device and establishing communication with the target peripheral device through the access point associated with the target peripheral device;
wherein, before establishing a connection with an access point associated with a target peripheral device, the control method further comprises:
if the access point currently connected with the communication device is different from the access point associated with the target peripheral device, the access point currently connected with the communication device needs to be switched to the access point associated with the target peripheral device, and in the switching process, the network connection priority of the access point associated with the target peripheral device is set to be the highest.
The network connection priority of the communication device indicates the priority order of the communication device establishing connection with the external network according to a network configuration file, the network configuration file comprises information of each access point which can be connected by the communication device, and the information comprises a network name and a connection priority.
The specific operation flow of the control method of the present embodiment is shown in fig. 2, and includes:
step 201, receiving a network connection request expecting to establish communication with a target peripheral device;
step 202, if the access point currently connected to the communication device is different from the access point associated with the target peripheral device, the access point currently connected to the communication device needs to be switched to the access point associated with the target peripheral device, and in the switching process, the access point associated with the target peripheral device is set to be the highest in the network connection priority of the communication device;
step 203, establishing connection with the access point associated with the target peripheral device;
step 204, communication is established with the target peripheral device through the access point associated with the target peripheral device.
Step 202 may further include a process of attempting to connect, specifically, during the handover process, the communication device first attempts to connect to the access point associated with the target peripheral device, and if the connection is unsuccessful, the access point associated with the target peripheral device is set to be the highest in the network connection priority of the communication device; if the attempted connection is successful, the communication device establishes communication with the target peripheral device. Here, the connection attempt may be that the communication device first attempts to connect to the access point associated with the target peripheral device, and then detects whether the access point associated with the target peripheral device is still connected after a predetermined time, and if there is no connection, it indicates that the connection attempt is unsuccessful.
To explain step 202 in further detail, another specific operation flow of the control method of the present embodiment is shown in fig. 3, and includes:
step 201, receiving a network connection request expecting to establish communication with a target peripheral device;
step 2021, determining whether the access point is currently connected, that is, determining whether the communication device is currently connected to an access point; if the communication device is not connected with any access point currently, the judgment result is no, step 203 is entered, the access point associated with the target peripheral device is the access point which needs to be connected with the communication device newly under the judgment result, and the communication device automatically preferentially connects with the access point which needs to be connected newly; if the communication device is currently connected to an access point and the determination result is yes, go to step 2022;
step 2022, determining whether the access points associated with the target peripheral device are the same, that is, determining whether the access point currently connected to the communication device is the same as the access point associated with the target peripheral device; if the access point currently connected with the communication device is different from the access point associated with the target peripheral device, judging that the access point currently connected with the communication device needs to be switched to the access point associated with the target peripheral device if the access point currently connected with the communication device is not the same as the access point associated with the target peripheral device; if the access point currently connected with the communication device is the access point associated with the target peripheral device, the judgment result is yes, and at the moment, the communication device can directly establish communication with the target peripheral device through the access point currently connected (namely the access point associated with the target peripheral device);
step 2023, attempting to connect to the access point associated with the target peripheral device; that is, the communication device attempts to connect to the access point associated with the target peripheral device;
step 2024, determining whether the connection is successful, i.e. determining whether the communication device establishes a connection with an access point associated with the target peripheral device; specifically, the communication device may try to connect to the access point associated with the target peripheral device, and detect whether to connect to the access point associated with the target peripheral device after a predetermined time, and if not, it indicates that the connection attempt is unsuccessful; if the communication device maintains the connection establishment status with the access point associated with the target peripheral device within the predetermined time, indicating that the connection is successful, entering step 204;
step 2025, setting the network connection priority of the access point associated with the target peripheral device to be highest at the communication device;
step 203, establishing connection with the access point associated with the target peripheral device; when the network connection priority of the access point associated with the target peripheral device is set to be the highest in the communication device, the communication device automatically switches from the currently connected access point to the access point associated with the target peripheral device;
step 204, communication is established with the target peripheral device through the access point associated with the target peripheral device.
Wherein the steps 2021-2025 are detailed operation flows of the step 202.
The communication device in this embodiment may be a mobile phone, a computer, a notebook computer, a PAD (PAD), a digital camera, or the like. The peripheral devices may be imaging devices, home appliances, digital media devices, and the like.
In the following, a communication device is exemplified as a mobile phone, and a peripheral device is exemplified as a printer. An Application program (APP for short) for controlling a printer can be installed in the mobile phone, a list of printers searched by the mobile phone through a network can be displayed in the APP for controlling the printer, a user selects one printer according to the list, the mobile phone receives a network connection request for establishing communication with the selected printer, the mobile phone establishes connection with an access point associated with the selected printer through a wireless communication module, and establishes communication with the selected printer to execute operations such as a printing function. A network profile is stored in the mobile phone, where the network profile includes information of each Access point to which the mobile phone has connected, the information includes a network name (e.g., SSID)) of the Access point, a secret key, a mac (media Access control) address, a connection priority, and the like, and the information stored in the network profile is shown in table 1.
Network name Secret key MAC address Connection priority
A XXX XXXX 1
B XXX XXXX 2
C XXX XXXX 3
TABLE 1
The access points with the highest connection priority are automatically accessed by the mobile phone, and when the access point with the highest connection priority is closed or cannot receive the broadcast signal of the access point with the highest connection priority, the mobile phone is automatically connected with the access point with the next connection priority according to the network configuration file. For example, when the access point a with the highest connection priority (indicated by the numeral 1) is far away and the mobile phone cannot establish a connection with the access point a, the mobile phone automatically connects to the access point B with the next adjacent connection priority.
Thus, setting the network connection priority of the access point associated with the target peripheral device to be highest at the communication device may be accomplished by modifying the connection priority of the access point associated with the target peripheral device in the network profile to be highest. Specifically, when the mobile phone connects to the selected printer-associated access point, the APP controlling the printer in the mobile phone modifies the connection priority of the selected printer-associated access point in the network configuration file stored in the mobile phone to be the highest (for example, the modified connection priority is 1), so that the mobile phone automatically connects to the selected printer-associated access point to establish communication between the mobile phone and the selected printer in the same network. The access point with which the selected printer is associated here may be the selected printer as the access point to which the station is connected or may be the softap of the selected printer itself.
By the control method provided by the embodiment, when the communication device is switched to the access point associated with the target peripheral device, the network connection priority of the access point associated with the target peripheral device is set to be highest, so that the problem that the mobile phone cannot be switched to the access point associated with the imaging device in the background technology can be solved, the mobile phone is automatically in the same wireless network with the imaging device expected to be used by a user, the user can use the imaging device through the mobile phone conveniently, and the control method is very convenient for the user lacking network knowledge.
Example two
In this embodiment, on the basis of the first embodiment, the setting, in the control method provided in this embodiment, the network connection priority of the access point associated with the target peripheral device to be the highest in the communication device further includes: deleting the information of the access point associated with the target peripheral device in the network configuration file of the communication device, and reestablishing the information of the access point associated with the target peripheral device in the network configuration file.
If a new access point D exists in the prior art, and the user selects the SSID of the access point D in the mobile phone and inputs the password to establish the connection between the mobile phone and the new access point D, the operating system of the mobile phone stores the information of the access point D that has newly established the connection in the network configuration file, and sets the connection priority of the access point D to be the highest. The specific scheme of this embodiment may be that when the mobile phone is switched to connect the access point associated with the selected printer, the APP controlling the printer deletes the information of the access point associated with the selected printer from the network configuration file of the mobile phone, and then the APP stores the information of the access point associated with the selected printer in the network configuration file of the mobile phone again, and the operating system of the mobile phone automatically sets the connection priority of the access point associated with the selected printer stored again to be the highest.
Therefore, by the control method of the present embodiment, deleting the information of the access point associated with the target peripheral device in the network profile of the communication apparatus and storing the information of the access point associated with the target peripheral device in the network location file again corresponds to simulating the access point associated with the target peripheral device as an access point that has newly established a connection with the communication apparatus (i.e., an access point that has newly established a connection at the latest time), and the communication apparatus automatically gives priority to maintaining or continuing the connection with the access point that has newly established a connection with the communication apparatus. Therefore, the control method of the embodiment can enable the communication device to establish connection with the access point associated with the target peripheral device, enable the communication device and the target peripheral device to establish communication in the same expected network, and facilitate the user to use the target peripheral device through the communication device.
In addition, in the control method provided in the present embodiment, the setting of the network connection priority of the communication device to be highest by the access point associated with the target peripheral device may include at least one of the following manners: modifying the connection priority of the access point associated with the target peripheral device in the network configuration file of the communication device to be highest; deleting the information of the access point associated with the target peripheral device in the network configuration file of the communication device, and reestablishing the information of the access point associated with the target peripheral device in the network configuration file.
Specifically, in order to improve the success rate of establishing connection between the communication device and the access point associated with the peripheral device, in the control method of the present embodiment, setting the network connection priority of the access point associated with the target peripheral device to be highest in the communication device may be performed in the following order: firstly, the connection priority of the access point associated with the target peripheral device in the network configuration file of the communication device is modified to be the highest, if the situation that the access point associated with the target peripheral device cannot be modified or is unsuccessfully connected occurs, the information of the access point associated with the target peripheral device in the network configuration file of the communication device is deleted, and the information of the access point associated with the target peripheral device is established in the network configuration file again.
To further explain the control method provided by this embodiment, a specific flow of the control method of this embodiment is shown in fig. 4, the same steps as those in fig. 3 are not repeated, the embodiment only explains different steps, and the specific flow of the control method of this embodiment includes:
step 20251, modify the connection priority of the access point associated with the target peripheral device in the network profile of the communication device to be the highest; step 20251 is one specific way to implement step 2025;
step 20252, determining whether the connection is successfully established, that is, determining whether the communication device can establish a connection with the access point associated with the target peripheral device after the communication device modifies the access point associated with the target peripheral device in step 20251 to have the highest connection priority, and if the connection cannot be established, entering step 20253; step 20252 may further determine whether the connection priority of the access point associated with the target peripheral device in the network profile of the communication device is modified successfully is the highest, and if not, proceed to step 20253; if the connection can be modified, whether the connection is established successfully after modification is judged;
step 20253, deleting the information of the access point associated with the target peripheral device in the network configuration file of the communication device, and re-establishing the information of the access point associated with the target peripheral device in the network configuration file; step 20251 is another specific way to implement step 2025; wherein the order of step 20521 and step 20253 may be interchanged.
By the control method provided by the embodiment, the access point associated with the target peripheral device in different modes can be set to be the highest in the network connection priority of the communication device, so that the communication device and the target peripheral device are in the same network to establish communication.
EXAMPLE III
On the basis of the first embodiment, the control method provided by this embodiment further includes:
if the switching failure occurs in the access point associated with the target peripheral device, displaying an interface comprising a setting key, so that a user can enter the setting interface of the network connection of the communication device through the setting key, and the user can conveniently and manually set the network connection of the communication device so as to establish the connection between the communication device and the access point associated with the target peripheral device.
Different from the prior art that a user needs to search for a setting interface for entering the network connection of the mobile phone in the mobile phone after quitting the APP for controlling the printer, the control method provided by this embodiment causes the APP to display the interface including the setting key after the access point connection between the mobile phone and the imaging device fails, and prompts the user to set the guiding step of the network connection of the mobile phone on the interface including the setting key, and the user clicks the setting key to directly enter the setting interface of the network connection of the mobile phone from the APP, and sets the network connection of the mobile phone according to the guiding step (for example, "ignore this network" setting is performed on the access point associated with the target peripheral device, and reselects the access point associated with the target peripheral device to establish connection) so as to establish connection between the mobile phone and the access point associated with the target peripheral device.
In order to further describe the control method of the present embodiment, a specific operation flow of the control method of the present embodiment is shown in fig. 5, and the same points as those of the above embodiment are not repeated, including:
step 301 is added after step 20253 to determine whether the establishment of the connection is successful when the communication device establishes a connection with the access point associated with the target peripheral device; when switching from the currently connected access point to the access point associated with the connection target peripheral device, judging whether the switching connection is successful; if the judgment result is no, entering 302; if the judgment result is yes, the step 204 is entered; step 301 may also be determining whether information about access points associated with the target peripheral device in the network profile may be deleted; if the deletion cannot be performed, go to step 302; if the information of the access point associated with the target peripheral device can be deleted and stored again in the network configuration file, whether the connection can be established successfully is judged;
step 302, displaying an interface including a setting key, so that a user can enter a setting interface of network connection of the communication device through the setting key; specifically, displaying an interface comprising a set key on an APP interface for controlling the printer, wherein the interface prompts a user to operate a network connection guiding step of a communication device; specifically, the user may click a setup button to enter a network setup interface of the communication device, perform settings such as "ignore this network" or "disconnect this network" on an access point associated with the target peripheral device in an access point list of the communication device, and reselect the access point associated with the target peripheral device (sometimes requiring entry of a required key) to cause the communication device to establish a connection with the access point associated with the target peripheral device. In the prior art, after a user selects a printer in an APP, if the connection between the mobile phone and an access point associated with the selected printer is unsuccessful, the user is required to quit the APP to search for the network setting application of the mobile phone, the access point associated with the selected printer is searched in the network setting application to be reconnected, and the operation is complex.
Step 303, determine if the user has set up a network connection for the communication device. If the user has made a network connection of the communication device according to the displayed guiding step, step 203 is entered.
Before step 301, the control method of this embodiment may specifically be that the APP controlling the printer in the mobile phone achieves the purpose of setting the network connection priority of the access point associated with the target imaging device to be the highest in the mobile phone in multiple ways, and when it is determined in step 301 that the APP cannot establish connection between the mobile phone and the access point associated with the target imaging device, step 302 is performed again, the APP displays an interface including a setting key, and the user directly enters the network setting interface of the mobile phone through the setting key on the interface, without the user exiting the APP controlling the printer and then entering other application programs to set the network connection of the mobile phone, which is very convenient for the user to use the target imaging device through the mobile phone.
In addition, the specific operation flow of the control method of the present embodiment may also be that when the determination result of step 20252 is no, the process directly proceeds to steps 302 and 303, and steps 20253 and 301 are omitted. Further, the specific operation flow of the control method of the present embodiment may also directly omit steps 20251 and 20252, and directly enter step 20253 when the determination result of step 2024 is no.
By the control method of the embodiment, the access point associated with the target peripheral device can be set to be the highest in the network connection priority of the communication device in different modes, and the user operation is reduced, so that the communication device and the target peripheral device are in the same network, and the user can use the target peripheral device through the communication device conveniently.
Example four
The present embodiment provides a communication apparatus 40, as shown in fig. 6, including: a receiving unit 401 and a connecting unit 402;
a receiving unit 401 for receiving a network connection request for desiring to establish communication with a target peripheral device;
a connection unit 402, configured to establish a connection with an access point associated with a target peripheral device, and establish communication with the target peripheral device through the access point associated with the target peripheral device;
wherein, before establishing the connection with the access point associated with the target peripheral device, the connection unit 402 is further configured to:
if the access point currently connected by the connection unit 402 is different from the access point associated with the target peripheral device, the currently connected access point needs to be switched to the access point associated with the target peripheral device, and in the switching process, the connection unit 402 sets the network connection priority of the access point associated with the target peripheral device to be the highest in the communication device 40.
The network connection priority of the communication apparatus 40 indicates a priority order in which the communication apparatus 40 connects to the external network according to the network profile.
As shown in fig. 7, the communication device 40 further includes a storage unit 403 for storing a network profile, where the network profile includes information of each access point to which the connection unit 402 can connect, and the information includes a network name and a connection priority.
Further, setting the network connection priority of the access point associated with the target peripheral device to be highest at the communication device 40 includes at least one of: modifying the connection priority of the access point associated with the target peripheral device to be highest in the network profile of communication device 40; delete the information of the access point associated with the target peripheral device in the network profile of the communication device 40 and re-establish the information of the access point associated with the target peripheral device in the network profile.
The following operations may also be performed for the connection unit 402 to set the network connection priority of the access point associated with the target peripheral device to be highest at the communication device 40: first, the connection priority of the access point associated with the target peripheral device in the network profile of the communication device 40 is modified to be the highest, and if the access point associated with the target peripheral device cannot be modified or is not successfully connected, the information of the access point associated with the target peripheral device in the network profile of the communication device is deleted, and the information of the access point associated with the target peripheral device is re-established in the network profile.
In addition, as shown in fig. 8, the communication apparatus 40 further includes a display unit 404, where the display unit 404 is configured to display an interface including a setting key if a handover failure occurs to the access point associated with the target peripheral apparatus, and a setting interface enabling a user to enter a network connection of the communication apparatus 40 through the setting key, so as to facilitate the user to manually set the network connection of the communication apparatus 40 to enable the connection unit 402 to establish a connection with the access point associated with the target peripheral apparatus.
By the communication device provided by the embodiment, the communication device and the target peripheral device establish communication in the same network, so that a user can conveniently use the target peripheral device through the communication device, and the communication device is very convenient for users lacking network knowledge.
EXAMPLE five
Fig. 9 is a schematic structural diagram of an electronic terminal according to a sixth embodiment of the present invention. As shown in fig. 9, the electronic terminal provided in this embodiment includes: memory, processor, and computer programs.
Wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method provided by any of the above embodiments.
In addition, the present embodiment also provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method provided by any of the above embodiments.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A method of controlling network connectivity of a communication device, the method comprising:
the mobile printing APP receives a network connection request which is expected to establish communication with a target imaging device;
the mobile printing APP judges whether the communication device is connected with an access point;
if an access point is connected, the mobile printing APP judges whether the connected access point is the same as the access point associated with the target imaging device;
if the access point to which the communication apparatus is currently connected is different from the access point associated with the target image forming apparatus, the mobile printing APP causes the communication apparatus to attempt to connect to the access point associated with the target image forming apparatus;
when the attempted connection fails, the mobile printing APP sets an access point associated with the target image forming apparatus to be highest in network connection priority of the communication apparatus;
the communication device establishes connection with an access point associated with the target imaging device, and the mobile printing APP establishes communication with the target imaging device through the access point associated with the target imaging device; wherein the content of the first and second substances,
the network connection priority of the communication device represents the priority order of the communication device establishing connection with an external network according to a network configuration file, wherein the network configuration file comprises information of each access point which can be connected with the communication device, and the information comprises a network name and a connection priority; wherein the content of the first and second substances,
the mobile printing APP setting the network connection priority of the access point associated with the target image forming apparatus to be highest at the communication apparatus includes: firstly, modifying the connection priority of the access point associated with the target imaging device in the network configuration file of the communication device to be the highest, if the situation that the access point cannot be modified or the connection of the access point associated with the target imaging device is unsuccessful occurs, deleting the information of the access point associated with the target imaging device in the network configuration file of the communication device, and reestablishing the information of the access point associated with the target imaging device in the network configuration file.
2. The control method according to claim 1, characterized by further comprising:
if the switching failure occurs to the access point associated with the target imaging device, the mobile printing APP displays an interface comprising a setting key, so that a user can enter a setting interface of network connection of the communication device through the setting key, and the user can conveniently and manually set the network connection of the communication device to enable the communication device to be connected with the access point associated with the target imaging device.
3. A communication device, comprising:
a mobile printing unit for sending an image forming job to a target image forming apparatus;
a receiving unit for receiving a network connection request from the mobile printing unit desiring to establish communication with the target image forming apparatus;
a connection unit for establishing a connection with an access point associated with the target imaging apparatus and establishing communication with the target imaging apparatus through the access point associated with the target imaging apparatus;
wherein, prior to establishing a connection with an access point associated with the target imaging device, the mobile printing unit is further to:
judging whether the communication device is connected with an access point;
if one access point is connected, judging whether the connected access point is the same as the access point associated with the target imaging device;
if the access point to which the communication device is currently connected is different from the access point associated with the target imaging device, causing the communication device to attempt to connect to the access point associated with the target imaging device;
setting an access point associated with the target imaging apparatus to be highest in a network connection priority of the communication apparatus when the attempt to connect fails; wherein the content of the first and second substances,
the network connection priority of the communication device represents the priority order of the communication device to be connected with the external network according to the network configuration file;
the communication device further comprises a storage unit, configured to store the network configuration file, where the network configuration file includes information of each access point that the connection unit can connect to, and the information includes a network name and a connection priority; wherein the content of the first and second substances,
the mobile printing unit setting the access point associated with the target image forming apparatus to be highest at the network connection priority of the communication apparatus includes: firstly, modifying the connection priority of the access point associated with the target imaging device in the network configuration file of the communication device to be the highest, if the situation that the access point cannot be modified or the connection of the access point associated with the target imaging device is unsuccessful occurs, deleting the information of the access point associated with the target imaging device in the network configuration file of the communication device, and reestablishing the information of the access point associated with the target imaging device in the network configuration file.
4. The communication device of claim 3,
the mobile printing unit further comprises a display unit, and the display unit is used for displaying an interface comprising a setting key if the switching to the access point associated with the target imaging device fails, so that a user can enter the setting interface of the network connection of the communication device through the setting key, and the user can conveniently and manually set the network connection of the communication device to establish the connection between the connection unit and the access point associated with the target imaging device.
5. An electronic terminal, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the control method of any one of claims 1-2.
6. A computer-readable storage medium, having stored thereon a computer program; the computer program is executed by a processor to implement the control method according to any one of claims 1-2.
CN201810326736.6A 2018-04-12 2018-04-12 Control method for network connection of communication device, communication device and electronic terminal Active CN108738090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810326736.6A CN108738090B (en) 2018-04-12 2018-04-12 Control method for network connection of communication device, communication device and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810326736.6A CN108738090B (en) 2018-04-12 2018-04-12 Control method for network connection of communication device, communication device and electronic terminal

Publications (2)

Publication Number Publication Date
CN108738090A CN108738090A (en) 2018-11-02
CN108738090B true CN108738090B (en) 2021-07-23

Family

ID=63940728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810326736.6A Active CN108738090B (en) 2018-04-12 2018-04-12 Control method for network connection of communication device, communication device and electronic terminal

Country Status (1)

Country Link
CN (1) CN108738090B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327672A (en) * 2019-12-18 2020-06-23 珠海奔图电子有限公司 Data transmission control method, control device and mobile terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105830503A (en) * 2013-12-20 2016-08-03 三星电子株式会社 Connection method for smart home device and apparatus thereof
CN105873240A (en) * 2015-12-31 2016-08-17 乐视致新电子科技(天津)有限公司 Wireless hotspot connection method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120506A (en) * 2015-07-30 2015-12-02 广东欧珀移动通信有限公司 Method and system for customizing priorities of WIFI hot spots and realizing automatic connection and mobile terminal
CN106658667B (en) * 2015-11-03 2020-02-18 中国移动通信集团公司 Method and device for quickly connecting embedded equipment
CN106993303A (en) * 2017-04-11 2017-07-28 百度在线网络技术(北京)有限公司 Configuration and method, device, equipment and the computer-readable storage medium of the intelligent wifi equipment of maintenance
CN107241784B (en) * 2017-06-16 2020-09-25 深圳市盛路物联通讯技术有限公司 Internet of things access method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105830503A (en) * 2013-12-20 2016-08-03 三星电子株式会社 Connection method for smart home device and apparatus thereof
CN105873240A (en) * 2015-12-31 2016-08-17 乐视致新电子科技(天津)有限公司 Wireless hotspot connection method and device

Also Published As

Publication number Publication date
CN108738090A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
US7693516B2 (en) Method and system for enhanced communications between a wireless terminal and access point
CN111683275B (en) Screen projection method, screen projection system and computer equipment
WO2005117468A1 (en) A method of selecting a network by multimode terminal
EP3799455A1 (en) Roaming method, access point, and access point collaborative work controller
US9351212B2 (en) PLMN selection method, mobile terminal, BSC and core network device
CN103402230A (en) Method and system for surfing Internet through mobile hot spots
US20140243035A1 (en) Communication group generation method and apparatus
JP2023500329A (en) Communication method and system, base station and terminal
CN111918256A (en) Intelligent device network distribution method and device based on Bluetooth and storage medium
KR20140010206A (en) Apparatus and method for connecting wireless network in consideration of radio frequency band
CN107800916A (en) For controlling the method and image processing system of image processing system connection network
CN112118538A (en) Method and device for device information interaction between terminals
JP7326625B2 (en) Separation of user-brokered connections and carrier-brokered connections
CN107124744B (en) Network switching method and wireless access point
CN107666696A (en) The switching method and terminal of a kind of wireless network
CN101466130B (en) Control method and device for network connection
CN108738090B (en) Control method for network connection of communication device, communication device and electronic terminal
US20150249955A1 (en) Dialling method and device
KR20220006014A (en) Wireless communication device and method of wireless communication connection
CN102892157A (en) Method and system for guaranteeing continuity of services during switching of wireless local area network (WLAN) to WLAN or third-generation (3G) network
CN108462984A (en) A kind of method and terminal carrying out access network management
CN114339789A (en) AP distribution network processing method and device
WO2019196583A1 (en) Imaging apparatus control method and apparatus, and electronic device using said method
EP2733992B1 (en) Method and apparatus for connecting to an access point in portable terminal
EP4185061A1 (en) Random access method and apparatus, communication device, and storage medium

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